/* Font Face */
@font-face {
    font-family: 'ALS Story';
    src: url('fonts/ALS Story Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ALS Story';
    src: url('fonts/ALS Story Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цвета */
    --color-primary-dark-blue: #151C2A;
    --color-white: #FFFFFF;
    --color-dark-gray: #292932;
    --color-medium-gray: #999999;

    /* Типографика */
    --font-family-primary: 'ALS Story', ALS, Arial, sans-serif;
    --font-size-body: 16px;
    --font-size-body-small: 14px;
    --font-size-button: 18px;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --line-height-relaxed: 1.5;

    /* Скругления */
    --border-radius-large: 30px;

    /* Переходы */
    --transition-normal: 0.2s ease-in-out;

    --t1-font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #151C2A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--white {
    background-color: #FFFFFF;
    color: #151C2A;
    max-width: 340px;
}

.btn--white:hover {
    background-color: #FA0853;
    color: #FFFFFF;
}

.btn--gradient {
    background: linear-gradient(0deg, rgba(157, 133, 255, 1) 0%, rgba(127, 172, 255, 1) 100%);
    color: #FFFFFF;
    border-radius: 45px;
}

.btn--gradient:hover {
    background: linear-gradient(0deg, rgba(250, 8, 83, 1) 0%, rgba(250, 8, 83, 1) 100%);
}

.btn--gradient-alt {
    background: linear-gradient(0deg, rgba(127, 172, 255, 1) 0%, rgba(161, 127, 255, 1) 100%);
    color: #FFFFFF;
    border-radius: 45px;
    padding: 20px 30px;
    min-width: 250px;
    font-family: 'ALS Story', sans-serif;
}

.btn--gradient-alt:hover {
    background: linear-gradient(0deg, rgba(250, 8, 83, 1) 0%, rgba(250, 8, 83, 1) 100%);
}

/* Hero Section */
.hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 79px 0;
}

.hero__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 0 0;
}

.hero__content {
    max-width: 641px;
}

.hero__logo {
    width: 275px;
    height: auto;
    margin-bottom: 45px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero__title {
    font-size: 50px;
    line-height: 1.2;
    color: #FFFFFF;
}

.hero__subtitle {
    font-size: 25px;
    line-height: 1.2;
    color: #FFFFFF;
}

/* Переносы строк в подзаголовке */
.hero__subtitle-br-desktop {
    display: block;
}

.hero__subtitle-br-mobile {
    display: none;
}

/* Benefits Section */
.benefits {
    padding: 30px 0;
}

.benefits__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.benefits__title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    max-width: 926px;
    padding: 12px 0;
}

.benefits__title-br-tablet {
    display: none;
}

.benefits__grid {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.benefits__column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefits__column--center {
    flex: 0 0 auto;
}

.benefits__image-wrapper {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.benefits__image {
    width: 392px;
    height: 497px;
    object-fit: cover;
    border-radius: 20px;
}

/* По умолчанию показываем десктопную картинку */
.benefits__image-desktop {
    display: block;
}

.benefits__image-tablet {
    display: none;
}

/* Benefit Cards */
.benefit-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 0px 45px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 392px;
}

.benefit-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.benefit-card__icon {
    width: 62px;
    height: auto;
    position: absolute;
    right: 20px;
    top: 0;
}

.benefit-card__title {
    font-size: 25px;
    line-height: 1.2;
    color: #151C2A;
    padding: 8px 0;
}

.benefit-card__text {
    font-size: 16px;
    line-height: 1.5;
    color: #151C2A;
    padding: 4px 0;
}

.benefit-card__note {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #FF8562;
}

.benefit-card__note span {
    color: #FF8562;
}

.benefit-card__note .benefit-card__note-text {
    color: #000000;
}

.benefit-card__note-link {
    color: #FF8562;
    text-decoration: none;
    cursor: pointer;
}

.benefit-card__note-link:hover {
    text-decoration: underline;
}

/* По умолчанию скрываем перенос строки для планшета */
.benefit-card__text-br-tablet {
    display: none;
}

/* Form Section */
.form-section {
    background: linear-gradient(3deg, rgba(255, 211, 162, 1) 0%, rgba(254, 216, 252, 1) 100%);
    padding: 80px 0;
}

.form-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.form-section__title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    max-width: 925px;
    padding: 12px 0;
}

