/* =============================================================
   Сколько Корма — единая таблица стилей сайта
   Направление B: тёплый бренд, крупная Fraunces-типографика,
   фото-driven hero, bento-сетки, бумажная палитра.
   ============================================================= */

/* 1. TOKENS ----------------------------------------------------- */
:root {
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SF Mono, Menlo, monospace;

  --paper: #f6f1e8;
  --paper-deep: #ede4d3;
  --paper-cream: #f2ebdc;
  --paper-sand: #e9dfcb;
  --cream-200:  #e9dfcb;  /* alias --paper-sand, background placeholder for prose-figure */
  --white: #ffffff;

  --ink-900: #15100c;
  --ink-800: #231c16;
  --ink-700: #3d342b;
  --ink-600: #55483b;
  --ink-500: #746a5d;
  --ink-400: #9d9180;
  --ink-300: #c2b7a4;
  --ink-200: #ddd2bc;
  --ink-100: #ebe2ce;

  --brand-800: #5e2714;
  --brand-700: #81381e;
  --brand-600: #9e4524;
  --brand-500: #b8532e;
  --brand-200: #f0c49a;  /* between brand-100 and brand-500, text-decoration fallback */
  --brand-100: #f7dcc0;
  --brand-50:  #fbefe1;

  --sun-500: #d9a441;
  --sun-300: #f5b94b;
  --sun-100: #f6e4b4;

  --sage-700: #475640;
  --sage-500: #5d7158;
  --sage-100: #d1dac8;
  --sage-50:  #e6ece0;

  --ok-500: #2f8054;
  --ok-100: #d5ecd8;
  --warn-500: #c27818;
  --warn-100: #f9e6c8;
  --stop-500: #b14939;
  --stop-100: #f4d7cf;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 40px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(23,18,14,.06), 0 1px 2px rgba(23,18,14,.04);
  --shadow-md: 0 8px 24px rgba(23,18,14,.08), 0 2px 6px rgba(23,18,14,.05);
  --shadow-lg: 0 24px 60px rgba(23,18,14,.12), 0 8px 20px rgba(23,18,14,.06);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-14: 56px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  --container: 1320px;
  --container-text: 760px;
  --gutter: 28px;
}

/* 2. RESET ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-feature-settings: "ss01","cv11","kern","liga"; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 16px; line-height: 1.6;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
a { color: var(--brand-700); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
em { color: var(--brand-600); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }

/* 3. LAYOUT PRIMITIVES ------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: var(--container-text); }

/* When container--text is used as a top-level container (paired with .container),
   keep the same width as the full grid — constrain text via children */
