/* Гранит Дом. Тёмная тема, янтарный акцент. Самый мелкий шрифт 14px. */

:root {
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px;

  --bg: #131209;
  --alt: #181818;
  --card: #1F1F1F;
  --card-2: #272727;
  --line: #313131;
  --black: #000000;

  --ink: #F4F1EA;
  --muted: #A8A59D;
  --accent: #E0A458;
  --accent-hover: #EDB872;
  --danger: #FF8A80;
  --ok: #9BD3A7;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-800); background: var(--bg); }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; line-height: 24px;
  color: var(--ink); background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
i.ph, i.ph-fill { line-height: 1; flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-200); }
@media (min-width: 640px) { .wrap { padding-inline: var(--s-300); } }
@media (min-width: 1024px) { .wrap { padding-inline: var(--s-400); } }

.skip {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: var(--accent); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--accent); border-radius: var(--r-lg);
  background: var(--accent); color: var(--bg);
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); transition-duration: 200ms; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #4A4A4A; }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Навигация ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 18px; line-height: 28px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand i { font-size: 24px; color: var(--accent); }

.nav {
  position: fixed; top: var(--s-200); left: 50%; z-index: 50; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - var(--s-400));
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-2xl);
}
.nav-links { display: none; align-items: center; gap: var(--s-50); }
.nav-links a {
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--muted);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="true"] { color: var(--accent); background: rgba(224, 164, 88, 0.12); }
.nav-phone { display: none; font-size: 14px; line-height: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-cta { display: none; white-space: nowrap; }

.burger {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-50);
  width: var(--s-500); height: var(--s-500); margin-left: auto;
  border: 0; border-radius: var(--r-lg); background: transparent; cursor: pointer;
}
.burger span { display: block; width: 20px; height: var(--s-25); background: var(--ink); transition: transform 500ms var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1023px) { .nav { width: calc(100% - var(--s-400)); justify-content: space-between; } }
@media (min-width: 1024px) {
  .nav-links, .nav-phone { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(19, 18, 9, 0.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 500ms var(--ease), visibility 0s; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-200); max-width: 480px; margin-inline: auto; }
.menu-links > * { opacity: 0; transform: translateY(var(--s-300)); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: 0ms; }
.menu.open .menu-links > * { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.menu-links a:not(.btn) { font-size: 30px; line-height: 36px; font-weight: 700; text-decoration: none; }
.menu-links .menu-phone { margin-top: var(--s-200); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--muted); }
.menu-links .btn { margin-top: var(--s-100); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Заголовки ---------- */
.grad-title {
  display: block; max-width: 680px; padding-bottom: var(--s-25);
  font-size: 36px; line-height: 40px; font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(to right, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (min-width: 640px) { .grad-title { font-size: 48px; line-height: 1; } }
@media (min-width: 1024px) { .grad-title { font-size: 60px; line-height: 1; } }

.eyebrow {
  display: inline-block; margin-bottom: var(--s-300);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-lg);
  background: rgba(224, 164, 88, 0.14); color: var(--accent);
  font-size: 14px; line-height: 20px; font-weight: 700;
}
.hero-text { max-width: 680px; margin-top: var(--s-300); font-size: 18px; line-height: 28px; color: var(--muted); }

h2 { font-size: 30px; line-height: 36px; }
@media (min-width: 768px) { h2 { font-size: 36px; line-height: 40px; } }
.lead { margin-top: var(--s-200); font-size: 18px; line-height: 28px; color: var(--muted); }

/* ---------- Первый экран ---------- */
.hero { padding-top: var(--s-900); padding-bottom: var(--s-700); }
.hero-grid { display: grid; gap: var(--s-400); align-items: center; padding-top: var(--s-300); }
.hero-copy { min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-400); }
.note { max-width: 280px; font-size: 14px; line-height: 20px; color: var(--muted); }
.hero-media { padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--card); min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r-2xl); background: var(--card-2); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-200); margin-top: var(--s-600); }
.stats li { display: flex; flex-direction: column; gap: var(--s-50); padding: var(--s-300) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); min-width: 0; }
.stats strong { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--accent); }
.stats span { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s-300); } .stats strong { font-size: 36px; line-height: 40px; } }

/* ---------- Секции ---------- */
.section { padding-block: var(--s-700); }
.section.alt { background: var(--alt); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } }
.section-head { max-width: 680px; margin-bottom: var(--s-500); }

/* Преимущества */
.benefit-grid { display: grid; gap: var(--s-200); }
.benefit { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); min-width: 0; }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: var(--s-600); height: var(--s-600); margin-bottom: var(--s-200); border-radius: var(--r-lg); background: rgba(224, 164, 88, 0.14); color: var(--accent); }
.icon-box i { font-size: 24px; }
.benefit h3 { font-size: 20px; line-height: 28px; }
.benefit p { margin-top: var(--s-75); color: var(--muted); }
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }

