/* ==========================================================
   SAKURA — швейное производство. Основные стили сайта.
   ========================================================== */

/* ---------- Шрифты (локально, без Google Fonts) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff") format("woff"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --white: #fff;
  --milk: #fbf7f3;
  --cream: #f6eee9;
  --rose: #ead4ce;
  --rose-soft: #f5e8e5;
  --rose-mid: #e7b3b5;
  --rose-dark: #a86f66;
  --rose-deep: #8a5a4f;
  --graphite: #29262d;
  --graphite-soft: #514b55;
  --muted: #7a7079;
  --line: rgba(75, 60, 65, 0.12);
  --shadow: 0 28px 70px rgba(41, 38, 45, 0.13);
  --soft-shadow: 0 14px 38px rgba(41, 38, 45, 0.07);
  --grad-dark: linear-gradient(135deg, #2f2a31 0%, #5a4447 60%, #8f675f 100%);
  --radius: 28px;
  --container: 1180px;
  --header-h: 76px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--milk);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid rgba(168, 111, 102, 0.55); outline-offset: 3px; border-radius: 8px; }

.ico { width: 1em; height: 1em; flex: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--graphite); color: #fff;
}
.skip-link:focus { top: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 243, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(41, 38, 45, 0.05); }

.nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 48px; height: 48px; flex: none; }
.logo-text strong {
  display: block; font-family: var(--serif); font-size: 26px; font-weight: 700;
  line-height: 1; letter-spacing: 0.04em;
}
.logo-text small {
  display: block; margin-top: 4px; color: var(--muted);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}

.menu { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--graphite-soft); }
.menu a { padding: 9px 13px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.menu a:hover { background: rgba(168, 111, 102, 0.1); color: var(--graphite); }
.menu .menu-phone { color: var(--rose-deep); white-space: nowrap; }
.menu .menu-button { margin-left: 6px; padding: 11px 18px; color: #fff; background: var(--graphite); }
.menu .menu-button:hover { background: var(--rose-deep); color: #fff; }

.burger {
  display: none; width: 46px; height: 46px; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--graphite); font-size: 22px;
}

/* ---------- Кнопки ---------- */
.primary-button, .outline-button, .ghost-button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.primary-button .ico, .outline-button .ico, .ghost-button .ico { font-size: 19px; }
.primary-button { color: #fff; background: var(--grad-dark); box-shadow: 0 14px 32px rgba(41, 38, 45, 0.22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(41, 38, 45, 0.28); }
.primary-button:disabled { opacity: .7; cursor: progress; transform: none; }
.outline-button { color: var(--graphite); background: rgba(255,255,255,.7); border-color: var(--line); }
.outline-button:hover { background: #fff; border-color: rgba(168,111,102,.4); transform: translateY(-2px); }
.outline-button.small { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.ghost-button { color: var(--graphite); background: transparent; border-color: rgba(41,38,45,.18); }
.ghost-button:hover { background: rgba(255,255,255,.75); transform: translateY(-2px); }
.ghost-button .ico { color: #2a9fd8; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 12px 16px 0; border-radius: 40px; z-index: 0;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(234, 212, 206, .75), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(245, 232, 229, .9), transparent 70%),
    linear-gradient(160deg, #fbf6f2, #f6ece7);
}
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .7; }
.petal { transform-box: fill-box; transform-origin: center; }
.p1 { animation: drift 11s ease-in-out infinite; }
.p2 { animation: drift 13s ease-in-out -4s infinite; }
.p3 { animation: drift 12s ease-in-out -2s infinite reverse; }
.p4 { animation: drift 14s ease-in-out -6s infinite; }
.p5 { animation: drift 10s ease-in-out -3s infinite reverse; }
@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 10px 14px; rotate: 18deg; }
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center;
}
.hero-content { min-width: 0; }

.hero-label, .mini-label {
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  color: var(--rose-deep); background: rgba(255,255,255,.75); border: 1px solid rgba(168,111,102,.18);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.hero h1 {
  margin-top: 22px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: 0;
  color: var(--graphite); text-wrap: balance;
}
.hero-lead { max-width: 500px; margin-top: 20px; color: var(--graphite-soft); font-size: 19px; line-height: 1.55; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line); color: var(--graphite-soft); font-size: 15px; font-weight: 500;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta .ico { font-size: 18px; color: var(--rose-dark); }
.hero-meta a:hover { color: var(--rose-deep); }

.hero-visual { position: relative; padding-bottom: 36px; }
.hero-photo {
  position: relative; overflow: hidden; border-radius: 32px;
  aspect-ratio: 4 / 3.1; background: var(--cream);
  box-shadow: var(--shadow);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  background: linear-gradient(180deg, transparent 60%, rgba(41,38,45,.12));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.floating-note {
  position: absolute; left: -28px; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  max-width: 320px; padding: 18px 22px 18px 18px; border-radius: 22px;
  color: #fff; background: var(--grad-dark); box-shadow: var(--shadow);
}
.floating-note__icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255,255,255,.14); font-size: 24px;
}
.floating-note strong { display: block; font-size: 18px; line-height: 1.2; }
.floating-note div span { display: block; margin-top: 3px; color: rgba(255,255,255,.75); font-size: 14px; }

/* ---------- Общие секции ---------- */
.section { padding: 88px 0; }

.section-title { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; text-align: center; }
.section-title::after {
  content: ""; width: 72px; height: 10px; margin-top: 16px;
  background:
    radial-gradient(circle, var(--rose-mid) 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(90deg, transparent, var(--rose-dark) 30%, transparent 30% 70%, var(--rose-dark) 70%, transparent) center / 100% 1px no-repeat;
}

.section-title h2, .about-text h2, .order-info h2, .contacts-panel h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: .01em; text-wrap: balance;
}

.center { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Наши работы ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.work-card { min-width: 0; }
.work-image {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  padding: 0; border: 0; border-radius: 22px; background: var(--cream);
  box-shadow: var(--soft-shadow);
}
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--graphite); background: rgba(255,255,255,.88); font-size: 18px;
  opacity: 0; transform: translateY(6px); transition: .25s ease;
}
.work-image:hover img, .work-image:focus-visible img { transform: scale(1.05); }
.work-image:hover .work-zoom, .work-image:focus-visible .work-zoom { opacity: 1; transform: none; }
.work-caption { padding: 14px 4px 0; }
.work-caption h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.work-caption p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.is-hidden { display: none; }
.outline-button .count {
  min-width: 26px; padding: 2px 8px; border-radius: 999px;
  background: var(--rose-soft); color: var(--rose-deep); font-size: 13px;
}

