:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --dark: #111827;
  --dark-2: #0b1020;
  --text: #1f2937;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #00ae42;
  --accent-dark: #00923a;
  --accent-light: #4dd78b;
  --accent-soft: #e7f7ee;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .07), 0 10px 30px rgba(17, 24, 39, .06);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, .16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Header: непрозрачная, при скролле — полупрозрачная ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .25s ease;
}
.site-header.scrolled {
  background: rgba(17, 24, 39, .78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; color: #fff; white-space: nowrap; }
.logo img { height: 40px; width: auto; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { color: #e5e7eb; font-size: 15px; font-weight: 500; transition: color .15s ease; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 174, 66, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 174, 66, .36); text-decoration: none; color: #fff; }
.btn-nav { padding: 9px 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ===== Hero (тёмный, полноэкранная анимация) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1020 0%, #111827 55%, #1f2937 100%);
  color: #fff;
  padding: 104px 0;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(1px);
  opacity: .55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 16, 32, .9) 0%, rgba(11, 16, 32, .55) 48%, rgba(11, 16, 32, .22) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(0, 174, 66, .45);
  background: rgba(0, 174, 66, .1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.03em; }
.hero .subtitle { font-size: 19px; color: #d1d5db; margin: 0 0 30px; max-width: 660px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 30px 0 0; }
.hero-badges li {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #e5e7eb;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ===== Page head ===== */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 48px 0; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; color: var(--ink); }
.page-head .subtitle { margin: 0; color: var(--muted); font-size: 18px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; color: var(--ink); }
.section-title::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-bottom: 16px;
}
.section-lead { margin: 0 0 36px; color: var(--muted); max-width: 640px; }
.section-more { margin: 30px 0 0; }
.note { color: var(--muted); font-size: 15px; max-width: 760px; }
.muted { color: var(--muted); }

/* ===== Services / materials ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.section-alt .card { background: #fff; }
.card h2, .card h3 { margin: 0 0 10px; font-size: 19px; color: var(--ink); }
.card p { margin: 0 0 16px; color: var(--muted); }
.card-price { margin-top: auto; font-weight: 800; color: var(--accent-dark); font-size: 17px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { padding: 22px; }
.step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.case {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case img { aspect-ratio: 4/3; object-fit: cover; background: var(--bg-alt); }
.case-body { padding: 18px 22px; }
.case-body h2, .case-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.case-body p { margin: 0; color: var(--muted); }

/* ===== Price table ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-table tr:last-child td { border-bottom: none; }
.price-table .nowrap { white-space: nowrap; font-weight: 700; color: var(--accent-dark); }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; transition: border-color .15s ease; }
.faq details[open] { border-color: var(--accent-light); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-2) 60%, #1f2937 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  margin-top: 24px;
}
.cta-box h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; }
.cta-box p { margin: 0 0 26px; color: #d1d5db; max-width: 640px; }
.cta-box .muted { color: #9ca3af; }

/* ===== Contacts ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.contact-card p { margin: 6px 0; }
.contact-card a { display: inline-flex; align-items: center; gap: 8px; }
.contact-card svg { flex: 0 0 auto; opacity: .85; }

/* ===== Footer ===== */
.site-footer { background: var(--dark-2); color: #d1d5db; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-tagline { color: #9ca3af; }
.footer-col h3 { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col p { margin: 6px 0; font-size: 15px; }
.footer-col a { color: #d1d5db; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col svg { flex: 0 0 auto; opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: 14px; color: #9ca3af; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(17, 24, 39, .97);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    margin: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .btn-nav { display: none; }
  .hero { padding: 64px 0; }
  .section { padding: 52px 0; }
  .cta-box { padding: 30px 22px; }
}
