/* Кейс KeyStone — только собственные правила, префикс ks-.
   Глобальные селекторы сайта не переопределяем. */

/* выделение цветом ключевых цифр и слов в текстах блоков */
.ks-acc { color: #C41F4C; font-weight: 600; }

/* список «Это позволило» в блоке «Дизайн и фирменный стиль» */
.ks-list { margin: 12px 0 0; padding-left: 20px; list-style: disc; }
.ks-list li { margin: 0 0 6px; }

/* «Разработка прототипа»: карточки с рамкой, номер отдельной строкой — как в макете */
.ks-proto .widget-item { border: 1px solid #CECECE; border-radius: 4px; padding: 36px; justify-content: flex-start; gap: 18px; }
.ks-proto .widget-item-icon { margin: 0; }
.ks-num { display: block; font-size: 28px; font-weight: 700; line-height: 1; color: #E3E3E3; }


/* «Результат»: серая панель как в макете */
.ks-result .adaptive-container {
    background: #F8F8F8;
    border-radius: 4px;
    padding: clamp(28px, 4vw, 61px) clamp(18px, 3vw, 38px);
}
.widget-about.template-2-2.ks-result .widget-header + .widget-content { margin-top: 24px; }

/* «Комментарий эксперта»: текст слева, круглое фото 150 справа */
.ks-expert .adaptive-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
.ks-expert .widget-about.template-4 .widget-picture { margin: 0; max-width: 150px; }
.ks-expert .widget-about.template-4 .widget-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ks-expert .widget-additional-description { margin-top: 14px; }
.ks-sign { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; color: #1B1E25; }
.ks-role { margin: 4px 0 0; font-size: 17px; line-height: 1.3; color: #5A5F68; }

@media (max-width: 800px) {
    .ks-expert .adaptive-container { grid-template-columns: 1fr; gap: 24px; }
    .ks-proto .widget-item { padding: 24px; }
    }
/* «Особенности реализации»: ссылка пункта — кнопка как в макете */
.widget-about.template-1-3.ks-osob .widget-item-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C41F4C;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    padding: 15px 30px;
    border-radius: 12px;
    margin-top: 28px;
    text-decoration: none;
    transition: background .2s ease-out;
}
.widget-about.template-1-3.ks-osob .widget-item-link:hover,
.widget-about.template-1-3.ks-osob .widget-item-link:focus {
    background: #A81842;
    color: #fff;
}
.widget-about.template-1-3.ks-osob .widget-item-link svg { display: none; }

/* «Ход работ»: заголовки пунктов красным 28 px, как в макете.
   Селектор без :not-фильтров не годится — рядом стоят такие же блоки 2.2,
   поэтому исключаем «Разработка прототипа» (ks-proto) и «Что мы получили» (пункты -2). */
.widget-about.template-2-2:not(.ks-proto) .widget-item:not([class*="widget-item-"]) .widget-item-title {
    color: #C41F4C;
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
}

/* «Комментарий эксперта»: цитата с красной линией слева, как в макете */
.ks-expert .ks-quote {
    border-left: 3px solid #C41F4C;
    padding-left: 32px;
    font-size: 22px;
    line-height: 1.5;
}
.ks-expert .ks-quote p { margin: 0 0 18px; }
.ks-expert .ks-quote p:last-child { margin-bottom: 0; }

/* «Клиент»: ссылка «Посмотреть сайт» как в макете — 20 px/600 + стрелка ↗ */
.widget-about.template-1 .widget-item-link {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #1B1E25;
    margin-top: 4px;
}
.widget-about.template-1 .widget-item-link svg { display: none; }
.widget-about.template-1 .widget-item-link::after {
    content: "\2197";
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
}
.widget-about.template-1 .widget-item-link:hover { color: #C41F4C; }

/* Полный скриншот сайта: свёрнут до 900 px + кнопка «Развернуть» */
.mainPageFrame.ks-shot { max-height: 900px; overflow: hidden; position: relative; }
.mainPageFrame.ks-shot::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 85%);
    pointer-events: none;
}
.mainPageFrame.ks-shot-open { max-height: none; overflow: visible; }
.mainPageFrame.ks-shot-open::after { display: none; }
.ks-shot-toggle {
    display: block;
    margin: 8px auto 32px;
    padding: 15px 30px;
    border: 0;
    border-radius: 12px;
    background: #C41F4C;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease-out;
}
.ks-shot-toggle:hover { background: #A81842; }
@media (max-width: 800px) {
    .mainPageFrame.ks-shot { max-height: 420px; }
    .mainPageFrame.ks-shot::after { height: 120px; }
    .ks-shot-toggle { font-size: 16px; padding: 12px 20px; }
}

/* CTA «Хочешь такой же сайт?»: кнопка фирменная красная, как в макете */
.widget-form.template-2 .adaptive-container .widget-header .widget-button {
    background: #C41F4C;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    padding: 15px 30px;
    border: 0;
    border-radius: 12px;
    transition: background .2s ease-out;
}
.widget-form.template-2 .adaptive-container .widget-header .widget-button:hover,
.widget-form.template-2 .adaptive-container .widget-header .widget-button:focus { background: #A81842; color: #fff; }
@media (max-width: 800px) {
    .widget-form.template-2 .adaptive-container .widget-header .widget-button { font-size: 17px; padding: 14px 24px; }
}

/* «Что мы получили»: номер отдельной строкой, крупная серая цифра как в макете */
.ks-got .widget-item-icon { margin: 0 0 10px; }
.ks-got .ks-num { font-size: clamp(48px, 5vw, 64px); line-height: 1; color: #E3E3E3; }