.container.container--text {
  max-width: var(--container);
}
.container.container--text > * {
  max-width: var(--container-text);
}
.container.container--text > .kicker {
  width: max-content;
}
.container--text > :where(h2, h3, h4, p, ul, ol, blockquote, figure, .faq, .form, .cases__title, .cases__lead, table, .table-wrap, .method-grid) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.container--text > .kicker {
  width: max-content;
  margin-left: 0;
  margin-right: auto;
}
.container--text > * + * { margin-top: var(--sp-5); }
.container--text h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
.container--text h2:not(:first-child) { margin-top: var(--sp-12); }
.container--text h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.container--text p,
.container--text li {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-700);
}
.container--text strong { color: var(--ink-900); font-weight: 700; }
.container--text a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--brand-100); }
.container--text a:hover { text-decoration-color: var(--brand-500); }
.container--text ul,
.container--text ol { padding-left: 0; }
.container--text ul li,
.container--text ol li { position: relative; padding-left: 26px; margin-bottom: var(--sp-3); }
.container--text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 10px;
  height: 2px;
  background: var(--brand-500);
}
.container--text ol { counter-reset: text-list; }
.container--text ol li { counter-increment: text-list; }
.container--text ol li::before {
  content: counter(text-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-700);
  font-weight: 700;
}
.container--text table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--white);
}
.container--text th,
.container--text td { padding: 14px 16px; border-bottom: 1px solid var(--ink-200); text-align: left; }
.container--text th { background: var(--paper-cream); color: var(--ink-900); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.container--text td { color: var(--ink-700); }
.container--text tr:last-child td { border-bottom: 0; }
.container--text .cases__title { margin-top: 14px; }
@media (max-width: 760px) {
  .container--text p,
  .container--text li { font-size: 16.5px; line-height: 1.68; }
  .container--text h2:not(:first-child) { margin-top: var(--sp-10); }
  .container--text table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Project info pages: align body sections to the site grid after hero */
.project-page > .section > .container--text {
  max-width: var(--container);
}
.project-page > .section > .container--text > * {
  width: 100%;
}
.project-page > .section > .container--text > :where(.method-grid, .team, .stats, .form, table, .table-wrap) {
  max-width: none;
}

.section { padding-block: var(--sp-20); }
.section--sm { padding-block: var(--sp-12); }
.section--cream { background: var(--paper-cream); }
.section--deep { background: var(--paper-deep); }
.section--sand { background: var(--paper-sand); }
.section--ink { background: var(--ink-900); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }

.section__title {
  font-size: clamp(36px, 4.5vw, 60px);
  margin: 0 0 var(--sp-10);
  max-width: 860px;
  text-wrap: balance;
}
.section__title em { color: var(--brand-600); }
@media (max-width: 620px) { .section__title { margin-bottom: var(--sp-8); } }

/* utilities */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--brand-700);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--brand-500); }
.kicker--on-dark { color: var(--sun-300); }
.kicker--on-dark::before { background: var(--sun-300); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--brand-700);
  background: var(--brand-50);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.eyebrow--on-dark { background: rgba(246,241,232,.12); color: var(--paper); border: 1px solid rgba(246,241,232,.18); backdrop-filter: blur(8px); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.eyebrow--on-dark::before { background: var(--sun-300); box-shadow: 0 0 10px var(--sun-300); }

.h-display { font-size: clamp(44px, 6.5vw, 92px); line-height: .98; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; }
.h2 { font-size: clamp(30px, 4vw, 52px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); }
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--ink-600); max-width: 640px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-size: 15px; font-weight: 600; border-radius: var(--r-pill); text-decoration: none; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease; }
.btn--primary { background: var(--ink-900); color: var(--paper); }
.btn--primary:hover { background: var(--brand-600); color: var(--paper); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sun { background: var(--sun-300); color: var(--ink-900); }
.btn--sun:hover { background: var(--sun-500); color: var(--ink-900); text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,185,75,.4); }
.btn--ghost { background: transparent; color: var(--ink-900); border: 1px solid var(--ink-200); }
.btn--ghost:hover { background: var(--ink-900); color: var(--paper); text-decoration: none; border-color: var(--ink-900); }
.btn--ghost-dark { background: rgba(246,241,232,.08); color: var(--paper); border: 1px solid rgba(246,241,232,.25); backdrop-filter: blur(10px); }
.btn--ghost-dark:hover { background: rgba(246,241,232,.15); color: var(--paper); text-decoration: none; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

/* 4. HEADER / FOOTER ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,241,232,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(23,18,14,.08);
}
.site-header__row { display: flex; align-items: center; gap: var(--sp-6); height: 76px; }
.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-900); flex-shrink: 0; }
.site-header__brand:hover { text-decoration: none; color: var(--ink-900); }
.site-header__brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink-900); color: var(--sun-300);
  font-family: var(--ff-display); font-weight: 500; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-header__brand-name { font-family: var(--ff-display); font-weight: 500; font-size: 19px; letter-spacing: -0.015em; color: var(--ink-900); }
.site-header__brand-tag { font-size: 11.5px; color: var(--ink-500); letter-spacing: 0.02em; }
.site-header__nav { display: flex; gap: 4px; margin-left: auto; }
.site-header__nav a { padding: 9px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-700); border-radius: 10px; transition: all 160ms ease; }
.site-header__nav a:hover { background: var(--ink-100); color: var(--ink-900); text-decoration: none; }
.site-header__nav a.is-active { background: var(--brand-50); color: var(--brand-700); }
.site-header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--ink-900); color: var(--paper);
  border-radius: var(--r-pill); font-weight: 600; font-size: 14px;
  margin-left: 8px;
}
.site-header__cta:hover { background: var(--brand-600); color: var(--paper); text-decoration: none; }
.site-header__burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; font-size: 20px; margin-left: auto; }
@media (max-width: 960px) {
  .site-header__nav, .site-header__cta { display: none; }
  .site-header__burger { display: inline-flex; }
}

.site-footer { background: var(--ink-900); color: var(--paper); padding-block: var(--sp-16) var(--sp-10); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-10); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand-name { font-family: var(--ff-display); font-size: 28px; letter-spacing: -0.02em; color: var(--paper); margin-bottom: 14px; }
.site-footer__brand-text { color: rgba(246,241,232,.65); font-size: 14px; line-height: 1.6; max-width: 340px; }
.site-footer h4 { font-family: var(--ff-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-300); margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(246,241,232,.75); font-size: 14.5px; }
.site-footer ul a:hover { color: var(--paper); text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid rgba(246,241,232,.12); color: rgba(246,241,232,.55); font-size: 12.5px; flex-wrap: wrap; }
.site-footer__bottom a { color: rgba(246,241,232,.65); }

/* 5. HERO VARIANTS --------------------------------------------- */

/* 5.1 hero-home — full-bleed photo with overlay card + ticker */
.hero-home { position: relative; min-height: 760px; color: var(--paper); isolation: isolate; overflow: hidden; }
.hero-home__photo { position: absolute; inset: 0; z-index: -2; }
.hero-home__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: slowzoom 20s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.06); } }
.hero-home__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(21,16,12,.82) 0%, rgba(21,16,12,.5) 42%, rgba(21,16,12,.1) 80%),
    linear-gradient(180deg, rgba(21,16,12,.1) 0%, rgba(21,16,12,.35) 100%);
}
.hero-home__overlay { position: relative; padding-block: 120px 180px; z-index: 1; }
.hero-home__grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-home__grid { grid-template-columns: 1fr; gap: 40px; } .hero-home__overlay { padding-block: 80px 140px; } }
.hero-home__title { font-size: clamp(44px, 6.8vw, 96px); line-height: .98; letter-spacing: -0.03em; font-weight: 400; color: var(--paper); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.hero-home__title em { color: var(--sun-300); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.hero-home__lead { font-size: 19px; line-height: 1.55; color: rgba(246,241,232,.88); max-width: 560px; margin-top: 24px; }
.hero-home__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-home__card {
  background: rgba(246,241,232,.96); color: var(--ink-900);
  padding: 28px 30px; border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: rotate(-1.5deg);
  backdrop-filter: blur(14px);
}
.hero-home__card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; }
.hero-home__card-formula { font-family: var(--ff-mono); background: var(--brand-50); color: var(--brand-700); padding: 4px 9px; border-radius: 6px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.hero-home__card-main { font-family: var(--ff-display); font-size: 84px; line-height: 1; letter-spacing: -0.03em; margin-top: 16px; color: var(--ink-900); }
.hero-home__card-main em { color: var(--brand-600); font-style: italic; }
.hero-home__card-main span { display: block; font-size: 15px; color: var(--ink-500); font-style: normal; font-family: var(--ff-sans); font-weight: 500; margin-top: 4px; letter-spacing: 0.02em; }
.hero-home__card-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(23,18,14,.1); font-size: 14px; color: var(--ink-700); font-weight: 500; }
.hero-home__card-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

/* Ticker */
.ticker {
  position: relative;
  background: var(--paper); color: var(--ink-900);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(23,18,14,.08);
  border-bottom: 1px solid rgba(23,18,14,.08);
}
.hero-home .ticker { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; }
.ticker__row {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker 45s linear infinite;
  font-family: var(--ff-display); font-style: italic; font-size: 18px;
  color: var(--ink-700);
}
.ticker__row span { display: inline-flex; align-items: center; gap: 14px; }
.ticker__row span::after { content: "·"; color: var(--brand-500); margin-left: 48px; font-size: 26px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 5.2 hero-page — for hub / article / calculator / about pages */
.hero-page { padding-block: var(--sp-16) var(--sp-12); background: var(--paper); border-bottom: 1px solid rgba(23,18,14,.08); }
.hero-page__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: var(--sp-12); align-items: center; }
@media (max-width: 960px) { .hero-page__inner { grid-template-columns: 1fr; gap: var(--sp-8); } }
.hero-page__breadcrumbs, .hub-hero__breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; color: var(--ink-500); margin-bottom: var(--sp-6); }
.hero-page__breadcrumbs a, .hub-hero__breadcrumbs a { color: var(--ink-500); }
.hero-page__breadcrumbs a:hover, .hub-hero__breadcrumbs a:hover { color: var(--brand-700); text-decoration: none; }
.hero-page__breadcrumbs span, .hub-hero__breadcrumbs span { color: var(--ink-300); }
.hero-page__breadcrumbs [aria-current], .hub-hero__breadcrumbs [aria-current] { color: var(--ink-800); font-weight: 500; }
.hero-page__title { font-size: clamp(34px, 4.7vw, 62px); letter-spacing: -0.025em; color: var(--ink-900); }
.hero-page__title em { color: var(--brand-600); }
.hero-page__lead { font-size: 19px; color: var(--ink-600); line-height: 1.55; margin-top: var(--sp-5); max-width: 740px; }
.hero-page__side {
  padding: 24px 26px; background: var(--paper-cream); border-radius: var(--r-xl);
  border: 1px solid rgba(23,18,14,.06);
}
.hero-page__side-title { font-family: var(--ff-display); font-size: 22px; margin-bottom: 12px; }
.hero-page__side-list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--ink-700); }
.hero-page__side-list li { display: flex; gap: 10px; }
.hero-page__side-list li::before { content: "→"; color: var(--brand-500); font-weight: 500; }

