/* ===== VARIABLES ===== */
:root {
  --dark: #171717;
  --grey: #1e1e20;
  --grey-2: #2a2a2c;
  --light: #fffcf7;
  --yellow: #fffaec;
  --white: #ffffff;
  --accent: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --font: 'Montserrat', sans-serif;
  --radius: 4px;
  --transition: 0.3s ease;
  --container: 1280px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--grey); color: var(--white); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ===== TYPOGRAPHY ===== */
.section-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 400; letter-spacing: 0.02em; }
.section-title span { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; font-size: 15px; font-family: var(--font); font-weight: 500; letter-spacing: 0.04em; border-radius: 100px; transition: var(--transition); cursor: pointer; }
.btn--outline { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--dark); }
.btn--dark { background: var(--dark); color: var(--white); border: 1.5px solid var(--dark); }
.btn--dark:hover { background: transparent; color: var(--dark); border-color: var(--dark); }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--transition), box-shadow var(--transition); }
.header--scrolled { background: var(--dark); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header__inner { display: flex; align-items: center; gap: 32px; padding: 18px 60px; }
.header__left { display: flex; align-items: center; gap: 20px; }
.header__logo { font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.header__socials { display: flex; gap: 14px; }
.header__social { opacity: 0.75; transition: var(--transition); }
.header__social:hover { opacity: 1; }
.header__city { display: flex; align-items: center; gap: 5px; font-size: 16px; color: var(--white); opacity: 0.8; white-space: nowrap; }
.header__nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { font-size: 17px; font-weight: 500; white-space: nowrap; }
.header__phone:hover { opacity: 0.75; }
.header__cta { display: flex; align-items: center; gap: 8px; padding: 11px 24px; border: 1.5px solid var(--white); border-radius: 100px; font-size: 16px; font-weight: 500; white-space: nowrap; color: var(--white); background: transparent; cursor: pointer; font-family: var(--font); transition: var(--transition); }
.header__social svg { width: 22px; height: 22px; }
.header__cta:hover { background: var(--white); color: var(--dark); }

/* NAV ITEMS */
.nav-item { position: relative; }
.nav-item__btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 18px; font-weight: 400; color: var(--white); transition: var(--transition); border-radius: var(--radius); white-space: nowrap; }
.nav-item__btn:hover { opacity: 0.75; }
.nav-item__icon { font-size: 18px; font-weight: 300; transition: transform var(--transition); }
.nav-item--open .nav-item__icon { transform: rotate(45deg); }

/* DROPDOWN */
.dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 0; background: var(--dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; min-width: 240px; box-shadow: 0 16px 48px rgba(0,0,0,0.5); animation: fadeDown 0.2s ease; z-index: 9999; }
.nav-item--open .dropdown { display: block; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Services dropdown — 2 columns */
.dropdown--services { min-width: 640px; max-height: 85vh; overflow-y: auto; }
.dropdown__inner { display: flex; }
.dropdown__services-list { padding: 12px 0; border-right: 1px solid rgba(255,255,255,0.08); min-width: 340px; max-width: 340px; }
.dropdown__service-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; cursor: pointer; font-size: 14px; }
.dropdown__service-item--active { background: rgba(255,255,255,0.06); }
.dropdown__arrow { opacity: 0.4; font-size: 12px; }
.dropdown__subservices { display: grid; grid-template-rows: 1fr; grid-template-columns: 1fr; align-items: start; flex: 1; padding: 12px 0; }
.dropdown__sub-list { grid-row: 1; grid-column: 1; padding: 0 20px; visibility: hidden; pointer-events: none; }
.dropdown__sub-list--active { visibility: visible; pointer-events: auto; }
.dropdown__sub-list a { display: block; padding: 10px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: opacity var(--transition); }
.dropdown__sub-list a:last-child { border-bottom: none; }
.dropdown__sub-list a:hover { opacity: 0.7; }

/* Company dropdown */
.dropdown--company { min-width: 200px; padding: 12px 0; }
.dropdown__list li a { display: block; padding: 10px 20px; font-size: 14px; transition: background var(--transition); }
.dropdown__list li a:hover { background: rgba(255,255,255,0.06); }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero__slider { width: 100%; height: 100%; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-image: var(--hero-bg); opacity: 0; transition: opacity 0.8s ease; }
.hero__slide--active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
.hero__content { position: absolute; bottom: 80px; left: 60px; max-width: 600px; }
.hero__cta-btn { display: inline-block; margin-bottom: 20px; padding: 16px 42px; background: #162f5a; color: var(--white); font-size: 21px; font-weight: 500; letter-spacing: 0.03em; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 100px; cursor: pointer; font-family: var(--font); transition: var(--transition); white-space: nowrap; }
.hero__cta-btn:hover { background: #254d8f; border-color: var(--white); }
.hero__content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 16px; }
.hero__content p { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.75); max-width: 380px; }
.hero__controls { position: absolute; bottom: 40px; right: 60px; display: flex; align-items: center; gap: 12px; }
.hero__counter { font-size: 14px; color: rgba(255,255,255,0.6); min-width: 40px; }
.hero__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.hero__btn:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* ===== STATS ===== */
.stats { background: var(--dark); }
.stats__inner { max-width: var(--container); margin: 0 auto; padding: 45px 40px; display: flex; align-items: center; gap: 0; }
.stats__item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.stats__item:first-child { padding-left: 32px; }
.stats__item:last-child { border-right: none; }
.stats__value { font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 200; white-space: nowrap; }
.stats__label { font-size: 18px; color: var(--text-muted); line-height: 1.3; }

/* ===== SERVICES ===== */
.services { padding: 90px 40px 90px; }
.services__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 48px; gap: 40px; }
.services__desc { max-width: 360px; color: var(--text-muted); font-size: 15px; text-align: right; line-height: 1.6; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 360px); grid-auto-rows: 360px; gap: 2px; }
.service-card { position: relative; background-size: cover; background-position: center; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; transition: var(--transition); cursor: pointer; }
.service-card__link { position: absolute; inset: 0; z-index: 1; }
.service-card:hover .service-card__overlay { opacity: 0.85; }
.service-card:hover .service-card__name { opacity: 0; }
.service-card:hover .service-card__hover { opacity: 1; transform: none; }
.service-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%); transition: var(--transition); }
.service-card__name { position: relative; font-size: 22px; font-weight: 600; line-height: 1.3; transition: opacity var(--transition); }

