/* ============================================================
   АВАНГАРДСТРОЙ — редизайн 2026 (исправлено и улучшено)
   ============================================================ */
:root {
  --ink: #141a17;
  --dark: #101512;
  --cream: #f4f1ea;
  --lime: #d7f36b;
  --orange: #ff9d38;
  --muted: #6b736d;
  --line: rgba(20, 26, 23, 0.14);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --r-lg: 26px;
  --r-md: 18px;
  --shadow: 0 24px 60px -24px rgba(16, 21, 18, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
section[id], article[id] { scroll-margin-top: 96px; }
.container { width: min(1240px, calc(100% - 64px)); margin: auto; }

/* Индикатор прогресса скролла */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Зернистость */
.grain {
  position: fixed; inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0; left: 0;
  width: 100%;
  color: #fff;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  background: rgba(16, 21, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 190px; height: auto; }
.main-nav { display: flex; gap: 6px; font-size: 12px; letter-spacing: 0.02em; }
.main-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 100px;
  opacity: 0.75;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
}
.main-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-action {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 11px 18px;
  font-size: 12px; font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.header-action i { font-style: normal; transition: transform 0.3s var(--ease); }
.header-action:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.header-action:hover i { transform: translate(2px, -2px); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }
.menu-toggle i {
  display: block; width: 24px; height: 1.5px;
  background: #fff; margin: 2.5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle.is-open i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open i:nth-child(2) { opacity: 0; }
.menu-toggle.is-open i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 680px;
  height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 75% 0%, rgba(215, 243, 107, 0.1), transparent 55%),
    linear-gradient(130deg, #2c4237, #0e1712 60%, #1d2924);
}
.hero-backdrop:after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 18, 16, 0.92), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(215, 243, 107, 0.07) 97px 98px);
}
.sun {
  position: absolute;
  right: 15%; top: 14%;
  width: min(24vw, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 243, 107, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(215, 243, 107, 0.15), inset 0 0 60px rgba(215, 243, 107, 0.06);
  animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 90px rgba(215, 243, 107, 0.13), inset 0 0 60px rgba(215, 243, 107, 0.05); }
  50% { box-shadow: 0 0 130px rgba(215, 243, 107, 0.22), inset 0 0 60px rgba(215, 243, 107, 0.1); }
}
.horizon {
  position: absolute;
  bottom: 22%; left: 0; right: 0;
  border-top: 1px solid rgba(215, 243, 107, 0.35);
  transform: skewY(-3deg);
}
.tower {
  position: absolute;
  bottom: 7%;
  height: 78%; width: 40%;
  color: rgba(215, 243, 107, 0.55);
  transform-origin: bottom left;
  animation: sway 8s ease-in-out infinite;
}
.tower-front { left: 57%; }
.tower-back { left: 77%; height: 57%; width: 32%; color: rgba(255, 255, 255, 0.24); animation-delay: -3s; }
.tower-top { position: absolute; bottom: 0; left: 8%; width: 5px; height: 100%; background: currentColor; box-shadow: 8px 0 currentColor; }
.tower-top:before, .tower-top:after {
  content: "";
  position: absolute; left: 7px;
  width: 145px; height: 2px;
  background: currentColor;
  transform-origin: left;
}
.tower-top:before { top: 4%; transform: rotate(28deg); }
.tower-top:after { top: 4%; transform: rotate(-28deg); }
.tower-arm { position: absolute; top: 3%; left: 9%; width: 87%; height: 3px; background: currentColor; }
.tower-arm:after {
  content: "";
  position: absolute; right: 2%; top: 0;
  width: 28%; height: 36px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-25deg);
}
.tower-rope { position: absolute; top: 3%; left: 68%; height: 42%; border-left: 1px solid currentColor; animation: rope 4s ease-in-out infinite; transform-origin: top; }
.tower-rope:after {
  content: "";
  position: absolute; bottom: -8px; left: -5px;
  width: 10px; height: 15px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 8px;
}
.building-silhouette {
  position: absolute;
  bottom: 0; left: 6%;
  width: 46%; height: 37%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: stretch;
}
.building-silhouette i { flex: 1; border-right: 1px solid rgba(215, 243, 107, 0.22); }
.building-silhouette:before, .building-silhouette:after {
  content: "";
  position: absolute; left: 0; right: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}
.building-silhouette:before { top: 28%; }
.building-silhouette:after { top: 62%; }
.dust {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--lime);
  animation: float 5s ease-in-out infinite;
}
.dust-a { left: 69%; top: 47%; }
.dust-b { left: 84%; top: 64%; animation-delay: -2s; }

