/* Лъжеврина ИИ — styles.css
   Modern minimalism, calm digital palette */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16202c;
  --muted: #5a6875;
  --line: #e2e8f0;
  --brand: #1f3a5f;
  --brand-2: #2f6f8f;
  --accent: #d7e5ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 32, 44, 0.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.96rem;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--accent); color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); background: var(--accent); }

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46ch;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #17304f; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); margin-left: 10px; }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Asymmetric feature */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.feature ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--muted);
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--brand-2);
}

/* Stats band */
.band {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .n { font-size: 2rem; font-weight: 800; }
.stats .l { color: #c7d6e6; font-size: 0.92rem; }

/* Prose (legal / detail pages) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 36px; font-size: 1.4rem; }
.prose h3 { margin-top: 26px; font-size: 1.1rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.page-hero { padding: 56px 0 20px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .k { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-2); }
.info-list .v { font-size: 1.05rem; color: var(--ink); }

form.card { display: grid; gap: 16px; }
label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-2); border-color: transparent; }
textarea { resize: vertical; min-height: 120px; }

.map-note {
  margin-top: 18px;
  padding: 16px;
  background: var(--accent);
  border-radius: 10px;
  color: var(--brand);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #10202f;
  color: #b9c6d3;
  margin-top: 40px;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer a { color: #b9c6d3; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 700; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #8a9aab;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .feature, .feature.reverse, .contact-grid { grid-template-columns: 1fr; }
  .grid, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
}
@media (max-width: 560px) {
  .grid, .grid-2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { width: 100%; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
}
