:root {
  --ink: #161616;
  --muted: #60645f;
  --paper: #f7f4ee;
  --surface: #fffefa;
  --line: #ddd6c8;
  --teal: #145c58;
  --teal-dark: #0d3b39;
  --wine: #9d2f3b;
  --blue: #203a63;
  --gold: #d89c2a;
  --shadow: 0 18px 60px rgba(22, 22, 22, 0.12);
  --radius: 8px;
  --container: 1160px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.nav-bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--surface); background: var(--teal); border-radius: 8px; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 13px; border-radius: 8px; color: #30332f; font-weight: 700; font-size: 0.94rem; }
.nav-links a:hover, .nav-links a.active { background: var(--surface); color: var(--teal); box-shadow: inset 0 0 0 1px var(--line); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--surface); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--teal-dark); }
.btn-secondary:hover { border-color: var(--teal); }
.btn-wine { background: var(--wine); color: #fff; }

.hero {
  min-height: calc(100vh - 74px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 24, 23, 0.86), rgba(6, 24, 23, 0.48) 46%, rgba(22, 22, 22, 0.12)); }
.hero-content { position: relative; z-index: 1; color: #fff; padding: 94px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr); align-items: end; gap: 48px; }
.eyebrow { color: var(--gold); font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 6.7rem); line-height: 0.96; letter-spacing: 0; margin-bottom: 22px; max-width: 850px; }
.hero p { max-width: 660px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-panel { background: rgba(255, 254, 250, 0.92); color: var(--ink); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.hero-panel strong { display: block; font-size: 2rem; line-height: 1; color: var(--wine); }
.hero-panel span { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; }
.hero-panel .divider { height: 1px; background: var(--line); margin: 18px 0; }

.section { padding: 88px 0; }
.section-tight { padding: 58px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--teal-dark); color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.42fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.kicker { color: var(--wine); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin-bottom: 12px; }
h2 { font-family: var(--font-serif); font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1.03; margin-bottom: 0; letter-spacing: 0; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 700px; }
.section-dark .lead { color: rgba(255,255,255,0.74); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 26px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; color: var(--blue); }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-weight: 800; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; box-shadow: 0 10px 28px rgba(22,22,22,0.04); }
.card-number { color: var(--gold); font-weight: 900; margin-bottom: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .tag { display: inline-flex; margin-top: 20px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; font-weight: 900; color: var(--teal); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr); gap: 54px; align-items: center; }
.mockup { background: #101816; border-radius: 8px; padding: 28px; color: #fff; min-height: 500px; display: grid; align-content: center; box-shadow: var(--shadow); }
.phone-row { display: flex; gap: 18px; justify-content: center; align-items: center; }
.phone { width: 170px; aspect-ratio: 9 / 19; border: 9px solid #0b0e0d; border-radius: 30px; background: #f4f1ea; padding: 18px 12px; box-shadow: 0 18px 34px rgba(0,0,0,.26); color: var(--ink); }
.phone.small { transform: translateY(34px); background: #dce8e4; }
.phone-line { height: 10px; border-radius: 99px; background: var(--teal); margin-bottom: 10px; }
.phone-block { height: 54px; border-radius: 8px; background: #fff; margin-bottom: 10px; border: 1px solid #ded9ce; }
.phone-bars { display: grid; gap: 8px; }
.phone-bars span { display: block; height: 8px; border-radius: 99px; background: #c5bfb3; }
.phone-bars span:nth-child(2) { width: 72%; background: var(--wine); }
.phone-bars span:nth-child(3) { width: 52%; background: var(--gold); }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; color: #30332f; font-weight: 700; }
.check-list li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--teal); border-radius: 50%; flex: 0 0 auto; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.2); }
.process-step { padding: 28px; background: var(--teal-dark); min-height: 210px; }
.process-step span { color: var(--gold); font-weight: 900; }
.process-step h3 { margin: 36px 0 8px; color: #fff; }
.process-step p { margin: 0; color: rgba(255,255,255,0.73); }

.quote-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 34px; align-items: stretch; }
.quote-large { background: var(--blue); color: #fff; border-radius: 8px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.quote-large p { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; }
.quote-list { display: grid; gap: 16px; }
.mini-quote { border-left: 4px solid var(--wine); background: var(--surface); padding: 22px; border-radius: 0 8px 8px 0; }
.mini-quote p { color: var(--muted); margin-bottom: 12px; }
.mini-quote strong { color: var(--ink); }

.page-hero { padding: 92px 0 54px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--ink); font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 900px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.12rem; }

.service-list { display: grid; gap: 20px; }
.service-row { display: grid; grid-template-columns: 120px 1fr 220px; gap: 30px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { color: var(--wine); font-weight: 900; }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: 10px; }
.service-row p { color: var(--muted); margin-bottom: 18px; }
.service-row ul { margin: 0; padding-left: 18px; color: #30332f; }
.price-note { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; color: var(--muted); font-weight: 700; }

.about-photo { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.value { border-top: 5px solid var(--teal); background: var(--surface); border-radius: 0 0 8px 8px; padding: 26px; }
.value:nth-child(2) { border-top-color: var(--wine); }
.value:nth-child(3) { border-top-color: var(--gold); }
.value p { color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(280px, 0.52fr) minmax(0, 0.72fr); gap: 24px; align-items: start; }
.contact-panel { background: var(--teal-dark); color: #fff; border-radius: 8px; padding: 30px; }
.contact-item { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.contact-item:last-child { border-bottom: 0; }
.contact-item span { display: block; color: rgba(255,255,255,0.62); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: 5px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 900; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 12px 13px; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(20, 92, 88, 0.18); border-color: var(--teal); }
.success-message { display: none; border: 1px solid rgba(20, 92, 88, .28); background: rgba(20, 92, 88, .08); border-radius: 8px; padding: 22px; color: var(--teal-dark); font-weight: 800; }

.legal-wrap { max-width: 880px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 5vw, 48px); }
.legal-card h2 { font-family: var(--font-sans); font-size: 1.35rem; margin: 34px 0 10px; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.legal-card th, .legal-card td { text-align: left; padding: 12px; border: 1px solid var(--line); vertical-align: top; }

.cta-band { background: var(--wine); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-inner p { color: rgba(255,255,255,.78); max-width: 600px; margin-bottom: 0; }

.site-footer { background: #111614; color: #fff; padding: 58px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer p, .site-footer span { color: rgba(255,255,255,.66); }
.footer-col h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.76); margin: 8px 0; }
.footer-col a:hover { color: #fff; }
.copyright { color: rgba(255,255,255,.54); font-size: .86rem; padding-top: 24px; }

.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow); display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { color: var(--muted); margin: 8px 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-links { position: fixed; left: 20px; right: 20px; top: 84px; display: none; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .hero-grid, .section-head, .split, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .metrics, .process, .values { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-row { grid-template-columns: 80px 1fr; }
  .service-row .price-note { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero { min-height: 760px; }
  .hero-content { padding: 70px 0 42px; }
  .hero-grid { gap: 28px; }
  .hero-panel { padding: 18px; }
  .metrics, .service-grid, .process, .values, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .phone-row { transform: scale(.86); transform-origin: center; }
  .mockup { min-height: 390px; overflow: hidden; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-row .price-note { grid-column: auto; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