.form-section__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1117px;
}

/* Contact Form */
.contact-form {
    width: 100%;
}

.contact-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.contact-form__field {
    flex: 1;
    min-width: 200px;
}

.contact-form__input {
    width: 100%;
    padding: 19.5px 20px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    border-radius: 45px;
    background: #FFFFFF;
    color: #151C2A;
    outline: none;
    caret-color: #6B6B6B;
}

.contact-form__input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.contact-form__input:focus::placeholder {
    opacity: 0;
}

.contact-form__input::placeholder {
    color: #6B6B6B;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 45px;
    padding: 0 20px;
}

.phone-input__prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 10px;
    border-right: 1px solid #E5E5E5;
    color: #6B6B6B;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.phone-input__arrow {
    width: 6px;
    height: 4px;
}

.phone-input__input {
    flex: 1;
    padding: 19.36px 10px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    background: transparent;
    color: #151C2A;
    outline: none;
    caret-color: #6B6B6B;
}

.phone-input__input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.phone-input__input:focus::placeholder {
    opacity: 0;
}

.phone-input__input::placeholder {
    color: #6B6B6B;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.phone-input:focus-within {
    outline: none;
    box-shadow: none;
}

/* Country Dropdown */
.phone-input__code {
    font-size: 16px;
    color: #6B6B6B;
}

.phone-input__prefix:hover .phone-input__code {
    color: #151C2A;
}

.phone-input__prefix.active .phone-input__arrow {
    transform: scaleY(-1);
}

.phone-input__arrow {
    transition: transform 0.2s ease;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.15);
    width: 280px;
    max-height: 350px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-dropdown__search {
    padding: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.country-dropdown__search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    background: #F5F5F5;
    color: #151C2A;
    outline: none;
    transition: border-color 0.2s ease;
}

.country-dropdown__search-input:focus {
    border-color: #7FACFF;
}

.country-dropdown__search-input::placeholder {
    color: #999999;
}

.country-dropdown__list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.country-dropdown__list::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown__list::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.country-dropdown__list::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 3px;
}

.country-dropdown__list::-webkit-scrollbar-thumb:hover {
    background: #AAAAAA;
}

.country-dropdown__item {
    padding: 10px 16px;
    font-size: 14px;
    color: #151C2A;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-dropdown__item:hover {
    background-color: #F5F5F5;
}

.country-dropdown__item.selected {
    background: linear-gradient(0deg, rgba(127, 172, 255, 0.15) 0%, rgba(161, 127, 255, 0.15) 100%);
    color: #7FACFF;
}

.country-dropdown__item.hidden {
    display: none;
}

