@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #faf5f2;
  --surface: #ffffff;
  --surface-2: #f3eeea;
  --text: #0f172a;
  --muted: #57534e;
  --soft: #78716c;
  --line: #e7e5e4;
  --primary: #78716c;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-glow: rgba(217, 119, 6, 0.25);
  --danger: #dc2626;
  --radius: 22px;
  --radius-sm: 12px;
  --header: 78px;
  --font-body: "Josefin Sans", system-ui, sans-serif;
  --font-heading: "Cinzel", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10000;
  padding: 10px 16px; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.header--scrolled {
  background: rgba(250, 245, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--primary), #a8a29e);
  box-shadow: 0 8px 22px rgba(120, 113, 108, 0.35);
  font-size: 1rem;
}
.logo__text span { color: var(--accent); }
.nav__list { display: flex; gap: 22px; flex-wrap: wrap; }
.nav__link {
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
  transition: color 0.2s; cursor: pointer;
}
.nav__link:hover, .nav__link--active { color: var(--accent); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; white-space: nowrap;
  cursor: pointer;
}
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { width: 24px; height: 2px; background: var(--text); display: block; transition: 0.25s; }
.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); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #b45309);
  color: #fff; box-shadow: 0 10px 28px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  padding: calc(var(--header) + 48px) 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(217, 119, 6, 0.08), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.82rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.stat strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--accent); }
.stat span { font-size: 0.82rem; color: var(--soft); }
.hero__visual {
  position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  min-height: 380px;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35));
}

.section { padding: 72px 0; }
.section--alt { background: var(--surface-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section__head p { color: var(--muted); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.service-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(217, 119, 6, 0.35);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.service-card__price { color: var(--accent); font-weight: 700; font-size: 0.88rem; }

.benefits {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.benefit {
  display: flex; gap: 14px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.benefit__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.benefit h3 { font-size: 1rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.benefit p { color: var(--muted); font-size: 0.9rem; }

.calc {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start;
}
.section--calc {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(217, 119, 6, 0.07), transparent),
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.calc__form { padding: 28px 28px 24px; }
.calc__result { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header) + 20px); }
.calc__result-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #1c1917 0%, #292524 55%, #44403c 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.28);
}
.calc__result-top { margin-bottom: 22px; }
.calc__result-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 8px;
}
.calc__lead { padding: 24px; }
.calc__step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.calc__step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.calc__step--hidden { display: none; }
.calc__step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.9rem;
}
.calc__step-title { font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
.calc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-tab {
  text-align: left;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.calc-tab:hover { border-color: #d6d3d1; transform: translateY(-1px); }
.calc-tab--active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  box-shadow: 0 10px 24px var(--accent-glow);
}
.calc-tab__icon { display: block; font-size: 1.1rem; color: var(--accent); margin-bottom: 6px; }
.calc-tab__label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.calc-tab__hint { display: block; color: var(--muted); font-size: 0.78rem; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}
.calc-chip:hover { border-color: #d6d3d1; color: var(--text); }
.calc-chip--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.calc-area__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.calc-area__head label { font-weight: 700; font-size: 0.95rem; }
.calc-area__head strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
}
.calc-area__range {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #fbbf24 100%);
  outline: none;
  margin: 6px 0 8px;
}
.calc-area__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  cursor: pointer;
}
.calc-area__range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  cursor: pointer;
}
.calc-area__scale {
  display: flex; justify-content: space-between;
  color: var(--soft); font-size: 0.75rem; margin-bottom: 10px;
}
.calc-area__input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
}
.calc-breakdown { display: grid; gap: 14px; }
.calc-breakdown__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.86rem; margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
}
.calc-breakdown__meta strong { color: #fff; font-size: 0.95rem; }
.calc-breakdown__track {
  height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.calc-breakdown__fill {
  display: block; height: 100%; border-radius: inherit;
  transition: width 0.35s ease;
}
.calc-breakdown__fill--work { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.calc-breakdown__fill--mat { background: linear-gradient(90deg, #fcd34d, #fde68a); }
.calc-breakdown__total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}
.calc-breakdown__total strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fde68a;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; min-height: 1em; }
.calc__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.05;
  margin: 0 0 10px;
}
.calc__note { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; margin-bottom: 0; line-height: 1.55; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); position: relative;
}
.step__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 10px;
}
.step h3 { font-size: 0.95rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.step p { color: var(--muted); font-size: 0.86rem; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 10px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent); }
.faq p { color: var(--muted); padding-bottom: 16px; font-size: 0.92rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info { padding: 28px; }
.contact-info h2 { margin-bottom: 12px; }
.contact-info p { color: var(--muted); margin-bottom: 16px; }
.contact-list li { margin-bottom: 10px; color: var(--muted); }
.contact-list strong { color: var(--text); }

.gallery-preview {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery-preview a, .gallery-preview button {
  border: none; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3; position: relative;
}
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-preview a:hover img, .gallery-preview button:hover img { transform: scale(1.04); }

.gallery-page { padding-top: calc(var(--header) + 32px); padding-bottom: 72px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  border: none; padding: 0; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-item figcaption { padding: 12px 14px; font-size: 0.88rem; color: var(--muted); }

.lightbox {
  border: none; padding: 0; background: rgba(15, 23, 42, 0.88);
  max-width: none; max-height: none; width: 100%; height: 100%;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox__inner {
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
}
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox__caption { color: #fff; margin-top: 12px; text-align: center; max-width: 700px; }
.lightbox__close {
  position: fixed; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 1.4rem;
  cursor: pointer;
}

.footer {
  padding: 36px 0; border-top: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 0.88rem;
}
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: #166534; color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; z-index: 9999; transition: transform 0.3s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.toast--error { background: var(--danger); }
.toast--visible { transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s, transform 0.55s; }
.reveal--visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero__grid, .calc, .contact-grid { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--header); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px 20px; transform: translateY(-120%);
    transition: transform 0.25s;
  }
  .nav--open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 12px; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .services-grid, .benefits, .process, .gallery-grid { grid-template-columns: 1fr; }
  .calc-tabs { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .gallery-item { transition: none; }
}

.seo-local { padding-top: 0; }
.seo-local__intro {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 1rem;
  text-align: center;
}
.seo-local__fold {
  max-width: 920px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.seo-local__fold summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.seo-local__fold summary::-webkit-details-marker { display: none; }
.seo-local__fold summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
}
.seo-local__fold[open] summary {
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.seo-local__fold[open] summary::after { content: '−'; }
.seo-local__fold-body { padding: 20px; }
.seo-local__text {
  color: var(--muted);
  max-width: 920px;
  margin: 0 auto 16px;
  line-height: 1.75;
  font-size: 0.95rem;
}
.seo-local__text a { color: var(--accent); font-weight: 600; }
.seo-oblast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.seo-oblast { padding: 22px; }
.seo-oblast h3 { font-size: 1rem; margin-bottom: 10px; font-family: var(--font-heading); }
.seo-cities {
  columns: 2;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
}
.seo-cities li { margin-bottom: 5px; break-inside: avoid; color: var(--muted); }
.seo-queries { margin-top: 28px; }
.seo-queries__title { font-size: 1rem; margin-bottom: 12px; text-align: center; font-family: var(--font-heading); }
.seo-queries__cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.seo-query {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}
@media (max-width: 768px) {
  .seo-oblast-grid { grid-template-columns: 1fr; }
  .seo-cities { columns: 1; }
}