.hero-content { position: relative; z-index: 2; padding-bottom: 42px; transform: translateY(14px); }
.overline, .kicker, .footer-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.overline { color: var(--lime); }
h1 {
  font-size: clamp(58px, 9.6vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-weight: 800;
  margin: 22px 0 48px;
}
.hero h1 {
  line-height: 0.95;
  margin-top: 16px;
  margin-bottom: 34px;
}
h1 em, h2 em, .footer-slogan em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--lime);
}
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-description { max-width: 340px; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 1.55; }
.hero-button {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 15px 24px;
  font-size: 13px; font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.04);
}
.hero-button b { color: var(--lime); font-size: 20px; font-weight: 400; transition: transform 0.35s var(--ease), color 0.3s; }
.hero-button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hero-button:hover b { color: var(--ink); transform: translateY(3px); }
/* блик на кнопке */
.hero-button::after, .contact-form button::after, .header-action::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.hero-button:hover::after, .contact-form button:hover::after, .header-action:hover::after { left: 130%; }
.hero-label { position: absolute; right: 32px; bottom: 31px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.hero-label span { color: var(--lime); margin: 0 8px; }
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.scroll-hint span { width: 3px; height: 8px; border-radius: 3px; background: var(--lime); animation: hint 2s ease-in-out infinite; }
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Бегущая строка ---------- */
.trust-line {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
  margin: -26px 0 26px;
  box-shadow: 0 20px 40px -20px rgba(16, 21, 18, 0.35);
  overflow: hidden;
}
.marquee { overflow: hidden; padding: 16px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: marquee 26s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.marquee-track b { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; }
.marquee-track i { font-style: normal; font-size: 14px; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: 112px 0; }
.section-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; margin-bottom: 56px; }
.kicker { color: var(--muted); margin: 4px 0; }
.section h2 { font-size: clamp(40px, 5.6vw, 74px); line-height: 0.95; letter-spacing: -0.05em; margin: 0 0 26px; font-weight: 800; }
.section h2 em { color: var(--ink); }
.lead, .about-text { max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Карточки услуг ---------- */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative;
  min-height: 372px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-10px); }
.service-card-dark { background: linear-gradient(165deg, #25362d, var(--dark)); color: #fff; box-shadow: var(--shadow); }
.service-card-lime { background: var(--lime); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(215, 243, 107, 0.7); }
.service-card-photo {
  background:
    linear-gradient(160deg, rgba(12, 22, 18, 0.28), rgba(12, 22, 18, 0.92)),
    linear-gradient(130deg, #486b58, #202e28);
  color: #fff;
  box-shadow: var(--shadow);
}
.service-card-outline { background: #e8a04f; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(255, 157, 56, 0.6); }
.service-card:hover { box-shadow: 0 28px 55px -22px rgba(16, 21, 18, 0.4); }
.card-index { font-size: 12px; font-weight: 600; color: rgba(20, 26, 23, 0.55); }
.service-card-dark .card-index, .service-card-photo .card-index { color: rgba(255, 255, 255, 0.5); }
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px; font-weight: 300;
  margin: 44px 0 auto;
  transition: transform 0.45s var(--ease), background 0.3s;
}
.service-card-lime .service-icon, .service-card-outline .service-icon { background: rgba(20, 26, 23, 0.08); }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 25px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.service-card p { font-size: 13px; line-height: 1.5; opacity: 0.68; margin: 0 0 22px; }
.card-link { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; border-top: 1px solid currentColor; padding-top: 14px; }
.card-link i { font-style: normal; transition: transform 0.35s var(--ease); }
.service-card:hover .card-link i { transform: translate(3px, -3px); }

/* ---------- О компании ---------- */
.about { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.about:before {
  content: "";
  position: absolute;
  right: -180px; top: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 243, 107, 0.12), transparent 65%);
}
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 9vw; align-items: center; position: relative; }
.about .kicker { color: rgba(255, 255, 255, 0.5); }
.about h2 { max-width: 720px; }
.about h2 em { color: var(--lime); }
.about-text { color: rgba(255, 255, 255, 0.65); max-width: 500px; }
.about-stamp { width: 300px; height: auto; animation: stampFloat 6s ease-in-out infinite; }
.about-stamp img { display: block; width: 100%; height: auto; }
@keyframes stampFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.stats { display: flex; gap: 56px; margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 26px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; gap: 8px; }
.stats strong { font-size: 36px; color: var(--lime); font-weight: 400; font-variant-numeric: tabular-nums; }
.stats span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.35; color: rgba(255, 255, 255, 0.5); }