/* Checkboxes */
.form-section__agreements {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-section__notice {
    font-size: 16px;
    line-height: 1.5;
    color: #999999;
    padding-bottom: 5px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox__input {
    display: none;
}

.checkbox__mark {
    width: 13px;
    height: 13px;
    border: 1px solid #EEEEEE;
    border-radius: 2px;
    background: #FFFFFF;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.checkbox__input:checked + .checkbox__mark {
    background: linear-gradient(0deg, rgba(127, 172, 255, 1) 0%, rgba(161, 127, 255, 1) 100%);
    border-color: transparent;
}

.checkbox__input:checked + .checkbox__mark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox__text {
    font-size: 16px;
    line-height: 1.5;
    color: #999999;
}

.checkbox__link {
    color: #808080;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.checkbox__link:hover {
    color: #FA0853;
}

.checkbox__text-static {
    cursor: default;
}

/* Specialists Section */
.specialists {
    padding: 30px 0;
    overflow-x: clip;
    overflow-y: visible;
}

.specialists__container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.specialists__title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    max-width: 838px;
    padding: 12px 40px;
}

.specialists__marquee {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -10px;
    overflow: visible;
    position: relative;
    transform: rotate(-1.5deg);
}

.specialists__track {
    display: flex;
    width: max-content;
    animation: marquee 120s linear infinite;
}

.specialists__image {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* FAQ Section */
.faq {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.faq__container {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.faq__title {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    max-width: 893px;
    padding: 12px 0;
}

.faq__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #F5F5F5;
    border-radius: 30px;
    overflow: hidden;
}

.faq-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 49px 30px 50px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-item__question {
    font-size: 25px;
    line-height: 1.2;
    color: #000000;
}

.faq-item__icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    cursor: pointer;
}

.faq-item__icon {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.faq-item__icon--open {
    opacity: 1;
}

.faq-item__icon--close {
    opacity: 0;
    display: block;
}

/* Крестик для закрытия */
.faq-item__icon--close::before,
.faq-item__icon--close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #000000;
    border-radius: 1px;
}

.faq-item__icon--close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item__icon--close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* При активном состоянии показываем крестик */
.faq-item.active .faq-item__icon--open {
    opacity: 0;
}

.faq-item.active .faq-item__icon--close {
    opacity: 1;
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__content {
    max-height: 1200px;
}

.faq-item__content p {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
}

/* Services Section */
.services {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.services__container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.services__card {
    background-image: url('images/services-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 69px 60px;
}

.services__content {
    max-width: 756px;
}

.services__title {
    font-size: 32px;
    line-height: 1.2;
    color: #292932;
    margin-bottom: 15px;
}

.services__subtitle-br-desktop {
    display: block;
}

.services__subtitle {
    font-size: 25px;
    line-height: 1.2;
    color: #292932;
    margin-bottom: 25px;
}

/* Footer */
.footer {
    background: #FFFFFF;
    color: #151C2A;
    padding: 60px 30px 40px 30px;
    border-top: 1px solid rgba(21, 28, 42, 0.1);
}

.footer .container {
    max-width: 100%;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 24px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-column-title-link {
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 24px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease-in-out;
}

.footer-column-title-link:hover {
    color: #BD995B;
}

.footer-offices {
    margin-bottom: 24px;
}

.footer-offices-title {
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-office {
    margin-bottom: 24px;
}

.footer-office:last-child {
    margin-bottom: 0;
}

.footer-office-address {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-office-text {
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 0 0 4px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-link {
    font-size: 16px;
    line-height: 1.5;
    color: #BD995B;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: inline-block;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-link:hover {
    color: #FA0853;
}

.footer-subsection {
    margin-top: 24px;
}

.footer-subsection-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-interpretation-link {
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s ease-in-out;
}

.footer-interpretation-link:hover {
    color: #BD995B;
}

.footer-copyright {
    margin-top: 24px;
}

.footer-copyright-text {
    font-size: 24px;
    color: #000000;
    margin: 0 0 8px 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-service-text {
    font-size: 24px;
    line-height: 1.5;
    color: #000000;
    margin: 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-legal-link {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-legal-link:hover {
    color: #FA0853;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-text {
    font-size: 16px;
    color: #000000;
    margin: 0;
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-social-icons {
    display: flex;
    gap: 5px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BD995B;
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
    border-radius: 8px;
}

.footer-social-icon:hover {
    opacity: 0.8;
}

.footer-social-icon svg {
    width: 24px;
    height: 24px;
}

/* Responsive Styles */

/* Tablet 1200-768px */
@media (max-width: 1200px) and (min-width: 769px) {
    .hero__container {
        padding: 0 40px;
    }

    /* Benefits Section - Tablet */
    .benefits__container {
        max-width: 1040px;
        padding: 0 20px;
        gap: 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        position: relative;
    }

    .benefits__title {
        font-size: 32px;
        line-height: 1.2;
        max-width: 812px;
        padding: 12px 0;
        text-align: center;
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: start;
    }

    .benefits__title-br-tablet {
        display: inline;
    }

    .benefits__grid {
        display: contents;
    }

    .benefits__column {
        display: contents;
    }

    /* Общие адаптивные стили для всех карточек - Tablet */
    .benefit-card {
        width: 100%;
        padding: 45px;
        border-radius: 30px;
        box-shadow: 0px 0px 68px 0px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* H3 - Заголовки карточек: 25px */
    .benefit-card__title {
        font-size: 25px;
        line-height: 1.2;
        padding: 8px 0;
    }

    /* B1 - Лид текст карточек: 16px */
    .benefit-card__text {
        font-size: 16px;
        line-height: 1.5;
        padding: 4px 0;
    }

    /* Карточка 1 - Консультации врачей 24/7 */
    .benefits__column--left .benefit-card:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
        min-height: 351px;
        gap: 15px;
        align-self: end;
    }

    .benefits__column--left .benefit-card:nth-child(1) .benefit-card__header {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }

    .benefits__column--left .benefit-card:nth-child(1) .benefit-card__icon {
        position: relative;
        width: 70px;
        max-width: 20%;
        height: auto;
        flex-shrink: 0;
    }

    /* Карточка 2 - Экономия */
    .benefits__column--left .benefit-card:nth-child(2) {
        grid-column: 1;
        grid-row: 3;
    }

    /* Центральная колонка с картинкой - выравнивание по нижнему краю с карточкой "Консультации врачей 24/7" */
    .benefits__column--center {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        align-self: end;
    }

    .benefits__image-wrapper {
        width: 100%;
        height: 351px;
        border-radius: 30px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .benefits__image {
        width: 100%;
        height: 351px;
        object-fit: cover;
        border-radius: 30px;
    }

    /* Tablet: показываем картинку doctors-tablet.png */
    .benefits__image.benefits__image-tablet {
        display: block;
        width: 100%;
        height: 351px;
        object-fit: cover;
        border-radius: 30px;
    }

    .benefits__image.benefits__image-desktop {
        display: none;
    }

    /* Карточка 4 - Личный менеджер */
    .benefits__column--right .benefit-card:nth-child(2) {
        grid-column: 2;
        grid-row: 3;
    }

    /* Карточка 3 - Поддержка психологов (полная ширина внизу) */
    .benefits__column--right .benefit-card:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 4;
        padding: 45px;
        display: grid;
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto auto;
        gap: 0px 33px;
        align-items: center;
    }

    /* Перенос строки для планшета в карточке "Поддержка психологов" */
    .benefit-card__text-br-tablet {
        display: block;
    }

    .benefits__column--right .benefit-card:nth-child(1) .benefit-card__header {
        display: contents;
    }

    .benefits__column--right .benefit-card:nth-child(1) .benefit-card__title {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
        align-self: center;
    }

    .benefits__column--right .benefit-card:nth-child(1) .benefit-card__icon {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        width: 90px;
        height: auto;
        right: auto;
        top: auto;
        flex-shrink: 0;
    }

    .benefits__column--right .benefit-card:nth-child(1) .benefit-card__text {
        grid-column: 3;
        grid-row: 1;
        max-width: 100%;
        padding: 0;
        align-self: center;
    }

    .benefits__column--right .benefit-card:nth-child(1) .benefit-card__note {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
    }

    /* B1 - Примечание: 16px */
    .benefit-card__note {
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;
        color: #151C2A;
    }

    .benefit-card__note span {
        font-weight: 700;
        color: #FF8562;
    }

    .benefit-card__note .benefit-card__note-text {
        color: #000000;
        font-weight: 400;
    }

    .benefit-card__note-link {
        color: #FF8562;
        text-decoration: none;
        cursor: pointer;
        font-weight: 700;
    }

    .benefit-card__note-link:hover {
        text-decoration: underline;
    }

    /* Кнопка Benefits */
    .benefits__container > .btn--gradient {
        grid-column: 1 / -1;
        width: 290px;
        height: 62px;
        padding: 0;
        font-size: 16px;
        line-height: 1.5;
        border-radius: 45px;
        margin-top: 0;
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 24px;
    }

    .form-section__title,
    .specialists__title,
    .faq__title {
        font-size: 28px;
    }

    .services__title {
        font-size: 36px;
    }

    .services__subtitle {
        font-size: 20px;
    }

    .faq-item__question {
        font-size: 20px;
    }

    .faq-item__header {
        padding: 30px;
    }

    .contact-form__row {
        flex-direction: column;
    }

    .contact-form__field {
        width: 100%;
    }

    .btn--gradient-alt {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero__container {
        padding: 0 20px 0 20px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 20px;
    }

    .hero__logo {
        width: 200px;
        margin-bottom: 30px;
    }

    .benefits__container,
    .form-section__container,
    .faq__container {
        padding: 0 20px;
    }

    /* Benefits Grid - Mobile (768-370px) */
    .benefits__container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .benefits__title {
        text-align: center;
        max-width: 100%;
    }

    .benefits__title-br-tablet {
        display: none;
    }

    .benefits__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }

    .benefits__column {
        display: contents;
    }

    /* Порядок плашек как на мобильной версии */
    /* 1. Экономия */
    .benefits__column--left .benefit-card:nth-child(2) {
        order: 1;
    }

    /* 2. Поддержка психологов */
    .benefits__column--right .benefit-card:nth-child(1) {
        order: 2;
    }

    /* 3. Плашка с фото */
    .benefits__column--center .benefits__image-wrapper {
        order: 3;
    }

    /* 4. Консультации врачей 24/7 */
    .benefits__column--left .benefit-card:nth-child(1) {
        order: 4;
    }

    /* 5. Личный менеджер */
    .benefits__column--right .benefit-card:nth-child(2) {
        order: 5;
    }

    .benefits__image-wrapper {
        max-height: 400px;
        width: 100%;
    }

    /* На мобильных показываем десктопную картинку */
    .benefits__image.benefits__image-desktop {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 20px;
    }

    .benefits__image.benefits__image-tablet {
        display: none;
    }

    .benefit-card {
        padding: 20px;
        width: 100%;
        max-width: 400px;
    }

    .benefit-card__title {
        font-size: 22px;
    }

    /* Кнопка по центру */
    .benefits__container > .btn--gradient {
        align-self: center;
    }

    .services {
        padding: 30px 0;
    }

    .services__container {
        padding: 0 20px;
    }

    .services__card {
        padding: 40px 30px;
    }

    .services__title {
        font-size: 28px;
    }

    .services__subtitle {
        font-size: 18px;
    }

    .footer {
        padding: 40px 20px 30px 20px;
    }

    .footer .container {
        padding: 0 0 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 30px;
        padding-left: 10px;
    }

    .footer-social {
        width: 100%;
    }

    /* Выравнивание заголовка specialists по оси X с другими контейнерами */
    .specialists__title {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .benefits__title,
    .form-section__title,
    .specialists__title,
    .faq__title {
        font-size: 24px;
    }

    .btn {
        padding: 15px 25px;
        font-size: 14px;
    }

    .faq-item__question {
        font-size: 18px;
    }

    .faq-item__icon {
        width: 30px;
        height: 30px;
    }
}

/* Mobile 380px - изменение порядка плашек в Benefits */
@media (max-width: 380px) {
    .benefits__grid {
        display: flex;
        flex-direction: column;
    }

    .benefits__column {
        display: contents;
    }

    /* 1. Экономия */
    .benefits__column--left .benefit-card:nth-child(2) {
        order: 1;
    }

    /* 2. Поддержка психологов */
    .benefits__column--right .benefit-card:nth-child(1) {
        order: 2;
    }

    /* 3. Плашка с фото */
    .benefits__column--center .benefits__image-wrapper {
        order: 3;
    }

    /* 4. Консультации врачей 24/7 */
    .benefits__column--left .benefit-card:nth-child(1) {
        order: 4;
    }

    /* 5. Личный менеджер */
    .benefits__column--right .benefit-card:nth-child(2) {
        order: 5;
    }

    /* Hero Section - Mobile 380px */
    .hero {
        min-height: 361px;
        height: 361px;
        padding: 79px 0;
        background-image: url('images/hero-bg-mobile.png');
    }

    .hero__container {
        padding: 0 30px 0 23px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__logo {
        width: 197px;
        margin-bottom: 32px;
    }

    .hero__text {
        gap: 16px;
    }

    /* H3 размер для заголовка */
    .hero__title {
        font-size: 24px;
        line-height: 1.25;
    }

    /* B1 размер для подзаголовка */
    .hero__subtitle {
        font-size: 16px;
        line-height: 1.4;
        max-width: 100%;
    }

    /* Скрываем десктопный перенос, показываем мобильный */
    .hero__subtitle-br-desktop {
        display: none;
    }

    .hero__subtitle-br-mobile {
        display: block;
    }

    /* B2 размер для кнопки */
    .hero .btn--white {
        font-size: 14px;
        line-height: 1.5;
        padding: 12px 25px;
        border-radius: 21px;
        max-width: 100%;
        width: 100%;
    }

    /* Services Section - Mobile 380px */
    .services {
        padding: 30px 0;
    }

    .services__container {
        padding: 0;
        width: 370px;
        max-width: 100%;
        margin: 0 auto;
    }

    .services__card {
        width: 370px;
        max-width: 100%;
        height: auto;
        min-height: 405px;
        padding: 21px 50px 69px 23px;
        border-radius: 30px;
        background-image: url('images/services-bg-mobile.jpg');
        background-size: cover;
        background-position: center;
    }

    .services__content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .services__title {
        font-size: 25px;
        line-height: 1.2;
        color: #292932;
        margin-bottom: 0;
    }

    .services__subtitle-br-desktop {
        display: none;
    }

    .services__subtitle {
        font-size: 18px;
        line-height: 1.2;
        color: #292932;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .services__content .btn--gradient {
        width: 199px;
        height: 42px;
        padding: 0;
        font-size: 14px;
        line-height: 1.33;
        border-radius: 45px;
        margin-top: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Specialists Marquee - Mobile 380px */
    .specialists__image {
        height: 70px;
    }

    /* Левая выключка для заголовков - Mobile 380px */
    .benefits__title,
    .form-section__title,
    .specialists__title,
    .faq__title {
        text-align: left;
    }

    /* Выравнивание заголовка specialists по оси X с другими */
    .specialists__title {
        padding: 12px 20px;
    }
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup.show {
    opacity: 1;
    visibility: visible;
}

.success-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.success-popup-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 32px;
    padding: 60px 80px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.success-popup.show .success-popup-content {
    transform: scale(1);
}

.success-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #151C2A;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.success-popup-close:hover {
    opacity: 1;
}

.success-popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00CD00;
    color: #FFFFFF;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 700;
    line-height: 1;
}

.success-popup-title {
    font-size: 32px;
    font-weight: 400;
    color: #151C2A;
    margin-bottom: 16px;
    font-family: 'ALS Story', sans-serif;
}

.success-popup-text {
    font-size: 18px;
    line-height: 1.5;
    color: #151C2A;
    margin: 0;
    font-family: 'ALS Story', sans-serif;
}

@media (max-width: 768px) {
    .success-popup-content {
        padding: 40px 30px;
        max-width: 90%;
    }

    .success-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 20px;
    }

    .success-popup-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .success-popup-text {
        font-size: 16px;
    }

    .success-popup-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

/* Error Popup */
.error-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-popup.active {
    opacity: 1;
    visibility: visible;
}

.error-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.error-popup-content {
    position: relative;
    background: var(--color-white);
    border-radius: 37px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.error-popup.active .error-popup-content {
    transform: scale(1);
}

.error-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-medium-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-normal);
}

.error-popup-close:hover {
    color: var(--color-primary-dark-blue);
}

.error-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.error-popup-title {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    margin: 0 0 20px 0;
    font-family: var(--font-family-primary);
}

.error-popup-text {
    font-size: var(--font-size-body);
    color: var(--color-dark-gray);
    line-height: var(--line-height-relaxed);
    margin: 0 0 30px 0;
    font-family: var(--font-family-primary);
}

.error-popup-button {
    background: linear-gradient(135deg, #7560FA 0%, #3F9AF1 100%);
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-large);
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-normal);
    min-width: 200px;
}

.error-popup-button:hover {
    opacity: 0.9;
}

@media screen and (max-width: 767px) {
    .error-popup-content {
        padding: 40px 30px;
        max-width: 90%;
    }

    .error-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 20px;
    }

    .error-popup-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .error-popup-text {
        font-size: var(--font-size-body-small);
        margin-bottom: 25px;
    }

    .error-popup-button {
        width: 100%;
        min-width: auto;
    }

    .error-popup-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

/* Custom validation tooltip (всплывающая плашка при неверном заполнении формы) */
.email-validation-tooltip {
    position: absolute;
    z-index: 9999;
    max-width: 320px;
    background: #FFFFFF;
    color: #151C2A;
    border: 1px solid rgba(21, 28, 42, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(21, 28, 42, 0.12);
    font-family: 'ALS Story', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.email-validation-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-left: 1px solid rgba(21, 28, 42, 0.12);
    border-top: 1px solid rgba(21, 28, 42, 0.12);
    transform: rotate(45deg);
}

.email-validation-tooltip--hidden {
    display: none;
}