/* ---------- О нас и преимущества ---------- */
.about-section { background: linear-gradient(180deg, transparent, var(--cream) 18%, var(--cream) 82%, transparent); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about-text { position: sticky; top: calc(var(--header-h) + 32px); }
.about-text p { margin-top: 20px; color: var(--graphite-soft); font-size: 17px; }
.about-text .outline-button { margin-top: 28px; }

.advantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.advantage-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 22px; border-radius: 22px; background: #fff;
  border: 1px solid rgba(168,111,102,.08); box-shadow: var(--soft-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advantage-icon, .contact-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: var(--rose-soft); color: var(--rose-deep); font-size: 26px;
}
.advantage-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.advantage-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- Этапы ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 35px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(168,111,102,.4) 0 10px, transparent 10px 20px);
}
.step-card { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.step-number {
  width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px;
  border-radius: 50%; color: #fff; background: var(--grad-dark);
  box-shadow: 0 0 0 8px var(--milk), 0 12px 28px rgba(41,38,45,.18);
  font-family: var(--serif); font-size: 26px; font-weight: 700;
}
.step-card h3 { font-size: 17px; font-weight: 600; }
.step-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- Заявка ---------- */
.order-section { padding-top: 32px; }
.order-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 44px;
  border-radius: 36px; color: #fff; background:
    radial-gradient(40% 60% at 10% 0%, rgba(255,255,255,.12), transparent 70%),
    var(--grad-dark);
  box-shadow: var(--shadow);
}
.order-info { align-self: center; }
.order-info .mini-label { color: #f3d3cd; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.order-info h2 { margin-top: 18px; }
.order-info > p { max-width: 460px; margin-top: 16px; color: rgba(255,255,255,.78); font-size: 16.5px; }
.order-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; font-size: 15px; }
.order-alt span { width: 100%; color: rgba(255,255,255,.6); font-size: 14px; }
.order-alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.order-alt a:hover { border-color: #fff; }
.order-alt .ico { font-size: 18px; }

.order-form {
  display: grid; gap: 14px; padding: 28px; border-radius: 26px;
  color: var(--graphite); background: #fff;
}
.field { display: grid; gap: 7px; }
.field span { color: var(--graphite-soft); font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 14px; outline: none;
  background: var(--milk); color: var(--graphite); font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: rgba(168,111,102,.55); box-shadow: 0 0 0 4px rgba(168,111,102,.12); }
::placeholder { color: #a39aa1; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; padding: 0; accent-color: var(--rose-deep); }
.consent a { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 2px; }
.field.invalid input, .field.invalid textarea { border-color: #d2645c; box-shadow: 0 0 0 4px rgba(210,100,92,.12); }
.consent.invalid { color: #b2453e; }
.order-form .primary-button { width: 100%; margin-top: 4px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.flash-list { display: grid; gap: 10px; }
.flash { padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.flash-success { color: #1f5a3c; background: #e1f5ea; }
.flash-error { color: #8a2f2f; background: #fde8e6; }

/* ---------- Контакты ---------- */
.contacts-section { padding: 88px 0 72px; }
.contacts-layout {
  display: grid; grid-template-columns: 420px 1fr; overflow: hidden;
  border-radius: 32px; background: #fff; box-shadow: var(--soft-shadow); border: 1px solid var(--line);
}
.contacts-panel { padding: 44px 40px; background: var(--rose-soft); }
.contact-list { display: grid; gap: 16px; margin-top: 26px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; color: var(--graphite-soft); font-weight: 500; }
.contact-list a:hover { color: var(--rose-deep); }
.contact-icon { width: 44px; height: 44px; border-radius: 14px; background: #fff; font-size: 21px; }
.contact-actions { display: grid; gap: 10px; margin-top: 30px; }
.contact-actions .outline-button { background: #fff; }

.map-wrap { position: relative; min-height: 460px; background: var(--cream); }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; text-align: center; color: var(--graphite-soft);
}
.map-fallback .contact-icon { width: 56px; height: 56px; font-size: 26px; }
.map { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- Подвал ---------- */
.footer { padding: 34px 0; color: var(--muted); background: var(--cream); border-top: 1px solid var(--line); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.footer-logo .logo-mark { width: 40px; height: 40px; }
.footer-logo span { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--graphite); letter-spacing: .04em; }
.footer-logo small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a:hover { color: var(--rose-deep); }

/* ---------- Плавающая кнопка Telegram ---------- */
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px; border-radius: 999px;
  color: #fff; background: var(--grad-dark);
  box-shadow: 0 14px 34px rgba(41,38,45,.3);
  font-weight: 700; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tg-float .ico { font-size: 22px; }
.tg-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(41,38,45,.36); }

/* ---------- Просмотр фото ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: rgba(30, 27, 32, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal.active { display: grid; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow);
}
.modal-media { flex: 1; min-height: 0; background: var(--cream); display: grid; place-items: center; }
.modal-media img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; object-fit: contain; }
.modal-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.modal-caption h3 { font-family: var(--serif); font-size: 22px; }
.modal-caption p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.modal-counter { margin-left: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.modal-close, .modal-nav {
  position: absolute; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; color: var(--graphite); background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.15); font-size: 22px; transition: background .2s ease, transform .2s ease;
}
.modal-close:hover, .modal-nav:hover { background: #fff; transform: scale(1.06); }
.modal-close { top: 14px; right: 14px; }
.modal-nav { top: calc(50% - 50px); }
.modal-nav.prev { left: 14px; }
.modal-nav.next { right: 14px; }

/* ---------- Политика конфиденциальности ---------- */
.legal { max-width: 820px; padding: 56px 0 88px; }
.legal h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.legal-meta { margin-top: 10px; color: var(--muted); }
.legal h2 { margin-top: 34px; font-size: 20px; font-weight: 600; }
.legal p, .legal li { margin-top: 12px; color: var(--graphite-soft); }
.legal ul { padding-left: 22px; list-style: disc; }
.legal a { color: var(--rose-deep); text-decoration: underline; }

/* ---------- Анимация появления (только при работающем JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   Адаптив
   ========================================================== */
@media (max-width: 1180px) {
  .menu .menu-phone { display: none; }
}

@media (max-width: 1050px) {
  .hero-grid, .about-grid, .order-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { max-width: 720px; }
  .floating-note { left: 16px; }
  .about-text { position: static; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contacts-layout { grid-template-columns: 1fr; }
  .map-wrap, .map { min-height: 360px; }

  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .steps::before { left: 34px; right: auto; top: 30px; bottom: 90px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(168,111,102,.4) 0 10px, transparent 10px 20px); }
  .step-card { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; text-align: left; padding: 0 0 26px; }
  .step-number { margin: 0; }
  .step-body { padding-top: 10px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .container { width: min(100% - 32px, var(--container)); }

  .logo-mark { width: 42px; height: 42px; }
  .logo-text strong { font-size: 22px; }
  .logo-text small { font-size: 10px; letter-spacing: .12em; }

  .burger { display: grid; }
  .menu {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px);
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: var(--shadow);
    font-size: 16px;
  }
  .menu.open { display: flex; animation: fadeIn .18s ease; }
  .menu a { padding: 13px 16px; text-align: left; }
  .menu .menu-phone { display: block; }
  .menu .menu-button { margin: 6px 0 0; text-align: center; }

  .hero { padding: 28px 0 56px; }
  .hero::before { inset: 6px 8px 0; border-radius: 28px; }
  .petals { opacity: .5; }
  .p1, .p2 { display: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); margin-top: 18px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions a { flex: 1 1 100%; }
  .hero-meta { margin-top: 24px; padding-top: 18px; gap: 10px 20px; font-size: 14.5px; }
  .hero-photo { border-radius: 24px; aspect-ratio: 4 / 3; }
  .hero-visual { padding-bottom: 46px; }
  .floating-note { left: 12px; right: 12px; max-width: none; padding: 14px 16px; border-radius: 18px; }
  .floating-note__icon { width: 40px; height: 40px; font-size: 21px; }
  .floating-note strong { font-size: 16px; }

  .section { padding: 60px 0; }
  .section-title { margin-bottom: 28px; }

  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-image { border-radius: 16px; }
  .work-zoom { opacity: 1; transform: none; width: 32px; height: 32px; right: 8px; bottom: 8px; font-size: 15px; }
  .work-caption h3 { font-size: 15px; }
  .work-caption p { font-size: 13px; }

  .advantages { grid-template-columns: 1fr; gap: 12px; }
  .advantage-card { grid-template-columns: 46px 1fr; gap: 14px; padding: 18px; border-radius: 18px; }
  .advantage-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 23px; }

  .step-card { grid-template-columns: 58px 1fr; gap: 14px; }
  .step-number { width: 58px; height: 58px; font-size: 22px; }
  .steps::before { left: 28px; }
  .step-body { padding-top: 6px; }

  .order-card { padding: 26px 18px 18px; border-radius: 28px; gap: 26px; }
  .order-form { padding: 20px 16px; border-radius: 20px; }

  .contacts-section { padding: 60px 0 48px; }
  .contacts-layout { border-radius: 24px; }
  .contacts-panel { padding: 30px 20px; }
  .map-wrap, .map { min-height: 300px; }

  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 96px; }

  .tg-float { right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .tg-float span { display: none; }
  .tg-float .ico { font-size: 26px; margin-left: -2px; }

  .modal { padding: 0; }
  .modal-box { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .modal-media img { max-height: calc(100vh - 110px); }
  .modal-nav { top: auto; bottom: 86px; }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
