/* style.css */

/* -----------------------------
   Design Tokens (CSS Variables)
------------------------------ */
:root {
  /* Apple-like neutrals */
  --bg: #f5f5f7;
  --surface: #ffffff;

  /* Apple-like text */
  --text: #1d1d1f;
  --heading: #1d1d1f;
  --muted: #6e6e73;

  /* Accents */
  --accent: #4a6fff;
  --accent-2: #0e7c7b;
  --positive: #10b981;

  /* Hairline borders */
  --border: rgba(60, 60, 67, 0.18);

  /* Very subtle (mostly unused now) */
  --shadow: 0 1px 0 rgba(0,0,0,0.04);

  /* Apple-like rounding */
  --radius-card: 16px;
  --radius-btn: 12px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 64px;

  --container: 1120px;
  --header-h: 68px;

  --focus: 0 0 0 4px rgba(74, 111, 255, 0.22);
}

/* -----------------------------
   Base
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 12px 0; }

h1, h2, h3 {
  font-family: "SF Pro Display", Inter, system-ui, -apple-system, sans-serif;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 10px 0;
}

h1 { font-size: clamp(28px, 6vw, 44px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.015em; }
h3 { font-size: 18px; }

.lead { font-size: 16.5px; color: var(--heading); }
.sublead { color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

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

.section { padding: var(--space-7) 0; }

.section-head {
  margin-bottom: var(--space-5);
  max-width: 70ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  outline: none;
  box-shadow: var(--focus);
}

/* -----------------------------
   Header / Navigation
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent);
}

.brand-text { color: var(--heading); }

.site-nav { display: none; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.nav-link {
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--heading);
  font-weight: 600;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover { background: rgba(60, 60, 67, 0.08); }

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Hamburger */
.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.nav-toggle:hover { border-color: rgba(74,111,255,0.35); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--heading);
  border-radius: 10px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--heading);
  border-radius: 10px;
  transition: transform 180ms ease, top 180ms ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Mobile nav panel */
.site-nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav.is-open .nav-list {
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px 16px;
}

/* Toggle animation to "X" */
.nav-toggle.is-open .nav-toggle-bars { background: transparent; }
.nav-toggle.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* -----------------------------
   Main spacing under fixed header
------------------------------ */
.site-main { padding-top: calc(var(--header-h) + 10px); }

/* -----------------------------
   Hero
------------------------------ */
.hero { padding-top: var(--space-8); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-notes {
  margin: var(--space-4) 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.hero-notes li { display: flex; gap: 10px; align-items: baseline; }
.hero-notes li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(74, 111, 255, 0.70);
  flex: 0 0 auto;
  margin-top: 6px;
}

/* Visual placeholder (keep modern but calmer) */
.hero-visual { display: grid; place-items: center; }
.hero-image {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.visual-card {
  width: min(520px, 100%);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.visual-top { display: flex; justify-content: space-between; gap: 10px; }

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, 0.18);
  background: rgba(60, 60, 67, 0.06);
  color: var(--heading);
}
.pill-soft {
  border-color: rgba(16,185,129,0.22);
  background: rgba(16,185,129,0.10);
}

.visual-mid {
  position: relative;
  min-height: 200px;
  border-radius: 16px;
  background: rgba(60, 60, 67, 0.05);
  border: 1px solid rgba(60, 60, 67, 0.14);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.stack {
  width: 64%;
  display: grid;
  gap: 10px;
  transform: rotate(-2deg);
}
.stack-item {
  height: 40px;
  border-radius: 14px;
  background: rgba(60, 60, 67, 0.08);
  border: 1px solid rgba(60, 60, 67, 0.16);
}
.stack-item:nth-child(2) {
  transform: translateX(10px);
}
.stack-item:nth-child(3) {
  transform: translateX(-6px);
}

.ring {
  display: none;
}

.visual-bottom { display: grid; gap: 10px; }

.meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.12);
  overflow: hidden;
}
.meter-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74,111,255,0.95), rgba(16,185,129,0.92));
}

