/* ══════════════════════════════════════════
   КАЛИВА — app.css
   Design System + All Components
   ══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── DESIGN TOKENS ── */
:root {
  --bg: #f2f2f0;
  --card: #e8e8e5;
  --black: #0d0d0d;
  --text: #1a1a1a;
  --muted: #6b6b67;
  --accent: #3ddc84;
  --accent-dark: #00b85c;
  --line: #d4d4d0;
  --white: #ffffff;

  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  --shadow: none;
  --transition: 0.2s ease;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(242, 242, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--transition);
}
.site-nav.scrolled { border-color: var(--line); }

.nav-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}
.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: 0.8; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay a {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.nav-overlay a:hover,
.nav-overlay a.active { color: var(--white); }
.nav-overlay .nav-overlay-cta {
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  background: var(--white);
  color: var(--black);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
}

/* ══════════════════════════════════════════
   WRAP / LAYOUT
   ══════════════════════════════════════════ */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════ */
.eyebrow {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.section-label {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  font-size: 14px;
  background: var(--black);
  color: var(--white);
  padding: 14px 32px;
}
.btn-primary:hover { opacity: 0.8; }

.btn-white {
  font-size: 14px;
  background: var(--white);
  color: var(--black);
  padding: 14px 32px;
}
.btn-white:hover { opacity: 0.85; }

.btn-outline {
  font-size: 14px;
  background: transparent;
  color: var(--muted);
  padding: 14px 32px;
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--black); color: var(--black); }

.btn-outline-dark {
  font-size: 14px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline-dark:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

/* ══════════════════════════════════════════
   TAGS / PILLS
   ══════════════════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
}
.tag-sm {
  font-size: 11px;
  padding: 4px 12px;
}
.tag-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   HERO — SERVICES (kaliva.html)
   ══════════════════════════════════════════ */
.hero {
  padding: 148px 0 100px;
  position: relative;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.8vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 900px;
  margin-bottom: 40px;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.6;
  margin-top: 32px;
  margin-bottom: 48px;
}

/* ══════════════════════════════════════════
   DIRECTIONS (Услуги / О студии)
   ══════════════════════════════════════════ */
.directions { padding: 80px 0; }
.sec-label { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.06em; margin-bottom: 48px; }

.dir-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 60px 0;
}
.dir-item:last-child { border-bottom: 1px solid var(--line); }
.dir-icon svg { width: 48px; height: 48px; }
.dir-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 24px;
}
.dir-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}
.dir-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dir-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  margin-top: 24px;
  transition: color var(--transition);
}
.dir-link:hover { color: var(--black); }

/* ══════════════════════════════════════════
   SERVICES GRID
   ══════════════════════════════════════════ */
.services { padding: 80px 0; }
.services-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--black);
}
.services-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 480px;
  line-height: 1.6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-2px); }
.card.accent { background: var(--accent); }
.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 20px;
}

/* ══════════════════════════════════════════
   ADVANTAGES
   ══════════════════════════════════════════ */
.advantages { padding: 80px 0; }
.adv-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 60px;
}
.adv-label-col { padding-top: 8px; }
.adv-label-vert {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.adv-h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 700px;
}
.adv-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}
.adv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin-left: auto;
}
.adv-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.adv-card.dark { background: var(--black); }
.adv-card.light { background: var(--card); }
.adv-card-head { display: flex; align-items: flex-start; gap: 12px; }
.adv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  margin-top: 5px;
}
.adv-card.light .adv-dot { background: var(--black); }
.adv-card-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.adv-card.dark .adv-card-title { color: var(--white); }
.adv-card.light .adv-card-title { color: var(--black); }
.adv-card-desc { font-size: 13px; line-height: 1.65; margin-top: auto; padding-top: 20px; }
.adv-card.dark .adv-card-desc { color: rgba(255,255,255,0.5); }
.adv-card.light .adv-card-desc { color: var(--muted); }