/* 5.3 hero-photo — for article pages with strong photo */
.hero-photo { position: relative; min-height: 580px; display: grid; align-items: center; color: var(--paper); isolation: isolate; overflow: hidden; }
.hero-photo__img { position: absolute; inset: 0; z-index: -2; }
.hero-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(21,16,12,.88) 0%, rgba(21,16,12,.7) 38%, rgba(21,16,12,.35) 62%, rgba(21,16,12,.15) 100%), linear-gradient(180deg, rgba(21,16,12,.3) 0%, rgba(21,16,12,.3) 60%, rgba(21,16,12,.8) 100%); }
.hero-photo__wrap { width: 100%; padding-block: var(--sp-16); position: relative; z-index: 1; }
.hero-photo__wrap > .container { position: relative; z-index: 1; }
.hero-photo__breadcrumbs { display: flex; gap: 8px 12px; font-size: 13px; color: rgba(246,241,232,.7); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.hero-photo__breadcrumbs a { color: rgba(246,241,232,.7); }
.hero-photo__breadcrumbs a:hover { color: var(--paper); text-decoration: none; }
.hero-photo__breadcrumbs span { color: rgba(246,241,232,.4); }
.hero-photo__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-6); align-items: center; }
.hero-photo__tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--r-pill); background: var(--sun-300); color: var(--ink-900); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.hero-photo__tag--ghost { background: rgba(246,241,232,.14); color: var(--paper); border: 1px solid rgba(246,241,232,.22); backdrop-filter: blur(8px); }
.hero-photo__title { font-size: clamp(40px, 5.8vw, 84px); color: var(--paper); letter-spacing: -0.03em; max-width: 1000px; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero-photo__title em { color: var(--sun-300); }
.hero-photo__lead { font-size: 19px; line-height: 1.55; color: rgba(246,241,232,.88); max-width: 640px; margin-top: var(--sp-5); }
.hero-photo__byline { display: flex; align-items: center; gap: 14px; margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(246,241,232,.15); max-width: 640px; flex-wrap: wrap; }
.hero-photo__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sun-300); color: var(--ink-900); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 500; font-size: 17px; overflow: hidden; }
.hero-photo__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__byline-info { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.35; }
.hero-photo__byline-info strong { color: var(--paper); font-weight: 600; }
.hero-photo__byline-info span { color: rgba(246,241,232,.65); }
.hero-photo__dot { color: rgba(246,241,232,.4); }

@media (max-width: 760px) {
  .hero-photo { min-height: 520px; }
  .hero-photo__wrap { padding-block: var(--sp-12); }
}


/* 6. BENTO / CARDS -------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

.tile {
  display: flex; flex-direction: column;
  background: var(--paper-cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.tile__img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-sand); }
.tile__img img { width: 100%; height: 100%; transition: transform 700ms ease; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tile__tag { display: inline-block; align-self: flex-start; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 5px 10px; border-radius: var(--r-pill); }
.tile__title { font-family: var(--ff-display); font-weight: 500; font-size: 22px; line-height: 1.2; margin-top: 14px; color: var(--ink-900); }
.tile__text { font-size: 14px; color: var(--ink-600); line-height: 1.55; margin-top: 10px; flex: 1; }
.tile__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(23,18,14,.08); font-family: var(--ff-mono); font-size: 12px; color: var(--ink-500); }

/* split cards (sobaki / koshki) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__card { position: relative; min-height: 480px; border-radius: var(--r-2xl); overflow: hidden; color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.split__card img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform 900ms ease; }
.split__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,16,12,.0) 30%, rgba(21,16,12,.8) 100%); z-index: -1; }
.split__card:hover img { transform: scale(1.04); }
.split__card:hover { text-decoration: none; color: var(--paper); }
.split__body { padding: var(--sp-10) var(--sp-8); }
.split__kicker { color: var(--sun-300); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.split__title { font-family: var(--ff-display); font-size: clamp(44px, 5vw, 72px); color: var(--paper); letter-spacing: -0.025em; margin-top: 8px; }
.split__title em { color: var(--sun-300); }
.split__text { color: rgba(246,241,232,.85); font-size: 16px; line-height: 1.55; margin-top: 14px; max-width: 480px; }
.split__cta { display: inline-flex; margin-top: 20px; color: var(--paper); font-weight: 600; font-size: 15px; padding-bottom: 2px; border-bottom: 1px solid rgba(246,241,232,.4); align-self: flex-start; }

/* 7. TOOLS GRID (dark block) ---------------------------------- */
.tools { background: var(--ink-900); color: var(--paper); padding-block: var(--sp-20); }
.tools__head { max-width: 760px; margin-bottom: var(--sp-12); }
.tools__title { font-size: clamp(36px, 4.5vw, 60px); color: var(--paper); margin-top: 14px; letter-spacing: -0.025em; }
.tools__title em { color: var(--sun-300); }
.tools__lead { font-size: 17px; color: rgba(246,241,232,.75); line-height: 1.6; margin-top: 16px; }
.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .tools__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tools__grid { grid-template-columns: 1fr; } }
.tool {
  position: relative; display: block;
  background: rgba(246,241,232,.04);
  border: 1px solid rgba(246,241,232,.1);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  color: var(--paper);
  transition: all 200ms ease;
  overflow: hidden;
}
.tool:hover { background: var(--sun-300); color: var(--ink-900); text-decoration: none; transform: translateY(-3px); border-color: var(--sun-300); }
.tool:hover .tool__num { color: var(--ink-900); }
.tool:hover .tool__text { color: rgba(21,16,12,.75); }
.tool:hover .tool__arrow { color: var(--ink-900); transform: translateX(6px); }
.tool__num { font-family: var(--ff-mono); font-size: 12px; color: var(--sun-300); letter-spacing: 0.04em; }
.tool__arrow { position: absolute; top: 26px; right: 26px; font-family: var(--ff-display); font-size: 22px; color: rgba(246,241,232,.5); transition: all 180ms ease; }
.tool__title { font-family: var(--ff-display); font-weight: 500; font-size: 24px; letter-spacing: -0.015em; color: inherit; margin-top: 16px; line-height: 1.15; }
.tool__text { font-size: 14px; color: rgba(246,241,232,.7); line-height: 1.55; margin-top: 12px; max-width: 280px; }

/* 8. CASES (quick situations list) ---------------------------- */
.cases__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-12); align-items: end; margin-bottom: var(--sp-12); }
@media (max-width: 900px) { .cases__head { grid-template-columns: 1fr; } }
.cases__title { font-size: clamp(36px, 4.5vw, 60px); margin-top: 14px; margin-bottom: 16px; }
.cases__title em { color: var(--brand-600); }
.cases__lead { font-size: 16px; color: var(--ink-600); line-height: 1.6; max-width: 720px; margin-bottom: 40px; }
.cases__head .cases__lead { max-width: 440px; margin-bottom: 0; }

/* 8b. LONG-READ — статьи разделов-хабов ---------------------- */
.long-read { width: 100%; max-width: none; font-size: 18px; line-height: 1.7; color: var(--ink-700); }
.long-read p { margin: 0 0 20px; }
.long-read p:last-child { margin-bottom: 0; }
.long-read strong { color: var(--ink-900); font-weight: 700; }
.long-read a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
.long-read a:hover { text-decoration-color: var(--brand-500); }

