/* ============================================================
   ДомСтрой — премиум-тема
   Палитра: графит / тёплый песок-бронза / молочный
   Шрифты: Space Grotesk (заголовки) + Inter (текст)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0e0f12;
  --bg-soft:   #15171c;
  --panel:     #1c1f26;
  --line:      rgba(255,255,255,0.08);
  --text:      #ecebe6;
  --muted:     #9b9a93;
  --cream:     #f5f2ea;
  --accent:    #c8975a;   /* бронза */
  --accent-2:  #e0b878;
  --radius:    18px;
  --maxw:      1240px;
  --ease:      cubic-bezier(.16,.84,.44,1);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #1a1407;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
}
.btn-ghost {
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-3px);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,15,18,0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  position: relative;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: 14px; padding: 11px 22px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--text); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://picsum.photos/seed/domstroy-arch-hero/1920/1280") center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,15,18,0.55) 0%, rgba(14,15,18,0.35) 35%, rgba(14,15,18,0.92) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 600;
  max-width: 16ch;
  margin: 22px 0 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(236,235,230,0.82);
  max-width: 56ch;
  margin-bottom: 38px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 46px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.03em;
}
.stat .num span { color: var(--accent); }
.stat .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Section base ---------- */
.section { padding: 120px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  margin-top: 18px;
}
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-media .badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--accent);
  color: #1a1407;
  padding: 26px 30px;
  border-radius: 14px;
  font-family: var(--font-head);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.about-media .badge b { font-size: 34px; display: block; line-height: 1; }
.about-media .badge small { font-size: 13px; font-weight: 400; }
.about-text h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 22px; }
.about-text p { color: var(--muted); font-weight: 300; margin-bottom: 16px; font-size: 17px; }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text);
  font-size: 16px;
}
.about-points li::before {
  content: "";
  flex: none;
  margin-top: 9px;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg-soft);
  padding: 46px 38px;
  transition: background .4s var(--ease);
  position: relative;
}
.service:hover { background: var(--panel); }
.service .idx {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 23px;
  margin: 24px 0 12px;
  color: var(--cream);
}
.service p { color: var(--muted); font-weight: 300; font-size: 15.5px; }
.service .ico {
  font-size: 30px;
  margin-top: 26px;
  opacity: 0.85;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.project img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14,15,18,0) 30%, rgba(14,15,18,0.92) 100%);
  transition: opacity .4s var(--ease);
}
.project:hover img { transform: scale(1.06); }
.project-body { padding: 32px; width: 100%; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--cream);
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.tag.done { border-color: rgba(120,200,140,0.5); color: #b9e6c4; }
.tag.progress { border-color: rgba(224,184,120,0.6); color: var(--accent-2); }
.project h3 { font-size: 25px; color: #fff; margin-bottom: 8px; }
.project p { color: rgba(236,235,230,0.72); font-size: 14.5px; font-weight: 300; }
.project .open {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent-2);
}
.project .open .arrow { transition: transform .35s var(--ease); }
.project:hover .open .arrow { transform: translateX(5px); }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step { padding-top: 28px; border-top: 1px solid var(--line); }
.step .n {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 20px; margin: 16px 0 10px; color: var(--cream); }
.step p { color: var(--muted); font-weight: 300; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band .cta-bg {
  position: absolute; inset: 0;
  background: url("https://picsum.photos/seed/domstroy-cta/1920/900") center/cover no-repeat fixed;
  z-index: -2;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14,15,18,0.82);
}
.cta-band h2 { font-size: clamp(32px, 5vw, 58px); margin: 18px 0 18px; }
.cta-band p { color: var(--muted); font-size: 19px; font-weight: 300; max-width: 50ch; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-grid .logo { font-size: 26px; margin-bottom: 16px; display: inline-block; }
.footer-grid p, .footer-grid li { color: var(--muted); font-weight: 300; font-size: 15px; }
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-contact b { color: var(--cream); font-weight: 500; display: block; font-family: var(--font-head); font-size: 17px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: 200px 0 90px;
  overflow: hidden;
}
.page-hero .ph-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,15,18,0.7), rgba(14,15,18,0.92));
}
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); max-width: 18ch; }
.page-hero .ph-tag { margin-bottom: 22px; }

/* ---------- Object detail ---------- */
.obj-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 60px;
  align-items: start;
}
.obj-lead { font-size: 20px; color: var(--text); font-weight: 300; margin-bottom: 22px; }
.obj-body p { color: var(--muted); font-weight: 300; margin-bottom: 16px; font-size: 16.5px; }
.facts {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 28px;
  position: sticky;
  top: 100px;
}
.facts li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--muted); font-size: 14.5px; }
.facts .v { font-family: var(--font-head); color: var(--cream); font-weight: 500; font-size: 15px; }
.facts .cta-mini { padding: 22px 0 8px; }
.facts .cta-mini .btn { width: 100%; justify-content: center; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 70px;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: grayscale(0.15);
}
.gallery img:hover { transform: scale(1.02); filter: grayscale(0); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-wrap { grid-template-columns: 1fr; gap: 60px; }
  .about-media .badge { left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .obj-layout { grid-template-columns: 1fr; gap: 40px; }
  .facts { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 84px 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .nav-links.open li { padding: 12px 28px; }
  .services-grid, .projects-grid, .steps, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; }
}
