:root {
    --color-primary: #5abfea;
    --color-primary-dark: #0c54a0;
    --color-teal: #1e6c8e;
    --color-teal-dark: #01737d;
    --color-accent: #e78347;
    --color-accent-hover: #d06a2f;
    --color-accent-light: #f5ad72;
    --color-accent-dark: #c9622e;
    --color-accent-text: #ffffff;
    --color-accent-glow: rgba(231, 131, 71, 0.45);
    --color-accent-glow-strong: rgba(231, 131, 71, 0.62);
    --color-accent-ring: rgba(231, 131, 71, 0.3);
    --gradient-accent: linear-gradient(145deg, #f5ad72 0%, #e78347 48%, #d06a2f 100%);
    --gradient-accent-hover: linear-gradient(145deg, #f7b87e 0%, #eb8f4f 48%, #c9622e 100%);
    --gradient-accent-soft: linear-gradient(160deg, #f0a263 0%, #e78347 100%);
    --color-hero-text: #0c54a0;
    --color-hero-text-muted: rgba(12, 84, 160, 0.62);
    --color-promo: #0c54a0;
    --color-promo-dark: #083d78;
    --color-promo-light: #1a6bc4;
    --color-bg: #e2e8ef;
    --color-bg-light: #f6f6f6;
    --color-text: #212121;
    --color-text-muted: #5a5a5a;
    --color-white: #ffffff;
    --color-border: #d0d8e0;
    --logo-filter: brightness(0) saturate(100%) invert(19%) sepia(99%) saturate(1729%) hue-rotate(194deg) brightness(96%) contrast(101%);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
    --header-h: 120px;
    --radius: 30px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: clip;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.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;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
}

.btn--accent {
    background: var(--gradient-accent);
    color: var(--color-accent-text);
    font-size: 18px;
    font-weight: 700;
    padding: 20px 36px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -1px 0 rgba(160, 70, 20, 0.18),
        0 6px 22px var(--color-accent-glow),
        0 2px 8px rgba(18, 42, 61, 0.16);
}

.btn--accent:hover {
    background: var(--gradient-accent-hover);
}

/* CTA: shimmer + hover lift (hero — чуть сильнее свечение) */
.btn--accent,
.btn--hero {
    position: relative;
    overflow: hidden;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn--accent > *,
.btn--hero > *,
.btn--pulse > * {
    position: relative;
    z-index: 1;
}

.btn--accent::after,
.btn--hero::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    background: linear-gradient(
        105deg,
        transparent 46%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 54%
    );
    transform: translate3d(-130%, 0, 0) skewX(-16deg);
    pointer-events: none;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header__btn.btn--accent::after {
    -webkit-animation: btn-shimmer 6.5s linear infinite;
    animation: btn-shimmer 6.5s linear infinite;
}

.btn--accent:not(.header__btn):not(.btn--pulse)::after,
.btn--hero::after {
    -webkit-animation: btn-shimmer 6.5s linear 3.4s infinite;
    animation: btn-shimmer 6.5s linear 3.4s infinite;
}

.btn--hero {
    -webkit-animation: btn-glow-pulse 2.8s ease-in-out infinite;
    animation: btn-glow-pulse 2.8s ease-in-out infinite;
}

.btn--accent:hover,
.btn--hero:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 10px 28px var(--color-accent-glow-strong),
        0 4px 12px rgba(18, 42, 61, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .btn--hero:hover {
        animation: none;
    }
}

.btn--accent:active,
.btn--hero:active {
    transform: translateY(-1px);
    transition-duration: 0.08s;
}

/* Заметная пульсация для ключевых CTA (работает без hover — важно для мобилки) */
.btn--pulse {
    overflow: visible;
    -webkit-animation: btn-pulse-glow 2.2s ease-in-out infinite;
    animation: btn-pulse-glow 2.2s ease-in-out infinite;
}

.btn--accent.btn--pulse::after {
    display: none;
}

.btn--pulse::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: 0;
    border: 2px solid rgba(231, 131, 71, 0.72);
    border-radius: inherit;
    pointer-events: none;
    -webkit-animation: btn-pulse-ring 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation: btn-pulse-ring 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@-webkit-keyframes btn-pulse-glow {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 6px 20px var(--color-accent-glow),
            0 2px 8px rgba(18, 42, 61, 0.16);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            0 12px 36px var(--color-accent-glow-strong),
            0 0 0 6px var(--color-accent-ring);
    }
}

@keyframes btn-pulse-glow {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 6px 20px var(--color-accent-glow),
            0 2px 8px rgba(18, 42, 61, 0.16);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            0 12px 36px var(--color-accent-glow-strong),
            0 0 0 6px var(--color-accent-ring);
    }
}

@-webkit-keyframes btn-pulse-ring {
    0% {
        opacity: 0.85;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(1.14);
        transform: scale(1.14);
    }
}

@keyframes btn-pulse-ring {
    0% {
        opacity: 0.85;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.14);
    }
}

@-webkit-keyframes btn-shimmer {
    0% {
        -webkit-transform: translate3d(-130%, 0, 0) skewX(-16deg);
        transform: translate3d(-130%, 0, 0) skewX(-16deg);
    }
    22% {
        -webkit-transform: translate3d(130%, 0, 0) skewX(-16deg);
        transform: translate3d(130%, 0, 0) skewX(-16deg);
    }
    22.01%,
    100% {
        -webkit-transform: translate3d(-130%, 0, 0) skewX(-16deg);
        transform: translate3d(-130%, 0, 0) skewX(-16deg);
    }
}

@keyframes btn-shimmer {
    0% {
        transform: translate3d(-130%, 0, 0) skewX(-16deg);
    }
    22% {
        transform: translate3d(130%, 0, 0) skewX(-16deg);
    }
    22.01%,
    100% {
        transform: translate3d(-130%, 0, 0) skewX(-16deg);
    }
}

@-webkit-keyframes btn-glow-pulse {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 8px 26px var(--color-accent-glow),
            0 3px 10px rgba(18, 42, 61, 0.18);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 10px 34px var(--color-accent-glow-strong),
            0 4px 14px rgba(18, 42, 61, 0.22);
    }
}