/* 8c. TABLES ------------------------------------------------- */
.table-wrap { margin: 28px 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--ink-200); background: #fff; }
table, table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; font-family: var(--ff-sans); }
table caption, table.data caption { caption-side: top; padding: 14px 18px; text-align: left; font-size: 13px; color: var(--ink-600); background: var(--paper-cream); border-bottom: 1px solid var(--ink-200); font-weight: 500; }
table th, table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--ink-100); }
table th { background: var(--paper-cream); font-weight: 700; color: var(--ink-800); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
table tbody tr:last-child td { border-bottom: 0; }
table tbody tr:hover { background: var(--paper-cream); }
table td.num, table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table tr.highlight { background: var(--brand-50); }
table tr.highlight td { font-weight: 700; color: var(--ink-900); }

/* голые <table> в статьях, без .table-wrap — добавляем бордер */
.article > table, .prose > table { border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; background: #fff; }

/* 9. FORMULA BLOCK -------------------------------------------- */
.formula { padding-block: var(--sp-20); border-top: 1px solid rgba(23,18,14,.08); border-bottom: 1px solid rgba(23,18,14,.08); }
.formula__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
@media (max-width: 900px) { .formula__grid { grid-template-columns: 1fr; gap: var(--sp-10); } }
.formula__visual { padding: var(--sp-10); background: var(--paper-cream); border-radius: var(--r-2xl); }
.formula__eyebrow { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; }
.formula__display { font-family: var(--ff-display); font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.025em; color: var(--ink-900); margin-top: 14px; }
.formula__display em { color: var(--brand-600); }
.formula__display sup { font-size: 0.5em; vertical-align: super; color: var(--brand-500); }
.formula__caption { font-size: 14px; color: var(--ink-500); font-style: italic; margin-top: 10px; }
.formula__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: var(--sp-6); }
.formula__step { background: var(--paper); padding: 14px 16px; border-radius: var(--r-md); font-size: 13px; line-height: 1.4; }
.formula__step strong { display: block; font-family: var(--ff-mono); color: var(--brand-600); font-size: 16px; margin-bottom: 4px; }
.formula__content h2 { font-size: clamp(32px, 4vw, 52px); }
.formula__content h2 em { color: var(--brand-600); }
.formula__content p { font-size: 17px; line-height: 1.65; color: var(--ink-700); margin-top: var(--sp-5); }
.formula__content p strong { color: var(--ink-900); }
.formula__link { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-6); font-weight: 600; color: var(--brand-600); }

/* 10. ARTICLES / POSTS ---------------------------------------- */
.articles__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 2px solid var(--ink-900); margin-bottom: var(--sp-10); flex-wrap: wrap; }
.articles__title { font-size: clamp(32px, 4vw, 52px); }
.articles__title em { color: var(--brand-600); }
.articles__more { color: var(--ink-900); border-bottom: 1px solid var(--ink-900); padding-bottom: 2px; font-weight: 600; font-size: 14px; }
.articles__more:hover { color: var(--brand-600); border-bottom-color: var(--brand-600); text-decoration: none; }

.article-card { display: flex; flex-direction: column; color: inherit; }
.article-card:hover { color: inherit; text-decoration: none; }
.article-card__cover { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-sand); margin-bottom: 20px; }
.article-card__cover img { width: 100%; height: 100%; transition: transform 700ms ease; }
.article-card:hover .article-card__cover img { transform: scale(1.04); }
.article-card__meta { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }
.article-card__meta strong { color: var(--brand-700); font-weight: 600; }
.article-card__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.article-card__title { font-family: var(--ff-display); font-weight: 500; font-size: 22px; line-height: 1.2; margin-top: 10px; color: var(--ink-900); }
.article-card:hover .article-card__title { color: var(--brand-700); }
.article-card__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--ink-600); margin-top: 10px; }

/* 11. PROSE (article body) ------------------------------------ */
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-800); }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(28px, 3vw, 36px); margin-top: var(--sp-14); margin-bottom: var(--sp-4); letter-spacing: -0.02em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--ff-display); font-weight: 500; font-size: 24px; margin-top: var(--sp-10); margin-bottom: var(--sp-3); letter-spacing: -0.015em; }
.prose p { color: var(--ink-700); }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--brand-100); }
.prose a:hover { text-decoration-color: var(--brand-500); }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ink-700); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 18px; margin-bottom: var(--sp-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--brand-500); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol li { margin-bottom: var(--sp-2); }
.prose ol li::marker { color: var(--brand-600); font-weight: 600; }
.prose blockquote {
  margin: var(--sp-10) 0; padding: var(--sp-8) var(--sp-10);
  background: var(--paper-cream); border-radius: var(--r-lg);
  font-family: var(--ff-display); font-size: 24px; font-weight: 400;
  color: var(--ink-900); line-height: 1.35; letter-spacing: -0.01em;
  position: relative;
}
.prose blockquote::before { content: "«"; font-size: 80px; color: var(--brand-500); line-height: .5; position: absolute; top: 50%; left: 22px; transform: translateY(-50%); font-family: var(--ff-display); }
.prose blockquote { padding-left: var(--sp-16); }
.prose blockquote cite { display: block; margin-top: var(--sp-4); font-family: var(--ff-sans); font-size: 14px; font-style: normal; color: var(--ink-500); font-weight: 500; }
.prose figure { margin: var(--sp-10) 0; }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-500); text-align: center; font-style: italic; }

/* prose figure (inline photo with caption) */
.prose-figure { margin: var(--sp-10) 0; }
.prose-figure img { width: 100%; display: block; border-radius: var(--r-lg); aspect-ratio: 16/10; object-fit: cover; background: var(--cream-200); }
.prose-figure figcaption { margin-top: var(--sp-3); font-family: var(--ff-mono); font-size: 13px; color: var(--ink-500); letter-spacing: 0.01em; }

/* callout / tldr */
.tldr {
  margin: 0 0 var(--sp-10);
  padding: var(--sp-6) var(--sp-8);
  background: var(--sun-100);
  border-radius: var(--r-lg);
}
.tldr__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--brand-700); }
.tldr__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
.tldr__title { font-family: var(--ff-display); font-size: 22px; line-height: 1.35; color: var(--ink-900); margin-top: 10px; font-weight: 500; }
.tldr ul { list-style: none; margin-top: 14px; padding: 0; }
.tldr li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-800); margin-bottom: 8px; }
.tldr li::before { content: "→"; position: absolute; left: 0; color: var(--brand-500); font-weight: 600; }

.callout { margin: var(--sp-8) 0; padding: var(--sp-6) var(--sp-8); background: var(--paper-cream); border-radius: var(--r-lg); border-left: 4px solid var(--brand-500); }
.callout--sage { background: var(--sage-50); border-color: var(--sage-500); }
.callout--warn { background: var(--warn-100); border-color: var(--warn-500); }
.callout--stop { background: var(--stop-100); border-color: var(--stop-500); }
.callout__title { font-family: var(--ff-display); font-size: 20px; margin-bottom: 8px; font-weight: 500; }
.callout p { font-size: 16px; line-height: 1.55; color: var(--ink-700); }

/* article layout: reading column + sticky sidebar */
.article-layout { padding-block: var(--sp-16); }
.article-layout__grid { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-12); align-items: start; }
@media (max-width: 1100px) { .article-layout__grid { grid-template-columns: minmax(0, 1fr); } }
.article-layout__main { min-width: 0; grid-column: 1; grid-row: 1; max-width: var(--container-text); }
.article-layout__side { position: sticky; top: 100px; max-width: 300px; grid-column: 2; grid-row: 1; }
@media (max-width: 1100px) { .article-layout__side { display: none; } }

.toc { padding: 20px 0; border-top: 1px solid rgba(23,18,14,.12); border-bottom: 1px solid rgba(23,18,14,.12); }
.toc__title { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 14px; }
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc__list a { display: block; font-size: 14px; color: var(--ink-700); line-height: 1.4; padding: 2px 0; }
.toc__list a:hover { color: var(--brand-600); text-decoration: none; }