/* Проекты */
.project-grid { display: grid; gap: var(--s-200); }
.project-card { display: flex; flex-direction: column; padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); min-width: 0; transition: transform 500ms var(--ease); }
.project-card:hover { transform: translateY(calc(var(--s-50) * -1)); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--card-2); }
.project-body { display: flex; flex: 1; flex-direction: column; padding: var(--s-200) var(--s-100) var(--s-100); }
.project-body h3 { font-size: 20px; line-height: 28px; }
.project-text { margin-top: var(--s-75); flex: 1; color: var(--muted); }
.project-price { margin-block: var(--s-200); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--accent); }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

/* Слоган */
.tagline { padding-block: var(--s-800); background: var(--black); }
.tagline-text { max-width: 680px; font-size: 36px; line-height: 40px; font-weight: 600; text-wrap: balance; }
.js .tagline-text .w { opacity: 0.3; transition: opacity 500ms var(--ease); }
.js .tagline-text .w.on { opacity: 1; }
@media (min-width: 768px) { .tagline { padding-block: var(--s-900); } .tagline-text { font-size: 48px; line-height: 1; } }

/* Отзывы */
.review-grid { display: grid; gap: var(--s-200); }
.review-card { display: flex; flex-direction: column; padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); min-width: 0; }
.stars { display: flex; gap: var(--s-25); font-size: 16px; color: var(--accent); }
.review-text { margin-top: var(--s-200); flex: 1; }
.review-author { display: flex; align-items: center; gap: var(--s-100); margin-top: var(--s-300); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: var(--s-500); height: var(--s-500); border-radius: 9999px; background: var(--accent); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 700; flex: none; }
.review-author div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 20px; }
.review-author span { color: var(--muted); }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.clients { margin-top: var(--s-500); }
.clients p { font-size: 14px; line-height: 20px; color: var(--muted); }
.clients ul { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-100); }
.clients li { padding: var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); font-size: 14px; line-height: 20px; font-weight: 600; }

/* Вопросы */
.faq-wrap { max-width: 880px; }
.faq { display: flex; flex-direction: column; gap: var(--s-75); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--bg); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 20px; color: var(--accent); transition: transform 500ms var(--ease); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 var(--s-300) var(--s-300); max-width: 680px; color: var(--muted); }

/* Форма */
.cta { padding-block: var(--s-700); background: var(--black); }
.cta-grid { display: grid; gap: var(--s-400); align-items: start; }
.cta-copy { min-width: 0; }
.cta .lead { max-width: 520px; }
.points { display: flex; flex-direction: column; gap: var(--s-100); margin-top: var(--s-400); }
.points li { display: flex; align-items: center; gap: var(--s-100); font-weight: 500; }
.points i { font-size: 24px; color: var(--accent); }
.lead-form { min-width: 0; padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.field { margin-bottom: var(--s-200); }
.field label { display: block; margin-bottom: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 700; }
.field input { width: 100%; padding: var(--s-100) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card-2); color: var(--ink); transition: border-color 300ms var(--ease); }
.field input::placeholder { color: #8A8A8A; }
.field input:hover { border-color: #4A4A4A; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s-200); font-size: 16px; line-height: 24px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
@media (min-width: 900px) { .cta { padding-block: var(--s-900); } .cta-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); } .lead-form { padding: var(--s-400); } }

/* ---------- Подвал ---------- */
.footer { padding-top: var(--s-700); background: var(--alt); }
.footer-grid { display: grid; gap: var(--s-400); }
.footer-grid > * { min-width: 0; }
.footer p { font-size: 16px; line-height: 24px; color: var(--muted); }
.footer-brand .brand { margin-bottom: var(--s-100); color: var(--ink); }
.footer-brand p + p { margin-top: var(--s-50); }
.footer-title { margin-bottom: var(--s-100); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink) !important; }
.footer-col { display: flex; flex-direction: column; gap: var(--s-75); }
.footer a:not(.brand) { display: inline-flex; align-items: center; gap: var(--s-75); width: fit-content; max-width: 100%; text-decoration: none; overflow-wrap: anywhere; transition: color 300ms var(--ease); }
.footer a:not(.brand):hover { color: var(--accent); }
.footer-col i { font-size: 20px; color: var(--accent); }
.footer-bottom { padding-block: var(--s-400); }
.footer-bottom p { font-size: 14px; line-height: 20px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .menu-links > * { transform: none; }
  .btn:hover, .project-card:hover { transform: none; }
  .burger span, .faq-item summary i { transition: none; }
  .js .tagline-text .w { transition: opacity 300ms linear; }
}