@keyframes btn-glow-pulse {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 8px 26px var(--color-accent-glow),
            0 3px 10px rgba(18, 42, 61, 0.18);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 10px 34px var(--color-accent-glow-strong),
            0 4px 14px rgba(18, 42, 61, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn--accent::after,
    .btn--hero::after,
    .btn--hero {
        -webkit-animation: none;
        animation: none;
    }

    .btn--accent:hover,
    .btn--hero:hover {
        transform: none;
    }

    .btn--pulse,
    .btn--pulse::before {
        -webkit-animation: none;
        animation: none;
    }

    .marquee__track {
        -webkit-animation: none;
        animation: none;
    }
}

/* Тач-устройства: заметнее перелив, надёжный запуск анимаций в iOS Safari */
@media (hover: none) and (pointer: coarse) {
    .btn--accent:not(.btn--pulse)::after,
    .btn--hero::after {
        background: linear-gradient(
            105deg,
            transparent 46%,
            rgba(255, 255, 255, 0.48) 50%,
            transparent 54%
        );
        -webkit-animation: none;
        animation: none;
    }

    .btn--accent:not(.btn--pulse).is-shimmer-active::after,
    .btn--hero.is-shimmer-active::after {
        -webkit-animation: btn-shimmer 4.5s linear infinite;
        animation: btn-shimmer 4.5s linear infinite;
    }

    .header__btn.btn--accent.is-shimmer-active::after {
        -webkit-animation-delay: 0s;
        animation-delay: 0s;
    }

    .btn--accent:not(.header__btn):not(.btn--pulse).is-shimmer-active::after,
    .btn--hero.is-shimmer-active::after {
        -webkit-animation-delay: 1.2s;
        animation-delay: 1.2s;
    }

    .marquee__track {
        -webkit-animation-duration: 16s;
        animation-duration: 16s;
    }
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--ghost:hover {
    background: rgba(90, 191, 234, 0.1);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 28px;
    min-height: var(--header-h);
    padding-block: 12px;
}

.header__logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.header__logo img {
    display: block;
    width: auto;
    height: 76px;
    max-width: min(290px, 46vw);
    flex-shrink: 0;
    filter: var(--logo-filter);
}

.header__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    text-align: right;
}

.header__hours,
.header__address {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.header__hours {
    color: var(--color-text-muted);
}

.header__address {
    margin-top: 0;
}

.header__sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
    color: var(--color-teal-dark);
    background: linear-gradient(145deg, #f2f7fa 0%, #9eb9c9 46%, #d5e3ec 100%);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 4px 14px rgba(30, 108, 142, 0.14);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__actions .btn {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 999px;
}

.header__btn {
    white-space: nowrap;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(0.358turn, rgb(188, 220, 235) 0%, rgb(61, 141, 179) 100%);
    min-height: 590px;
    padding: 48px 0 56px;
    overflow: hidden;
    color: var(--color-hero-text);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__bg-doctor {
    position: absolute;
    right: -5%;
    bottom: 0;
    width: min(55%, 680px);
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.95;
    mask-image: linear-gradient(to left, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%);
}

@media (min-width: 1200px) {
    .hero__bg::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            rgba(61, 141, 179, 0.88) 0%,
            rgba(72, 152, 188, 0.48) 22%,
            rgba(100, 175, 205, 0.18) 40%,
            transparent 54%
        );
    }

    .hero__bg-doctor {
        left: 50%;
        right: auto;
        width: 50%;
        max-width: none;
        object-position: center top;
        mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 46%,
            rgba(0, 0, 0, 0.82) 58%,
            rgba(0, 0, 0, 0.45) 72%,
            rgba(0, 0, 0, 0.12) 86%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 46%,
            rgba(0, 0, 0, 0.82) 58%,
            rgba(0, 0, 0, 0.45) 72%,
            rgba(0, 0, 0, 0.12) 86%,
            transparent 100%
        );
    }
}