/* ══════════════════════════════════════════
   BLOG GRID
   ══════════════════════════════════════════ */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 0 60px;
  justify-content: center;
}
.col-left, .col-right {}
.col-right { margin-top: 120px; }

.post {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.post:last-child { border-bottom: none; margin-bottom: 0; }

.post-img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}
.post:hover .post-img img { transform: scale(1.03); }
.post-img-placeholder {
  width: 100%; height: 100%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-link-icon {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--white);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.post:hover .post-link-icon { opacity: 1; }

.post-title {
  font-family: var(--font-head);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 10px;
}
.post-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tag {
  font-size: 11px;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Blog filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 72px; }
.filter-btn {
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.filter-count { font-size: 12px; color: var(--muted); }
.filter-btn.active .filter-count { color: rgba(255,255,255,0.5); }

.filter-tg {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.filter-tg:hover { color: var(--black); }
.filter-tg-icon {
  width: 32px; height: 32px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.filter-tg-icon svg { width: 16px; height: 16px; fill: white; }

/* Blog grid — разные пропорции картинок */
.post.post-left .post-img { aspect-ratio: 3/2; }
.post.post-right .post-img { aspect-ratio: 4/3; }

/* ══════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════ */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
}
.proj-img { overflow: hidden; aspect-ratio: 16/10; position: relative; }
.proj-img-inner { width: 100%; height: 100%; transition: transform 0.5s ease; }
.project-featured:hover .proj-img-inner { transform: scale(1.03); }

.proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
}
.proj-card:hover .proj-card-img-inner { transform: scale(1.04); }
.proj-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.proj-card-img-inner { width: 100%; height: 100%; transition: transform 0.5s ease; display: flex; align-items: center; justify-content: center; }
.proj-card-body { padding: 24px; }
.proj-card-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.proj-card-niche { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.proj-card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.proj-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-card-tag { font-size: 11px; color: var(--text); border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--radius-pill); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ══════════════════════════════════════════
   CONTACTS
   ══════════════════════════════════════════ */
.contacts-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 148px 0 100px;
  border-bottom: 1px solid var(--line);
}
.contact-group { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-group:first-child { padding-top: 0; }
.contact-group:last-child { border-bottom: none; }
.contact-group-label { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.contact-group a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  margin-bottom: 6px;
  transition: text-decoration-color var(--transition);
}
.contact-group a:hover { text-decoration-color: var(--black); }

.contact-group-tg {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
}
.contact-group-tg-icon {
  width: 44px; height: 44px;
  background: var(--black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-group-tg-icon svg { width: 20px; height: 20px; fill: white; }
.contact-group-tg-text { font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.4; }

/* PDF Button */
.pdf-btn { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); transition: opacity var(--transition); }
.pdf-btn:hover { opacity: 1; }
.pdf-btn:hover .pdf-btn-icon { background: var(--accent); border-color: var(--accent); }
.pdf-btn:hover span { color: var(--black); }
.pdf-btn-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  border: 1px solid var(--line);
  transition: background var(--transition), border-color var(--transition);
}
.pdf-btn span { font-size: 14px; color: var(--muted); line-height: 1.4; transition: color var(--transition); }

/* Form */
.form-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 100px 0; }
.form-section h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.form-field::placeholder { color: var(--muted); }
.form-field:focus { border-color: var(--black); }
.form-field.full { grid-column: 1 / -1; }
.form-field.error { border-color: #e53935; }
textarea.form-field { resize: none; height: 140px; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; margin-bottom: 20px; }
.form-agree { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.agree-toggle {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.agree-toggle.checked { background: var(--black); border-color: var(--black); }
.agree-text { font-size: 12px; color: var(--muted); line-height: 1.6; }
.agree-text a { color: var(--muted); text-decoration: underline; }

.attach-btn {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition);
  width: 100%;
}
.attach-btn:hover { border-color: var(--black); }
.attach-icon {
  width: 32px; height: 32px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submit-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 40px;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
}
.submit-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.form-success {
  display: none;
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success p { font-size: 16px; font-weight: 600; color: var(--black); }

/* Validation messages */
.field-error { font-size: 12px; color: #e53935; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.manifesto { padding: 100px 0; border-bottom: 1px solid var(--line); }
.manifesto-inner { display: grid; grid-template-columns: 280px 1fr; gap: 80px; }
.manifesto-label { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 8px; }
.manifesto-text h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 32px;
}
.manifesto-text p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; max-width: 640px; }
.manifesto-text strong { color: var(--black); }

.dir-benefit { background: var(--white); border-radius: 12px; padding: 20px 22px; }
.dir-benefit-title { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.dir-benefit-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.how-step { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.how-step-num { font-family: var(--font-head); font-size: 11px; color: var(--muted); margin-bottom: auto; }
.how-step-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 10px; letter-spacing: -0.01em; }
.how-step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin-left: auto; }
.g-card { border-radius: var(--radius-lg); padding: 36px; aspect-ratio: 1/1; display: flex; flex-direction: column; justify-content: flex-end; }
.g-card.dark { background: var(--black); }
.g-card.light { background: var(--white); }
.g-card.green { background: var(--accent); }
.g-card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.g-card.dark .g-card-title { color: var(--white); }
.g-card.light .g-card-title, .g-card.green .g-card-title { color: var(--black); }
.g-card-desc { font-size: 13px; line-height: 1.65; }
.g-card.dark .g-card-desc { color: rgba(255,255,255,0.45); }
.g-card.light .g-card-desc, .g-card.green .g-card-desc { color: rgba(0,0,0,0.55); }

/* ══════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════ */
.article-hero { padding: 140px 0 64px; display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: end; border-bottom: 1px solid var(--line); }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 32px; transition: color var(--transition); }
.article-back:hover { color: var(--black); }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(24px, 2.8vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); }
.article-meta { display: flex; flex-direction: column; gap: 20px; }
.article-meta-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.article-meta-value { font-size: 14px; font-weight: 600; color: var(--black); }
.article-lead { font-size: 16px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }

.article-cover { padding: 48px 0; }
.article-cover-img { width: 100%; aspect-ratio: 16/7; background: var(--card); border-radius: 20px; overflow: hidden; }
.article-cover-img img { width: 100%; height: 100%; object-fit: cover; }

.article-content { display: grid; grid-template-columns: 200px 1fr; gap: 80px; padding: 48px 0 100px; }
.sidebar-sticky { position: sticky; top: 100px; }
.sidebar-toc-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.sidebar-toc a { display: block; font-size: 13px; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); margin-bottom: 4px; transition: all var(--transition); line-height: 1.4; }
.sidebar-toc a:hover, .sidebar-toc a.active { color: var(--black); border-left-color: var(--black); }

.article-body h2 { font-family: var(--font-head); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.025em; color: var(--black); margin: 56px 0 20px; line-height: 1.25; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.article-body ul { padding-left: 0; margin-bottom: 20px; list-style: none; }
.article-body li { font-size: 16px; line-height: 1.8; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.article-body li::before { content: '—'; color: var(--muted); flex-shrink: 0; }
.article-body strong { font-weight: 700; color: var(--black); }

.callout { background: var(--black); border-radius: var(--radius-lg); padding: 32px 36px; margin: 40px 0; }
.callout p { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.75; margin: 0; }
.callout strong { color: var(--accent); }
.callout-accent { background: var(--accent); border-radius: var(--radius-lg); padding: 32px 36px; margin: 40px 0; }
.callout-accent p { color: var(--black); font-size: 16px; line-height: 1.75; margin: 0; font-weight: 500; }

.article-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 40px 0; }
.article-num-item { background: var(--bg); padding: 28px 24px; }
.article-num { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--black); letter-spacing: -0.04em; margin-bottom: 8px; }
.article-num-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

.related { border-top: 1px solid var(--line); padding: 80px 0 100px; }
.related-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.related-post { cursor: pointer; }
.related-img { width: 100%; aspect-ratio: 4/3; background: var(--card); border-radius: 12px; margin-bottom: 16px; overflow: hidden; transition: transform 0.3s; }
.related-post:hover .related-img { transform: translateY(-3px); }
.related-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; color: var(--black); margin-bottom: 10px; }