/* Hover overlay with subservices */
.service-card__hover { position: absolute; inset: 0; background: rgba(0,0,0,0.82); display: flex; flex-direction: column; justify-content: center; padding: 28px; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; z-index: 2; }
.service-card:hover .service-card__hover { opacity: 1; transform: none; }
.service-card__hover-title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.2); line-height: 1.3; }
.service-card__subs { display: flex; flex-direction: column; gap: 4px; }
.service-card__subs li a { display: block; font-size: 14px; color: rgba(255,255,255,0.8); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color var(--transition), padding-left var(--transition); line-height: 1.4; position: relative; z-index: 3; }
.service-card__subs li:last-child a { border-bottom: none; }
.service-card__subs li a:hover { color: var(--white); padding-left: 6px; }

/* ===== CTA FORM ===== */
.cta-form { background: var(--dark); position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.cta-form__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-image: var(--cta-bg-desk); opacity: 0.35; pointer-events: none; z-index: 0; }
.cta-form__inner { padding: 120px 80px; position: relative; z-index: 1; }
.cta-form__content { max-width: 460px; }
.cta-form__text h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.1; text-transform: uppercase; margin-bottom: 16px; color: #ffffff; }
.cta-form__text p { color: #ffffff; font-size: 20px; max-width: 380px; margin-bottom: 32px; line-height: 1.6; }
.cta-form__form { display: flex; flex-direction: column; gap: 0; }
.cta-form__form input[type="text"],
.cta-form__form input[type="tel"] { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 14px 18px; font-size: 14px; color: var(--white); font-family: var(--font); outline: none; transition: border-color var(--transition), background var(--transition); margin-bottom: 10px; width: 100%; box-sizing: border-box; }
.cta-form__form input::placeholder { color: rgba(255,255,255,0.45); }
.cta-form__form input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); }
.field-error { display: block; font-size: 12px; color: #ff6b6b; margin-top: -6px; margin-bottom: 8px; }
.modal__form .field-error { color: #d94040; }
.input--error { border-color: #ff6b6b !important; }
.cta-form__checkbox { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 32px; cursor: pointer; }
.cta-form__checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--white); }
.cta-form__checkbox span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== REVIEWS ===== */
.reviews--cards { padding: 80px 0; }
.reviews--cards .reviews__header { padding: 0 64px; margin-bottom: 48px; }
.reviews__slider-outer { display: flex; align-items: stretch; }
.reviews__arrow { flex: 0 0 64px; display: flex; align-items: center; justify-content: center; color: var(--yellow); transition: opacity var(--transition); }
.reviews__arrow:hover { opacity: 0.55; }
.reviews__overflow { flex: 1; overflow: hidden; }
.reviews__track { display: flex; gap: 16px; transition: transform 0.5s ease; }
.review-card { flex-shrink: 0; width: calc(25% - 12px); background: var(--dark); border: 1px solid rgba(255,250,236,0.35); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.review-card__logo { background: #fff; border-radius: 8px; padding: 6px 14px; display: inline-flex; align-items: center; align-self: flex-start; line-height: 1; }
.review-card__logo-y { color: #f00; font-weight: 900; font-size: 20px; font-family: Arial, sans-serif; }
.review-card__logo-t { color: #000; font-size: 18px; font-family: Arial, sans-serif; }
.review-card__top { display: flex; align-items: center; gap: 12px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.review-card__name { font-size: 14px; font-weight: 600; }
.review-card__stars { color: #f5c518; font-size: 13px; margin-top: 3px; letter-spacing: 1px; }
.review-card__text { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.7; flex: 1; }
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.reviews__all-wrap { text-align: center; margin-top: 28px; }
.reviews__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: background var(--transition); padding: 0; }
.reviews__dot.is-active { background: var(--yellow); }
.index-map { height: 600px; }
.index-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.index-map + .advantages { border-top: 4px solid #000; }

/* ===== ADVANTAGES ===== */
.advantages { background: var(--white); color: var(--dark); }
.advantages__inner { padding: 80px 60px; }
.advantages__header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.advantages__header .section-title { color: var(--dark); }
.advantages__header p { color: rgba(23,23,23,0.65); font-size: 15px; line-height: 1.7; align-self: end; }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.advantage-card__icon { color: var(--dark); margin-bottom: 16px; opacity: 0.8; }
.advantage-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--dark); }
.advantage-card p { font-size: 14px; color: rgba(23,23,23,0.65); line-height: 1.7; }

/* ===== WORKS ===== */
.works { padding: 90px 40px; }
.works__header { margin-bottom: 48px; }
.works__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 360px; gap: 2px; }
.works__item { overflow: hidden; background: var(--grey); }
.works__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.works__item:hover img { transform: scale(1.05); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.08); }
.footer__inner { padding: 64px 60px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }
.footer__logo { font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: inline-block; margin-bottom: 14px; }
.footer__col--brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { opacity: 0.6; transition: var(--transition); }
.footer__socials a:hover { opacity: 1; }
.footer__col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li { font-size: 14px; }
.footer__col ul a { color: rgba(255,255,255,0.75); transition: var(--transition); }
.footer__col ul a:hover { color: var(--white); }
.footer__col--contacts ul li { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer__bottom { padding: 20px 60px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: var(--text-muted); }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; height: 60vh; min-height: 420px; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-image: var(--hero-bg); }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.page-hero__content { position: relative; padding: 60px 60px; width: 100%; }
.page-hero__content h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; margin: 12px 0; }
.page-hero__content p { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 500px; margin-bottom: 24px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.5; }

/* ===== PRICE TABLE ===== */
.price-section { padding: 80px 40px; max-width: var(--container); margin: 0 auto; }
.price-section h2 { margin-bottom: 12px; }
.price-note { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; font-style: italic; }
.price-table { border-top: 1px solid rgba(255,255,255,0.1); }
.price-row { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.price-row__name { font-size: 15px; min-width: 0; }
.price-row__dots { flex: 1; border-bottom: 1px dashed rgba(255,255,255,0.2); margin-bottom: 2px; }
.price-row__price { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--white); }
.price-cta { margin-top: 40px; }

/* ===== SUBSERVICES ===== */
.subservices { padding: 80px 40px; max-width: var(--container); margin: 0 auto; }
.subservices h2 { margin-bottom: 40px; text-align: center; }
.subservices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 510px)); gap: 2px; justify-content: center; }
.subservice-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; background: var(--grey-2); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background var(--transition); }
.subservice-card:hover { background: #333335; }
.subservice-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.subservice-card p { font-size: 13px; color: var(--text-muted); }
.subservice-card__arrow { font-size: 20px; opacity: 0.4; flex-shrink: 0; transition: var(--transition); }
.subservice-card:hover .subservice-card__arrow { opacity: 1; transform: translateX(4px); }

/* ===== SERVICE DESCRIPTION ===== */
.service-desc { padding: 100px 40px; background: var(--grey); }
.service-desc__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 80px; }
.service-desc__block h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; line-height: 1.3; }
.service-desc__block p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.85; }
.service-desc__block:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc((100% - 80px) / 2); margin: 0 auto; }