/* ---------- Этапы ---------- */
.process-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.72); }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 26px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  transition: padding 0.35s var(--ease);
}
.process-item:last-child { border-bottom: 0; }
.process-item:before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.process-item:hover:before { transform: scaleX(1); }
.process-item:hover { padding-left: 42px; }
.process-item > b { font-family: var(--serif); font-style: italic; font-size: 32px; font-weight: 400; color: var(--muted); transition: color 0.3s; }
.process-item:hover > b { color: var(--ink); }
.process-item h3 { font-size: 24px; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 700; }
.process-item p { color: var(--muted); font-size: 13.5px; margin: 0; transition: color 0.3s; max-width: 560px; }
.process-item:hover p { color: rgba(20, 26, 23, 0.7); }
.process-item span { font-size: 24px; transition: transform 0.35s var(--ease); }
.process-item:hover span { transform: translateX(6px); }

/* ---------- Контакты ---------- */
.contact { background: linear-gradient(160deg, #e5f18e, var(--lime)); border-radius: 28px 28px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.contact h2 { max-width: 560px; }
.contact-lead { font-size: 16px; color: rgba(20, 26, 23, 0.62); max-width: 320px; line-height: 1.55; }
.contact-form {
  display: grid; gap: 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  padding: 34px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-form label { font-size: 12px; font-weight: 600; color: rgba(20, 26, 23, 0.65); }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-bottom: 1.5px solid rgba(20, 26, 23, 0.35);
  background: transparent;
  outline: 0;
  color: var(--ink);
  margin-top: 8px;
  border-radius: 12px 12px 0 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-bottom-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 24px -18px rgba(16, 21, 18, 0.4);
}
.contact-form textarea { height: 78px; resize: vertical; }
.contact-form button {
  position: relative;
  overflow: hidden;
  display: flex; justify-content: space-between; align-items: center;
  border: 0;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 18px 26px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  box-shadow: 0 14px 30px -12px rgba(16, 21, 18, 0.5);
}
.contact-form button i { font-style: normal; transition: transform 0.35s var(--ease); }
.contact-form button:hover { transform: translateY(-2px); background: #1e2a24; box-shadow: 0 20px 36px -12px rgba(16, 21, 18, 0.55); }
.contact-form button:hover i { transform: translate(3px, -3px); }
.contact-form button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-success { display: none; margin: 0; font-size: 13px; font-weight: 500; }
.form-success.is-visible, .form-success.is-error { display: block; }
.form-success.is-visible { color: #3f6212; }
.form-success.is-error { color: #9b2c2c; animation: shake 0.4s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Футер ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 76px 0 28px; border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 34px; min-height: 220px; }
.brand-footer { align-self: start; }
.brand-footer .brand-logo { width: 300px; }
.footer-slogan { font-size: 32px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.footer-label { color: rgba(255, 255, 255, 0.4); margin: 0 0 14px; }
.footer-contact address, .footer-contact p:not(.footer-label) { font-style: normal; font-size: 14px; line-height: 1.65; margin: 0; color: rgba(255, 255, 255, 0.72); }
.footer-contact a { transition: color 0.25s; }
.footer-contact a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 54px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.42); font-size: 12px; }
.footer-bottom a { color: var(--lime); font-weight: 600; transition: opacity 0.25s; }
.footer-bottom a:hover { opacity: 0.75; }

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.service-cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-cards .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Ключевые кадры сцены ---------- */
@keyframes sway {
  0%, 100% { transform: rotate(-0.5deg); }
  50% { transform: rotate(0.5deg); }
}
@keyframes rope {
  0%, 100% { transform: scaleY(0.95); }
  50% { transform: scaleY(1.08) rotate(1deg); }
}
@keyframes float {
  0%, 100% { transform: translate(0); opacity: 0.25; }
  50% { transform: translate(-22px, -20px); opacity: 1; }
}

/* ---------- Внутренние страницы ---------- */
.inner-page { background: var(--cream); }
.inner-page .footer-top { grid-template-columns: 1.3fr 1fr 1.1fr; }
.inner-page .site-header { background: rgba(16, 21, 18, 0.96); }
.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 172px 0 82px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 80% 18%, rgba(215, 243, 107, 0.14), transparent 28%),
    linear-gradient(130deg, #263d31, var(--dark) 68%);
  color: #fff;
}
/* движущиеся линии на фоне внутренних страниц */
.inner-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 96px, rgba(215, 243, 107, 0.06) 97px 98px);
  animation: heroLines 14s linear infinite;
  pointer-events: none;
}
@keyframes heroLines {
  from { background-position: 0 0; }
  to { background-position: 196px 0; }
}
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 { max-width: 1100px; margin: 24px 0 30px; }
.inner-hero h1 em { color: var(--lime); }
.inner-lead { max-width: 540px; margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 18px; line-height: 1.55; }
.service-detail-section, .projects-section, .contacts-section { background: var(--cream); }
.service-detail-grid, .project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-detail {
  min-height: 246px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.service-detail:hover { background: var(--lime); box-shadow: var(--shadow); transform: translateY(-6px); }
.service-detail span, .project-type { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.service-detail h3 { margin: 54px 0 14px; font-size: 22px; line-height: 1.05; transition: transform 0.35s var(--ease); }
.service-detail:hover h3 { transform: translateX(4px); }
.service-detail p, .project-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dark-cta {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--dark);
  color: #fff;
}
/* мягкое свечение в CTA */
.dark-cta::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 243, 107, 0.1), transparent 65%);
  animation: ctaGlow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.dark-cta h2 { max-width: 700px; margin: 20px 0 38px; font-size: clamp(42px, 6vw, 78px); line-height: 0.95; letter-spacing: -0.05em; }
