:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-soft: #0e1118;
  --panel: #121620;
  --panel-hover: #171c27;
  --border: #272d3a;
  --border-soft: rgba(255,255,255,.08);
  --fg: #f4f1e9;
  --muted: #a6a8b1;
  --accent: #e2b85f;
  --accent-bright: #f0c973;
  --accent-wash: rgba(226,184,95,.10);
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% -12%, rgba(39,67,128,.22), transparent 34rem), var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,10,15,.78);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(20px) saturate(140%);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { width: 44px; height: 44px; display: block; border-radius: 50%; filter: drop-shadow(0 0 12px rgba(57,85,150,.35)); }
.mark { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.mark span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav a.link:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-bright), #d6a642);
  box-shadow: 0 8px 28px rgba(226,184,95,.13);
  color: #171207;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(226,184,95,.22); }
.btn.ghost { background: rgba(255,255,255,.025); border-color: var(--border); box-shadow: none; color: var(--fg); }
.btn.ghost:hover { border-color: rgba(226,184,95,.65); background: var(--accent-wash); }

.hero { position: relative; padding: 84px 0 78px; text-align: center; }
.hero .badge { position: relative; display: block; width: 224px; margin: 0 auto 20px; border-radius: 50%; filter: drop-shadow(0 20px 34px rgba(0,0,0,.5)); }
.hero .kicker { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 18px 0; font-size: clamp(2.65rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
.hero h1 em { color: var(--accent-bright); font-style: normal; }
.hero p.sub { max-width: 54ch; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.hero .cta { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust-strip { display: flex; justify-content: center; margin-top: 32px; color: #c1c3ca; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.trust-strip span { display: flex; align-items: center; }
.trust-strip span + span::before { content: ""; width: 3px; height: 3px; margin: 0 14px; border-radius: 50%; background: var(--accent); }

section { padding: 88px 0; scroll-margin-top: 72px; }
#ai { scroll-margin-top: 96px; }
section.alt { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.lead { max-width: 58ch; margin-top: 12px; color: var(--muted); font-size: 1.03rem; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 42px; }
.card {
  grid-column: span 4;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 45px rgba(0,0,0,.14);
  transition: transform .18s, border-color .18s, background .18s;
}
.card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(226,184,95,.08), transparent 67%); opacity: 0; transition: opacity .18s; }
.card:hover { transform: translateY(-4px); border-color: rgba(226,184,95,.5); background: var(--panel-hover); }
.card:hover::after { opacity: 1; }
.card .ico { width: 72px; height: 72px; overflow: hidden; border: 1px solid rgba(226,184,95,.18); border-radius: 16px; background: #020817; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.card .ico img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 20px 0 9px; font-size: 1.14rem; font-weight: 700; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .94rem; }
.price { margin-top: 16px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#services .grid > .card:nth-child(4), #services .grid > .card:nth-child(5) { grid-column: span 6; }
.card.wide { grid-column: span 8; background: linear-gradient(135deg, rgba(29,49,93,.32), rgba(226,184,95,.05)); }
.card.free { grid-column: span 4; background: linear-gradient(145deg, rgba(226,184,95,.13), rgba(226,184,95,.035)); border-color: rgba(226,184,95,.5); }
.why-grid .card { grid-column: span 4; min-height: 220px; }

.contact-box { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 64px; align-items: start; margin-top: 42px; }
.contact-details { position: relative; }
.contact-art {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 55%, rgba(41,66,125,.25), transparent 48%), rgba(255,255,255,.018);
}
.contact-art img { width: 170px; height: 170px; border: 1px solid rgba(226,184,95,.18); border-radius: 50%; object-fit: cover; box-shadow: 0 18px 34px rgba(0,0,0,.38); }
.contact-note { display: grid; gap: 4px; margin-bottom: 8px; }
.contact-note strong { color: var(--fg); font-size: 1.04rem; }
.contact-note span { color: var(--muted); font-size: .9rem; }
.contact-box .big { color: var(--fg); font-size: 1.3rem; }
.mail { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 1.05rem; font-weight: 650; }
.fact { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.fact span:first-child { color: var(--muted); }
.cform { display: grid; gap: 17px; padding: 28px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.cform label { display: grid; gap: 7px; color: #c5c7ce; font-size: .86rem; font-weight: 600; }
.cform input, .cform textarea { width: 100%; padding: 13px 14px; background: rgba(6,8,12,.72); border: 1px solid var(--border); border-radius: 10px; color: var(--fg); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.cform textarea { resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,184,95,.1); }
.cform .hp { position: absolute; left: -9999px; }
#form-result { margin-top: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
#form-result.err { border-color: #b3574f; }

footer { padding: 30px 0; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: .84rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .nav nav { gap: 20px; }
  .grid .card, .card.wide, .card.free { grid-column: span 6; }
  .why-grid .card { grid-column: span 6; }
  .contact-box { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .nav a.link { display: none; }
  .hero { padding: 54px 0 60px; }
  .hero .badge { width: 176px; margin-bottom: 18px; }
  .hero .kicker { font-size: .67rem; line-height: 1.7; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .hero p.sub { font-size: 1rem; }
  section { padding: 64px 0; }
  .grid .card, .card.wide, .card.free, .why-grid .card { grid-column: 1 / -1; min-height: auto; }
  #services .grid > .card:nth-child(4), #services .grid > .card:nth-child(5) { grid-column: 1 / -1; }
  .card { padding: 24px; }
  .trust-strip { flex-wrap: wrap; row-gap: 8px; }
  .cform { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