/* ===== FAQ ===== */
.faq-section { padding: 80px 40px; }
.faq-section__inner { max-width: var(--container); margin: 0 auto; }
.faq-section h2 { margin-bottom: 40px; }
.faq-list { border-top: 1px solid rgba(255,255,255,0.1); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-item__btn { width: 100%; display: flex; align-items: flex-start; gap: 24px; padding: 28px 0; background: none; border: none; cursor: pointer; text-align: left; color: var(--white); }
.faq-item__btn:hover .faq-item__q { color: var(--yellow); }
.faq-item__num { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.08em; min-width: 24px; padding-top: 2px; }
.faq-item__q { flex: 1; font-size: 16px; font-weight: 500; line-height: 1.4; transition: color var(--transition); }
.faq-item__icon { font-size: 20px; font-weight: 300; color: var(--text-muted); transition: transform var(--transition); min-width: 20px; text-align: center; }
.faq-item__btn[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); color: var(--white); }
.faq-item__answer { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-item__answer p { padding: 0 0 28px 48px; font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* ===== PAGE HERO SHORT ===== */
.page-hero--short { height: 40vh; min-height: 320px; }
.page-hero--full { height: 100vh; min-height: 600px; }
.contacts-cta .cta-form__form input[type="text"],
.contacts-cta .cta-form__form input[type="tel"] { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); border-radius: 0; padding: 16px 0; color: var(--white); width: 100%; box-sizing: border-box; }
.contacts-cta .cta-form__form input::placeholder { color: rgba(255,255,255,0.4); }
.contacts-cta .cta-form__form input:focus { border-color: var(--white); background: transparent; }

/* ===== WORKS PAGE ===== */
.works-page { padding: 90px 40px; }
.works-page__header { margin-bottom: 48px; }
.works-page__header p { color: var(--text-muted); font-size: 15px; margin-top: 12px; }
.works-page__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 360px; gap: 2px; }
.works-page__item { overflow: hidden; }
.works-page__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.works-page__item:hover img { transform: scale(1.05); }