.sidebar-cta { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--ink-900); color: var(--paper); border-radius: var(--r-lg); }
.sidebar-cta__label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-300); }
.sidebar-cta__title { font-family: var(--ff-display); font-size: 20px; color: var(--paper); margin-top: 8px; line-height: 1.25; font-weight: 500; }
.sidebar-cta .btn { margin-top: 16px; }
.sidebar-cta .btn--primary {
  background: var(--sun-300);
  color: var(--ink-900);
  box-shadow: 0 10px 24px rgba(245,185,75,.22);
}
.sidebar-cta .btn--primary:hover {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

/* 12. CALCULATOR v2 ---------------------------------------------
   Новая концепция: форма слева, результат справа sticky.
   Внутри формы — 2-колоночная сетка полей, BCS-шкала, живые сегменты.
   На мобайле: компактная плашка результата sticky сверху, полный блок внизу.
   ============================================================= */
.calc { padding-block: var(--sp-12) var(--sp-16); }
.calc__shell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--sp-10); align-items: start; }
@media (max-width: 1080px) { .calc__shell { grid-template-columns: 1fr; } }

/* mobile sticky result bar */
.calc__bar { display: none !important; }
@media (max-width: 1080px) {
  .calc__result--desktop { display: none; }
}
@media (min-width: 1081px) {
  .calc__result--mobile { display: none; }
}

.calc__form { background: var(--paper-cream); border-radius: var(--r-2xl); padding: var(--sp-10) var(--sp-10) var(--sp-10); }
.calc__form-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid rgba(23,18,14,.1); flex-wrap: wrap; }
.calc__form-header-num { font-family: var(--ff-mono); font-size: 12px; color: var(--brand-600); letter-spacing: 0.08em; text-transform: uppercase; }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-6); }
@media (max-width: 640px) { .calc__fields { grid-template-columns: 1fr; } }
.calc__fields .calc__field--full { grid-column: 1/-1; }
.calc__form-title { font-family: var(--ff-display); font-size: 28px; margin-bottom: var(--sp-6); letter-spacing: -0.015em; }
.calc__field { display: block; margin-bottom: var(--sp-5); }
.calc__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-800); margin-bottom: 8px; }
.calc__hint { font-size: 12px; color: var(--ink-500); font-weight: 400; margin-left: 8px; }
.calc__input { width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--ff-sans); color: var(--ink-900); background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md); transition: border-color 160ms ease, box-shadow 160ms ease; }
.calc__input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg__opt { padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--ink-700); background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md); cursor: pointer; transition: all 160ms ease; }
.seg__opt:hover { border-color: var(--brand-500); color: var(--brand-700); }
.seg__opt.is-on { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

/* BCS visual scale */
.bcs-scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 8px; }
.bcs-scale input { position: absolute; opacity: 0; pointer-events: none; }
.bcs-scale label {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-family: var(--ff-display); font-size: 16px; font-weight: 500;
  color: var(--ink-700); cursor: pointer;
  transition: all 160ms ease;
}
.bcs-scale label:hover { border-color: var(--brand-500); color: var(--brand-700); }
.bcs-scale input:checked + label { background: var(--ink-900); color: var(--sun-300); border-color: var(--ink-900); }
.bcs-scale__legend { display: grid; grid-template-columns: auto 1fr auto; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; margin-top: 8px; text-transform: uppercase; }
.bcs-scale__legend span:nth-child(2) { text-align: center; color: var(--ok-500); }

/* pill segments for activity, meals, species */
.pillseg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--paper); padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--ink-200); }
.pillseg input { position: absolute; opacity: 0; pointer-events: none; }
.pillseg label {
  text-align: center; padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-700);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.pillseg label:hover { color: var(--ink-900); }
.pillseg input:checked + label { background: var(--ink-900); color: var(--paper); }
@media (max-width: 520px) { .pillseg { grid-auto-flow: row; } }

/* stacked buttons grid for activity */
.actgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .actgrid { grid-template-columns: 1fr 1fr; } }
.actgrid input { position: absolute; opacity: 0; pointer-events: none; }
.actgrid label {
  display: grid; gap: 4px;
  padding: 14px 14px;
  background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md);
  cursor: pointer;
  transition: all 160ms ease;
  text-align: left;
}
.actgrid label:hover { border-color: var(--brand-500); }
.actgrid input:checked + label { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.actgrid input:checked + label .actgrid__coef { color: var(--sun-300); }
.actgrid__name { font-size: 13.5px; font-weight: 600; }
.actgrid__coef { font-family: var(--ff-mono); font-size: 12px; color: var(--brand-600); }

.calc__result { background: var(--ink-900); color: var(--paper); border-radius: var(--r-2xl); padding: var(--sp-10); position: sticky; top: 100px; }
.calc__result-label { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-300); }
.calc__result-main { font-family: var(--ff-display); font-size: 72px; line-height: 1; letter-spacing: -0.03em; color: var(--paper); margin-top: 12px; }
.calc__result-main span { display: block; font-family: var(--ff-sans); font-size: 14px; color: rgba(246,241,232,.65); font-weight: 500; letter-spacing: 0.02em; margin-top: 6px; }
.calc__result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid rgba(246,241,232,.12); }
.calc__result-stats dt { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,241,232,.55); margin-bottom: 4px; }
.calc__result-stats dd { font-family: var(--ff-display); font-size: 26px; color: var(--paper); line-height: 1; }
.calc__result-stats dd span { display: block; font-family: var(--ff-sans); font-size: 11.5px; color: rgba(246,241,232,.55); font-weight: 500; margin-top: 4px; }
.calc__result-meals { margin-top: var(--sp-5); padding: 14px 16px; background: rgba(246,241,232,.05); border-radius: var(--r-md); font-size: 14px; color: var(--paper); line-height: 1.5; }
.calc__result-meals strong { color: var(--sun-300); }
.calc__result-note { margin-top: var(--sp-5); font-size: 12.5px; color: rgba(246,241,232,.55); line-height: 1.5; font-family: var(--ff-mono); letter-spacing: 0.02em; }
.calc__result-warnings { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
.calc__result-warnings .w, ._warn .w { padding: 12px 14px; background: rgba(194,120,24,.16); border-radius: var(--r-md); font-size: 13px; color: var(--sun-300); line-height: 1.5; }
._warn { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
._warn:empty { display: none; }
._meals { margin-top: var(--sp-5); padding: 14px 16px; background: rgba(246,241,232,.05); border-radius: var(--r-md); font-size: 14px; color: var(--paper); line-height: 1.5; }
._meals strong { color: var(--sun-300); }
._meals:empty { display: none; }
.calc__result-main em { font-style: italic; color: var(--sun-300); font-size: 0.5em; font-family: var(--ff-display); margin-left: 8px; }

/* 13. FAQ ----------------------------------------------------- */
.faq-section { overflow: hidden; }
.faq-block { display: grid; grid-template-columns: minmax(220px, .36fr) 1fr; gap: var(--sp-10); align-items: center; }
.faq-block__head { position: sticky; top: 92px; }
.faq-block__head .kicker { margin-bottom: 16px; }
.faq { display: flex; flex-direction: column; gap: 0; }
.faq--cards { gap: 14px; }
.faq__item { border-bottom: 1px solid rgba(23,18,14,.12); }
.faq__item:first-child { border-top: 1px solid rgba(23,18,14,.12); }
.faq--cards .faq__item { background: var(--paper); border: 1px solid rgba(23,18,14,.10); border-radius: var(--r-xl); box-shadow: 0 18px 45px rgba(23,18,14,.05); overflow: hidden; }
.faq--cards .faq__item:first-child { border-top: 1px solid rgba(23,18,14,.10); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--ff-display); font-size: 20px; font-weight: 500; color: var(--ink-900); letter-spacing: -0.01em; list-style: none; }
.faq--cards .faq__q { padding: 22px 24px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 28px; color: var(--brand-500); font-family: var(--ff-display); font-weight: 300; line-height: 1; transition: transform 200ms ease; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-700); max-width: 720px; }
.faq--cards .faq__a { max-width: none; padding: 0 24px 24px; }
.faq__a p + p { margin-top: 12px; }
@media (max-width: 900px) { .faq-block { grid-template-columns: 1fr; } .faq-block__head { position: static; } }

