/**
 * Layout/styles for current index.html (guarantee-grid, price-table, etc.).
 * Loaded after style.css — overrides wrong restore from another template.
 */
:root {
    --primary: #2ECC71;
    --primary-dark: #27AE60;
    --primary-light: #A8E6CF;
    --accent: #1ABC9C;
    --accent-dark: #16A085;
    --dark: #14213D;
    --bg-alt: #F8FAFE;
    --bg: #ffffff;
    --text: #1A1A2E;
    --text-muted: #5A6578;
    --border: rgba(20, 33, 61, 0.08);
    --shadow: 0 8px 32px rgba(20, 33, 61, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
}

/* ===== HERO (index layout) ===== */
.hero {
    min-height: auto;
    padding: 100px 0 64px;
    background-color: #e5f4ff;
    background-image: url('../assets/hero/slide1.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .container {
    display: block;
}

.hero__topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 28px;
    margin-bottom: 24px;
}

.hero__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-muted);
}

.hero__contact--phone {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero__contact--phone:hover {
    color: var(--primary-dark);
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 42%);
    gap: 40px;
    align-items: center;
}

.hero__desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.badge {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    min-width: 100px;
    text-align: center;
    box-shadow: var(--shadow);
}

.badge__num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.badge__label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
}

.hero__dec-picture {
    position: relative;
    display: block;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(20, 33, 61, 0.14);
    isolation: isolate;
}

.hero__dec-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.1), rgba(46, 204, 113, 0.16));
    mix-blend-mode: multiply;
}

.hero__dec-image {
    display: block;
    width: 100%;
    max-height: 480px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-color: var(--accent);
}

.btn--accent:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.35);
}

/* ===== NAV / LOGO ===== */
.nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .header__inner .btn--primary {
        display: none;
    }

    .nav {
        display: none;
    }

    .nav:has(.nav__list.active) {
        display: block;
        position: fixed;
        top: 84px;
        left: 16px;
        right: 16px;
        z-index: 99;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm, 12px);
        box-shadow: var(--shadow);
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .nav__link {
        display: block;
        padding: 12px 20px;
    }
}

.header__logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

/* ===== SECTIONS ===== */
.section--alt {
    background: var(--bg-alt);
}

.section--dark {
    background: var(--dark);
    color: #fff;
}

.section--light {
    background: #fafbfc;
}

.section__title--light,
.section__subtitle--light {
    color: #fff;
}