/* ══════════════════════════════════════════
   CTA BLOCKS
   ══════════════════════════════════════════ */
.cta-block {
  background: var(--black);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.cta-block h2 { font-family: var(--font-head); font-size: clamp(20px, 2.5vw, 36px); font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.cta-block p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 480px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.article-cta { background: var(--black); border-radius: var(--radius-xl); padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 100px; }
.article-cta-text h2 { font-family: var(--font-head); font-size: clamp(18px, 2vw, 28px); font-weight: 800; color: var(--white); letter-spacing: -0.025em; margin-bottom: 10px; }
.article-cta-text p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ══════════════════════════════════════════
   HERO — ABOUT PAGE
   ══════════════════════════════════════════ */
.hero-about { padding: 148px 0 100px; border-bottom: 1px solid var(--line); }
.hero-about h1 { font-family: var(--font-head); font-size: clamp(32px, 4.5vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; color: var(--black); max-width: 900px; margin-bottom: 0; }
.hero-about h1 em { font-style: normal; color: var(--accent-dark); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 80px; align-items: start; }
.hero-desc { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 480px; }
.hero-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hero-num-item { background: var(--bg); padding: 28px 24px; }
.hero-num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--black); letter-spacing: -0.04em; margin-bottom: 6px; }
.hero-num-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   HERO — PROJECTS PAGE
   ══════════════════════════════════════════ */
.hero-projects { padding: 148px 0 72px; border-bottom: 1px solid var(--line); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-projects h1 { font-family: var(--font-head); font-size: clamp(32px, 4.5vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; color: var(--black); }

/* ══════════════════════════════════════════
   HERO — BLOG PAGE
   ══════════════════════════════════════════ */
.hero-blog { padding: 148px 0 64px; }
.hero-blog h1 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--black); max-width: 820px; margin-bottom: 48px; }
.hero-blog .inline-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); border-radius: 10px; padding: 4px 8px; margin: 0 4px; vertical-align: middle; font-size: 0.7em; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 60px 48px 0; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-cta-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
  transition: opacity var(--transition);
}
.footer-cta-btn:hover { opacity: 0.8; }
.footer-socials { display: flex; gap: 8px; }
.footer-soc {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition);
}
.footer-soc:hover { color: var(--black); border-color: var(--black); }
.footer-slogan { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.footer-contact a { display: block; font-size: 15px; font-weight: 600; color: var(--black); text-decoration: underline; margin-bottom: 4px; }
.footer-tg-label { font-size: 11px; color: var(--muted); margin-top: 16px; margin-bottom: 4px; }
.footer-tg a { font-size: 14px; color: var(--black); text-decoration: underline; }
.footer-right { text-align: right; }
.footer-logo-big { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--black); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0 0; }
.footer-giant { font-family: var(--font-head); font-size: clamp(14px, 2.8vw, 40px); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; color: var(--black); margin-bottom: 24px; }
.footer-fine { display: flex; gap: 24px; padding-bottom: 32px; }
.footer-fine a { font-size: 12px; color: var(--muted); }
.footer-fine a:hover { color: var(--black); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* Footer simple */
.site-footer-simple { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 48px 0; }
.footer-bottom-only { display: flex; align-items: center; justify-content: space-between; padding-bottom: 32px; }

/* ══════════════════════════════════════════
   ABOUT PAGE — дополнительные стили
   ══════════════════════════════════════════ */
.hero-eyebrow { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 32px; }
.manifesto-text p:last-child { margin-bottom: 0; }
.directions { padding: 100px 0; border-bottom: 1px solid var(--line); }
.directions-header { display: grid; grid-template-columns: 280px 1fr; gap: 80px; margin-bottom: 64px; }
.directions-label { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 8px; }
.directions-title { font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); max-width: 600px; }
.dir-index { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.dir-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--black); line-height: 1.3; margin-bottom: 20px; }
.dir-tag-list { display: flex; flex-direction: column; gap: 6px; }
.dir-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 5px 14px; border-radius: 100px; display: inline-block; width: fit-content; }
.dir-value-title { font-size: 20px; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 16px; letter-spacing: -0.01em; }
.dir-value-desc { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; }
.dir-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir-item--ai .dir-name { color: var(--accent-dark); }
.dir-item--ai .dir-benefit { background: var(--black); }
.dir-item--ai .dir-benefit-title { color: var(--white); }
.dir-item--ai .dir-benefit-desc { color: rgba(255,255,255,0.45); }
.how { padding: 100px 0; border-bottom: 1px solid var(--line); }
.how-header { display: grid; grid-template-columns: 280px 1fr; gap: 80px; margin-bottom: 64px; }
.how-label { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 8px; }
.how-title { font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); }
.guarantees { padding: 100px 0; border-bottom: 1px solid var(--line); }
.guarantees-header { display: grid; grid-template-columns: 280px 1fr; gap: 80px; margin-bottom: 64px; }
.guarantees-label { font-size: 12px; color: var(--accent-dark); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 8px; }
.guarantees-title { font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--black); max-width: 560px; }
.g-card-icon { display: none; }
.page-cta { padding: 0 0 100px; }

