/* ===== Андрей Комаров — SEO-эксперт ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #ffffff;
  --bg: #f6f6f3;
  --ink: #16181d;
  --muted: #5b616c;
  --line: #e7e7e1;
  --accent: #1e4fd6;
  --accent-ink: #17163a;
  --accent-tint: #eef2ff;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(16, 18, 29, .04), 0 8px 30px rgba(16, 18, 29, .05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1a44b8; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfcfc7; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 243, .82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-weight: 700; letter-spacing: -0.02em; }
.brand span { font-size: .74rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

/* ---- Hero ---- */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 38px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 120px; }
.hero-stats b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats span { font-size: .88rem; color: var(--muted); }
.hero-photo {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card-num { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }

a.card { transition: transform .14s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: #d5d5cd; }

.card--accent {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--accent-tint); border-color: #dfe4ff;
}
.card--accent h3 { color: var(--accent); }

/* YouTube: фасад (плеер грузится по клику) */
.yt-facade {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow);
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s ease; }
.yt-facade:hover img { opacity: .72; }
.yt-facade > button {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.yt-facade > button svg { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transition: transform .15s ease; }
.yt-facade:hover > button svg { transform: scale(1.08); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: .9rem; font-weight: 500; color: var(--ink);
}

/* ---- Feature list (services detail) ---- */
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature .fnum {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  border: 1px solid var(--line); border-radius: 12px; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; background: var(--paper);
}
.feature h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.feature .meta { margin: 14px 0 0; display: grid; gap: 8px; }
.feature .meta div { font-size: .95rem; }
.feature .meta b { color: var(--ink); }
.feature .meta span { color: var(--muted); }

/* ---- Timeline ---- */
.timeline { display: grid; gap: 6px; margin-top: 8px; }
.timeline .tl {
  display: grid; grid-template-columns: 128px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.timeline .tl:last-child { border-bottom: 0; }
.timeline .tl .yr { font-weight: 700; color: var(--accent); }
.timeline .tl h3 { margin-bottom: 6px; }
.timeline .tl p { color: var(--muted); font-size: .96rem; }

/* ---- About split ---- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.split .about-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.split .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--accent-ink); color: #fff; border-radius: 22px;
  padding: 54px 48px; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 46ch; margin: 0 auto 26px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn--ghost:hover { border-color: #fff; }
.cta-band .btn--primary { background: #fff; color: var(--accent-ink); }
.cta-band .btn--primary:hover { background: #e9e9ff; }

/* ---- Contacts ---- */
.contact-list { display: grid; gap: 16px; max-width: 560px; }
.contact-list a.card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-list .big { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.contact-list .sub { color: var(--muted); font-size: .9rem; }
.contact-list .arrow { color: var(--accent); font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 48px 0 40px; margin-top: 24px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer .f-brand b { font-size: 1.05rem; }
.site-footer .f-brand p { color: var(--muted); font-size: .92rem; margin-top: 6px; max-width: 34ch; }
.site-footer .f-links { display: grid; gap: 8px; font-size: .95rem; }
.site-footer .f-links a { color: var(--muted); }
.site-footer .f-links a:hover { color: var(--ink); }
.site-footer .f-copy { width: 100%; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; color: var(--muted); font-size: .85rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 360px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .about-photo { max-width: 360px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 24px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 40px; }
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
  }
  .nav.open a { padding: 10px 0; width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 12px; }
  .timeline .tl { grid-template-columns: 1fr; gap: 6px; }
}