.section__subtitle--light {
    opacity: 0.85;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card__icon {
    display: block;
    width: 75px;
    height: 75px;
    margin-bottom: 16px;
    object-fit: contain;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ===== PRICE ===== */
.price-table {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:nth-child(even) {
    background: rgba(248, 250, 254, 0.8);
}

.price-row__name {
    flex: 1;
    font-size: 0.98rem;
}

.price-row__price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.price-cta {
    text-align: center;
    margin-top: 32px;
}

.price-row--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.price-row--link:hover {
    background: rgba(0, 120, 200, 0.08);
}

.price-row--link .price-row__name {
    font-weight: 600;
    color: var(--primary);
}

.price-row--link .price-row__price {
    color: var(--primary);
}

.hero--compact {
    padding: 88px 0 40px;
}

.hero--compact .hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.price-section__title {
    margin-top: 40px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 1.35rem;
}

.price-section__title:first-of-type {
    margin-top: 24px;
}

.price-table--full {
    margin-bottom: 8px;
}

.price-row--full {
    display: grid;
    grid-template-columns: minmax(88px, 120px) 1fr auto;
    gap: 12px 16px;
    align-items: start;
}

.price-row__code {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    word-break: break-word;
}

.nav__link--active {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .price-row--full {
        grid-template-columns: 1fr auto;
    }

    .price-row__code {
        grid-column: 1 / -1;
    }
}

/* ===== GUARANTEE ===== */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.guarantee-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.guarantee-card__icon {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: contain;
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-card__icon[src*="tomograph"] {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--dark);
    padding: 8px;
    box-sizing: border-box;
}

.guarantee-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.guarantee-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ===== LOYALTY ===== */
.loyalty-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.loyalty-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.loyalty-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.loyalty-item__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.loyalty-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.loyalty-item p {
    color: var(--text-muted);
    margin: 0;
}

.loyalty-content a.btn {
    margin-top: 40px;
}

/* ===== DOCTORS ===== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
}

.doctor-card {
    display: grid;
    grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 0 22px;
    align-items: start;
    min-height: 220px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.doctor-card__photo {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf4ef;
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.16);
}

.doctor-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.doctor-card__name {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.doctor-card__specialty,
.doctor-card__exp {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.doctor-card__specialty {
    grid-row: 2;
}

.doctor-card__exp {
    grid-row: 3;
    margin-bottom: 14px;
}

.doctor-card__tags {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
}

@media (max-width: 620px) {
    .doctor-card {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-card__photo {
        width: 160px;
        max-width: 100%;
        aspect-ratio: 1;
        margin-bottom: 16px;
    }

    .doctor-card__name {
        font-size: 1.15rem;
    }

    .doctor-card__tags {
        justify-content: center;
        margin-top: 14px;
    }
}

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.review-card__stars {
    color: #f5a623;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card__name {
    font-weight: 700;
    color: var(--dark);
}

/* ===== FORM ===== */
.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.section--dark .form-input,
.section--dark .form-textarea {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 16px;
}

.form-privacy {
    font-size: 1rem;
    opacity: 1;
    margin-top: 12px;
    text-align: center;
}

/* ===== GALLERY ===== */
.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.gallery-item {
    flex: 0 0 min(320px, 80vw);
    scroll-snap-align: start;
    border: none;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.gallery-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.contact-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card__messengers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.contact-card__messengers a {
    display: block;
    line-height: 0;
}

.contact-card__messengers img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.contact-card__messengers a:hover img {
    transform: translateY(-2px);
}

.contact-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card__text,
.contact-card__hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-card__link {
    font-weight: 700;
    color: var(--primary-dark);
}

.map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map iframe {
    display: block;
}

/* ===== PATIENT INFO ===== */
.patient-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.patient-info__card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.patient-info__icon {
    display: block;
    width: 48px;
    height: 48px;
    padding: 9px;
    margin-bottom: 16px;
    object-fit: contain;
    border-radius: 14px;
    background: #eaf6f0;
}

.patient-info__title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.patient-info__card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--dark);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-muted);
    transition: max-height 0.25s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding-bottom: 18px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* ===== FOOTER extras ===== */
.footer {
    padding: 56px 0 24px;
    text-align: left;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr);
    gap: 64px;
    align-items: start;
}

.footer__brand {
    max-width: 360px;
}

.footer__logo {
    margin-bottom: 16px;
}

.footer__logo-img {
    max-height: 64px;
    width: auto;
}

.footer__motto {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.footer__heading {
    font-size: 1rem;
    margin-bottom: 18px;
    color: #fff;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: inherit;
    opacity: 0.85;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__copy {
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

/* ===== CLUB MODAL ===== */
.club-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.club-modal[hidden] {
    display: none;
}

.club-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 61, 0.6);
}

.club-modal__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.club-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.club-modal__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.club-modal__note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.club-form .form-input,
.club-form .form-textarea {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.club-form .form-checkbox {
    color: var(--text);
    margin: 4px 0 8px;
}

.club-form .form-checkbox__text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.club-form .form-checkbox__text a {
    color: var(--primary-dark);
}

.club-form__label {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.club-form__terms {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 4px 0 6px;
}

.club-form__terms a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.club-form__terms a:hover {
    text-decoration: none;
}

.club-form .btn--full {
    margin-top: 12px;
}

.club-modal__success {
    text-align: center;
    padding: 24px 0;
}

.club-modal__success p {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* ===== COOKIE / LIGHTBOX ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 2000;
    width: min(calc(100% - 32px), 760px);
    transform: translateX(-50%);
    background: #fff;
    color: var(--text);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(20, 33, 61, 0.16);
    padding: 24px 28px 22px;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8a96a8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-banner__inner {
    display: grid;
    gap: 18px;
}

.cookie-banner__text {
    margin: 0;
    padding-right: 28px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner__btn {
    flex: 1 1 120px;
    min-width: 0;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.cookie-banner__btn:hover {
    filter: brightness(1.05);
}

.cookie-banner__btn--accept {
    background: var(--primary-dark);
}

.cookie-banner__btn--settings {
    background: #7fbf89;
}

.cookie-banner__btn--reject {
    background: #a8d4ad;
}

.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings[hidden] {
    display: none !important;
}

.cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 61, 0.45);
}

.cookie-settings__panel {
    position: relative;
    width: min(100%, 640px);
    max-height: min(92vh, 820px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 56px rgba(20, 33, 61, 0.2);
    padding: 28px 28px 24px;
}

.cookie-settings__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8a96a8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-settings__title {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
}

.cookie-settings__intro {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cookie-settings__group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cookie-settings__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cookie-toggle--locked {
    cursor: default;
}

.cookie-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-toggle__track {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    background: #d8dee8;
    transition: background 0.2s ease;
}

.cookie-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.cookie-toggle__input:checked + .cookie-toggle__track,
.cookie-toggle__track.is-on {
    background: #7fbf89;
}

.cookie-toggle__input:checked + .cookie-toggle__track .cookie-toggle__thumb,
.cookie-toggle__track.is-on .cookie-toggle__thumb {
    transform: translateX(24px);
}

.cookie-settings__bulk {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.cookie-settings__bulk-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #eef1f5;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-settings__bulk-btn:hover {
    background: #e4e9ef;
}

.cookie-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-settings__actions .cookie-banner__btn {
    flex: 1 1 140px;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 20px 18px 18px;
        border-radius: 20px;
    }

    .cookie-banner__actions,
    .cookie-settings__actions {
        flex-direction: column;
    }

    .cookie-banner__btn,
    .cookie-settings__actions .cookie-banner__btn {
        width: 100%;
    }

    .cookie-settings__group {
        flex-direction: column;
        align-items: flex-start;
    }
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox__img {
    max-width: min(92vw, 960px);
    max-height: 88vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 92px;
    }

    .hero__topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero__layout {
        grid-template-columns: 1fr;
    }

    .hero__dec-picture {
        order: -1;
        max-height: 280px;
    }

    .hero__dec-image {
        max-height: 280px;
    }

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

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__brand {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

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

    .footer__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__bottom {
        margin-top: 36px;
    }
}