/* ===== FAQ PAGE ===== */
.faq-section--page { background: var(--grey); }
.faq-page__layout { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
.faq-page__aside { position: sticky; top: 100px; }
.faq-page__count { font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: 1; margin-bottom: 16px; }
.faq-page__hint { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.faq-page__contacts { display: flex; flex-direction: column; gap: 12px; }
.faq-page__link { font-size: 15px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 12px; transition: var(--transition); }
.faq-page__link:hover { color: var(--text-muted); }

/* ===== CONTACTS PAGE ===== */
.contacts-page { display: flex; flex-direction: column; }

/* Contacts page: header always dark + hide right block */
.page-contacts .header { background: rgba(15,15,17,0.95) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.page-contacts .header__right { display: none; }
.page-contacts .dropdown--services { left: auto; right: 0; }

/* ===== SUBSERVICE PAGE ===== */
.page-subservice .contacts-cta .cta-form__inner { padding-top: 80px; }
.page-subservice .contacts-cta__inner { text-align: center; }
.page-subservice .contacts-cta__inner .cta-form__form { text-align: left; max-width: 420px; margin: 0 auto; }
.page-subservice .price-section { text-align: center; }
.page-subservice .price-section h2 { text-align: center; }
.page-subservice .price-note { text-align: center; margin: 0 auto; }
.page-subservice .price-table { text-align: left; }
.page-subservice .price-cta { text-align: center; }
.page-subservice .faq-section h2 { text-align: center; }
.page-subservice .reviews__header { text-align: center; }
.page-subservice .reviews__dots { justify-content: center; }
.page-subservice .reviews__all-wrap { text-align: center; }

/* Section 1: fullscreen map */
.contacts-map-section { position: relative; height: 100vh; overflow: hidden; }
/* Extend only upward to slide under the header; bottom/sides flush so map controls stay visible */
.contacts-map-full { position: absolute; top: -80px; left: 0; right: 0; bottom: 0; }
.contacts-map-full iframe,
.contacts-map-full > div { width: 100% !important; height: 100% !important; border: none; display: block; }
/* Blocks all map clicks/scroll */
.contacts-map-blocker { position: absolute; inset: 0; z-index: 1; }

/* Floating info card */
.contacts-card { position: absolute; top: 50%; right: 60px; transform: translateY(-50%); z-index: 2; width: 480px; background: var(--dark); border-radius: 20px; padding: 48px 44px; display: flex; flex-direction: column; gap: 32px; }
.contacts-card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contacts-card__title { font-size: clamp(1.8rem, 2.2vw, 2.2rem); font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.contacts-card__slash { color: var(--text-muted); font-weight: 300; }
.contacts-card__icons { display: flex; gap: 10px; flex-shrink: 0; }
.contacts-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.contacts-card__icon:hover { background: rgba(255,255,255,0.22); }
.contacts-card__icon svg { width: 24px; height: 24px; }
/* Телефон чуть меньше — умещается в одну строку */
.contacts-card__phone { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; transition: opacity var(--transition); white-space: nowrap; }
.contacts-card__phone:hover { opacity: 0.75; }
.contacts-card__row { display: flex; flex-direction: column; gap: 8px; }
.contacts-card__label { font-size: 14px; color: var(--text-muted); }
.contacts-card__value { font-size: 18px; font-weight: 400; line-height: 1.5; }

/* Section 2: CTA form */
.contacts-cta { background: var(--dark); min-height: 100vh; display: flex; align-items: center; }
.contacts-cta__inner { max-width: 640px; margin: 0 auto; padding: 80px 40px; position: relative; z-index: 1; width: 100%; }
.contacts-cta__inner h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.1; text-transform: uppercase; margin-bottom: 16px; }
.contacts-cta__inner p { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.contacts-cta .cta-form__form textarea { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding: 16px 0; font-size: 15px; color: var(--white); font-family: var(--font); outline: none; transition: border-color var(--transition); margin-bottom: 8px; resize: none; width: 100%; }
.contacts-cta .cta-form__form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contacts-cta .cta-form__form textarea:focus { border-color: var(--white); }

/* ===== 404 ===== */
.not-found { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 40px; text-align: center; }
.not-found__inner { position: relative; display: flex; align-items: center; justify-content: center; }
.not-found__bg { font-size: clamp(180px, 30vw, 340px); font-weight: 700; line-height: 1; color: rgba(255,255,255,0.07); user-select: none; letter-spacing: -0.02em; }
.not-found__center { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.not-found__error { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: #4fc8e8; letter-spacing: 0.04em; }
.not-found__desc { color: rgba(255,255,255,0.45); font-size: 15px; }
.not-found__center .btn { margin-top: 8px; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.modal__box { position: relative; z-index: 1; background: #f5f0e8; color: #111; border-radius: 24px; padding: 52px 48px; width: 100%; max-width: 540px; transform: translateY(24px) scale(0.97); transition: transform 0.25s; }
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 20px; right: 24px; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #111; opacity: 0.5; transition: opacity 0.2s; }
.modal__close:hover { opacity: 1; }
.modal__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; margin-bottom: 12px; color: #111; }
.modal__sub { font-size: 15px; color: #666; margin-bottom: 36px; text-align: center; }
.modal__form { display: flex; flex-direction: column; gap: 0; }
.modal__form input[type="text"],
.modal__form input[type="tel"] { background: transparent; border: none; border-bottom: 1.5px solid rgba(0,0,0,0.25); padding: 14px 0; font-size: 16px; color: #111; font-family: var(--font); outline: none; transition: border-color 0.2s; margin-bottom: 8px; }
.modal__form input::placeholder { color: rgba(0,0,0,0.35); }
.modal__form input:focus { border-color: #111; }
.modal__checkbox { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 32px; cursor: pointer; }
.modal__checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: #111; }
.modal__checkbox span { font-size: 12px; color: #666; line-height: 1.5; }
.modal__submit { background: transparent; border: 2px solid #111; border-radius: 100px; padding: 18px 32px; font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: background 0.2s, color 0.2s; }
.modal__submit:hover { background: #111; color: #f5f0e8; }

.hero__cta-btn--mobile { display: none; }
.hero__video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 260px); }
  .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .works-page__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .faq-page__layout { grid-template-columns: 200px 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .header__phone, .header__cta { display: none; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form__content { max-width: 100%; }
  /* review-card width set by JS */
  .stats__inner { gap: 0; }
  .stats__item { border-right: 1px solid rgba(255,255,255,0.1); padding: 0 20px; flex: 1; justify-content: center; }
  .stats__item:last-child { border-right: none; }
}

/* ===== MOBILE NAV ===== */
.mobile-nav { position: fixed; inset: 0; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.mobile-nav__drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 92vw); background: var(--dark); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-nav.is-open .mobile-nav__drawer { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.mobile-nav__logo { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-nav__close { font-size: 28px; color: var(--white); opacity: 0.5; transition: opacity 0.2s; line-height: 1; }
.mobile-nav__close:hover { opacity: 1; }
.mobile-nav__body { flex: 1; padding: 20px 24px; overflow-y: auto; }
.mobile-nav__section { margin-bottom: 28px; }
.mobile-nav__group-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav__link { display: block; font-size: 15px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--white); transition: opacity 0.2s; }
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { opacity: 0.65; }
.mobile-nav__footer { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.mobile-nav__phone { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.mobile-nav__cta { padding: 13px 20px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--white); text-align: center; font-family: var(--font); transition: var(--transition); }
.mobile-nav__cta:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
  /* Header */
  .header__inner { padding: 14px 20px; }
  .header__nav { display: none; }
  .header__city { display: none; }
  .burger { display: flex; }
  .burger span { transition: transform 0.25s ease, opacity 0.25s ease; }
  .burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger--open span:nth-child(2) { opacity: 0; }
  .burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero__content { left: 20px; right: 20px; bottom: 80px; max-width: none; }
  .hero__content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero__cta-btn { font-size: 16px; padding: 12px 32px; }
  .hero__cta-btn--mobile { display: none; }
  .hero__controls { right: 16px; bottom: 20px; }

  /* Stats */
  .stats__inner { padding: 20px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; align-items: center; }
  .stats__item { display: contents; }
  .stats__value { font-size: clamp(1.6rem, 6vw, 2.2rem); white-space: nowrap; }
  .stats__label { font-size: 15px; }

  /* Services */
  .services { padding: 48px 16px; }
  .services__header { flex-direction: column; gap: 12px; }
  .services__desc { text-align: left; }
  .services__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 340px; gap: 4px; }
  .service-card__link { pointer-events: none; }
  .service-card__name { display: none; }
  .service-card__overlay { opacity: 0.25; }
  .service-card__hover { display: flex; opacity: 1; transform: none; background: rgba(0,0,0,0.34); }
  .service-card__hover-title { font-size: 20px; margin-bottom: 12px; padding-bottom: 10px; }
  .service-card__subs li a { font-size: 15px; padding: 5px 0; }

  /* CTA form */
  .cta-form__inner { padding: 48px 20px; }
  .cta-form__text h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .cta-form__text p { font-size: 15px; }
  .cta-form__bg { background-image: var(--cta-bg-mob, var(--cta-bg-desk)); }
  .cta-form__form .btn { width: 100%; justify-content: center; }

  /* Reviews */
  .reviews--cards { padding: 48px 0; }
  .reviews--cards .reviews__header { padding: 0 20px; }
  .reviews__arrow { flex: 0 0 40px; }
  .review-card { width: calc(100vw - 80px); }

  /* Advantages */
  .advantages { background: var(--white); }
  .advantages__inner { padding: 48px 20px; }
  .advantages__header { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .advantages__grid { grid-template-columns: 1fr; gap: 24px; }

  /* Works */
  .works { padding: 48px 16px; }
  .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer__bottom { padding: 14px 20px; }

  /* Page hero */
  .page-hero { height: 52vh; min-height: 300px; background-size: cover; background-position: center top; background-image: var(--hero-bg-mobile, var(--hero-bg)); }
  .page-hero--full { height: 100vh; min-height: 500px; background-size: cover; background-position: center top; }
  .page-hero__content { padding: 28px 20px; }
  .page-hero__content h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin: 8px 0; }
  .hero__slide { background-size: cover; background-position: center top; background-image: var(--hero-bg-mobile, var(--hero-bg)); }

  /* Price section */
  .price-section { padding: 40px 20px; }
  .price-row { flex-wrap: wrap; gap: 4px; }
  .price-row__dots { display: none; }
  .price-row__name { flex: 1 1 100%; }
  .price-row__price { color: rgba(255,255,255,0.7); font-size: 14px; }

  /* Subservices */
  .subservices { padding: 40px 20px; }
  .subservices__grid { grid-template-columns: 1fr; }

  /* Service description */
  .service-desc { padding: 40px 20px; }
  .service-desc__inner { grid-template-columns: 1fr; gap: 24px; }
  .service-desc__block:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; margin: 0; }

  /* FAQ */
  .faq-section { padding: 40px 20px; }
  .faq-item__answer p { padding-left: 0; }
  .faq-item__btn { gap: 12px; padding: 20px 0; }
  .faq-item__num { display: none; }

  /* Works page */
  .works-page { padding: 40px 20px; }
  .works-page__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }

  /* FAQ page */
  .faq-page__layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-page__aside { position: static; }

  /* Contacts */
  .contacts-map-section { height: auto; overflow: visible; display: block; }
  .contacts-map-full { position: relative; inset: 0; height: 66vw; min-height: 312px; overflow: hidden; }
  .contacts-card { position: relative; top: auto; right: auto; transform: none; width: 100%; border-radius: 0; padding: 32px 20px; gap: 24px; }
  .contacts-cta__inner { padding: 48px 20px; }

  /* Modal */
  .modal__box { padding: 36px 24px; margin: 0 16px; border-radius: 16px; max-width: calc(100% - 32px); }
  .modal__title { font-size: 1.6rem; }
  .modal__sub { font-size: 14px; }
  .modal__submit { width: 100%; }

  /* Burger — минимум 44×44px для удобного тапа */
  .burger { padding: 10px 8px; min-height: 44px; min-width: 44px; justify-content: center; }

  /* iOS fix: инпуты < 16px вызывают авто-зум при фокусе */
  .cta-form__form input[type="text"],
  .cta-form__form input[type="tel"] { font-size: 16px; }
  .contacts-cta .cta-form__form textarea { font-size: 16px; }

  /* 404 */
  .not-found { min-height: 70vh; padding: 20px; }
}