/* ══════════════════════════════════════════
   ARTICLE PAGE — дополнительные стили
   ══════════════════════════════════════════ */
.article-wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.article-tag { display: inline-block; font-size: 12px; color: var(--text); border: 1px solid var(--line); padding: 5px 14px; border-radius: 100px; }
.article-tag.accent { background: var(--accent); border-color: var(--accent); color: var(--black); font-weight: 600; }
.article-cover-img { display: flex; align-items: center; justify-content: center; }
.article-sidebar {}
.sidebar-toc {}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE < 900px
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .wrap, .page-wrap { padding: 0 24px; }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: clamp(28px, 8vw, 48px); }
  .hero-about { padding: 100px 0 60px; }
  .hero-about h1 { font-size: clamp(28px, 8vw, 48px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero-numbers { grid-template-columns: 1fr; }
  .hero-projects { padding: 100px 0 48px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-blog { padding: 100px 0 48px; }
  .dir-item { grid-template-columns: 48px 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .adv-inner { grid-template-columns: 1fr; }
  .adv-label-col { display: none; }
  .adv-cards { grid-template-columns: 1fr; max-width: 100%; }
  .blog-grid { padding: 0 24px 80px; grid-template-columns: 1fr; justify-content: stretch; }
  .col-right { margin-top: 0; }
  .project-featured { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contacts-hero { grid-template-columns: 1fr; padding: 100px 0 60px; gap: 48px; }
  .form-section { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 32px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .guarantees-grid { grid-template-columns: 1fr; max-width: 100%; }
  .g-card { aspect-ratio: auto; min-height: 200px; }
  .article-hero { grid-template-columns: 1fr; padding: 100px 0 48px; gap: 40px; }
  .article-content { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; padding: 40px 24px; }
  .article-numbers { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 48px 24px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .site-footer { padding: 48px 24px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .site-footer-simple { padding: 40px 24px 0; }
  .manifesto-inner, .directions-header, .dir-item, .how-header, .guarantees-header { grid-template-columns: 1fr; gap: 32px; }
  .dir-benefits { grid-template-columns: 1fr; }
  .article-wrap { padding: 0 24px; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .form-field { font-size: 16px; }
}
/* About page directions */
.dir-left {}
.dir-right {}

/* About page dir-item override */
.dir-left { padding-top: 4px; }
.dir-right { min-width: 0; }
.dir-left + .dir-right { padding-left: 0; }

/* About page - dir-item with dir-left/dir-right */
.dir-item:has(.dir-left) {
  grid-template-columns: 280px 1fr;
  gap: 80px;
}

.dir-about {
  grid-template-columns: 280px 1fr !important;
  gap: 80px !important;
}
