/* =========================================================
   Warm Contour Portal Main
   File: /local/components/warmcontour/portal.main/templates/.default/style.css
   Scope: portal.main layout only
   Cards styles live in /local/components/warmcontour/cards/*
   ========================================================= */


/* =========================================================
   01. Base
   ========================================================= */

.wc-portal-main {
    position: relative;
    background: #f8f9fb;
    color: #0f1421;
    font-family: Inter, Arial, sans-serif;
    overflow: hidden;
}

.wc-portal-main *,
.wc-portal-main *::before,
.wc-portal-main *::after {
    box-sizing: border-box;
}

.wc-portal-main a {
    color: inherit;
    text-decoration: none;
}

/* Кнопки общего слоя: правило выше сильнее .wpa-btn и красило текст цветом блока (в блоке регистрации — белым на белом) */
.wc-portal-main a.wpa-btn {
    color: var(--tc-text, #111111);
}

.wc-portal-main img {
    max-width: 100%;
}

.wc-portal-main__container {
    max-width: 1701px;
    margin: 0 auto;
    padding: 0 30px 160px;
}


/* =========================================================
   02. Common sections
   ========================================================= */

.wc-section {
    margin-bottom: 220px;
}

.wc-section-title {
    max-width: 760px;
    margin: 0 0 60px;
    color: #000;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.wc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

.wc-section-head .wc-section-title {
    margin-bottom: 0;
}

.wc-section-link,
.wc-quality-rating-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    border-radius: 10px;
    background: #fff;
    color: #000 !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.wc-section-link img,
.wc-quality-rating-link img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.wc-section-action {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}


/* =========================================================
   03. Buttons
   ========================================================= */

/* Кнопки — .wpa-btn общего слоя (ui.css, 18.11.2026): «Весь рейтинг», «Открыть все видео» — .wpa-btn--white
   (стоят на сером фоне страницы), «Заполнить заявку» — .wpa-btn--white, «Кабинет партнёра» — .wpa-btn
   со своей прозрачной заливкой ниже. Прежние .wc-btn удалены. */


/* =========================================================
   04. Placeholder / empty
   ========================================================= */

.wc-section-placeholder,
.wc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: #000;
    text-align: center;
}

.wc-section-placeholder {
    min-height: 250px;
    gap: 10px;
    padding: 35px;
}

.wc-section-placeholder__title {
    max-width: 420px;
    color: #000;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.wc-section-placeholder__text {
    max-width: 480px;
    color: #616776;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.wc-empty {
    min-height: 280px;
    gap: 18px;
}

.wc-empty__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    font-size: 28px;
    line-height: 1;
}

.wc-empty__text {
    max-width: 260px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}


/* =========================================================
   05. Hero
   ========================================================= */

.wc-hero {
    min-height: 760px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 90px;
    background: #f8f9fb;
    text-align: center;
}

.wc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 200px;
    background: #fff;
    color: #616776;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.wc-hero__badge-logo {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.wc-hero__title {
    max-width: 820px;
    margin: 30px 0 0;
    color: #000;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.035em;
    text-align: center;
}

.wc-hero__title span {
    display: block;
}

.wc-hero__title em {
    background: none;
    color: inherit;
    font-style: italic;
    font-weight: inherit;
    white-space: nowrap;
}

.wc-hero__line {
    height: 18px;
    margin-top: 12px;
}

.wc-hero__line img {
    width: 212px;
    height: auto;
    display: block;
}

.wc-hero__agent {
    width: 565px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
}

.wc-hero__question {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 50px -20px rgba(50, 50, 93, 0.09);
    cursor: pointer;
}

.wc-hero__question:disabled,
.wc-hero__question[aria-disabled="true"] {
    opacity: .58;
    cursor: default;
}

.wc-hero__question > span:first-child {
    padding-left: 20px;
    color: #616776;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-align: left;
}

.wc-hero__question-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f1f3f5;
}

.wc-hero__question-icon img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.wc-hero__scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wc-hero-scenario {
    height: 150px;
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    text-align: left;
}