/* 14. SOURCES LIST -------------------------------------------- */
.sources { display: flex; flex-direction: column; gap: var(--sp-4); }
.source { display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid rgba(23,18,14,.08); }
.source:last-child { border-bottom: 0; }
.source__num { font-family: var(--ff-mono); font-size: 13px; color: var(--brand-600); letter-spacing: 0.04em; }
.source__body strong { display: block; font-family: var(--ff-display); font-weight: 500; font-size: 18px; color: var(--ink-900); margin-bottom: 4px; }
.source__body p { font-size: 14px; color: var(--ink-600); line-height: 1.5; }
.source__body a { display: inline-block; margin-top: 6px; font-size: 13px; font-family: var(--ff-mono); color: var(--brand-600); word-break: break-all; }

/* 15. NEWSLETTER / NOTE BANDS -------------------------------- */
.band {
  margin-top: var(--sp-16);
  padding: var(--sp-12) var(--sp-10);
  background: var(--sun-100);
  border-radius: var(--r-2xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }
.band__title { font-family: var(--ff-display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.band__text { color: var(--ink-700); line-height: 1.6; margin-top: 12px; max-width: 520px; }
.band__form { display: flex; gap: 10px; flex-wrap: wrap; }
.band__form input { flex: 1; min-width: 220px; padding: 13px 16px; font-size: 15px; font-family: var(--ff-sans); color: var(--ink-900); background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md); }
.band__form input:focus { outline: none; border-color: var(--brand-500); }

/* disclaimer */
.disclaimer { padding-block: var(--sp-10); background: var(--paper); border-top: 1px solid rgba(23,18,14,.08); }
.disclaimer__wrap { max-width: 960px; font-size: 14px; line-height: 1.7; color: var(--ink-600); }
.disclaimer__wrap strong { color: var(--brand-700); }

/* 16. HUB / CATEGORY PAGES ----------------------------------- */
.hub-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(23,18,14,.12); }
.hub-item { display: grid; grid-template-columns: 80px 1fr auto 40px; align-items: center; gap: var(--sp-8); padding: var(--sp-8) 0; border-bottom: 1px solid rgba(23,18,14,.12); color: inherit; transition: padding 180ms ease; }
.hub-item:hover { color: inherit; text-decoration: none; padding-left: 20px; }
.hub-item:hover .hub-item__arr { transform: translateX(6px); color: var(--brand-500); }
.hub-item__num { font-family: var(--ff-mono); font-size: 13px; color: var(--ink-500); letter-spacing: 0.04em; }
.hub-item__name { font-family: var(--ff-display); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-900); }
.hub-item__desc { display: block; font-family: var(--ff-sans); font-weight: 400; font-size: 15px; color: var(--ink-600); margin-top: 6px; line-height: 1.5; }
.hub-item__meta { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-500); text-align: right; }
.hub-item__arr { font-family: var(--ff-display); font-size: 24px; color: var(--ink-900); text-align: right; transition: all 200ms ease; }
@media (max-width: 720px) { .hub-item { grid-template-columns: 50px 1fr 30px; } .hub-item__meta { display: none; } }

/* 17. CONTENT GRID two-col --------------------------------- */
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-12); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col__side { border-top: 2px solid var(--ink-900); padding-top: 20px; }

/* 18. STATS strip --------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); padding: var(--sp-10) 0; border-top: 1px solid rgba(23,18,14,.08); border-bottom: 1px solid rgba(23,18,14,.08); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.stats__item dt { font-size: 12px; font-family: var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.stats__item dd { font-family: var(--ff-display); font-size: 48px; line-height: 1; letter-spacing: -0.025em; color: var(--ink-900); }
.stats__item dd em { color: var(--brand-600); }
.stats__item p { font-size: 13px; color: var(--ink-600); margin-top: 6px; line-height: 1.5; }

/* 19. CONTACT / TEAM --------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
@media (max-width: 820px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
.member { display: flex; flex-direction: column; gap: 12px; }
.member__photo { aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: var(--paper-cream); }
.member__name { font-family: var(--ff-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.member__role { font-size: 13px; color: var(--ink-500); font-family: var(--ff-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.member__bio { font-size: 14.5px; color: var(--ink-600); line-height: 1.55; margin-top: 6px; }


/* =============================================================
   HUB pages (sobaki, koshki, kalkulyatory, guides, blog)
   ============================================================= */
.hub-hero {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  isolation: isolate;
}
.hub-hero__image {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hub-hero__image img { width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: saturate(.85); }
.hub-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,241,232,.35) 0%, rgba(246,241,232,.82) 55%, var(--paper) 100%);
  z-index: 1;
  pointer-events: none;
}
.hub-hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .45fr);
  gap: var(--sp-10);
  align-items: center;
  padding-block: 100px 72px;
}
.hub-hero__text { max-width: 940px; }
.hub-hero__title {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink-900);
  margin: 18px 0 28px;
  text-wrap: balance;
}
.hub-hero__title em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--brand-700);
}
.hub-hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 780px;
  text-wrap: pretty;
}
.hub-hero__stats {
  display: grid;
  grid-auto-flow: row;
  gap: 20px;
  margin: 0;
  align-self: center;
  padding: 24px 28px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(6px);
  min-width: 200px;
}
.hub-hero__stats > div { display: grid; gap: 4px; }
.hub-hero__stats dt {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.hub-hero__stats dd {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--ink-900);
}
.hub-hero--dark {
  background: var(--paper-deep);
  color: var(--paper);
}
.hub-hero--dark .hub-hero__image { display: block; }
.hub-hero--dark .hub-hero__image img { opacity: .34; filter: saturate(.95) contrast(1.02); object-position: center 42%; }
.hub-hero--dark::after {
  background: linear-gradient(180deg, rgba(246,241,232,.3) 0%, rgba(246,241,232,.82) 58%, var(--paper) 100%);
}
.hub-hero--dark .hub-hero__title--dark { color: var(--ink-900); }
.hub-hero--dark .hub-hero__title em { color: var(--brand-700); }
.hub-hero--dark .hub-hero__lead--dark { color: var(--ink-600); }
.hub-hero--dark .hub-hero__stats--dark {
  background: rgba(255,253,247,.76);
  border-color: var(--ink-200);
  box-shadow: 0 18px 50px rgba(23,18,14,.08);
}
.hub-hero--dark .hub-hero__stats--dark dt { color: var(--ink-500); }
.hub-hero--dark .hub-hero__stats--dark dd { color: var(--ink-900); }

@media (max-width: 900px) {
  .hub-hero__grid { grid-template-columns: 1fr; padding-block: 72px 48px; }
  .hub-hero__stats { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 680px) {
  .hub-hero__stats { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; padding: 18px; gap: 14px; }
  .hub-hero__stats dd { font-size: 26px; }
  .hero-page__side { padding: 20px; }
}


/* Breeds grid — fits both 8 and 12 cards evenly */
.breeds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 960px) { .breeds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.breed {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-800);
  transition: transform .25s ease, box-shadow .25s ease;
}
.breed:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.breed__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-sand);
}
.breed__img img { width: 100%; height: 100%; object-fit: cover; }
.breed__body { padding: 18px 20px 22px; }
.breed__body h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.breed__weight {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--brand-700);
  margin-bottom: 10px;
}
.breed__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
}

