/* ===== FONTS ===== */
/* Self-hosted copies of Google Fonts (cyrillic + latin subsets): no visitor IP goes to Google */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/inter-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/play-400-cyrillic.ceaf8c6802d4.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/play-400-latin.3ed6c0946ff5.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/play-700-cyrillic.053f308db7c9.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/play-700-latin.aad808c85ec3.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== VARIABLES ===== */
:root {
    --color-black: #141414;
    --color-white: #ffffff;
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #5a5a5a;
    --color-border: #e0e0e0;
    --color-red: #D3382D;
    --color-green: #68D949;
    --color-blue: #478EF6;
    --color-red-light: rgba(211, 56, 45, 0.1);
    --color-green-light: rgba(104, 217, 73, 0.1);
    --color-blue-light: rgba(71, 142, 246, 0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Play', 'Inter', sans-serif;
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== CARD (single style for every card on the page) ===== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    padding: 10px 24px;
    background: var(--color-red);
    color: var(--color-white);
}

.btn:hover {
    background: #b82f25;
}

.btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn--lg {
    padding: 14px 36px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}

.section-title--light {
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-black);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__link {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.header__link:hover {
    color: var(--color-white);
}

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

.header__phone {
    color: var(--color-white);
    font-weight: 600;
    font-size: 15px;
}

.header__phone:hover {
    color: var(--color-red);
}

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

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero-wrapper {
    position: sticky;
    top: 0;
    z-index: 0;
}

.hero {
    padding: 120px 0 80px;
    background: var(--color-black);
    color: var(--color-white);
}

/* everything after the hero slides over it */
.advantages, .services, .prices, .works, .process, .reviews,
.faq, .booking, .contacts, .about, .footer {
    position: relative;
    z-index: 1;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-white);
}

.accent {
    color: var(--color-red);
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.tag--rating {
    color: var(--color-white);
}

.tag--rating::before {
    content: '\2605';
    color: #FFCC00;
    margin-right: 6px;
}

.tag--rating:hover {
    background: rgba(255,255,255,0.18);
}

.hero__video {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

/* ===== ADVANTAGES ===== */
.advantages {
    padding: 80px 0;
    background: var(--color-bg);
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}

.advantages .section-title {
    margin-bottom: 40px;
}

.advantages__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.advantages__grid .advantage-card {
    width: calc(33.333% - 14px);
}

.advantage-card {
    padding: 28px 24px;
}

.advantage-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.advantage-card__icon--red {
    background: var(--color-red-light);
    color: var(--color-red);
}

.advantage-card__icon--green {
    background: var(--color-green-light);
    color: var(--color-green);
}

.advantage-card__icon--blue {
    background: var(--color-blue-light);
    color: var(--color-blue);
}

.advantage-card__title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage-card__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== SERVICES ===== */
.services {
    padding: 80px 0;
    background: var(--color-white);
}

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

.service-card {
    padding: 32px 28px;
}

.service-card__number {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-red-light);
    line-height: 1;
    margin-bottom: 12px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== PRICES ===== */
.prices {
    padding: 80px 0;
    background: var(--color-bg);
}

.prices__card {
    overflow: hidden;
}

.prices__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 24px 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.prices__tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -1px;
    white-space: nowrap;
}

.prices__tab:hover {
    color: var(--color-text);
}

.prices__tab.active {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.prices__panel {
    display: none;
    padding: 0 24px 8px;
}

.prices__panel.active {
    display: block;
}

.prices__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prices__table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.prices__table tbody tr:last-child {
    border-bottom: none;
}

.prices__table tbody tr:hover {
    background: var(--color-bg);
}

.prices__table td {
    padding: 14px 8px;
    vertical-align: middle;
}

.prices__table td:first-child {
    color: var(--color-text);
}

.prices__table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--color-red);
    white-space: nowrap;
}

.prices__note {
    padding: 16px 24px 20px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

@media (max-width: 768px) {
    .prices__tabs {
        gap: 4px;
        padding: 12px 12px 0;
    }

    .prices__tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .prices__panel {
        padding: 0 12px 8px;
    }

    .prices__table {
        font-size: 14px;
    }

    .prices__table td {
        padding: 12px 4px;
    }

    .prices__note {
        padding: 12px 12px 16px;
    }
}

/* ===== WORKS ===== */
.works {
    padding: 80px 0;
    background: var(--color-white);
}

.works__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.works__compare > .card {
    padding: 24px;
}

.works__compare-text {
    margin-top: 20px;
}

.works__compare-text h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.works__compare-text p {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.compare {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 3/4;
    user-select: none;
    background: var(--color-bg);
}

.compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare__after {
    clip-path: inset(0 0 0 var(--pos, 50%));
}

/* landscape photo in a portrait frame: keep the car front in view */
.compare__after--bmw {
    object-position: 35% 50%;
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 2px;
    margin-left: -1px;
    background: var(--color-white);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
    pointer-events: none;
}

.compare__handle::after {
    content: '\2039\00a0\203A';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare__label {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(0,0,0,0.6);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.compare__label--before {
    left: 12px;
}

.compare__label--after {
    right: 12px;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.work-card:hover .work-card__overlay {
    transform: translateY(0);
}

/* ===== PROCESS ===== */
.process {
    padding: 80px 0;
    background: var(--color-bg);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    padding: 28px 24px;
}

.process-step__num {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-red);
    margin-bottom: 12px;
}

.process-step__title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 80px 0;
    background: var(--color-white);
}

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

.review-card {
    padding: 28px;
}

.review-card__stars {
    color: var(--color-red);
    font-size: 18px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.review-card__text::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-red);
    opacity: 0.3;
    line-height: 1;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.review-card__name {
    font-weight: 600;
    font-size: 15px;
}

.review-card__car {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.reviews__yandex {
    margin-top: 48px;
}

.reviews__yandex-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 24px;
}

.reviews__yandex-widget {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reviews__yandex-widget iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.reviews__yandex-link {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.reviews__yandex-link:hover {
    color: var(--color-red);
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--color-bg);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    overflow: hidden;
    transition: var(--transition);
}

.faq__item[open] {
    border-color: var(--color-red);
}

.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '\2212';
    color: var(--color-red);
}

.faq__answer {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ===== BOOKING ===== */
.booking {
    padding: 80px 0;
    background: var(--color-black);
}

.booking__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.booking__info .section-title {
    text-align: left;
}

.booking__text {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.booking__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking__list li {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    padding-left: 24px;
    position: relative;
}

.booking__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-red);
}

.booking__form {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    transition: var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px var(--color-red-light);
}

.form-input::placeholder {
    color: #999;
}

textarea.form-input {
    resize: vertical;
}

.form-group--required {
    position: relative;
}

.form-group--required .form-input {
    padding-right: 36px;
}

.form-group--required::after {
    content: '*';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    color: var(--color-red);
    font-weight: 600;
}

.form-group--file {
    position: relative;
}

.form-file {
    cursor: pointer;
    display: block;
}

.form-file input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.form-file__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 18px;
    border: 1px dashed #bdbdbd;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    background: var(--color-bg);
}

.form-file__label:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.form-file__name {
    font-size: 13px;
    color: var(--color-text);
    margin-top: 6px;
    display: block;
    text-align: center;
}

.form-hint {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 6px;
    text-align: center;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.form-consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-red);
    cursor: pointer;
}

.form-consent a {
    text-decoration: underline;
}

.form-consent a:hover {
    color: var(--color-red);
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 80px 0;
    background: var(--color-bg);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 48px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    flex-shrink: 0;
    border: 1px solid rgba(71,142,246,0.2);
}

.contact-item__label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.contact-item__value {
    font-weight: 600;
    font-size: 15px;
}

.contact-item__hint {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.contact-item__value--link:hover {
    color: var(--color-red);
}

.contacts__socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.contacts__map {
    overflow: hidden;
}

.contacts__map iframe {
    display: block;
}

.contacts__map-address {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    background: var(--color-surface);
}

.contacts__map-address a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contacts__map-address a:hover {
    color: var(--color-red);
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 0;
    background: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__logo img {
    height: 32px;
    width: auto;
}

.footer__copy {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer__links a:hover {
    color: var(--color-white);
}

/* ===== LEGAL PAGES (privacy, consent) ===== */
.legal__top {
    background: var(--color-black);
    padding: 16px 0;
}

.legal__top img {
    height: 32px;
    width: auto;
}

.legal {
    padding: 40px 0 64px;
}

.legal__body {
    max-width: 820px;
}

.legal h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.legal h2 {
    font-size: 20px;
    line-height: 1.3;
    margin: 32px 0 12px;
}

.legal p,
.legal li {
    margin-bottom: 10px;
}

.legal ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 10px;
}

.legal a {
    color: var(--color-red);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.legal__date {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 950;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 20px;
    background: var(--color-black);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice a {
    color: var(--color-white);
    text-decoration: underline;
}

/* ===== MOBILE ACTION BAR ===== */
.mobile-bar {
    display: none;
}

/* ===== OVERLAY ===== */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* ===== PHONE MODAL ===== */
.phone-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.phone-modal.active {
    display: flex;
}

.phone-modal__content {
    background: var(--color-black);
    border-radius: var(--radius);
    padding: 48px 44px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 360px;
    border: 1px solid rgba(255,255,255,0.08);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.phone-modal__decor,
.phone-modal__decor2 {
    display: none;
}

.phone-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.phone-modal__close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
}

.phone-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.phone-modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-red);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-modal__label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.phone-modal__number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.phone-modal__copy {
    min-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.phone-modal__copied {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-green);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.phone-modal__copied.visible {
    opacity: 1;
}

.phone-modal__divider {
    margin: 24px 0;
    position: relative;
    z-index: 1;
}

.phone-modal__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.phone-modal__divider span {
    position: relative;
    background: var(--color-black);
    padding: 0 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phone-modal__messengers {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.phone-modal__msg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    transition: var(--transition);
}

.phone-modal__msg--tg {
    background: rgba(38,165,220,0.15);
    border: 1px solid rgba(38,165,220,0.25);
}

.phone-modal__msg--tg:hover {
    background: #26A5DC;
    border-color: #26A5DC;
}

.phone-modal__msg--max {
    background: rgba(107,78,255,0.15);
    border: 1px solid rgba(107,78,255,0.25);
}

.phone-modal__msg--max:hover {
    background: #6B4EFF;
    border-color: #6B4EFF;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0;
    background: var(--color-white);
}

.about .section-title {
    margin-bottom: 40px;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__text p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__image {
    border-radius: var(--radius);
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 38px;
    }

    .advantages__grid .advantage-card {
        width: calc(50% - 10px);
    }

    .services__grid,
    .works__grid,
    .reviews__grid,
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 68px;
    }

    .hero-wrapper {
        position: relative;
    }

    .advantages {
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
    }

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

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    /* Header mobile */
    .header__nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--color-black);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 0;
        transition: var(--transition);
        z-index: 1001;
    }

    .header__nav.active {
        right: 0;
    }

    .header__link {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
    }

    .header__actions {
        display: none;
    }

    .burger {
        display: flex;
        z-index: 1002;
    }

    /* Hero mobile */
    .hero {
        padding: 96px 0 48px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    /* Grids mobile */
    .advantages__grid .advantage-card {
        width: 100%;
    }

    .services__grid,
    .works__grid,
    .reviews__grid,
    .process__grid {
        grid-template-columns: 1fr;
    }

    /* swipe between before/after cards, the next card peeks out */
    .works__compare {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        scrollbar-width: none;
    }

    .works__compare::-webkit-scrollbar {
        display: none;
    }

    .works__compare > .card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        padding: 16px;
    }

    /* Captions always visible on touch screens */
    .work-card__overlay {
        transform: none;
    }

    /* Booking mobile */
    .booking__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking__info .section-title,
    .booking__text {
        text-align: center;
    }

    .booking__list {
        align-items: center;
    }

    .booking__form {
        padding: 24px;
    }

    /* Contacts mobile */
    .contacts__inner {
        grid-template-columns: 1fr;
    }

    .contacts__map iframe {
        height: 300px;
    }

    /* Footer mobile */
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }

    /* Cookie notice sits above the mobile action bar */
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        max-width: none;
    }

    .legal h1 {
        font-size: 26px;
    }

    /* Mobile action bar */
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: 1fr 1fr 1.4fr;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--color-black);
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-white);
        border: 1px solid rgba(255,255,255,0.3);
    }

    .mobile-bar a.btn {
        border-color: var(--color-red);
        padding: 0;
    }
}