.wc-hero-scenario span {
    max-width: 135px;
    position: relative;
    z-index: 2;
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.wc-hero-scenario img {
    position: absolute;
    right: -10px;
    bottom: 0;
    z-index: 1;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.wc-hero-scenario:nth-child(1) img {
    width: 100px;
}

.wc-hero-scenario:nth-child(2) img {
    width: 120px;
}

.wc-hero-scenario:nth-child(3) img {
    width: 110px;
}


/* =========================================================
   06. Accreditation / catalog tile
   ========================================================= */

.wc-accreditation-placeholder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 18px;
    align-items: stretch;
}

.wc-catalog-tile {
    min-height: 250px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.wc-catalog-tile__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-catalog-tile__icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.wc-catalog-tile__text {
    max-width: 260px;
    color: #000;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 500;
}


/* =========================================================
   07. Projects
   ========================================================= */

.wc-projects-layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 60px;
    align-items: stretch;
}

.wc-projects-promo {
    min-height: 650px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: 10px;
    background: #616776;
    color: #fff;
}

.wc-projects-promo h2 {
    max-width: 322px;
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.wc-projects-promo__house {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    width: 105%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}

.wc-projects-promo__button {
    min-height: 52px;
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    border-radius: 10px;
    background: #fff;
    color: #000 !important;
    box-shadow: 0 20px 40px -20px rgba(50, 50, 93, 0.25);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.wc-projects-promo__button img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.wc-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: start;
}

.wc-projects-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wc-projects-grid--placeholder .wc-section-placeholder {
    min-height: 650px;
}


/* =========================================================
   08. Videos
   ========================================================= */

.wc-videos-placeholder {
    display: grid;
    grid-template-columns: 1fr;
}

.wc-videos-placeholder .wc-section-placeholder {
    min-height: 260px;
}

.wc-videos-grid--cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   09. Quality leaders
   Layout only. Tech card internals live in cards/tech.card/style.css
   ========================================================= */

.wc-quality-section {
    margin-bottom: 250px;
    overflow: visible;
}

.wc-quality-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin: 0 0 60px;
}

.wc-quality-head .wpa-btn {
    flex: 0 0 auto;
    width: auto;
}

.wc-quality-head .wc-section-title {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.wc-quality-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: 20px;
    align-items: end;
    overflow: visible;
}

.wc-quality-cards {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
}

.wc-quality-cards .wc-tech-card {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.wc-quality-placeholder {
    min-height: 416px;
}


/* =========================================================
   10. Expert banner
   ========================================================= */

.wc-expert-banner {
    width: 100%;
    min-width: 0;
    min-height: 416px;
    height: 100%;
    position: relative;
    align-self: end;
    overflow: hidden;
    padding: 0;
    border-radius: 10px;
    background: #fff;
}

.wc-expert-banner__quote {
    width: 339px;
    max-width: 339px;
    position: absolute;
    left: 42px;
    top: 32px;
    z-index: 4;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
}

.wc-expert-banner__quote::before,
.wc-expert-banner__quote::after {
    position: absolute;
    opacity: .05;
    color: #000;
    font-size: 60px;
    line-height: 1;
}

.wc-expert-banner__quote::before {
    content: '“';
    left: -36px;
    top: -18px;
}

.wc-expert-banner__quote::after {
    content: '”';
    right: -16px;
    top: 60px;
}

.wc-expert-banner__link {
    position: absolute;
    left: 42px;
    top: 113px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 0;
    color: #b30000 !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
}

.wc-expert-banner__link img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.wc-expert-banner__photo {
    position: absolute;
    left: 90px;
    top: 87px;
    z-index: 2;
    width: 320px;
    height: 365px;
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}

.wc-expert-banner__person-card {
    width: 159px;
    position: absolute;
    left: 40px;
    top: 309px;
    z-index: 6;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(25px);
}

.wc-expert-banner__person-card strong {
    display: block;
    color: #000;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 600;
}

.wc-expert-banner__person-card span {
    width: 139px;
    display: block;
    margin-top: 5px;
    opacity: .8;
    color: #616776;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
}


/* =========================================================
   11. Partners
   Card internals live in cards/partner.card/style.css
   ========================================================= */

.wc-partners-section {
    margin-bottom: 250px;
}

.wc-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.wc-partners-grid > * {
    min-width: 0;
}

.wc-partners-grid .wc-partner-card,
.wc-partners-grid .p-card {
    width: 100%;
    max-width: none;
}

.wc-partners-catalog-card {
    width: 100%;
    min-height: 487px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border-radius: 10px;
    background: #fff;
    color: #000 !important;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease;
}

.wc-partners-catalog-card:hover {
    transform: translateY(-3px);
}

.wc-partners-catalog-card__icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
}

.wc-partners-catalog-card__icon::before {
    content: '';
    width: 22px;
    height: 22px;
    display: block;
    background: url('/local/components/warmcontour/portal.main/templates/.default/icons/Arrow.svg') center / contain no-repeat;
}

.wc-partners-catalog-card__icon img,
.wc-partners-catalog-card__icon svg,
.wc-partners-catalog-card__icon span {
    display: none;
}

.wc-partners-catalog-card strong,
.wc-partners-catalog-card__title {
    max-width: 260px;
    margin: 0;
    color: #000;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 500;
}


/* =========================================================
   12. Bottom blocks: about + register
   ========================================================= */

.wc-portal-main__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 600px);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 140px;
}