/* Calculators hub index */
.tools-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.tool-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-800);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-sand);
}
.tool-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tool-card__body { padding: 22px 26px 26px; display: grid; gap: 10px; }
.tool-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.tool-card__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: .08em;
}
.tool-card__tag {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}
.tool-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink-900);
}
.tool-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
}
.tool-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-700);
  margin-top: 6px;
}

/* Feature post (blog hero card) */
.feature-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--r-2xl);
  overflow: hidden;
  text-decoration: none;
  min-height: 440px;
}
.feature-post__img { overflow: hidden; }
.feature-post__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.feature-post__body { padding: 48px 44px; display: grid; align-content: center; gap: 20px; min-width: 0; }
.feature-post__img { min-height: 320px; }
.feature-post__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--ink-300);
  letter-spacing: .04em;
}
.feature-post__meta strong {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sun-300);
}
.feature-post__title {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--paper);
  text-wrap: balance;
}
.feature-post__title em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--sun-300);
}
.feature-post__excerpt {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-300);
  margin: 0;
  max-width: 520px;
}
.feature-post__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--sun-300);
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 900px) {
  .feature-post { grid-template-columns: 1fr; }
  .feature-post__img { aspect-ratio: 16/10; }
  .feature-post__body { padding: 40px 32px; }
}


/* ADD: hub sections (sobaki/koshki) ------------------------------ */
.method-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:24px }
.method-grid--2col { grid-template-columns:repeat(2, 1fr); gap:24px }
@media (max-width: 820px) { .method-grid, .method-grid--2col { grid-template-columns:1fr } }
.method-card { background:var(--white); border:1px solid var(--ink-100); border-radius:18px; padding:28px 24px }
.method-card__num { font-family:var(--ff-mono); font-size:12px; color:var(--brand-600); letter-spacing:.12em; margin-bottom:16px }
.method-card h3 { font-family:var(--ff-display); font-size:24px; font-weight:500; margin:0 0 12px; color:var(--ink-900); line-height:1.2 }
.method-card p { color:var(--ink-600); font-size:15px; line-height:1.55; margin:0 0 8px }
.method-card p:last-child { margin:0 }
.method-card code { font-family:var(--ff-mono); font-size:13px; background:var(--paper-cream); padding:4px 10px; border-radius:6px; color:var(--ink-800); display:inline-block; margin-bottom:4px }

.cta-band { padding:56px 0; background:var(--ink-900); color:var(--white) }
.cta-band__wrap { display:flex; align-items:center; justify-content:space-between; gap:40px; padding:44px 48px; background:linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%); border-radius:24px; border:1px solid rgba(255,255,255,.06) }
.cta-band__text { flex:1 }
.cta-band__title { font-family:var(--ff-display); font-size:42px; font-weight:400; margin:8px 0 12px; line-height:1.1; color:var(--white) }
.cta-band__title em { font-style:italic; color:var(--sun-300) }
.cta-band__text p { color:var(--ink-300); font-size:16px; max-width:520px; margin:0 }
.btn--lg { padding:16px 28px; font-size:16px }

.mistakes { display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; margin-top:16px }
.mistake { background:var(--white); border:1px solid var(--ink-100); border-radius:16px; padding:24px 24px 24px 68px; position:relative }
.mistake__num { position:absolute; left:20px; top:22px; font-family:var(--ff-mono); font-size:12px; font-weight:600; color:var(--white); background:var(--brand-600); width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; letter-spacing:.05em }
.mistake h3 { font-family:var(--ff-display); font-size:20px; font-weight:500; margin:0 0 8px; color:var(--ink-900); line-height:1.25 }
.mistake p { color:var(--ink-600); font-size:14.5px; line-height:1.55; margin:0 }
.mistake a { color:var(--brand-700); text-decoration:underline; text-underline-offset:2px }

.posts-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:28px }
.post-card { background:var(--white); border:1px solid var(--ink-100); border-radius:18px; overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s }
.post-card:hover { transform:translateY(-3px); box-shadow:0 16px 40px -18px rgba(21,16,12,.25) }
.post-card__img { aspect-ratio:16/10; overflow:hidden; background:var(--paper-sand) }
.post-card__img img { width:100%; height:100%; object-fit:cover; display:block }
.post-card__body { padding:22px 22px 26px }
.post-card__tag { display:inline-block; font-family:var(--ff-mono); font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-700); background:var(--brand-50); padding:4px 10px; border-radius:4px; margin-bottom:12px }
.post-card h3 { font-family:var(--ff-display); font-size:22px; font-weight:500; margin:0 0 8px; color:var(--ink-900); line-height:1.2 }
.post-card p { color:var(--ink-600); font-size:14.5px; line-height:1.5; margin:0 }

@media (max-width:880px) {
  .method-grid, .posts-grid { grid-template-columns:1fr }
  .mistakes { grid-template-columns:1fr }
  .cta-band__wrap { flex-direction:column; align-items:flex-start; padding:32px 28px }
  .cta-band__title { font-size:30px }
}

/* breed-page (страницы пород) ------------------------------------ */
.breed-hero { padding:56px 0 40px; background:var(--paper-cream); border-bottom:1px solid var(--ink-100) }
.breed-hero__grid { display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center }
.breed-hero__img { aspect-ratio:4/5; border-radius:20px; overflow:hidden; background:var(--paper-sand) }
.breed-hero__img img { width:100%; height:100%; object-fit:cover; display:block }
.breed-hero__breadcrumbs { font-family:var(--ff-mono); font-size:12px; color:var(--ink-500); margin-bottom:16px; letter-spacing:.04em }
.breed-hero__breadcrumbs a { color:var(--ink-600); text-decoration:none }
.breed-hero__breadcrumbs a:hover { color:var(--brand-700) }
.breed-hero__title { font-family:var(--ff-display); font-size:72px; font-weight:400; line-height:1.02; color:var(--ink-900); margin:4px 0 20px; letter-spacing:-.01em }
.breed-hero__lead { font-size:19px; color:var(--ink-700); line-height:1.5; margin:0 0 28px; max-width:540px }
.breed-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; max-width:540px }
.breed-stats__item { background:var(--white); border:1px solid var(--ink-100); border-radius:12px; padding:14px 16px }
.breed-stats__item dt { font-family:var(--ff-mono); font-size:10px; color:var(--ink-500); letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px }
.breed-stats__item dd { font-family:var(--ff-display); font-size:22px; font-weight:500; color:var(--ink-900); margin:0 }

@media (max-width:880px) {
  .breed-hero__grid { grid-template-columns:1fr; gap:28px }
  .breed-hero__title { font-size:48px }
  .breed-stats { grid-template-columns:1fr 1fr }
}