.dark-cta h2 em { color: var(--lime); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-card {
  position: relative;
  min-height: 204px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s;
}
/* стрелка каталога */
.catalog-card i {
  position: absolute;
  right: 22px; bottom: 20px;
  font-size: 24px; font-style: normal;
  transition: transform 0.35s var(--ease);
}
.catalog-card:hover i { transform: translate(4px, -4px); }
.catalog-card:hover { background: var(--lime); box-shadow: var(--shadow); transform: translateY(-6px); }
.catalog-card:nth-child(3n + 2) { background: var(--dark); color: #fff; }
.catalog-card:nth-child(3n + 2):hover { background: var(--orange); color: var(--ink); }
.catalog-card span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.3s; }
.catalog-card:nth-child(3n + 2) span { color: rgba(255, 255, 255, 0.55); }
.catalog-card:nth-child(3n + 2):hover span { color: rgba(20, 26, 23, 0.6); }
.catalog-card h3 { margin: 40px 0 0; font-size: 22px; line-height: 1.05; transition: transform 0.35s var(--ease); }
.catalog-card:hover h3 { transform: translateX(4px); }
.product-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-item {
  position: relative;
  padding: 26px;
  min-height: 170px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
/* акцентная линия снизу карточки товара */
.product-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.product-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-item:hover::after { transform: scaleX(1); }
.product-item strong { display: block; margin-bottom: 12px; font-size: 18px; }
.product-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-page .inner-hero { min-height: 560px; }
.product-note { max-width: 660px; margin: 18px 0 42px; color: var(--muted); line-height: 1.65; }
.project-card {
  min-height: 238px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 14px 40px -28px rgba(16, 21, 18, 0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(16, 21, 18, 0.4); }
.project-card h3 { margin: auto 0 12px; font-size: 24px; line-height: 1.04; letter-spacing: -0.03em; transition: transform 0.35s var(--ease); }
.project-card:hover h3 { transform: translateX(4px); }
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.project-meta strong { color: #647d31; font-weight: 700; }
.project-card-featured .project-meta { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.6); }
.project-card-featured .project-meta strong { color: var(--lime); }
.project-card-featured {
  grid-column: span 2;
  min-height: 320px;
  background: linear-gradient(150deg, #1d3027, #101512);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.project-card-featured::before {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid rgba(215, 243, 107, 0.3);
  animation: stampFloat 7s ease-in-out infinite;
}
.project-card-featured p { color: rgba(255, 255, 255, 0.65); }
.project-card-featured .project-type { color: var(--lime); }
.project-card-lime { background: var(--lime); }
.project-card-orange { background: var(--orange); }
.about-story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10vw; align-items: start; }
.about-text-dark { color: var(--muted); max-width: 620px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.principles div { border-top: 1px solid var(--line); padding-top: 18px; transition: transform 0.35s var(--ease); }
.principles div:hover { transform: translateY(-4px); }
.principles strong { color: var(--orange); font-size: 13px; }
.principles h3 { margin: 28px 0 8px; font-size: 19px; }
.principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.about-numbers { padding: 76px 0; background: var(--lime); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers-grid div { display: flex; flex-direction: column; gap: 8px; transition: transform 0.35s var(--ease); }
.numbers-grid div:hover { transform: translateY(-4px); }
.numbers-grid strong { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.numbers-grid span { color: rgba(20, 26, 23, 0.62); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-details { display: grid; gap: 12px; margin-top: 48px; }
.contact-details a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  font-size: 20px; font-weight: 600;
  transition: color 0.25s, border-color 0.25s;
}
.contact-details a:hover { color: #647d31; border-color: #647d31; }
.contact-details p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Модальное окно заявки ---------- */
body.modal-open { overflow: hidden; }
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.project-modal.is-open { visibility: visible; opacity: 1; }
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 11, 0.78);
  backdrop-filter: blur(8px);
}
.project-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 38px;
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  transform: translateY(18px);
  transition: transform 0.3s var(--ease);
}
.project-modal.is-open .project-modal__dialog { transform: none; }
.project-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.project-modal h2 { margin: 12px 0 28px; font-size: clamp(34px, 5vw, 52px); line-height: 0.95; }
.project-modal h2 em { color: #647d31; }
.project-modal__form {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.project-modal__form label {
  display: block;
  width: 100%;
  overflow: visible;
  transform: none;
}

@media (max-width: 480px) {
  .project-modal { padding: 12px; }
  .project-modal__dialog { padding: 32px 20px 24px; max-height: calc(100vh - 24px); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .container { width: min(100% - 40px, 900px); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 340px; }
  .footer-top, .inner-page .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid, .product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 76px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px; right: 16px;
    z-index: 11;
    padding: 18px;
    background: rgba(16, 21, 18, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 6px;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(8, 18, 14, 0.45);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .header-action { display: none; }
  .brand-logo { width: 165px; }
  .menu-toggle { display: block; }
  .hero { min-height: 660px; height: 94svh; }
  .hero-content { padding-bottom: 64px; transform: translateY(8px); }
  .hero h1 { line-height: 0.92; margin-bottom: 30px; }
  h1 { font-size: clamp(48px, 14vw, 80px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-label { display: none; }
  .sun { width: 56vw; right: -12%; }
  .tower-front { left: 52%; width: 76vw; height: 66%; }
  .tower-back { left: 86%; height: 48%; }
  .building-silhouette { width: 58%; height: 26%; left: 2%; }
  .trust-line { transform: rotate(0) scale(1); margin: 0; }
  .section { padding: 84px 0; }
  .section-intro, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-intro { margin-bottom: 44px; }
  .service-card { min-height: 290px; padding: 20px; }
  .service-icon { width: 50px; height: 50px; font-size: 26px; margin: 28px 0 auto; }
  .service-card h3 { font-size: 21px; }
  .about-stamp { width: 220px; }
  .stats { gap: 26px; margin-top: 40px; }
  .stats strong { font-size: 28px; }
  .process-item { grid-template-columns: 48px 1fr 22px; gap: 14px; padding: 24px 20px; }
  .process-item:hover { padding-left: 20px; }
  .process-item > b { font-size: 24px; }
  .process-item h3 { font-size: 19px; }
  .contact-form { padding: 24px; }
  .footer-top, .inner-page .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 46px;
  }
  .brand-footer { align-self: start; }
  .footer-slogan { font-size: 26px; }
  .footer-bottom span:nth-child(2) { display: none; }
  .inner-hero { min-height: 540px; padding: 150px 0 72px; }
  .inner-hero h1 { margin-bottom: 24px; }
  .service-detail-grid, .project-grid, .about-story-grid, .principles, .numbers-grid { grid-template-columns: 1fr; }
  .catalog-grid, .product-list { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .service-detail h3 { margin-top: 38px; }
  .dark-cta { padding: 80px 0; }
  .about-numbers { padding: 60px 0; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 12px; }
  .brand-logo { width: 145px; }
  .hero { min-height: 620px; }
  .hero-content { padding-bottom: 54px; transform: translateY(4px); }
  .hero h1 { line-height: 0.92; margin-bottom: 26px; }
  h1 { font-size: clamp(43px, 14vw, 64px); }
  .hero-description { font-size: 15px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: clamp(34px, 11vw, 52px); }
  .inner-hero { min-height: 500px; padding: 132px 0 64px; }
  .inner-lead { font-size: 16px; }
  .dark-cta h2 { font-size: clamp(38px, 12vw, 58px); }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .stats { gap: 18px; }
  .process-item { grid-template-columns: 36px 1fr 18px; padding: 20px 16px; }
  .process-item h3 { font-size: 17px; }
  .process-item span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