.visual-caption {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* -----------------------------
   Cards / Content blocks (Apple-like: borders, no heavy shadows)
------------------------------ */
.why-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 20px;
}

.card-grid { display: grid; gap: 14px; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: none;
  transition: border-color 160ms ease;
}
.info-card:hover { border-color: rgba(74,111,255,0.30); }

.icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(60, 60, 67, 0.08);
  border: 1px solid rgba(60, 60, 67, 0.18);
  color: var(--heading);
  margin-bottom: 10px;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.icon-green {
  color: #0a7c5c;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.30);
}

.card-title { margin-bottom: 6px; font-weight: 600; }
.card-text { margin: 0; color: var(--muted); line-height: 1.6; }

/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-primary {
  color: #fff;
  background: var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-neutral {
  color: var(--heading);
  background: rgba(60, 60, 67, 0.06);
  border-color: rgba(60, 60, 67, 0.14);
}
.btn-neutral:hover { border-color: rgba(74,111,255,0.30); transform: translateY(-1px); }

/* -----------------------------
   Accordion
------------------------------ */
.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  overflow: hidden;
}

.accordion-item + .accordion-item { border-top: 1px solid var(--border); }

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accordion-trigger:hover { background: rgba(60, 60, 67, 0.06); }
.accordion-trigger:focus-visible { outline: none; box-shadow: var(--focus); }

.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(29, 29, 31, 0.55);
  border-bottom: 2px solid rgba(29, 29, 31, 0.55);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-right: 4px;
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(-135deg); }

.accordion-panel { padding: 0 16px 16px 16px; color: var(--muted); }

/* Smooth height animation using CSS grid trick */
.accordion-panel-inner {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}
.accordion-panel-inner > div { min-height: 0; }
.accordion-panel-inner.is-open { grid-template-rows: 1fr; }

/* -----------------------------
   Contact (fix layout + Apple-like details column)
------------------------------ */
.contact-card { display: grid; gap: 18px; }

.contact-main { display: grid; gap: 14px; }

.content-blocks {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.content-block {
  background: rgba(60, 60, 67, 0.06);
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
}
.content-block h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
}
.content-block p { margin: 0; color: var(--muted); line-height: 1.6; }

.contact-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.contact-title {
  margin: 0;
  font-weight: 700;
  color: var(--heading);
  font-size: 16px;
}

.contact-email {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.email-link {
  display: inline-block;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 60, 67, 0.35);
  padding-bottom: 2px;
}
.email-link:hover { border-bottom-color: rgba(74, 111, 255, 0.75); }
.email-link:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(245, 245, 247, 0.75);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}


.footer-name {
  font-weight: 700;
  color: var(--heading);
  display: block;
  margin-bottom: 4px;
}

.footer-copy { color: var(--muted); font-size: 13px; }

.footer-legal {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease;
}
.footer-link:hover { background: rgba(60, 60, 67, 0.06); color: var(--heading); }
.footer-link:focus-visible { outline: none; box-shadow: var(--focus); }

/* -----------------------------
   Responsive Breakpoints
------------------------------ */
@media (min-width: 768px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }

  .site-nav.is-open {
    position: static;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* FIX: Apple-like contact column with divider */
  .contact-card {
    grid-template-columns: 1fr 320px;
    align-items: stretch; /* ключевая правка */
    column-gap: 28px;
  }

  .contact-actions {
    padding-left: 22px;
    border-left: 1px solid var(--border);
	    /* 👇 ВАЖНО */
    display: flex;
    flex-direction: column;
    justify-content: center; /* вертикальный центр */
    gap: 10px;

  .content-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .section { padding: var(--space-8) 0; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .accordion-trigger { padding: 18px 18px; }
  .accordion-panel { padding: 0 18px 18px 18px; }
}