/* 20. CONTACT FORM ----------------------------------- */
.form { max-width:720px; margin-top:24px; display:flex; flex-direction:column; gap:18px }
.form__row { display:grid; grid-template-columns:1fr 1fr; gap:18px }
.form__field { display:flex; flex-direction:column; gap:8px }
.form__label { font-size:13px; font-weight:600; color:var(--ink-800) }
.form__input { width:100%; padding:13px 16px; font-size:16px; font-family:var(--ff-sans); color:var(--ink-900); background:var(--paper); border:1px solid var(--ink-200); border-radius:var(--r-md); transition:border-color 160ms ease, box-shadow 160ms ease }
.form__input:focus { outline:none; border-color:var(--brand-500); box-shadow:0 0 0 3px var(--brand-50) }
.form__textarea { resize:vertical; min-height:140px; line-height:1.5; font-family:var(--ff-sans) }
.form__check { display:flex; gap:12px; align-items:flex-start; font-size:13px; color:var(--ink-600); line-height:1.5; padding:8px 0 }
.form__check input { margin-top:3px; flex-shrink:0 }
.form__submit { align-self:flex-start; padding:14px 28px; background:var(--ink-900); color:var(--paper); font-family:var(--ff-sans); font-weight:600; font-size:15px; border-radius:var(--r-md); cursor:pointer; transition:background 160ms ease }
.form__submit:hover { background:var(--ink-800) }
@media (max-width:640px) { .form__row { grid-template-columns:1fr } }

/* 21. POST SOURCES H2 -------------------------------- */
.post-sources-title { font-family:var(--ff-display); font-weight:500; font-size:28px; margin:56px 0 20px; letter-spacing:-.02em; color:var(--ink-900) }

/* 22. BREED MINI-CALC ----------------------------- */
.mini-calc { background:var(--paper-cream); border-radius:var(--r-2xl); padding:32px 32px 28px; margin:32px 0 8px; border:1px solid rgba(23,18,14,.06) }
.mini-calc__head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid rgba(23,18,14,.08); flex-wrap:wrap }
.mini-calc__label { font-family:var(--ff-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-600) }
.mini-calc__title { font-family:var(--ff-display); font-size:26px; font-weight:500; color:var(--ink-900); margin:6px 0 0; letter-spacing:-.015em; line-height:1.15 }
.mini-calc__hint { font-size:13px; color:var(--ink-500) }
.mini-calc__fields { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px }
.mini-calc__field { display:flex; flex-direction:column; gap:10px }
.mini-calc__field-label { display:flex; justify-content:space-between; align-items:baseline; font-size:13px; font-weight:600; color:var(--ink-800) }
.mini-calc__field-label output { font-family:var(--ff-mono); font-size:14px; color:var(--brand-600); font-weight:500 }
.mini-calc__range { -webkit-appearance:none; appearance:none; width:100%; height:6px; background:var(--ink-100); border-radius:999px; outline:none; cursor:pointer }
.mini-calc__range::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; background:var(--brand-500); border-radius:50%; cursor:pointer; border:3px solid var(--paper); box-shadow:0 2px 6px rgba(0,0,0,.15); transition:transform 120ms ease }
.mini-calc__range::-webkit-slider-thumb:hover { transform:scale(1.15) }
.mini-calc__range::-moz-range-thumb { width:22px; height:22px; background:var(--brand-500); border-radius:50%; cursor:pointer; border:3px solid var(--paper); box-shadow:0 2px 6px rgba(0,0,0,.15) }
.mini-calc__select { padding:10px 14px; font-size:14px; font-family:var(--ff-sans); color:var(--ink-900); background:var(--paper); border:1px solid var(--ink-200); border-radius:var(--r-md); cursor:pointer }
.mini-calc__select:focus { outline:none; border-color:var(--brand-500); box-shadow:0 0 0 3px var(--brand-50) }
.mini-calc__result { background:var(--ink-900); color:var(--paper); border-radius:var(--r-xl); padding:22px 26px; display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap }
.mini-calc__result-num { font-family:var(--ff-display); font-size:40px; line-height:1; letter-spacing:-.02em; color:var(--paper) }
.mini-calc__result-num em { font-size:14px; font-style:normal; font-family:var(--ff-sans); font-weight:500; color:var(--sun-300); display:block; margin-top:6px; letter-spacing:.02em }
.mini-calc__result-stats { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; min-width:200px }
.mini-calc__result-stats dt { font-family:var(--ff-mono); font-size:10px; color:rgba(246,241,232,.55); letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px }
.mini-calc__result-stats dd { font-family:var(--ff-display); font-size:20px; color:var(--paper); margin:0; line-height:1 }
.mini-calc__footer { margin-top:18px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap }
.mini-calc__note { font-size:12px; color:var(--ink-500); line-height:1.5; max-width:520px }
.mini-calc__link { font-size:14px; color:var(--brand-600); font-weight:600; text-decoration:none; white-space:nowrap }
.mini-calc__link:hover { color:var(--brand-700); text-decoration:underline }
@media (max-width:680px) {
  .mini-calc { padding:24px 20px 22px }
  .mini-calc__fields { grid-template-columns:1fr; gap:18px }
  .mini-calc__title { font-size:22px }
  .mini-calc__result { flex-direction:column; align-items:flex-start; padding:20px }
  .mini-calc__result-num { font-size:34px }
}

/* 23. BCS GRID (силуэты 1-9) ----------------------- */
.bcs-grid-section { margin:48px 0 32px; padding:32px 28px; background:var(--paper-cream); border-radius:var(--r-2xl); border:1px solid rgba(23,18,14,.06) }
.bcs-grid-section__title { font-family:var(--ff-display); font-size:28px; font-weight:500; margin:0 0 8px; letter-spacing:-.015em; color:var(--ink-900) }
.bcs-grid-section__caption { font-size:13px; color:var(--ink-500); line-height:1.55; margin:24px 0 0; max-width:780px }
.bcs-grid { display:grid; grid-template-columns:repeat(9, 1fr); gap:8px; margin-top:20px }
.bcs-card { background:var(--paper); border:1px solid rgba(23,18,14,.08); border-radius:var(--r-md); padding:14px 8px 12px; text-align:center; display:flex; flex-direction:column; gap:6px; min-width:0 }
.bcs-card__num { font-family:var(--ff-display); font-size:20px; font-weight:500; color:var(--brand-600); line-height:1 }
.bcs-card__svg { display:flex; justify-content:center; align-items:center; height:60px; margin:2px 0 4px }
.bcs-card__svg svg { width:100%; max-width:90px; height:auto; color:var(--ink-700) }
.bcs-card:nth-child(5) { background:#f5f8ee; border-color:rgba(99,153,34,.25) }
.bcs-card:nth-child(5) .bcs-card__num { color:var(--sage-700, #3b6d11) }
.bcs-card__label { font-family:var(--ff-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-700); line-height:1.3 }
.bcs-card__desc { font-size:11px; color:var(--ink-500); line-height:1.4 }
@media (max-width:1100px) {
  .bcs-grid { grid-template-columns:repeat(5, 1fr); gap:10px }
  .bcs-card__svg { height:54px }
}
@media (max-width:680px) {
  .bcs-grid { grid-template-columns:repeat(3, 1fr); gap:8px }
  .bcs-grid-section { padding:24px 18px }
  .bcs-card__desc { font-size:10.5px }
}

/* WP mobile menu */

@media (max-width: 960px) {
  .site-header__row { position: relative; }
  .site-header__nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: rgba(246,241,232,.98);
    border-bottom: 1px solid rgba(23,18,14,.08);
    box-shadow: 0 18px 40px rgba(23,18,14,.12);
  }
  .site-header__cta.is-open {
    display: inline-flex;
    position: absolute;
    top: 286px;
    left: 14px;
    right: 14px;
    justify-content: center;
    z-index: 41;
  }
}