.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 640px);
    gap: 24px;
    align-items: center;
    min-height: 480px;
}

.hero__content {
    min-width: 0;
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.hero__title-lead {
    font-weight: 700;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.hero__title-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.hero__title-tags-sep {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 500;
    color: var(--color-hero-text);
}

.hero__title .hero__highlight {
    display: inline;
    padding: 0;
    border-radius: 0;
    font-size: clamp(20px, 2.4vw, 28px);
    background: none;
    box-shadow: none;
}

.hero__highlight {
    font-weight: 700;
    color: var(--color-hero-text);
    text-shadow: none;
}

.hero__subtitle {
    margin: 0 0 20px;
    font-size: clamp(17px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-hero-text);
}

.hero__subtitle .hero__highlight {
    font-size: 1.12em;
    display: inline;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--color-hero-text);
    font-weight: 700;
}

.hero__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.hero__price-old {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--color-hero-text-muted);
    text-decoration: line-through;
}

.hero__price-new {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    color: var(--color-hero-text);
}

.hero__price-new strong {
    font-weight: 700;
    color: var(--color-hero-text);
}

.hero__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hero__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-align: center;
    min-width: 0;
}

.hero__card-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.hero__card-text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.hero__promo {
    margin-bottom: 18px;
}

.hero__promo-label {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(
        180deg,
        var(--color-promo-light) 0%,
        var(--color-promo) 50%,
        var(--color-promo-dark) 100%
    );
    border-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(12, 84, 160, 0.28);
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.btn--hero {
    background: var(--gradient-accent);
    color: var(--color-accent-text);
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 700;
    padding: 18px 28px;
    border-radius: 50px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -1px 0 rgba(160, 70, 20, 0.16),
        0 8px 26px var(--color-accent-glow),
        0 3px 10px rgba(18, 42, 61, 0.18);
}

.btn--hero:hover {
    background: var(--gradient-accent-hover);
}

.hero__btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Marquee */
.marquee {
    background: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
    height: 70px;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
    width: max-content;
    -webkit-animation: marquee 20s linear infinite;
    animation: marquee 20s linear infinite;
    padding-inline: 16px;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee__link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.marquee__link:hover {
    text-decoration: underline;
}

.marquee__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-white);
    flex-shrink: 0;
}

