:root {
  --bg: #f8f3ec;
  --bg-soft: #f3ede4;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: #ffffff;
  --text: #2d2824;
  --muted: #6b625b;
  --line: rgba(82, 63, 46, 0.12);
  --accent: #b68f68;
  --accent-dark: #8f6d4d;
  --shadow: 0 20px 60px rgba(57, 43, 31, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcf8f2 0%, #f6f0e8 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 186, 156, 0.28), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(209, 190, 167, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(196, 173, 144, 0.2), transparent 28%);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 44px 0;
}

.section-soft { background: rgba(255,255,255,0.28); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(252, 248, 242, 0.74);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease, transform .2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); transform: translateY(-1px); }

.header-phone {
  white-space: nowrap;
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-card,
.panel,
.service-card,
.cta-box,
.cert-card,
.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 42px;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
}
.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  font-weight: 600;
}

.hero-card {
  position: relative;
  padding: 18px;
  min-height: 100%;
}
.hero-photo-wrap {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #efe7de 0%, #ddd0c1 100%);
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(74,56,40,.08);
  box-shadow: 0 14px 35px rgba(62,44,28,.12);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}
.hero-badge--top { top: 34px; right: -8px; }
.hero-badge--bottom { left: -8px; bottom: 34px; }

.section-head {
  max-width: 780px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head p:last-child { color: var(--muted); }

.about-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}
.panel { padding: 30px; }
.panel-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.panel-text p:last-child { margin-bottom: 0; }
.panel-list h3,
.form-card h3 { margin: 0 0 18px; font-size: 24px; }
.panel-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.panel-list li {
  padding: 14px 16px;
  background: rgba(255,255,255,0.88);
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.service-card--accent {
  background: linear-gradient(180deg, rgba(190,155,120,.18), rgba(255,255,255,.84));
}
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-weight: 800;
  color: var(--accent-dark);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  padding: 34px;
  align-items: center;
}
.cta-box h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 42px);
}
.cta-box p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cert-card {
  padding: 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cert-card span {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
.cert-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.contacts-grid {
  align-items: start;
}
.contacts-head { grid-column: 1 / -1; }
.contact-card,
.form-card { padding: 28px; }
.contact-card {
  display: grid;
  gap: 14px;
}
.contact-line {
  display: block;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
}
.contact-line span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}
.contact-line strong { font-size: 22px; }

.form-card {
  display: grid;
  gap: 14px;
}
.form-card label {
  display: grid;
  gap: 8px;
}
.form-card span {
  font-size: 14px;
  font-weight: 700;
}
.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card input:focus,
.form-card textarea:focus {
  border-color: rgba(182,143,104,.6);
  box-shadow: 0 0 0 4px rgba(182,143,104,.12);
}
.form-note,
.form-success,
.site-footer p { margin: 0; color: var(--muted); }
.form-success { color: #3f6a3f; font-weight: 700; min-height: 1.4em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #c8a27b, #a77f59);
  color: #fff;
  box-shadow: 0 14px 28px rgba(167, 127, 89, .25);
}
.btn-secondary {
  background: rgba(255,255,255,.9);
  border-color: var(--line);
}
.btn-full { width: 100%; }

.site-footer {
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner strong { display: block; margin-bottom: 6px; }

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .cta-box,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header-inner {
    grid-template-columns: auto auto 1fr auto;
  }
  .burger { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .header-phone { margin-left: auto; }
}

@media (max-width: 760px) {
  .section { padding: 34px 0; }
  .hero-copy,
  .hero-card,
  .panel,
  .service-card,
  .cta-box,
  .cert-card,
  .contact-card,
  .form-card { border-radius: 24px; }
  .hero-copy,
  .panel,
  .service-card,
  .contact-card,
  .form-card,
  .cert-card,
  .cta-box { padding: 22px; }
  .cards-grid,
  .cert-grid { grid-template-columns: 1fr; }
  .header-inner {
    min-height: 74px;
    gap: 12px;
  }
  .brand-name { font-size: 18px; }
  .header-phone {
    display: none;
  }
  .hero-actions,
  .cta-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-badge {
    position: static;
    max-width: none;
    margin-top: 12px;
  }
  .hero-card { display: grid; gap: 0; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