.wc-about-portal,
.wc-register-cta {
    min-height: 491px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.wc-about-portal {
    background: #fff;
    color: #000;
}

.wc-register-cta {
    background: #616776;
    color: #fff;
}


/* ---------- about portal ---------- */

.wc-about-portal__content {
    position: relative;
    z-index: 3;
    width: 52%;
    min-height: 491px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 58px 60px 40px;
}

.wc-about-portal__brand {
    display: block;
    margin: 0;
}

.wc-about-portal__brand img {
    width: 214px;
    height: auto;
    display: block;
    object-fit: contain;
}

.wc-about-portal__brand div,
.wc-about-portal__brand p,
.wc-about-portal__brand strong,
.wc-about-portal__brand span {
    display: none;
}

.wc-about-portal h2 {
    max-width: 380px;
    margin: 78px 0 0;
    color: #000;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 500;
}

.wc-about-portal__phone {
    position: absolute;
    right: -18px;
    bottom: 0;
    z-index: 2;
    width: 520px;
    max-width: 55%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}


/* ---------- register ---------- */

.wc-register-cta__content {
    position: relative;
    z-index: 3;
    max-width: 370px;
    min-height: 491px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 40px 40px;
}

.wc-register-cta h2 {
    max-width: 343px;
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
}

.wc-register-cta p {
    max-width: 294px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.wc-register-cta .wpa-btn {
    position: static;
    min-width: 196px;
    margin-top: 34px;
}

.wc-register-cta__helmet {
    position: absolute;
    right: -150px;
    bottom: -90px;
    z-index: 1;
    width: 560px;
    max-width: none;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}


/* =========================================================
   13. Responsive: notebook
   ========================================================= */

@media (max-width: 1500px) {
    .wc-partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 340px;
    }

    .wc-quality-row {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .wc-quality-cards {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }

    .wc-expert-banner__quote {
        left: 28px;
        width: 280px;
        max-width: 280px;
        font-size: 17px;
    }

    .wc-expert-banner__link {
        left: 28px;
    }

    .wc-expert-banner__photo {
        left: auto;
        right: -42px;
        width: 300px;
    }

    .wc-expert-banner__person-card {
        left: 28px;
    }

    .wc-portal-main__bottom {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 600px);
    }
}

@media (max-width: 1400px) {
    .wc-portal-main__container {
        max-width: 1240px;
    }

    .wc-projects-layout,
    .wc-portal-main__bottom,
    .wc-accreditation-placeholder {
        grid-template-columns: 1fr;
    }

    .wc-projects-grid--cards,
    .wc-videos-grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wc-projects-promo {
        min-height: 360px;
    }

    .wc-projects-promo__house {
        bottom: 40px;
        width: 360px;
    }

    .wc-projects-grid--placeholder .wc-section-placeholder {
        min-height: 320px;
    }

    .wc-about-portal__content {
        width: 55%;
    }

    .wc-about-portal__phone {
        right: 0;
        max-width: 50%;
    }

    .wc-register-cta__helmet {
        right: -60px;
        width: 520px;
    }
}

@media (max-width: 1280px) {
    .wc-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wc-partners-catalog-card {
        min-height: 320px;
    }

    .wc-quality-row {
        grid-template-columns: 1fr;
    }

    .wc-quality-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wc-expert-banner {
        width: 410px;
        max-width: 410px;
        justify-self: start;
    }
}

@media (max-width: 1180px) {
    .wc-quality-head {
        flex-direction: column;
        margin-bottom: 36px;
    }
}


/* =========================================================
   14. Responsive: tablet / mobile
   ========================================================= */

@media (max-width: 900px) {
    .wc-portal-main__container {
        padding: 0 16px 80px;
    }

    .wc-section {
        margin-bottom: 90px;
    }

    .wc-section-head {
        flex-direction: column;
        margin-bottom: 28px;
    }

    .wc-section-title,
    .wc-section-head .wc-section-title,
    .wc-quality-head .wc-section-title {
        max-width: 100%;
        margin-bottom: 0;
        font-size: 28px;
    }

    .wc-section-link,
    .wc-quality-rating-link {
        width: 100%;
    }

    .wc-hero {
        min-height: auto;
        padding: 90px 16px;
    }

    .wc-hero__title {
        font-size: 30px;
        line-height: 1.16;
    }

    .wc-hero__title em {
        white-space: normal;
    }

    .wc-hero__scenarios {
        grid-template-columns: 1fr;
    }

    .wc-hero-scenario {
        height: 140px;
    }

    .wc-projects-layout {
        gap: 24px;
    }

    .wc-projects-promo {
        min-height: 420px;
        padding: 28px;
    }

    .wc-projects-promo h2 {
        font-size: 30px;
    }

    .wc-projects-promo__button {
        left: 28px;
        right: 28px;
        bottom: 28px;
    }

    .wc-projects-promo__house {
        bottom: 75px;
        width: 430px;
    }

    .wc-projects-grid--cards,
    .wc-videos-grid--cards,
    .wc-quality-cards,
    .wc-partners-grid {
        grid-template-columns: 1fr;
    }

    .wc-portal-main__bottom {
        gap: 20px;
        margin-bottom: 80px;
    }

    .wc-about-portal,
    .wc-register-cta {
        min-height: 420px;
    }

    .wc-about-portal__content,
    .wc-register-cta__content {
        width: 100%;
        min-height: 420px;
        padding: 34px 28px;
    }

    .wc-about-portal__brand img {
        width: 190px;
    }

    .wc-about-portal h2 {
        max-width: 300px;
        margin-top: 56px;
        font-size: 22px;
    }

    .wc-register-cta .wpa-btn {
        margin-top: 30px;
    }

    .wc-about-portal__phone {
        right: -110px;
        bottom: 0;
        max-width: none;
        width: 420px;
        opacity: .35;
    }

    .wc-register-cta h2 {
        font-size: 28px;
    }

    .wc-register-cta__helmet {
        right: -170px;
        bottom: -90px;
        width: 500px;
        opacity: .45;
    }

    .wc-expert-banner {
        width: 100%;
        max-width: none;
        min-height: 416px;
    }
}

@media (max-width: 560px) {
    .wc-about-portal,
    .wc-register-cta {
        min-height: 390px;
    }

    .wc-about-portal__content,
    .wc-register-cta__content {
        min-height: 390px;
        padding: 28px 22px;
    }

    .wc-about-portal__brand img {
        width: 170px;
    }

    .wc-about-portal h2,
    .wc-register-cta h2 {
        font-size: 24px;
    }

    .wc-about-portal__phone {
        right: -150px;
        width: 390px;
    }

    .wc-register-cta__helmet {
        right: -210px;
        width: 460px;
    }
}

/* =========================================================
   AI Agent Hero — первый экран с полем ИИ-подбора (2026-10-27)
   Заголовок, поле запроса и сценарии — как в макете. Поле открывает окно ИИ Агента
   (components/warmcontour/ai.agent — свои стили, на всех страницах сайта); встроенного
   чата на главной больше нет. Вид спокойный: без градиентного фона и свечений.
   ========================================================= */

.wc-ai-hero,
.wc-ai-hero *,
.wc-ai-hero *::before,
.wc-ai-hero *::after {
    box-sizing: border-box;
}

.wc-ai-hero {
    position: relative;
    padding: 100px 20px 80px;
    background: #f8f9fb;
    color: #0f1421;
    font-family: Inter, Arial, sans-serif;
}

.wc-ai-hero__content {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.wc-ai-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Заголовок ---------- */

.wc-ai-hero__title {
    max-width: 900px;
    margin: 30px 0 0;
    color: #000;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.035em;
    text-align: center;
}

.wc-ai-hero__title span {
    display: block;
}

.wc-ai-hero__title em {
    position: relative;
    display: inline-block;
    padding: 0 .06em;
    background: linear-gradient(90deg, #ff4e50 0%, #f26b21 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f05a28;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: inherit;
    white-space: nowrap;
}

/* Волнистая линия под «ИИ Агентом» — icons/Line gradient.svg. */
.wc-ai-hero__title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.2em;
    height: 10px;
    background: url("icons/Line%20gradient.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}

/* ---------- Поле запроса ---------- */

.wc-ai-hero__start-form {
    width: 565px;
    max-width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 0 9px 0 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 15px 40px -20px rgba(50, 50, 93, .12);
}

/* Фокус — рамка цвета фирменного градиента (как выделение в окне подбора); у поля нет своего outline. */
.wc-ai-hero__start-form:focus-within {
    box-shadow: 0 0 0 2px #f05a28;
}

.wc-ai-hero__start-input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    height: 54px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #000;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
}

.wc-ai-hero__start-input::placeholder {
    opacity: 1;
    color: #616776;
}

/* Кнопка со стрелкой — как в макете: белая, тонкая рамка фирменного градиента. */
.wc-ai-hero__start-submit {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #ff4e50, #f9d423) border-box;
    cursor: pointer;
}

.wc-ai-hero__start-submit:focus-visible {
    outline: 2px solid #f05a28;
    outline-offset: 2px;
}

.wc-ai-hero__start-submit img {
    width: 20px;
    height: 20px;
    display: block;
}

.wc-ai-hero .wc-hero__scenarios {
    width: 565px;
    max-width: 100%;
    margin-top: 20px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .wc-ai-hero__title {
        font-size: 34px;
        line-height: 1.16;
    }

    .wc-ai-hero__title em {
        white-space: normal;
    }

    .wc-ai-hero__start-form {
        width: 100%;
        margin-top: 24px;
    }

    .wc-ai-hero .wc-hero__scenarios {
        width: 100%;
    }
}

@media (max-width: 560px) {
    /* 16 px — иначе iPhone увеличивает страницу при вводе; подсказка мельче, чтобы помещалась. */
    .wc-ai-hero__start-input {
        font-size: 16px;
        text-overflow: ellipsis;
    }

    .wc-ai-hero__start-input::placeholder {
        font-size: 14px;
    }
}

/* Переход по ссылке #quality не прячет заголовок секции под закреплённой шапкой сайта. */
.wc-quality-section {
  scroll-margin-top: 96px;
}

/* Режим «меньше движения» в настройках системы: без анимаций и плавной прокрутки. */
@media (prefers-reduced-motion: reduce) {
    .wc-portal-main *,
    .wc-portal-main *::before,
    .wc-portal-main *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Мобильная вёрстка главной (2026-10-23)
   - Первый экран — по высоте содержимого (было 750 px пустоты).
   - До 900 px: первый экран слева, сценарии — строками на всю ширину.
   - До 900 px: партнёры, проекты, видео и лидеры качества — горизонтальные ряды
     с прокруткой и «доводкой» карточек вместо колонок по 2000 px высотой.
   - 901–1180 px: две колонки вместо одной.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {
    .wc-portal-main .wc-projects-grid--cards,
    .wc-portal-main .wc-videos-grid--cards,
    .wc-portal-main .wc-quality-cards,
    .wc-portal-main .wc-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    /* ---------- Первый экран ---------- */
    .wc-ai-hero {
        padding: 72px 16px 32px;
    }

    .wc-ai-hero__content {
        align-items: stretch;
        text-align: left;
    }

    .wc-ai-hero__title {
        margin-top: 16px;
        font-size: 30px;
        line-height: 1.12;
        text-align: left;
    }

    .wc-ai-hero .wc-hero__scenarios {
        margin-top: 24px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wc-ai-hero .wc-hero-scenario {
        height: auto;
        min-height: 64px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 44px 10px 10px;
        border-radius: 12px;
    }

    .wc-ai-hero .wc-hero-scenario span {
        max-width: none;
        font-size: 15px;
        line-height: 1.25;
    }

    .wc-ai-hero .wc-hero-scenario img,
    .wc-ai-hero .wc-hero-scenario:nth-child(n) img {
        position: static;
        order: -1;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 10px;
        background: #f1f3f5;
        object-fit: contain;
    }

    .wc-ai-hero .wc-hero-scenario::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 18px;
        width: 8px;
        height: 8px;
        border-top: 2px solid #616776;
        border-right: 2px solid #616776;
        transform: translateY(-50%) rotate(45deg);
    }

    /* ---------- Секции ---------- */
    .wc-portal-main .wc-section,
    .wc-portal-main .wc-partners-section,
    .wc-portal-main .wc-quality-section {
        margin-bottom: 56px;
    }

    .wc-section-head,
    .wc-quality-head {
        margin-bottom: 16px;
    }

    .wc-section-title,
    .wc-section-head .wc-section-title,
    .wc-quality-head .wc-section-title {
        font-size: 24px;
        line-height: 1.15;
    }

    /* ---------- Горизонтальные ряды карточек ---------- */
    .wc-portal-main .wc-partners-grid,
    .wc-portal-main .wc-projects-grid--cards,
    .wc-portal-main .wc-videos-grid--cards,
    .wc-portal-main .wc-quality-cards {
        display: flex;
        align-items: stretch;
        gap: 12px;
        margin: 0 -16px;
        padding: 4px 16px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .wc-portal-main .wc-partners-grid::-webkit-scrollbar,
    .wc-portal-main .wc-projects-grid--cards::-webkit-scrollbar,
    .wc-portal-main .wc-videos-grid--cards::-webkit-scrollbar,
    .wc-portal-main .wc-quality-cards::-webkit-scrollbar {
        display: none;
    }

    .wc-portal-main .wc-partners-grid > *,
    .wc-portal-main .wc-projects-grid--cards > *,
    .wc-portal-main .wc-videos-grid--cards > *,
    .wc-portal-main .wc-quality-cards > * {
        flex: 0 0 min(84%, 340px);
        width: auto;
        min-width: 0;
        max-width: none;
        scroll-snap-align: start;
    }

    /* Карточка лидера качества в ряду: шире остальных (в ней строка «дата — балл — статус»),
       компактнее внутри — иначе «Неудовлетворительно» вылезало за край карточки. */
    .wc-portal-main .wc-quality-cards > .wc-tech-card {
        flex-basis: min(88%, 340px);
        width: auto;
        min-height: 0;
        gap: 14px;
        padding: 16px;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__name {
        max-width: none;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__brand {
        flex: 1 1 auto;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__stat {
        gap: 6px;
        padding: 8px;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 46px;
        padding: 8px 0;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__row-score {
        text-align: right;
    }

    .wc-portal-main .wc-quality-cards .wc-tech-card__status {
        min-width: 0;
        padding: 7px 8px;
        font-size: 12px;
    }

    .wc-portal-main .wc-partners-catalog-card {
        min-height: 0;
    }

    .wc-section-action {
        margin-top: 12px;
    }

    .wc-section-action .wpa-btn {
        width: 100%;
    }

    /* ---------- Баннер «Проекты наших партнеров» ---------- */
    .wc-projects-layout {
        gap: 16px;
    }

    /* Заголовок слева сверху, дом справа над кнопкой, кнопка на всю ширину внизу —
       как на десктопе, но в пропорциях телефона: раньше дом 430 px наезжал на текст. */
    .wc-projects-promo {
        min-height: 250px;
        padding: 22px 20px;
    }

    .wc-projects-promo h2 {
        max-width: 55%;
        font-size: 24px;
        line-height: 1.15;
    }

    .wc-projects-promo__house {
        left: auto;
        right: -6px;
        bottom: 70px;
        width: 172px;
        transform: none;
    }

    .wc-projects-promo__button {
        left: 20px;
        right: 20px;
        bottom: 20px;
        min-height: 44px;
        padding: 0 16px;
    }

    /* ---------- Цитата эксперта и нижние блоки ---------- */
    .wc-quality-row {
        gap: 16px;
    }

    .wc-expert-banner {
        min-height: 340px;
    }

    .wc-portal-main__bottom {
        gap: 12px;
        margin-bottom: 40px;
    }

    .wc-about-portal,
    .wc-register-cta,
    .wc-about-portal__content,
    .wc-register-cta__content {
        min-height: 0;
    }

    .wc-about-portal {
        min-height: 240px;
    }

    .wc-about-portal__content {
        width: 62%;
        padding: 28px 20px;
    }

    .wc-about-portal__phone {
        right: -40px;
        width: 220px;
        max-width: 60%;
        opacity: 1;
    }

    .wc-register-cta__content {
        width: 100%;
        max-width: none;
        padding: 28px 20px;
    }

    .wc-register-cta h2 {
        font-size: 24px;
    }

    .wc-register-cta p {
        margin-top: 12px;
        font-size: 15px;
    }

    .wc-register-cta .wpa-btn {
        margin-top: 20px;
    }

    .wc-register-cta__helmet {
        right: -150px;
        bottom: -110px;
        width: 340px;
        opacity: .35;
    }
}

/* Ряды карточек мышью: на устройствах с курсором видна тонкая полоса прокрутки. */
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
    .wc-portal-main .wc-partners-grid,
    .wc-portal-main .wc-projects-grid--cards,
    .wc-portal-main .wc-videos-grid--cards,
    .wc-portal-main .wc-quality-cards {
        scrollbar-width: thin;
    }

    .wc-portal-main .wc-partners-grid::-webkit-scrollbar,
    .wc-portal-main .wc-projects-grid--cards::-webkit-scrollbar,
    .wc-portal-main .wc-videos-grid--cards::-webkit-scrollbar,
    .wc-portal-main .wc-quality-cards::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
}

/* =========================================================
   Мобильная вёрстка: воздух и шаблон сайта (2026-10-23, вечер)
   ========================================================= */

/* Заголовок страницы из шаблона сайта (#pagetitle): у портала свой заголовок. Шаблон поднимает
   контент на 50 px (margin-bottom: -50px у .intec-template-title), и фон страницы обрезал этот
   заголовок на телефоне («Строительство домов» над первым экраном). В разметке он остаётся. */
body .intec-template .intec-template-title {
    margin-bottom: 0;
}

body .intec-template .intec-template-title h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .wc-portal-main .wc-ai-hero .wc-hero__scenarios {
        gap: 10px;
    }

    .wc-portal-main .wc-section,
    .wc-portal-main .wc-partners-section,
    .wc-portal-main .wc-quality-section {
        margin-bottom: 72px;
    }

    .wc-portal-main .wc-section-head,
    .wc-portal-main .wc-quality-head {
        margin-bottom: 20px;
    }

    .wc-portal-main .wc-partners-grid,
    .wc-portal-main .wc-projects-grid--cards,
    .wc-portal-main .wc-videos-grid--cards,
    .wc-portal-main .wc-quality-cards {
        gap: 16px;
        padding-bottom: 16px;
    }

    .wc-portal-main .wc-section-action {
        margin-top: 20px;
    }

    .wc-portal-main .wc-projects-layout,
    .wc-portal-main .wc-quality-row {
        gap: 24px;
    }

    /* После «Зарегистрироваться» до подвала было 120 px пустоты. */
    .wc-portal-main .wc-portal-main__bottom {
        gap: 16px;
        margin-bottom: 0;
    }

    .wc-portal-main .wc-portal-main__container {
        padding-bottom: 64px;
    }
}

/* =========================================================
   Мобильная вёрстка в духе proptech (2026-10-26)
   Первый экран — плитки 2×2 и подзаголовок, больше воздуха; проекты — на планшете
   карточка «Проекты наших партнеров» остаётся слева, а справа 4 проекта в 2 колонки
   (вместо переноса карточки наверх), на телефоне — заголовок со ссылкой и сетка 2×2.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1400px) {
    .wc-portal-main .wc-projects-layout {
        grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
        gap: 24px;
    }

    .wc-portal-main .wc-projects-promo {
        min-height: 0;
        padding: 28px;
    }

    .wc-portal-main .wc-projects-promo h2 {
        font-size: clamp(26px, 2.5vw, 36px);
    }

    .wc-portal-main .wc-projects-promo__house {
        bottom: 0;
        width: 105%;
    }

    .wc-portal-main .wc-projects-promo__button {
        left: 28px;
        right: 28px;
        bottom: 28px;
        gap: 8px;
        padding: 0 16px;
    }
}

/* Меньше колонок — меньше проектов: два ряда по две карточки. */
@media (max-width: 1400px) {
    .wc-portal-main .wc-projects-section .wc-projects-grid--cards > :nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 900px) {
    /* ---------- Первый экран ---------- */
    .wc-portal-main .wc-ai-hero {
        padding: 66px 16px 48px;
    }

    .wc-portal-main .wc-ai-hero__title {
        margin-top: 18px;
        font-size: 30px;
        line-height: 1.1;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    .wc-portal-main .wc-ai-hero .wc-hero__scenarios {
        margin-top: 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario {
        display: block;
        min-height: 128px;
        padding: 14px 14px 0;
        border-radius: 16px;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario::after {
        content: none;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario span {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.25;
        font-weight: 500;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario img,
    .wc-portal-main .wc-ai-hero .wc-hero-scenario:nth-child(n) img {
        position: absolute;
        right: 8px;
        bottom: 8px;
        width: 76px;
        height: 60px;
        flex: none;
        border-radius: 0;
        background: none;
        object-fit: contain;
        object-position: right bottom;
    }

    /* ---------- Проекты: заголовок со ссылкой вместо серого баннера ---------- */
    .wc-portal-main .wc-projects-layout {
        gap: 20px;
    }

    .wc-portal-main .wc-projects-promo {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        overflow: visible;
        border-radius: 0;
        background: none;
        color: #000;
    }

    .wc-portal-main .wc-projects-promo h2 {
        max-width: none;
        color: #000;
        font-size: 24px;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .wc-portal-main .wc-projects-promo h2 br,
    .wc-portal-main .wc-projects-promo__house {
        display: none;
    }

    .wc-portal-main .wc-projects-promo__button {
        position: static;
        min-height: 0;
        gap: 6px;
        padding: 0;
        background: none;
        box-shadow: none;
        color: #b30000 !important;
        font-size: 15px;
        line-height: 1.3;
    }

    .wc-portal-main .wc-projects-section .wc-projects-grid--cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .wc-portal-main .wc-projects-section .wc-projects-grid--cards > * {
        flex: none;
        width: auto;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .wc-portal-main .wc-ai-hero .wc-hero__scenarios {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Телефон: карточки проектов в две колонки — компактнее, как в лентах объявлений. */
@media (max-width: 560px) {
    .wc-portal-main .wc-projects-section .wc-project-card {
        border-radius: 14px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card:hover {
        transform: none;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__media {
        height: 128px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__body {
        gap: 6px;
        min-height: 0;
        padding: 10px 10px 12px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__head {
        gap: 4px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__name {
        font-size: 14px;
        line-height: 1.25;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__badges {
        flex-wrap: wrap;
        gap: 2px 8px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__badge {
        font-size: 12px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__price {
        font-size: 15px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__price--individual {
        font-size: 12px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__company small {
        font-size: 12px;
    }

    .wc-portal-main .wc-projects-section .wc-project-card__company img,
    .wc-portal-main .wc-projects-section .wc-project-card__company span {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

/* =========================================================
   Первый экран (27–28.10.2026, по просьбе владельца)
   ПК (от 901 px) — по макету владельца: плашка «Строительный портал», заголовок, поле и 3 большие
   плитки с картинками, по центру окна на всю его высоту. Шапка сайта — общая, как на всех страницах
   (13.11.2026, по просьбе владельца; до этого на ПК была капсула .wc-site-pill).
   До 900 px — без плашки: заголовок, поле и 4 компактные плитки 2×2 (подпись сверху, значок внизу
   справа); поле и плитки не шире 565 px, как на ПК, — на планшете не растягиваются.
   Высота первого экрана — 75% окна (06.11.2026, по просьбе владельца; было — всё окно), на низком окне
   растёт по содержимому. svh — высота окна при видимой адресной строке телефона. --wc-hero-top
   (отступ первого экрана от верха страницы) script.js ставит по-прежнему, высота от него больше не зависит.
   ========================================================= */

.wc-portal-main {
    --wc-hero-top: 160px;
}

.wc-portal-main .wc-ai-hero {
    min-height: 75vh;
    min-height: 75svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 88px 20px 56px;
}

.wc-portal-main .wc-ai-hero__content {
    align-items: center;
    text-align: center;
}

.wc-portal-main .wc-ai-hero__title {
    margin-top: 30px;
    text-align: center;
}

.wc-portal-main .wc-ai-hero__start-form {
    width: 565px;
    margin-top: 48px;
}

.wc-portal-main .wc-ai-hero .wc-hero__scenarios {
    width: 565px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* «Рейтинг компаний» — только на телефоне: на ПК три плитки, как в макете. */
.wc-portal-main .wc-ai-hero .wc-hero-scenario:nth-child(4) {
    display: none;
}

@media (min-width: 901px) {
    body .intec-template .intec-template-breadcrumb {
        margin-top: 16px;
        margin-bottom: 0;
    }
}

/* ---------- Телефон ---------- */

@media (max-width: 900px) {
    body .intec-template .intec-template-breadcrumb {
        margin-top: 12px;
        margin-bottom: 0;
    }

    .wc-portal-main {
        --wc-hero-top: 112px;
    }

    .wc-portal-main .wc-ai-hero {
        padding: 48px 16px 88px;
    }

    .wc-portal-main .wc-ai-hero .wc-hero__badge {
        display: none;
    }

    .wc-portal-main .wc-ai-hero__title {
        margin-top: 0;
    }

    .wc-portal-main .wc-ai-hero__start-form {
        width: 100%;
        max-width: 565px;
        margin-top: 28px;
    }

    .wc-portal-main .wc-ai-hero .wc-hero__scenarios {
        width: 100%;
        max-width: 565px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    /* Плитки — компактные: подпись сверху, значок внизу справа. */
    .wc-portal-main .wc-ai-hero .wc-hero-scenario,
    .wc-portal-main .wc-ai-hero .wc-hero-scenario:nth-child(4) {
        position: relative;
        height: auto;
        min-height: 96px;
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        text-align: left;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario::after {
        content: none;
    }

    .wc-portal-main .wc-ai-hero .wc-hero-scenario span {
        max-width: none;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 500;
    }

    /* Значок стоит вплотную к нижнему краю плитки (картинки обрезаны снизу), как на ПК. */
    .wc-portal-main .wc-ai-hero .wc-hero-scenario img,
    .wc-portal-main .wc-ai-hero .wc-hero-scenario:nth-child(n) img {
        position: absolute;
        right: 10px;
        bottom: 0;
        width: 44px;
        height: 44px;
        flex: none;
        border-radius: 0;
        background: none;
        object-fit: contain;
        object-position: right bottom;
    }
}


/* =========================================================
   Блок «Зарегистрироваться на портале»: «Кабинет партнёра» и «Уже есть аккаунт? Войти»
   (12.11.2026, по просьбе владельца). Рядом с «Заполнить заявку» — прозрачная кнопка
   в кабинет; под кнопками — строка входа.
   ========================================================= */

.wc-register-cta .wc-register-cta__actions {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.wc-register-cta .wc-register-cta__actions .wpa-btn {
    flex: 1 1 196px;
    min-width: 0;
    margin-top: 0;
}

.wc-register-cta .wc-register-cta__cabinet {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
    transition: background-color .2s ease;
}

.wc-register-cta .wc-register-cta__cabinet:hover,
.wc-register-cta .wc-register-cta__cabinet:focus,
.wc-register-cta .wc-register-cta__cabinet:active {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}

.wc-register-cta .wc-register-cta__login {
    max-width: none;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    line-height: 1.35;
}

.wc-register-cta .wc-register-cta__login a {
    margin-left: 2px;
    color: #fff !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.wc-register-cta .wc-register-cta__login a:hover {
    text-decoration-thickness: 2px;
}

/* На сером фоне блока красное кольцо фокуса почти не видно — белое. */
.wc-register-cta .wpa-btn:focus-visible,
.wc-register-cta .wc-register-cta__login a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .wc-register-cta .wc-register-cta__actions {
        max-width: 420px;
        margin-top: 20px;
    }

    .wc-register-cta .wc-register-cta__login {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-register-cta .wc-register-cta__cabinet {
        transition: none;
    }
}