@-webkit-keyframes marquee {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Doctor */
.doctor {
    background: linear-gradient(90deg, #f8f9fb 0%, #f4f6f9 45%, #eef1f5 78%, #e8ecf1 100%);
    padding: 56px 0 64px;
}

.doctor__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.doctor__title {
    margin: 0;
    width: 100%;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: break-word;
}

.doctor__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 32px 48px;
    align-items: center;
}

.doctor__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.doctor__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.doctor__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.doctor__badge {
    padding: 9px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.doctor__lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.doctor__values {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 22px;
    flex: 1;
}

.doctor__value {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: break-word;
    min-width: 0;
}

.doctor__value-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    background-color: var(--color-primary);
    mask-image: url("../assets/images/logo-dental-formula-icon.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("../assets/images/logo-dental-formula-icon.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.doctor__tagline {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.doctor__figure {
    margin: 0;
    width: 100%;
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.doctor__photo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
    border-radius: 16px;
    box-shadow:
        0 2px 6px rgba(30, 58, 78, 0.06),
        0 14px 36px rgba(30, 58, 78, 0.13),
        0 28px 56px rgba(30, 58, 78, 0.07);
}

.doctor__name {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-teal-dark);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.doctor__btn {
    width: 100%;
    padding: 22px 28px;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
}

/* Before / After */
.before-after {
    position: relative;
    color: var(--color-white);
    padding: 36px 0 40px;
    overflow: hidden;
}

.before-after__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(0.924turn, var(--color-teal) 0%, var(--color-primary) 100%);
}

.before-after__bg-photo {
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/before-after.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.22;
    mix-blend-mode: overlay;
}

.before-after__photo {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.before-after__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.before-after__inner {
    position: relative;
    z-index: 1;
}

.before-after__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 546px);
    gap: 32px;
    align-items: center;
}

.before-after__copy {
    text-align: left;
}

.before-after__text {
    margin: 0 0 16px;
    max-width: 530px;
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.35;
    font-weight: 400;
    overflow-wrap: break-word;
}

.before-after__title {
    margin: 0;
    max-width: 615px;
    font-size: clamp(22px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.before-after__visual {
    justify-self: end;
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 18px 36px rgba(0, 20, 40, 0.32));
}

.before-after__frame {
    position: relative;
}

.before-after__labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    text-align: center;
}

.before-after__label {
    font-size: clamp(20px, 3vw, 42px);
    font-weight: 600;
    line-height: 1;
    text-transform: lowercase;
}

/* Prosthesis */
.prosthesis {
    background: var(--color-bg);
    padding: 56px 0;
}

.prosthesis__inner {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.prosthesis__media {
    min-width: 0;
}

.prosthesis__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1300 / 766;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.prosthesis__text {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.prosthesis__title {
  margin: 0 0 16px;
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
  color: var(--color-text);
  background: linear-gradient(145deg, #f8f9fb 0%, #bcc5ce 46%, #e3e7ec 100%);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 0 rgba(108, 118, 128, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

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

.prosthesis__item {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.prosthesis__icon {
    width: 50px;
    height: auto;
    flex-shrink: 0;
}

.prosthesis__item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

@media (min-width: 1200px) {
    .prosthesis__inner {
        grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
        gap: 56px;
    }
}

/* Consultation form */
.consultation {
    background: linear-gradient(0.434turn, var(--color-primary) 0%, rgb(38, 76, 120) 100%);
    padding: 48px 0 64px;
}

.consultation__inner {
    width: 100%;
}

.consultation__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.consultation__aside {
    width: min(100%, 440px);
}

.consultation__heading {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    text-align: center;
}

.consultation__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: consultation-step;
}

.consultation__steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.consultation__steps li::before {
    counter-increment: consultation-step;
    content: counter(consultation-step);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-text);
    background: var(--gradient-accent-soft);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 8px rgba(231, 131, 71, 0.35);
}

.consultation__form {
    width: min(100%, 440px);
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: visible;
}

@media (min-width: 960px) {
    .consultation {
        padding: 56px 0;
    }

    .consultation__layout {
        display: grid;
        grid-template-columns: minmax(0, 540px) 440px;
        width: min(100%, calc(540px + 48px + 440px));
        margin-inline: auto;
        gap: 48px;
        align-items: center;
    }

    .consultation__aside {
        width: 100%;
        max-width: 540px;
    }

    .consultation__heading {
        margin-bottom: 20px;
        font-size: clamp(24px, 2.2vw, 30px);
        text-align: left;
        white-space: nowrap;
    }

    .consultation__steps {
        gap: 12px;
    }

    .consultation__steps li {
        padding: 16px 18px;
        font-size: 18px;
        line-height: 1.45;
    }

    .consultation__form {
        width: 440px;
        max-width: 100%;
        padding: 32px;
        justify-self: start;
    }
}

@media (min-width: 1200px) {
    .consultation__layout {
        grid-template-columns: minmax(0, 600px) 440px;
        width: min(100%, calc(600px + 56px + 440px));
        gap: 56px;
    }

    .consultation__aside {
        max-width: 600px;
    }
}

.form__label-top {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

.consultation .form__title {
    text-align: center;
}

.form__hours {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Forms */
.form__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.form__subtitle {
    margin: 0 0 20px;
    color: var(--color-text-muted);
}

.form__field {
    display: block;
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--color-text);
}

.form__input:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

.form__checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.form__checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form__checkbox a {
    color: var(--color-primary);
}

.form__submit {
    width: 100%;
    margin-top: 8px;
}

.consultation .form__submit.btn--accent {
    font-size: clamp(15px, 4vw, 18px);
    padding: 18px 24px;
}

.form__policy {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

.form__policy a {
    color: var(--color-primary);
}

.form__success,
.form-success {
    margin: 0;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-teal-dark);
    background: #eef8fb;
    border-radius: var(--radius-sm);
}

.form__error {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #c0392b;
    text-align: center;
}

.form.is-sending .form__submit,
.form.is-sending .quiz__btn--submit {
    opacity: 0.7;
    pointer-events: none;
}

/* Quiz */
.quiz-section {
    background: var(--color-white);
    padding: 64px 0;
}

.quiz {
    max-width: 800px;
    margin-inline: auto;
    padding: 32px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
}

.quiz__intro,
.quiz__title {
    margin: 0 0 24px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    text-align: center;
    overflow-wrap: break-word;
}

.quiz__progress {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.quiz__progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.quiz__counter {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

.quiz__step {
    display: none;
}

.quiz__step.is-active {
    display: block;
}

.quiz__question {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: break-word;
}

.quiz__gifts {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

.quiz__options {
    display: grid;
    gap: 12px;
}

.quiz__options--images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s;
    min-width: 0;
    overflow-wrap: break-word;
}

.quiz__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz__option:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(90, 191, 234, 0.08);
}

.quiz__option--text {
    flex-direction: row;
    justify-content: center;
}

.quiz__option img {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.quiz__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.quiz__actions[hidden] {
    display: none;
}

.quiz__btn--prev[hidden],
.quiz__btn--submit[hidden] {
    display: none;
}

/* All-on-4 */
.all-on-4 {
    background: var(--color-bg);
    padding: 64px 0;
    text-align: center;
}

.all-on-4__title {
    margin: 0 0 40px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    overflow-wrap: break-word;
}

.all-on-4__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.all-on-4__item {
    padding: 20px 16px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.all-on-4__icon {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.all-on-4__icon--logo {
    object-fit: contain;
}

.all-on-4__item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: break-word;
}

/* Appointments */
.appointments {
    padding: 64px 0;
    background: var(--color-white);
}

.appointments__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    text-align: center;
    overflow-wrap: break-word;
}

.appointments__subtitle {
    margin: 0 0 48px;
    font-size: 20px;
    color: var(--color-primary);
    text-align: center;
    font-weight: 600;
}

.appointments__timeline {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.appointments__step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    min-width: 0;
    overflow: visible;
}

.appointments__step-num {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
}

.appointments__step-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    overflow-wrap: break-word;
}

.appointments__step-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.appointments__step-list li {
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.appointments__step-img {
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-width: 280px;
    height: 240px;
    margin: auto auto 0;
    padding-top: 24px;
    object-fit: contain;
    border-radius: 16px;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    filter: drop-shadow(0 6px 16px rgba(30, 58, 78, 0.1));
}

.appointments__step-result {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-teal-dark);
    overflow-wrap: break-word;
}

.appointments__btn {
    display: flex;
    margin-inline: auto;
}

/* Footer */
.footer {
    background: var(--color-white);
    color: var(--color-text);
    padding: 40px 0 32px;
    border-top: 1px solid var(--color-border);
}

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

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.footer__logo {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.footer__logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
    flex-shrink: 0;
    filter: var(--logo-filter);
}

.footer__legal,
.footer__company {
    font-size: 12px;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
    color: var(--color-text-muted);
}

.footer__legal p,
.footer__company p {
    margin: 0 0 12px;
}

.footer__policy {
    color: var(--color-text);
}

/* Legal pages */
.legal-page {
    padding: 40px 0 64px;
    background: var(--color-white);
}

.legal-page__inner {
    max-width: 820px;
}

.legal-page__title {
    margin: 0 0 32px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-teal-dark);
}

.legal-page__content h2 {
    margin: 28px 0 12px;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.legal-page__content h2:first-child {
    margin-top: 0;
}

.legal-page__content p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text);
}

.legal-page__content ul {
    margin: 0 0 12px;
    padding-left: 1.25em;
    font-size: 15px;
    line-height: 1.55;
}

.legal-page__content li {
    margin-bottom: 6px;
}

.legal-page__content a {
    color: var(--color-primary);
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.legal-page__back:hover {
    text-decoration: underline;
}

.footer__contacts {
    min-width: 0;
}

.footer__phone {
    display: block;
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 700;
    color: var(--color-teal-dark);
    text-decoration: none;
    margin-bottom: 16px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

@media (min-width: 960px) {
    .footer__logo img {
        height: 78px;
    }

    .footer__phone {
        font-size: clamp(17px, 1.35vw, 22px);
        margin-bottom: 0;
    }
}

/* Popups */
.popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

.popup.is-open {
    visibility: visible;
    opacity: 1;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.popup__content {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 32px;
}

.popup__content--wide {
    width: min(100%, 800px);
}

.popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.popup__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    padding-right: 32px;
    overflow-wrap: break-word;
}

.popup__text,
.popup__hours {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.popup .quiz {
    padding: 0;
    background: transparent;
    max-width: none;
}

.popup__content--phone {
    width: min(100%, 420px);
    padding: 40px 32px 36px;
    text-align: center;
}

.phone-popup__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal) 100%);
    color: var(--color-white);
    box-shadow: 0 12px 32px rgba(12, 84, 160, 0.22);
}

.phone-popup__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-teal-dark);
}

.phone-popup__hours,
.phone-popup__address {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.phone-popup__number {
    margin: 8px 0 24px;
    font-size: clamp(30px, 4.5vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

.phone-popup__copy {
    width: 100%;
    max-width: 280px;
}

.phone-popup__copy.is-copied {
    background: var(--color-teal-dark);
}

@media (max-width: 639px) {
    .popup {
        padding: 8px;
        align-items: center;
    }

    .popup__content {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 16px 14px 18px;
        border-radius: 10px;
    }

    .popup__content--wide {
        width: 100%;
    }

    .popup__close {
        top: 6px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .popup__title {
        margin: 0 0 8px;
        padding-right: 28px;
        font-size: 17px;
        line-height: 1.25;
    }

    .popup__text {
        margin: 0 0 4px;
        font-size: 12px;
        line-height: 1.35;
    }

    .popup__hours {
        margin: 0 0 10px;
        font-size: 12px;
    }

    .popup .form__title {
        margin: 0 0 4px;
        font-size: 18px;
        line-height: 1.2;
    }

    .popup .form__subtitle {
        margin: 0 0 12px;
        font-size: 13px;
        line-height: 1.3;
    }

    .popup .form__field {
        margin-bottom: 10px;
    }

    .popup .form__input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .popup .form__checkbox {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 11px;
        line-height: 1.35;
    }

    .popup .form__checkbox input {
        margin-top: 2px;
    }

    .popup .form__submit {
        margin-top: 4px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .popup .quiz__title {
        margin: 0 0 10px;
        font-size: 16px;
        line-height: 1.25;
    }

    .popup .quiz__progress {
        height: 4px;
        margin-bottom: 6px;
    }

    .popup .quiz__counter {
        margin: 0 0 10px;
        font-size: 12px;
    }

    .popup .quiz__question {
        margin: 0 0 10px;
        font-size: 15px;
        line-height: 1.25;
    }

    .popup .quiz__step[data-step="5"] .quiz__question {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .popup .quiz__gifts {
        margin: 0 0 10px;
        font-size: 12px;
    }

    .popup .quiz__options {
        gap: 8px;
    }

    .popup .quiz__option {
        gap: 4px;
        padding: 8px 6px;
    }

    .popup .quiz__option img {
        max-width: 72px;
    }

    .popup .quiz__option span {
        font-size: 11px;
        line-height: 1.2;
    }

    .popup .quiz__option--text {
        padding: 10px 8px;
        min-height: 0;
        font-size: 13px;
    }

    .popup .quiz__actions {
        gap: 8px;
        margin-top: 12px;
    }

    .popup .quiz__actions .btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .popup .form__policy {
        margin-top: 8px;
        font-size: 11px;
    }
}

/* Cookie */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(600px, calc(100% - 32px));
    padding: 16px 20px;
    background: #ebebeb;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 13px;
    color: #555;
    transform: translateY(120%);
    transition: transform 0.3s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner a {
    color: var(--color-primary);
}

.cookie-banner__ok {
    flex-shrink: 0;
    padding: 8px 20px;
    border: 1px solid #999;
    border-radius: 5px;
    background: #ebebeb;
    color: #555;
    font-weight: 500;
    cursor: pointer;
}

.cookie-banner__ok:hover {
    border-color: #111;
    color: #111;
}

/* Scroll top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 800;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover svg rect {
    fill: #0c54a0;
    fill-opacity: 1;
}

.scroll-top:hover svg path {
    stroke: #fff;
}

@media (max-width: 959px) {
    .scroll-top {
        bottom: 90px;
    }
}

.floating-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 800;
    display: none;
}

.floating-phone img {
    width: 59px;
    height: 59px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

body.no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (min-width: 1200px) {
    .header__logo img {
        height: 84px;
        max-width: min(320px, 40vw);
    }
}

@media (max-width: 1229px) {
    .header__actions .btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__btn {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }

    .hero__bg-doctor {
        width: 70%;
        right: -15%;
        opacity: 0.5;
    }

    .prosthesis__inner {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .prosthesis__content {
        display: contents;
    }

    .prosthesis__title {
        order: -2;
        margin-bottom: 0;
    }

    .prosthesis__media {
        order: -1;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
}

@media (max-width: 1099px) {
    .header__logo img {
        height: 68px;
        max-width: min(260px, 52vw);
    }
}

@media (max-width: 959px) {
    :root {
        --header-h: 80px;
    }

    .appointments__step {
        display: block;
        padding: 24px 16px;
    }

    .appointments__step-list {
        display: block;
        flex: none;
        margin: 0 0 12px;
    }

    .appointments__step-list li {
        margin-bottom: 6px;
    }

    .appointments__step-img {
        height: auto;
        margin: 24px auto 0;
    }

    .header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 10px 12px;
        align-items: center;
    }

    .header__logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .header__logo img {
        height: 56px;
        max-width: min(220px, 62vw);
    }

    .header__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .header__meta {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }

    .header__sticker {
        padding: 7px 12px;
        font-size: 10px;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .header__actions .btn {
        padding: 11px 16px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 32px 0 40px;
    }

    .hero__bg-doctor {
        width: 100%;
        right: 0;
        opacity: 0.35;
        mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
    }

    .doctor__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .doctor__visual {
        order: -1;
    }

    .doctor__title {
        font-size: clamp(22px, 6vw, 28px);
        padding-inline: 4px;
    }

    .doctor__content {
        justify-content: flex-start;
        gap: 24px;
    }

    .doctor__values {
        flex: none;
    }

    .doctor__figure {
        max-width: 300px;
        margin-inline: auto;
    }

    .doctor__photo {
        max-width: 280px;
    }

    .before-after__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .before-after__copy {
        text-align: center;
    }

    .before-after__text,
    .before-after__title {
        max-width: none;
        margin-inline: auto;
    }

    .before-after__visual {
        justify-self: center;
        max-width: 400px;
    }

    .before-after {
        padding-bottom: 24px;
    }

    .prosthesis {
        padding: 18px 0 10px;
        background: linear-gradient(180deg, #d2dde7 0%, var(--color-bg) 52px);
    }

    .prosthesis__inner {
        gap: 12px;
    }

    .prosthesis__title {
        display: block;
        width: 100%;
        padding: 8px 12px;
        font-size: clamp(19px, 5vw, 24px);
        line-height: 1.3;
        text-align: center;
        box-sizing: border-box;
    }

    .prosthesis__media img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center 40%;
        border-radius: 14px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.45),
            0 10px 28px rgba(30, 58, 78, 0.12);
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .prosthesis__text {
        margin: 0 0 12px;
        font-size: 15px;
        line-height: 1.4;
        text-align: center;
    }

    .prosthesis__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .prosthesis__icon {
        width: 44px;
    }

    .prosthesis__item-title {
        font-size: 14px;
    }

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

    .hero__title-lead {
        font-size: clamp(30px, 8.5vw, 38px);
        line-height: 1.1;
    }

    .hero__title .hero__highlight {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    .hero__title-tags-sep {
        font-size: 18px;
    }

    .hero__subtitle {
        font-size: 17px;
        line-height: 1.4;
    }

    .hero__subtitle .hero__highlight {
        font-size: 19px;
        display: inline;
        margin: 0;
        padding: 0;
        white-space: normal;
    }

    .all-on-4__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer__phone {
        white-space: normal;
    }

    .floating-phone {
        display: none;
    }

    .cookie-banner {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
}

@media (min-width: 640px) and (max-width: 959px) {
    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
        width: 100%;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__logo img {
        margin-inline: auto;
    }

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

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

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

@media (max-width: 639px) {
    .all-on-4__grid {
        grid-template-columns: 1fr;
    }

    .before-after__visual {
        max-width: 320px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer__brand {
        align-items: center;
        width: 100%;
    }

    .footer__logo {
        justify-content: center;
        width: 100%;
    }

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

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

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

    .btn--accent {
        font-size: 16px;
        padding: 16px 24px;
    }

    .quiz-section {
        padding: 16px 0 20px;
    }

    .quiz-section .quiz {
        padding: 14px 12px 12px;
    }

    .quiz-section .quiz:has(.quiz__step.is-active:not([data-step="1"])) .quiz__intro {
        display: none;
    }

    .quiz-section .quiz:has(.quiz__step[data-step="5"].is-active) .quiz__counter {
        display: none;
    }

    .quiz-section .quiz__intro,
    .quiz-section .quiz__title {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.25;
    }

    .quiz-section .quiz__progress {
        height: 4px;
        margin-bottom: 4px;
    }

    .quiz-section .quiz__counter {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .quiz-section .quiz__question {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.25;
    }

    .quiz-section .quiz__gifts {
        margin-bottom: 8px;
        font-size: 11px;
        line-height: 1.35;
    }

    .quiz-section .quiz__options {
        gap: 8px;
    }

    .quiz-section .quiz__options--images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .quiz-section .quiz__option {
        padding: 8px 4px;
        gap: 4px;
        border-width: 1px;
    }

    .quiz-section .quiz__option img {
        max-width: 100%;
        width: 100%;
    }

    .quiz-section .quiz__option span {
        font-size: 11px;
        line-height: 1.2;
    }

    .quiz-section .quiz__options:not(.quiz__options--images) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quiz-section .quiz__option--text {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.25;
        min-height: 44px;
        align-items: center;
    }

    .quiz-section .quiz__form .form__field {
        margin-bottom: 8px;
    }

    .quiz-section .quiz__form .form__input {
        padding: 10px 12px;
    }

    .quiz-section .quiz__form .form__checkbox {
        margin-bottom: 6px;
        font-size: 11px;
        gap: 6px;
    }

    .quiz-section .quiz__form .form__policy {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.3;
    }

    .quiz-section .quiz:has(.quiz__step[data-step="5"].is-active) .quiz__question {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .quiz-section .quiz__actions {
        flex-direction: row;
        gap: 8px;
        margin-top: 12px;
    }

    .quiz-section .quiz__actions .btn {
        width: auto;
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }

    .quiz {
        padding: 20px 16px;
    }

    .quiz__actions {
        flex-direction: column;
    }

    .quiz__actions .btn {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .quiz-section {
        padding: 12px 0 16px;
    }

    .quiz-section .quiz {
        padding: 12px 10px 10px;
    }

    .quiz-section .quiz__intro,
    .quiz-section .quiz__title {
        font-size: 14px;
    }

    .quiz-section .quiz__question {
        font-size: 15px;
    }

    .quiz-section .quiz__option--text {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 40px;
    }

    .hero {
        padding: 32px 0 48px;
    }

    .header__actions {
        gap: 8px;
    }

    .header__actions .btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .header__logo img {
        height: 50px;
        max-width: min(200px, 68vw);
    }

    .header__meta {
        font-size: 12px;
    }

    .header__hours,
    .header__address {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .hero__price {
        flex-direction: column;
        gap: 4px;
    }

    .hero__price-old {
        font-size: 22px;
    }
}

@media (max-width: 320px) {
    .container {
        width: min(100% - 16px, var(--container));
    }

    .header__logo img {
        height: 46px;
        max-width: min(180px, 72vw);
    }
}
