/* ============================================================================
 * BARF Line — дизайн-превью первого экрана + цифры + «Кому подходит».
 * Отдельная страница (design.html), ч/б прототип index.html не трогаем.
 * Палитра с макета: синий #12284c, терракота #12284c, фон #f7f5f4, рамки #d9dfe7.
 * ==========================================================================*/

:root {
  --blue: #12284c;
  --terra: #12284c;
  --terra-soft: #12284c;
  --bg: #f7f5f4;
  --line: #d9dfe7;
  --text: #12284c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  letter-spacing: -.01em;
  margin: 0;
  border: 3px solid var(--terra);
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
.d-hero h1, .d-sec-head h2, .d-tech h2 { letter-spacing: -.015em; }
a { color: inherit; }

.d-wrap { max-width: 1280px; margin: 0 auto; padding: 0 42px; }

/* ---------- шапка ----------------------------------------------------------*/
.d-header { background: var(--bg); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid #d9dfe7; }
.d-header-in { display: flex; align-items: center; gap: 28px; padding: 14px 42px; max-width: 1280px; margin: 0 auto; }
.d-logo img { height: 46px; width: auto; } .d-logo { flex: none; }
.d-nav { display: flex; gap: 16px; flex-wrap: nowrap; margin: 0 auto; }
.d-nav a { color: var(--blue); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.d-nav a:hover { color: var(--terra); }
.d-phone { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.d-btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 13px 22px; border-radius: 10px; white-space: nowrap; }
.d-btn:hover { background: #06507a; }
.d-burger { display: none; }

/* мобильное меню */
.d-mnav { display: none; }

/* ---------- герой -----------------------------------------------------------*/
.d-hero { text-align: center; padding-top: 44px; padding-bottom: 36px; }
.d-eyebrow { color: var(--terra-soft); font-size: 13px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; margin: 0 0 18px; }
.d-hero h1 { color: var(--blue); font-size: 54px; line-height: 1.13; font-weight: 700; margin: 0 auto; max-width: 1020px; }
.d-hero .d-accent { display: block; color: var(--terra); font-weight: 700; }
.d-hero-btn { margin-top: 30px; }
.d-btn-terra { display: inline-block; background: var(--terra); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500; padding: 17px 30px; border-radius: 10px; }
.d-btn-terra:hover { background: #8f6666; }
.d-btn-terra .arr { margin-left: 12px; }

/* ---------- фото + панель ---------------------------------------------------*/
.d-media { display: grid; grid-template-columns: 1fr 496px; gap: 14px; }
.d-media img.photo { width: 100%; height: auto; border-radius: 10px; }
.d-panel { position: relative; background: var(--terra); border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; }
.d-panel img.wm { position: absolute; top: 16px; right: 16px; width: 210px; opacity: 1; }
.d-panel p { position: relative; color: #fff; font-size: 23px; line-height: 1.35; font-weight: 400;
  margin: 0; padding: 34px 40px; }

/* ---------- цифры ------------------------------------------------------------*/
.d-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.d-num { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px;
  text-align: center; }
.d-num b { display: block; font-size: 31px; line-height: 1.15; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.d-num.brown b { color: var(--terra); }
.d-num span { display: block; font-size: 15px; color: var(--blue); }

/* ---------- кому подходит ----------------------------------------------------*/

.d-sec-head { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.d-sec-head .d-eyebrow { color: var(--terra-soft); }
.d-sec-head h2 { color: var(--blue); font-size: 38px; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
.d-sec-head p { color: var(--text); font-size: 17px; margin: 0; }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.d-card .ph { height: 130px; border-radius: 6px; margin-bottom: 16px;
  background: repeating-linear-gradient(-45deg, #f1ebe8, #f1ebe8 10px, #eadfd9 10px, #eadfd9 20px);
  border: 1px solid #e3d5cf; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #a08a84; font-size: 13px; }
.d-card h3 { color: var(--blue); font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
.d-card p { margin: 0; font-size: 15.5px; }

/* ---------- слой комментариев (перекрашен под палитру) -----------------------*/
.cmt-btn { position: absolute; top: 14px; right: 14px; font-size: 12px; cursor: pointer;
  background: #fff; color: #a08a84; border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 11px; font-family: inherit; }
.cmt-btn:hover { background: var(--terra); color: #fff; }
.cmt-list { margin-top: 16px; display: grid; gap: 10px; }
.cmt-item { background: #fdf8f6; border: 1px solid #ecd9d3; border-left: 3px solid var(--terra);
  border-radius: 8px; padding: 10px 14px; }
.cmt-item p { margin: 4px 0 0; }
.cmt-meta { font-size: 12px; color: var(--terra-soft); }
.cmt-donelabel { font-size: 12px; color: #237a23; margin-left: 8px; font-weight: 600; }
.cmt-done { opacity: .6; }
.cmt-done p { text-decoration: line-through; }
.cmt-form { margin-top: 14px; display: grid; gap: 8px; }
.cmt-form textarea, .cmt-name { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.cmt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmt-row .cmt-name { flex: 1 1 180px; width: auto; }
.cmt-form button { background: var(--terra); color: #fff; border: none; border-radius: 8px;
  padding: 9px 18px; cursor: pointer; font: inherit; }
.cmt-form button:disabled { opacity: .6; }
.cmt-x { color: var(--terra-soft); cursor: pointer; font-size: 13px; }
.cmt-fab { position: fixed; left: 20px; bottom: 20px; z-index: 30; background: #fff; color: #a08a84;
  border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; cursor: pointer;
  font: inherit; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
#cmt-page-panel { border: 1px dashed var(--terra); background: #fdf8f6; border-radius: 12px;
  padding: 14px 18px; margin: 0 0 22px; }
.cmt-panel-title { cursor: pointer; font-weight: 700; color: var(--terra); }
.cmt-count { display: inline-block; min-width: 20px; text-align: center; background: var(--terra);
  color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 7px; }

main { position: relative; }
main section { position: relative; }

/* ---------- адаптив ----------------------------------------------------------*/
@media (max-width: 1380px) {
  .d-phone { display: none; }
  .d-header-in { gap: 16px; }
}
@media (max-width: 1120px) {
  .d-nav { display: none; }
  .d-burger { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; padding: 10px 6px; cursor: pointer; }
  .d-burger i { display: block; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; }
  .d-phone { margin-left: auto; }
  .d-mnav { display: none; border-top: 1px solid #d9dfe7; background: var(--bg); padding: 8px 42px 20px; }
  .d-mnav.open { display: block; }
  .d-mnav a { display: block; padding: 13px 0; border-bottom: 1px solid #d9dfe7; color: var(--blue);
    text-decoration: none; font-size: 17px; font-weight: 600; }
  .d-hero h1 { font-size: 42px; }
  .d-media { grid-template-columns: 1fr; }
  .d-media img.photo { width: 100%; }
  .d-panel { min-height: 230px; }
  .d-panel p { font-size: 22px; padding: 34px 36px; }
  .d-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { border-width: 2px; }
  .d-header-in { padding: 12px 20px; gap: 12px; }
  .d-logo img { height: 36px; }
  .d-phone { display: none; }
  .d-mnav { padding: 8px 20px 16px; }
  .d-wrap { padding: 0 28px; }
  .d-hero { padding-top: 34px; padding-bottom: 30px; }
  .d-eyebrow { font-size: 11px; letter-spacing: .14em; }
  .d-hero h1 { font-size: 28px; }
  .d-hero-btn { margin-top: 22px; }
  .d-btn-terra { padding: 15px 24px; font-size: 15px; }
  .d-btn-terra .arr { display: none; }

  .d-panel p { font-size: 19px; padding: 26px 22px; }
  .d-nums { grid-template-columns: 1fr 1fr; gap: 8px; }
  .d-num { padding: 16px 12px; }
  .d-num b { font-size: 23px; margin-bottom: 8px; }
  .d-num span { font-size: 13.5px; }

  .d-sec-head h2 { font-size: 26px; }
  .d-sec-head p { font-size: 16px; }
  .d-cards { grid-template-columns: 1fr; gap: 12px; }
  .cmt-fab { left: auto; right: 14px; width: 50px; height: 50px; padding: 0; font-size: 0;
    display: flex; align-items: center; justify-content: center; }
  .cmt-fab::before { content: "💬"; font-size: 21px; }
}

/* ---------- технология (по макету 09.11) --------------------------------------*/

.d-tech-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.d-tech .ph { border-radius: 10px; min-height: 440px;
  background: repeating-linear-gradient(-45deg, #f1ebe8, #f1ebe8 10px, #eadfd9 10px, #eadfd9 20px);
  border: 1px solid #e3d5cf; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #a08a84; font-size: 14px; padding: 20px; }
.d-tech-text h2 { color: var(--blue); font-size: 34px; line-height: 1.2; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 20px; }
.d-tech-text h2 .terra { color: var(--terra); }
.d-tech-text p { color: var(--blue); font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.d-tech-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.d-tcard { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.d-tcard svg { width: 42px; height: 42px; fill: none; stroke: var(--terra);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-tcard p { margin: 0; color: var(--blue); font-weight: 600; font-size: 16px; line-height: 1.35; }
@media (max-width: 1100px) {
  .d-tech-top { grid-template-columns: 1fr; gap: 24px; }
  .d-tech .ph { min-height: 260px; }
  .d-tech-cards { grid-template-columns: 1fr; gap: 10px; }
  .d-tech-text h2 { font-size: 28px; }
}
@media (max-width: 700px) {
  .d-tech .ph { min-height: 210px; }
  .d-tcard { padding: 16px; grid-template-columns: 38px 1fr; gap: 12px; }
  .d-tcard svg { width: 36px; height: 36px; }
  .d-tcard p { font-size: 15px; }
}


/* мобильные правила (восстановлено — срезались при переработке tech-блока) */
@media (max-width: 700px) {
  .d-header .d-btn { display: none; }
  .d-burger { margin-left: auto; }
  .d-logo img { height: 46px; }

}
/* выравнивание кнопки комментария по общему полю на мобильных */
@media (max-width: 700px) {
  .cmt-btn { top: 4px; right: 12px; }
  .d-hero h1 { font-weight: 700; }
}

/* Копия для согласования 10 ноября. */
:root { --text:var(--blue); --line:#d9dfe7; }
body { border:0; }
.d-header-in,.d-wrap { max-width:1680px; padding-inline:clamp(24px,3vw,48px); }
.hero-grid { display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);align-items:center;gap:clamp(22px,3vw,48px); }
.hero-photo { width:100%;height:auto;border-radius:5px; }
.hero-copy { text-align:center;padding:0 8px;color:var(--blue); }
.hero-copy .d-eyebrow { max-width:410px;margin:0 auto 20px;color:var(--blue);font-size:13px;line-height:1.5;letter-spacing:.13em; }
.hero-copy h1 { max-width:730px;margin:0 auto;font-size:clamp(32px,3.38vw,57px);font-weight:700;line-height:1.08;letter-spacing:-.044em;text-wrap:balance; }
.hero-copy .d-hero-btn { margin-top:26px; }
.hero-copy .d-btn-terra { border-radius:5px;padding:16px 24px; }
.hero-note { width:min(100%,558px);margin:25px auto 0;padding:14px 22px;display:flex;align-items:center;justify-content:center;gap:14px;text-align:left;border-radius:4px;background:#12284c0c;font-size:17px;line-height:1.36;letter-spacing:-.007em; }
.hero-note img { width:24px;height:auto;flex:none; }
.hero-note span { min-width:0;text-wrap:balance; }
.d-num.brown b,.d-tech-text h2 .terra,.d-sec-head .d-eyebrow { color:var(--blue); }
.d-card .ph,.d-tech .ph { color:var(--blue);border-color:var(--line);background:repeating-linear-gradient(-45deg,#f1f4f4,#f1f4f4 10px,#e8edef 10px,#e8edef 20px); }


#komu .d-card { text-align:center; }
@media(max-width:760px){
  .hero-grid { grid-template-columns:minmax(0,1fr);gap:24px;padding-inline:16px; }
  .hero-copy { padding:0; }
  .hero-copy h1 { font-size:clamp(28px,6.5vw,39px); }
  .hero-copy .d-eyebrow { font-size:11px;margin-bottom:14px; }
  .hero-copy .d-hero-btn { margin-top:20px; }
  .hero-note { margin-top:19px;padding:14px 16px;font-size:15px; }

}

/* Полный дизайн на основе согласованной сетки прототипа. */
:root{--soft:#edf0f5;--paper:#fff;--ink:var(--blue);--muted:#536176}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
main section{scroll-margin-top:88px}
.sector-photo{width:100%;height:clamp(140px,12vw,205px);object-fit:cover;border-radius:6px;margin-bottom:17px}
#komu .d-card:nth-child(5) img{object-position:50% 57%}
#tehnologiya .section-photo{height:100%;min-height:280px;max-height:600px}
.section-photo{display:block;width:100%;height:100%;min-height:250px;object-fit:cover;border-radius:10px}
.full-section{border-top:1px solid var(--line)}
#sravnenie{border-top:0}

.full-inner h2{font-size:clamp(27px,2.8vw,44px);line-height:1.13;letter-spacing:-.035em;text-wrap:balance;margin:0 0 18px}
.full-inner h3{font-size:clamp(18px,1.35vw,22px);line-height:1.22;letter-spacing:-.02em;margin:0 0 9px}
.full-inner p{line-height:1.58}
.af-center{text-align:center;max-width:880px;margin-inline:auto}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:650;margin-bottom:14px}
.lead{margin:0}
.af-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,68px)}
.af-split>.section-photo{max-height:490px}
.btns{margin-top:24px;display:flex;flex-wrap:wrap;gap:10px}
.btns.af-center,#ekonomika .btns{justify-content:center}
.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:7px;border:1px solid var(--blue);font:inherit;font-size:15px;font-weight:600;padding:13px 21px;cursor:pointer;text-align:center}
.btn-primary,.btn-ghost:hover{color:white;background:var(--blue)}
.btn-primary:hover{background:#075378}.btn-ghost{color:var(--blue);background:white}
.af-cards3,.af-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:28px}
.af-card,.af-step,.af-review{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:clamp(20px,2vw,32px)}
.af-card p,.af-step p,.af-review p{margin:0}
.af-table-wrap{margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.af-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.42;table-layout:fixed}
.af-table :is(th,td){text-align:left;vertical-align:top;padding:17px 18px;border-bottom:1px solid var(--line)}
.af-table th{font-weight:700;background:#f5f8f8}.af-table tbody tr:last-child td{border-bottom:0}
.af-table .our{background:var(--soft);font-weight:650}.af-table th.our{background:var(--blue);color:#fff}
.af-status{display:inline-flex;align-items:flex-start;gap:8px}.af-status svg,.af-kit-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.af-status svg{flex:none;width:18px;height:18px;margin-top:2px}
#sravnenie .af-status svg { stroke-width: 2.6; }
#sravnenie .af-yes svg { color: var(--blue); }
#sravnenie .af-no svg { color: var(--terra); }
#korm,#komplektaciya,#o-kompanii,#voprosy{background:#fff}
.af-plates{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:clamp(10px,3.5vw,56px);max-width:920px;margin:32px auto 0}
.af-plate{text-align:center}.food-photo{width:100%;height:auto;aspect-ratio:1.57;object-fit:cover;border-radius:10px;margin-bottom:12px}
.af-plate b,.af-plate span{display:block}.af-plate b{font-size:20px}.af-arrow{font-size:32px;color:var(--terra)}
.af-tabs{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:20px auto}
.af-tabs button{color:var(--blue);background:#fff;border:1px solid var(--line);border-radius:24px;font:inherit;font-size:15px;padding:9px 18px;cursor:pointer}
.af-tabs .on{background:var(--blue);color:#fff;border-color:var(--blue)}
#o-reshenii h2,#ekonomika .af-split>div,#ekonomika .af-calc,#ekonomika .af-sub,#ekonomika .af-tbd,#komplektaciya .af-card,#start .af-step{text-align:center}
.af-benefits,.af-checks{list-style:none;margin:0;padding:0}
.af-benefits li{padding:17px 0;border-bottom:1px solid var(--line)}.af-benefits li:first-child{border-top:1px solid var(--line)}
.af-benefits b,.af-benefits span{display:block}.af-benefits b{font-size:19px}.af-benefits span{margin-top:4px}
.af-kit-icon{display:block;width:34px;height:34px;color:var(--terra);margin:0 auto 18px}
#komplektaciya .af-card{background:var(--bg)}.af-kit-note{margin:24px auto 0}
.af-econ > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.af-econ b{font-size:22px}.af-econ span,.af-note{font-size:15px}.af-sub{margin:34px auto 16px!important}
#ekonomika .af-sub span{display:inline-block;max-width:100%}
.af-calc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.af-calc>div{display:flex;flex-direction:column;align-items:center;padding:20px 8px;background:#fff;border:1px solid var(--line);border-radius:9px}
.af-calc b{order:-1;font-size:clamp(20px,2vw,32px);font-variant-numeric:tabular-nums}
.af-calc small,.af-tbd{font-size:13px;color:var(--muted)}.af-calc small{margin-top:4px}
#prodazhi{background:var(--soft)}.af-spec-sub{font-size:18px;font-weight:600}
.af-checks li{position:relative;padding-left:24px;margin-top:10px}.af-checks li:before{content:'✓';position:absolute;left:0;color:var(--terra);font-weight:bold}
.company-media{max-width:980px;margin:24px auto 0;background:var(--soft);border-radius:12px;overflow:hidden}
.company-media :is(img,video){display:block;width:100%;height:clamp(200px,34vw,480px);object-fit:contain}.company-media video{background:#102c38}
.af-review{display:flex;flex-direction:column;gap:24px;justify-content:space-between}.who{display:flex;align-items:center;gap:12px}
.who b,.who small{display:block}.who small{color:var(--muted)}.review-monogram{border-radius:50%;width:44px;height:44px;display:grid;place-items:center;background:var(--soft);flex:none}
/* Частые вопросы */
.af-faq { max-width: 1440px; margin: 28px auto 0; display: grid; gap: 10px; }
.af-faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.af-faq summary { padding: 18px clamp(16px, 2vw, 30px); display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-weight: 650; font-size: 18px; border-radius: inherit; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: ""; display: block; width: 9px; height: 9px; flex: none; border: solid var(--terra); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.af-faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.af-faq p { max-width: 80ch; margin: 0; padding: 0 clamp(16px, 2vw, 30px) 20px; }
.site-foot{background:var(--soft);padding:44px clamp(24px,3vw,48px);border-top:1px solid var(--line)}
.af-foot-cols{max-width:1584px;margin:auto;display:grid;grid-template-columns:1.5fr .7fr 1fr;gap:25px}
.af-foot-cols h4{margin:0 0 14px}.af-foot-cols a{display:table;text-decoration:none;margin-bottom:7px}.af-foot-cols a:hover{text-decoration:underline}
.foot-logo img { width: 180px; max-width: 100%; height: auto; }
.af-foot-cols .foot-credit { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }.af-foot-note{font-size:13px;max-width:48ch}
.af-form input:not([type=radio],[type=checkbox]){min-width:0;width:100%;font:inherit;border-radius:7px;border:1px solid var(--line);padding:12px;color:var(--blue)}
.af-form{margin-top:16px}.af-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.af-radio,.af-opts{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:12px}
.af-consent{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin-top:12px}.af-consent input{flex:none}
input{accent-color:var(--blue)}.af-form .btn{margin-top:18px}
.af-modal{max-width:min(570px,calc(100vw - 26px));width:100%;border:0;padding:0;border-radius:13px;color:var(--blue);max-height:88dvh}
.af-modal::backdrop{background:#102c3899}.af-box{position:relative;padding:clamp(20px,3vw,34px)}
.af-box h3{margin:0 30px 6px 0;font-size:25px}.af-box .sub{color:var(--muted);font-size:14px}.af-x{position:absolute;right:14px;top:12px;background:none;border:0;font-size:28px;cursor:pointer;color:inherit}
.af-progress{display:flex;gap:5px;margin-block:18px}.af-progress i{flex:1;height:4px;background:var(--soft)}.af-progress .on{background:var(--blue)}
.af-stepno{font-size:13px;font-weight:700}.af-q{margin-top:16px}.af-q>b{display:block;margin-bottom:6px}.af-opts label{font-size:14px}.af-nav-btns{display:flex;justify-content:space-between;margin-top:20px}
.af-mbar{display:none}body:has(dialog[open]){overflow:hidden}
.preview-status{color:var(--blue);font-weight:600}.full-section>.cmt-list,.full-section>.cmt-form{max-width:1000px;margin:10px auto 20px}
@media(max-width:900px){.af-split{grid-template-columns:minmax(0,1fr)}.af-split>.section-photo,#tehnologiya .section-photo{height:clamp(210px,46vw,440px);min-height:0}.af-cards3{grid-template-columns:repeat(2,minmax(0,1fr))}.af-split-form>.section-photo{height:auto;max-height:320px;aspect-ratio:2;object-fit:cover}}
@media(max-width:700px){
 .full-inner{padding-inline:20px}.full-inner h2{font-size:27px}.af-cards3,.af-steps,.af-foot-cols{grid-template-columns:minmax(0,1fr)}.af-calc{grid-template-columns:repeat(2,minmax(0,1fr))}
 .af-table-wrap{border:0;background:none}.af-table,.af-table tbody,.af-table tr,.af-table td{display:block;width:100%}.af-table thead{display:none}
 .af-table tr{overflow:hidden;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;background:white}
 .af-table td{display:grid;grid-template-columns:39% 1fr;gap:10px;border:0;padding:9px 12px;font-size:14px}
 .af-table td:before{content:attr(data-l);color:var(--muted);font-size:12px}.af-table td:first-child{display:block;font-weight:700;padding-block:12px}.af-table td:first-child:before{content:none}
 .af-table td.our{background:#f5f7f7;padding:7px 12px 7px 0;align-items:center}
 .af-table td.our:before{background:var(--green-panel);color:var(--blue);font-weight:700;border-radius:0;padding:6px 12px;margin:-7px 0;display:flex;align-items:center;min-height:38px}
 .af-tabs button{font-size:13px;padding:8px 12px}.af-arrow{font-size:20px}.af-plate b{font-size:16px}.af-plate span{font-size:13px}
 .sector-photo{height:clamp(145px,43vw,250px)}.af-row{grid-template-columns:1fr}.af-review{gap:16px}
 .site-foot{padding-bottom:70px}
 .af-mbar.is-visible{position:fixed;inset:auto 0 0;display:flex;justify-content:center;gap:8px;padding:7px 12px max(7px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);z-index:32}
 .af-mbar .btn{font-size:13px;padding:10px 14px}body:has(.af-mbar.is-visible) .cmt-fab{bottom:67px}
}
@media(max-width:560px){#sravnenie .af-center,#o-kompanii .af-center,#otzyvy .af-center,#voprosy .af-center{text-align:left}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:1120px){.d-mnav.open{max-height:calc(100dvh - 72px);overflow:auto;overscroll-behavior:contain}}

#tehnologiya .d-tcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

#tehnologiya .d-tcard p {
  text-wrap: balance;
}

/* О решении */
.solution-copy { container-type: inline-size; }
.solution-heading h2 { margin-bottom: 0; font-size: clamp(22px, 7.1cqi, 42px); }
.solution-feature { display: grid; width: 100%; max-width: 1120px; margin-inline: auto; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.solution-photo { width: 100%; height: auto; border-radius: 10px; }
.solution-copy { width: 100%; max-width: 60ch; justify-self: center; text-align: center; display: grid; gap: 1em; }
.solution-copy p { margin: 0; }
#o-reshenii .af-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(24px, 3vw, 44px); padding: clamp(20px, 2vw, 32px) 0; background: transparent; }
#o-reshenii .af-benefits li { border: 0; padding: 0 clamp(16px, 2.4vw, 38px); text-align: center; }
#o-reshenii .af-benefits li + li { border-inline-start: 1px solid #d9dfe7; }
#o-reshenii .af-benefits b { line-height: 1.25; text-wrap: balance; }
#o-reshenii .af-benefits span { margin-top: 8px; text-wrap: balance; }

/* Комплектация */
 .kit-items {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 22%) 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  max-width: 1080px;
  margin: 32px auto 0;
}
.kit-group { display: grid; gap: 14px; align-self: stretch; grid-template-rows: repeat(3, 1fr); }
#komplektaciya .af-card { position: relative; display: grid; align-content: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
#komplektaciya .af-card p { text-wrap: balance; line-height: 1.45; }
.kit-bowl { display: grid; border-radius: 50%; width: 100%; max-width: 248px; aspect-ratio: 1; margin: auto; overflow: hidden; }
.kit-bowl img { grid-area: 1/1; width: 100%; height: 100%; object-fit: contain; }
.kit-bowl img:last-child { clip-path: inset(0 0 0 50%); }
.kit-visual { position: relative; align-self: stretch; display: grid; align-items: center; }
.kit-lines { position: absolute; inset-block: 0; left: calc(-1 * clamp(18px, 3vw, 48px)); width: calc(100% + 2 * clamp(18px, 3vw, 48px)); height: 100%; fill: none; stroke: var(--terra); }
.kit-lines path { vector-effect: non-scaling-stroke; }
.kit-bowl { position: relative; background: white; }
.photo-pending { display: grid; place-content: center; text-align: center; border: 1px solid var(--line); border-radius: 12px; }
.ingredients-preview { display: block; width: 100%; height: auto; align-self: center; mix-blend-mode: multiply; }
.food-pending { display: grid; place-items: center; padding: 12px; background: var(--soft); color: var(--muted); text-align: center; }
.photo-pending { background: var(--soft); color: var(--muted); }
#korm .af-tabs { margin: 20px auto; }
#korm .af-plates { max-width: 760px; margin-top: 0; align-items: start; gap: clamp(8px, 2vw, 28px); }
#korm .af-arrow { align-self: center; margin-bottom: 52px; }
#o-reshenii .af-kit-icon { width: 30px; height: 30px; margin-bottom: 12px; }
.d-sec-head .d-eyebrow, .hero-copy .d-eyebrow, .eyebrow { font-size: 13px; }

/* Расчёт: месячный выпуск и три денежные величины */
#ekonomika .af-calc { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
#ekonomika .af-calc > div { position: relative; justify-content: center; border: 0; border-radius: 0; padding: clamp(18px, 2.5vw, 36px) 10px; background: transparent; }
#ekonomika .af-calc > div:first-child { background: var(--soft); }
#ekonomika .af-calc > div:last-child { background: var(--blue); color: #fff; }
#ekonomika .af-calc > div:last-child small { color: #d5e5e9; }
#ekonomika .af-calc b { font-size: clamp(21px, 2.7vw, 42px); line-height: 1.2; margin-bottom: 6px; }
#ekonomika .af-calc > div:nth-child(3)::before { content: ""; position: absolute; left: -9px; z-index: 1; width: 18px; height: 2px; background: var(--terra); }
.media-placeholder { display: grid; place-items: center; min-height: clamp(190px, 25vw, 330px); margin: 0; padding: 24px; text-align: center; color: var(--blue); }

@media (max-width: 760px) {
  .solution-feature, #o-reshenii .af-benefits { grid-template-columns: minmax(0, 1fr); }
  .solution-copy { gap: 14px; }
  #o-reshenii .af-benefits { padding: 6px 20px; }
  #o-reshenii .af-benefits li { padding: 16px 0; }
  #o-reshenii .af-benefits li + li { border: 0; border-top: 1px solid #d9dfe7; }
  .kit-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kit-visual { grid-column: 1/-1; grid-row: 1; }
  .kit-bowl { width: 124px; }
  .kit-lines { display: none; }
  #ekonomika .af-calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ekonomika .af-calc > div:nth-child(n+3)::before { display: none; }
}
@media (max-width: 480px) {
  .kit-items { grid-template-columns: 1fr; }
  .kit-group { grid-template-rows: auto; gap: 10px; }
}

#komu .d-card { padding-inline: clamp(12px, 1.45vw, 22px); }
@media (max-width: 760px) {
  #komu .d-wrap { padding-inline: 16px; }
  #komu .d-card { padding: 16px; }
}
@media (max-width: 370px) {
  .af-econ span { font-size: 13px; }
  #komu .d-wrap { padding-inline: 10px; }
  #komu .d-card { padding: 12px 9px; }
  #komu .d-card p { font-size: 14px; }
}

.d-mnav .menu-contacts { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.d-mnav .menu-contacts a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--blue); }
.menu-contacts svg { display: block; width: 22px; height: 22px; }

/* Each neighboring section supplies one half of the gap. */
main > section > .d-wrap { padding-block: clamp(32px, 4vw, 48px); }
main > section > .d-wrap > :last-child { margin-block-end: 0; }
.af-table tbody tr:last-child { margin-block-end: 0; }

@media (max-width: 760px) {
  #hero > .hero-grid { padding-block-start: 0; }
}

.hero-copy .d-eyebrow {
  max-width: 36ch;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.32;
  letter-spacing: .06em;
  text-wrap: balance;
}
/* Alexey, November 13: one business/audience block, horizontal cards. */
#komu .d-komu { padding-block: clamp(32px, 4vw, 48px); }
#komu .metrics-title {
  color: var(--blue); margin: 0 0 24px;
  font-size: clamp(24px, 2.45vw, 38px); line-height: 1.2;
  text-align: center; text-wrap: balance;
}
#komu .d-nums {
  gap: 0; padding: 20px 12px; margin-bottom: 32px;
  background: #edf0f5; border-radius: 10px;
}
#komu .d-num { background: transparent; border: 0; border-radius: 0; padding: 4px 16px; }
#komu .d-num + .d-num { border-left: 1px solid #d9dfe7; }
#komu .d-num b { margin-bottom: 6px; font-size: clamp(23px, 2vw, 30px); }
#komu .d-num span { font-size: 14px; }
#komu .d-sec-head { max-width: none; text-align: center; margin: 0 0 20px; }
#komu .d-sec-head h3 { color: var(--blue); font-size: clamp(22px, 2vw, 30px); line-height: 1.25; margin: 0 0 8px; }
#komu .d-sec-head p { font-size: 16px; }
#komu .d-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
#komu .d-card {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center;
  gap: 18px; padding: 16px 20px; text-align: left;
}
#komu .sector-illustration { width: 100px; height: 100px; object-fit: contain; margin: 0; }
#komu .d-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
#komu .d-card p { font-size: 15px; line-height: 1.45; }
#komu .sector-copy { min-width: 0; }
#komu .d-card :is(h3,p) { text-wrap: pretty; overflow-wrap: normal; }

/* Client composition from the supplied layout, pending the full-size reshoot. */
#tehnologiya .d-tech-top { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.ingredients-client-frame { position: relative; aspect-ratio: 900 / 521; overflow: hidden; border-radius: 10px; }
.ingredients-client-frame img { position: absolute; width: 210%; max-width: none; height: auto; left: -4.55556%; top: -30.51823%; }
#tehnologiya .d-tech-text { min-width: 0; }
#tehnologiya .d-tech-text h2 { font-size: clamp(26px, 2.3vw, 36px); margin-bottom: 20px; }
#tehnologiya .d-tech-text > p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
#tehnologiya .d-tech-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
#tehnologiya .d-tcard { justify-content: flex-start; padding: 0; border: 0; background: transparent; gap: 8px; }
#tehnologiya .d-tcard svg { width: 28px; height: 28px; flex: none; }
#tehnologiya .d-tcard p { font-size: 13px; line-height: 1.4; margin: 0; }
#tehnologiya .d-tcard br { display: none; }
@media (max-width: 900px) {
  #komu .d-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; }
  #komu .sector-illustration { width: 72px; height: 72px; }
  #komu .d-card h3 { font-size: 16px; }
  #komu .d-card p { font-size: 14px; }
  #tehnologiya .d-tech-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ingredients-client-frame { max-width: 700px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  #komu .d-wrap { padding-inline: 16px; }
  #komu .d-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; padding: 20px 6px; margin-bottom: 28px; }
  #komu .d-num { padding: 0 10px; }
  #komu .d-num:nth-child(3) { border-left: 0; }
  #komu .d-num span { font-size: 13px; }
  #komu .d-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #komu .d-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
  #komu .sector-illustration { width: 64px; height: 64px; }
  #komu .d-card h3 { font-size: 16px; overflow-wrap: break-word; }
  #komu .d-card p { font-size: 14px; hyphens: none; overflow-wrap: break-word; }
  #tehnologiya .d-tech-cards { gap: 10px; }
  #tehnologiya .d-tcard p { font-size: 12px; }
}

/* Alexey, November 16: checklist below the technology description. */
#tehnologiya .tech-checklist { display: grid; gap: 14px; list-style: none; padding: 0; margin: 24px 0 0; }
#tehnologiya .tech-checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--blue); font-size: 16px; line-height: 1.5; font-weight: 600; text-align: left; }
#tehnologiya .tech-checklist svg { display: block; width: 24px; height: 24px; fill: none; stroke: #29983c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Match the photo to the full description and checklist on desktop. */
@media (min-width: 901px) {
  #tehnologiya .d-tech-top { align-items: stretch; }
  #tehnologiya .ingredients-client-frame { aspect-ratio: auto; min-height: 0; }
  #tehnologiya .ingredients-client-frame img { width: auto; height: 137.8%; left: 50%; top: -30.51823%; transform: translateX(-26%); }
}

/* Alexey's marked-up corrections, November 17. */
#sravnenie .af-yes svg { color: #29983c; stroke: #29983c; }
#korm .af-center > p { font-size: 19px; }
#korm .af-plates { max-width: 1100px; margin-top: 28px; gap: 24px; }
#korm .food-photo { aspect-ratio: 1.5; }
#o-reshenii .solution-prototype { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:48px; padding:28px; background:white; border:1px solid var(--line); border-radius:12px; }
#o-reshenii .solution-prototype h2 { text-align:center; font-size:clamp(26px,2.5vw,38px); margin:12px 0 22px; }
#o-reshenii .solution-prototype p { text-align:left; }
#o-reshenii .af-benefits { display:block; margin:0; padding:0; }
#o-reshenii .af-benefits li { position:relative; padding:18px 0 18px 34px; text-align:left; border:0; border-bottom:1px solid var(--line); }
#o-reshenii .af-benefits li:first-child { border-top:1px solid var(--line); }
#o-reshenii .af-benefits li + li { border-inline-start:0; }
#o-reshenii .af-benefits svg { position:absolute; left:0; top:18px; width:22px; height:22px; fill:none; stroke:#29983c; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
#o-reshenii .af-benefits b { font-size:18px; text-wrap:pretty; }
#o-reshenii .af-benefits span { font-size:16px; text-wrap:pretty; margin-top:6px; }
#o-reshenii .solution-prototype .btns { justify-content:flex-start; margin-top:24px; }
@media(max-width:760px) {
 #o-reshenii .solution-prototype { grid-template-columns:minmax(0,1fr); gap:24px; padding:20px 16px; }
 #korm .af-plates { gap:10px; }
 #korm .af-center > p { font-size:17px; }
}


/* Alexey, MAX 18 November, 09:08–09:20. */
:root { --green-panel:#9aba82; --green-check:#29983c; --green-text:#223f15; }
.d-btn, .d-btn-terra, .btn-primary, .cmt-form button {
  background:var(--blue); color:#fff; border:1px solid var(--blue);
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.btn-ghost { background:#fff; color:var(--blue); border-color:var(--blue); }
.d-btn:hover, .d-btn-terra:hover, .btn-primary:hover, .btn-ghost:hover,
.cmt-form button:hover, .af-tabs button:hover {
  background:#fff; color:var(--blue); border-color:var(--blue);
}
.d-btn:focus-visible, .d-btn-terra:focus-visible, .btn:focus-visible,
.af-tabs button:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.d-mnav a.js-form { background:var(--blue)!important; color:white!important; border:1px solid var(--blue)!important; }
.d-mnav a.js-form:hover { background:white!important; color:var(--blue)!important; }
.cmt-btn, .cmt-fab { color:var(--blue); }
.cmt-btn:hover { background:white; color:var(--blue); border-color:var(--blue); }
.af-checks li:before { color:var(--green-check); }
#sravnenie .af-no svg { color:#b23b45; }
#sravnenie .af-table th.our { background:var(--green-panel); color:var(--blue); }
#ekonomika .af-calc > div:last-child { background:var(--green-panel); color:var(--blue); }
#ekonomika .af-calc > div:last-child small { color:var(--blue); }
#komu .sector-art { position:relative; width:100px; height:100px; isolation:isolate; }
#komu .sector-art::before { content:""; position:absolute; left:8%; right:8%; bottom:3%; height:17%; background:radial-gradient(ellipse,rgba(18,40,76,.30) 0%,rgba(18,40,76,.13) 35%,transparent 72%); }
#komu .sector-art .sector-illustration { position:relative; z-index:1; width:100%; height:100%; mix-blend-mode:multiply; }
#start .af-steps { align-items:stretch; }
#start .af-step { display:flex; flex-direction:column; justify-content:center; min-height:168px; padding:28px 22px; }
#start .af-step::before { content:none; }
#start .af-step h3 { margin:0 0 10px; font-size:18px; line-height:1.4; text-wrap:balance; display:flex; align-items:center; justify-content:center; gap:9px; }
#start .step-number { font:inherit; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#f7f6f5; color:var(--blue); font-weight:700; flex:none; }
#start .af-step p { font-size:16px; line-height:1.55; text-wrap:pretty; }
@media(max-width:900px) { #komu .sector-art { width:72px; height:72px; } }
@media(max-width:600px) {
 #komu .sector-art { width:64px; height:64px; }
 #start .af-step { min-height:0; padding:24px 20px; }
}
@media(prefers-reduced-motion:reduce) { .d-btn,.d-btn-terra,.btn-primary,.cmt-form button { transition:none; } }

/* Alexey, November 18 13:43: dark green text on the two green panels, matching the ZIWI reference. */

/* Alexey, MAX November 19, 15:14–15:44: original photo and soft text area. */
#hero { overflow:hidden; }
#hero > .hero-grid {
  position:relative; isolation:isolate; display:flex; align-items:center;
  max-width:1920px; min-height:clamp(520px,44vw,760px);
  padding:48px clamp(24px,4vw,76px); gap:0;
}
#hero .hero-scene { position:absolute; inset:0; z-index:-1; overflow:hidden; }
#hero .hero-photo { width:100%; height:100%; object-fit:cover; object-position:center; border-radius:0; }
#hero .hero-soften {
  position:absolute; inset:0; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px);
  mask-image:linear-gradient(90deg,transparent 38%,#000 68%);
  -webkit-mask-image:linear-gradient(90deg,transparent 38%,#000 68%);
  background:linear-gradient(90deg,transparent 36%,rgba(247,245,244,.6) 64%,rgba(247,245,244,.82) 100%);
}
#hero .hero-scene::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(0deg,var(--bg),transparent 12%),linear-gradient(90deg,rgba(247,245,244,.25),transparent 5%,transparent 95%,rgba(247,245,244,.45));
}
#hero .hero-copy { width:45%; margin-left:auto; padding:0; }
#hero .hero-copy h1 { font-size:clamp(32px,3.05vw,56px); line-height:1.13; letter-spacing:-.035em; }
#hero .hero-copy .d-eyebrow { font-size:clamp(14px,1.25vw,20px); max-width:34ch; margin-bottom:22px; }
#hero .hero-copy .d-hero-btn { margin-top:28px; }
#hero .hero-copy .d-btn-terra { max-width:100%; font-size:clamp(14px,1.1vw,18px); padding:16px 20px; text-wrap:balance; }
@media(max-width:760px) {
  #hero > .hero-grid { display:block; min-height:0; padding:0 20px 32px; }
  #hero .hero-scene { position:relative; height:clamp(300px,72vw,460px); margin:0 -20px; }
  #hero .hero-photo { object-position:4% 80%; transform:scale(1.12) translateY(-30px); transform-origin:4% 80%; }
  #hero .hero-soften { backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); mask-image:linear-gradient(180deg,transparent 65%,#000 100%); -webkit-mask-image:linear-gradient(180deg,transparent 65%,#000 100%); background:linear-gradient(180deg,transparent 65%,var(--bg) 100%); }
  #hero .hero-scene::after { background:linear-gradient(0deg,var(--bg),transparent 28%); }
  #hero .hero-copy { position:relative; width:100%; margin:-8px auto 0; padding:0; }
  #hero .hero-copy h1 { font-size:clamp(28px,5.3vw,38px); line-height:1.15; }
  #hero .hero-copy .d-eyebrow { font-size:14px; line-height:1.4; margin-bottom:16px; }
  #hero .hero-copy .d-hero-btn { margin-top:24px; }
  #hero .hero-copy .d-btn-terra { font-size:15px; padding:14px 18px; }
}

/* Vera, November 19: desktop navigation over a full-height hero. */
@media(min-width:1121px) {
  .d-header { position:fixed; inset:0 0 auto; background:transparent; border-bottom-color:transparent; transition:background-color .2s ease,border-color .2s ease; }
  .d-header.is-scrolled { background:var(--bg); border-bottom-color:var(--line); }
  #hero > .hero-grid { max-width:none; min-height:100vh; min-height:100svh; padding-top:128px; padding-bottom:64px; }
  #hero > .cmt-btn { top:88px; }
}
@media(min-width:1121px) and (prefers-reduced-motion:reduce) { .d-header { transition:none; } }

/* Soft glass backing for the desktop navigation at the top of the photo. */
@media(min-width:1121px) {
 .d-header:not(.is-scrolled) { background:rgba(247,245,244,.4); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
}

/* Alexey, 19 November: smaller illustrations and compact cards. */
#komu .d-card{grid-template-columns:60px 1fr;gap:16px;padding:14px 20px;min-height:0}
#komu .sector-art{width:60px;height:60px}
#prodazhi .offer-poster{display:block;background:#d4d2d6 url('assets/offer-2027-original.webp') center bottom/100% auto no-repeat;padding:40px 40px clamp(230px,29vw,430px);border-radius:16px;overflow:hidden}
#prodazhi .offer-copy{max-width:1040px;margin:0 auto;background:rgba(255,255,255,.94);padding:32px 40px;border-radius:10px;text-align:center}
#prodazhi .offer-copy h2{margin-top:0}
#prodazhi .offer-copy .af-checks{text-align:center;max-width:900px;margin:24px auto}
#prodazhi .offer-copy .af-checks li{padding-left:0}
#prodazhi .offer-copy .af-checks li:before{position:static;display:inline-block;margin-right:10px}
#prodazhi .offer-copy .btns{margin-bottom:0}
@media(max-width:600px){
 #komu .d-card{grid-template-columns:48px 1fr;gap:12px;padding:14px}
 #komu .sector-art{width:48px;height:48px}
 #prodazhi .offer-poster{padding:16px 12px 150px;background-size:auto 320px}
 #prodazhi .offer-copy{padding:24px 16px}
 #prodazhi .offer-copy .btn{white-space:normal}
}

/* Alexey, Telegram 23 November, 08:58–09:10. */
#o-reshenii .solution-prototype{grid-template-columns:minmax(0,1fr);gap:24px}
#o-reshenii .solution-prototype .eyebrow{text-align:center}
#o-reshenii .solution-prototype h2{max-width:960px;margin:12px auto 24px}
#o-reshenii .solution-prototype p{max-width:1040px;margin:16px auto}
#o-reshenii .af-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#o-reshenii .af-benefits li,#o-reshenii .af-benefits li:first-child,#o-reshenii .af-benefits li+li{border:0;padding:12px 0 12px 30px}
#o-reshenii .af-benefits svg{top:14px}
#o-reshenii .solution-prototype .btns{justify-content:center}
#prodazhi .offer-copy{background:transparent}
#komplektaciya .kit-group .af-card{background:var(--soft)}
@media(max-width:760px){#o-reshenii .af-benefits{grid-template-columns:minmax(0,1fr);gap:8px}}

/* Use the client's finished crop without the former screenshot crop. */
#tehnologiya .ingredients-client-frame img{width:100%;height:100%;left:0;top:0;transform:none;object-fit:cover;object-position:center}
@media(max-width:900px){#tehnologiya .ingredients-client-frame{aspect-ratio:1813/1532}}

@media(max-width:600px){#prodazhi .offer-poster{background-image:linear-gradient(to bottom,#d4d2d6,rgba(212,210,214,0)),url('assets/offer-2027-original.webp');background-position:center calc(100% - 224px),center bottom;background-size:100% 96px,auto 320px;background-repeat:no-repeat}}

/* Vera, Nov 23: center solution description. */
#o-reshenii .solution-prototype p{text-align:center}

/* Vera, Nov 23: center all three solution benefits. */
#o-reshenii .af-benefits li,#o-reshenii .af-benefits li:first-child,#o-reshenii .af-benefits li+li{padding:12px 8px;text-align:center}
#o-reshenii .af-benefits svg{position:static;display:block;margin:0 auto 10px}

/* Alexey, MAX Nov 23 after 13:30; paragraph size approved by Vera. */
#o-reshenii .solution-prototype p{max-width:1040px;margin:16px auto;text-align:left;font-size:18px;line-height:1.6}
#tehnologiya .tech-checklist svg,#o-reshenii .af-benefits svg,#sravnenie .af-yes svg{stroke-width:3.5}
#prodazhi .offer-copy .af-checks li{font-size:18px;line-height:1.6;font-weight:600}
#prodazhi .offer-copy .af-checks li:before{font-weight:900;-webkit-text-stroke:.65px currentColor}

/* Align the description column with the heading's text width. */
#o-reshenii .solution-intro{width:fit-content;max-width:100%;margin-inline:auto}
#o-reshenii .solution-intro h2{max-width:none}
#o-reshenii .solution-intro p{contain:inline-size;max-width:none}

/* Full founder story, approved in MAX on 24 November. */
.story-preview{display:flex;align-items:center;justify-content:center;gap:36px;padding:32px;text-align:left;background:#fff}
.company-media .story-preview img{width:160px;height:205px;object-fit:cover;border-radius:12px}
.story-preview h3{margin:0 0 10px}.story-preview p{margin:0 0 22px}
.story-dialog{width:min(1120px,calc(100vw - 40px));max-width:none;height:min(880px,90dvh);max-height:90dvh;border:0;padding:0;border-radius:20px;background:#f6f7f5;color:var(--blue);overflow:hidden}
.story-dialog::backdrop{background:rgba(14,30,48,.65);backdrop-filter:blur(3px)}
.story-surface{position:relative;isolation:isolate;height:100%;display:flex;flex-direction:column}
.story-surface::before{content:"";position:absolute;z-index:-2;inset:-15px;background:url('assets/alexey-story-equipment.webp') 54% 20%/cover no-repeat;filter:blur(9px);opacity:.16}
.story-surface::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.35),rgba(255,255,255,.82) 45%,rgba(255,255,255,.88))}
.story-toolbar{display:flex;justify-content:flex-end;flex-shrink:0;padding:12px 16px 0}
.story-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d2dae0;border-radius:50%;background:#fff;color:var(--blue);font:32px/1 Arial,sans-serif;cursor:pointer}
.story-close:hover{background:#e9eef1}.story-close:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.story-scroll{overflow:auto;overscroll-behavior:contain;padding:0 46px 46px;scrollbar-gutter:stable}
.story-heading{margin:0 0 32px;text-align:center}.story-heading .eyebrow{margin:0 0 12px}
.story-heading h2{font-size:clamp(26px,3vw,38px);line-height:1.18;margin:0}
.story-layout{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:36px}
.story-author{position:sticky;top:0;text-align:left}.story-author img{display:block;width:100%;height:auto;border-radius:12px}
.story-author p{font-size:15px;line-height:1.45;margin:16px 0 0}.story-author strong{display:block;font-size:19px;margin-bottom:5px}.story-author span{display:block}
.story-text p{font-size:17px;line-height:1.75;text-align:left;margin:0 0 24px}.story-text p:last-child{margin-bottom:0}
html.story-is-open{overflow:hidden}
@media(max-width:680px){
 .story-preview{gap:20px;padding:24px;flex-direction:column;text-align:center}
 .company-media .story-preview img{width:135px;height:175px}
 .story-dialog{width:calc(100vw - 20px);height:92dvh;max-height:92dvh;border-radius:16px}
 .story-toolbar{padding:8px 10px 4px}.story-scroll{padding:0 22px 30px;scrollbar-gutter:auto}
 .story-heading{margin-bottom:24px}.story-heading h2{font-size:26px}
 .story-layout{grid-template-columns:1fr;gap:26px}.story-author{position:static;display:flex;align-items:center;gap:18px}
 .story-author img{width:104px;flex-shrink:0}.story-author p{margin:0;font-size:14px}.story-author strong{font-size:18px}
 .story-text p{font-size:16px;line-height:1.7;margin-bottom:22px}
 .story-surface::after{background:rgba(255,255,255,.78)}
}

/* Compact founder preview and original story in reading panels. */
#o-kompanii .company-media{max-width:760px;margin-top:28px;background:transparent}
.story-preview{display:grid;grid-template-columns:200px minmax(0,1fr);gap:36px;padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:16px}
.company-media .story-preview img{width:200px;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:10px}
#o-kompanii .story-preview h3{font-size:28px;line-height:1.2;margin:0 0 12px}
#o-kompanii .story-preview p{font-size:17px;max-width:26ch;margin:0 0 28px}
.story-preview .btn{font-size:15px;padding:13px 22px}
.story-text{display:grid;gap:20px}
.story-text p{margin:0;padding:24px 28px;background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:12px;line-height:1.7}
.story-text p:last-child{background:#e9f0e3;border-color:#cbd9bf}
.story-text strong{font-weight:700}
.story-brand{white-space:nowrap}
.story-author span{max-width:22ch}
@media(max-width:680px){
 .story-preview{grid-template-columns:104px minmax(0,1fr);gap:20px;padding:20px;text-align:left;align-items:center}
 .company-media .story-preview img{width:104px;height:auto}
 #o-kompanii .story-preview h3{font-size:21px;margin-bottom:8px}
 #o-kompanii .story-preview p{font-size:14px;margin-bottom:18px}
 .story-preview .btn{font-size:13px;padding:11px 14px}
 .story-heading .story-brand{display:block}
 .story-text{gap:16px}.story-text p{padding:20px 18px;margin:0;font-size:16px}
 .story-scroll{padding-inline:16px}.story-author{padding-inline:4px}
}
@media(max-width:360px){.story-preview{grid-template-columns:84px minmax(0,1fr);gap:14px;padding:16px}.company-media .story-preview img{width:84px}}

/* Keep the brand together and introduce the story through its mission. */
.brand-nowrap,.story-author span.brand-nowrap{display:inline;white-space:nowrap}
#o-kompanii .story-preview p{max-width:none;margin-bottom:16px}
#o-kompanii .story-preview .story-mission-preview{font-size:17px;line-height:1.65;margin:0 0 24px}
#o-kompanii .company-media{max-width:880px}
@media(max-width:680px){
 .story-preview{grid-template-columns:1fr;text-align:center;gap:20px;padding:24px}
 .company-media .story-preview img{width:140px;justify-self:center}
 #o-kompanii .story-preview .story-mission-preview{font-size:16px;text-align:left;margin-bottom:24px}
 #o-kompanii .story-preview h3{font-size:24px}
 .story-preview .btn{font-size:15px;padding:13px 22px}
}

/* Supplied registration previews; preserve their original status labels. */
.patent-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:#fff}
.patent-sheet{display:block;position:relative;overflow:hidden;aspect-ratio:724/1086;border-radius:10px}
.company-media .patent-sheet img{display:block;width:200%;max-width:none;height:100%;object-fit:fill}
.patent-sheet-second img{transform:translateX(-50%)}
.patent-sheet:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
#o-kompanii .patent-status{text-align:center;font-size:15px;margin:16px 0 0}
@media(max-width:560px){.patent-gallery{grid-template-columns:1fr;gap:12px}.patent-sheet{max-width:380px;width:100%;margin-inline:auto}#o-kompanii .patent-status{font-size:14px}}

/* ============================================================================
 * 25 ноября: «О решении» перед цифрами.
 * Порядок: кому подходит → суть решения и преимущества → цифры → консультация.
 * ==========================================================================*/
#komu .d-komu { padding-block: clamp(44px, 5vw, 72px) clamp(24px, 2.5vw, 36px); }
#komu .d-sec-head { max-width: 900px; margin: 0 auto clamp(24px, 2.6vw, 36px); }
#komu .d-sec-head .eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
#komu .d-sec-head h2 { margin: 0 0 14px; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
#komu .d-sec-head p:last-child { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.5; text-wrap: balance; }

#o-reshenii .solution-wrap { padding-block: clamp(12px, 1.4vw, 20px) clamp(48px, 5.5vw, 80px); }
#o-reshenii .solution-panel { padding: clamp(32px, 3.6vw, 56px) clamp(24px, 4vw, 64px) clamp(32px, 3.4vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
#o-reshenii .solution-panel h2 { max-width: 860px; margin: 0 auto 20px; color: var(--blue); font-size: clamp(24px, 2.15vw, 34px); line-height: 1.2; letter-spacing: -.025em; text-align: center; text-wrap: balance; }
#o-reshenii .solution-lead { max-width: 900px; margin: 0 auto; color: var(--blue); font-size: 17.5px; line-height: 1.65; text-wrap: pretty; }
#o-reshenii .solution-lead strong { font-weight: 700; }
#o-reshenii .solution-checks { display: grid; gap: 14px; width: fit-content; max-width: 900px; margin: 28px auto 0; padding: 0; list-style: none; }
#o-reshenii .solution-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--blue); font-size: 16.5px; line-height: 1.5; }
#o-reshenii .solution-checks svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--green-check); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
#o-reshenii .solution-checks b { font-weight: 700; }

#o-reshenii .d-nums { gap: 0; margin: clamp(32px, 3.4vw, 44px) 0 0; padding: 24px 12px; background: var(--soft); border-radius: 12px; }
#o-reshenii .d-num { padding: 4px 16px; text-align: center; background: transparent; border: 0; border-radius: 0; }
#o-reshenii .d-num + .d-num { border-left: 1px solid var(--line); }
#o-reshenii .d-num b { margin-bottom: 6px; color: var(--blue); font-size: clamp(23px, 2vw, 30px); }
#o-reshenii .d-num span { color: var(--blue); font-size: 14px; }
#o-reshenii .btns { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 36px); }

@media (max-width: 760px) {
  #komu .d-komu { padding-block: 36px 20px; }
  #komu .d-sec-head .eyebrow { font-size: 11px; margin-bottom: 10px; }
  #komu .d-sec-head h2 { font-size: 27px; }
  #komu .d-sec-head p:last-child { font-size: 15.5px; }
  #o-reshenii .solution-wrap { padding: 8px 16px 44px; }
  #o-reshenii .solution-panel { padding: 28px 18px 24px; border-radius: 14px; }
  #o-reshenii .solution-panel h2 { font-size: 23px; margin-bottom: 16px; }
  #o-reshenii .solution-lead { font-size: 16px; line-height: 1.6; }
  #o-reshenii .solution-checks { gap: 12px; margin-top: 22px; }
  #o-reshenii .solution-checks li { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
  #o-reshenii .solution-checks svg { width: 20px; height: 20px; }
  #o-reshenii .d-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; margin-top: 28px; padding: 20px 4px; }
  #o-reshenii .d-num { padding: 0 8px; }
  #o-reshenii .d-num:nth-child(3) { border-left: 0; }
  #o-reshenii .d-num b { font-size: 22px; }
  #o-reshenii .d-num span { font-size: 13px; }
  #o-reshenii .btns .btn { width: 100%; }
}
/* Кнопка «Комментировать» не перекрывает панель решения. */
#komu .d-komu { padding-bottom: 8px; }
#o-reshenii .solution-wrap { padding-top: 48px; }
#o-reshenii .d-num b { white-space: nowrap; }
@media (max-width: 760px) {
  #komu .d-komu { padding-bottom: 4px; }
  #o-reshenii .solution-wrap { padding-top: 44px; }
  #o-reshenii .d-num b { font-size: 20px; }
}
#o-reshenii .solution-wrap { padding-bottom: clamp(20px, 2.4vw, 36px); }

/* 25 ноября, итерация 2: заголовок и описание «О решении» — в одну строку на ПК. */
#komu .d-sec-head { max-width: none; }
#komu .d-sec-head h2,
#komu .d-sec-head p:last-child { max-width: none; white-space: nowrap; }
@media (max-width: 1100px) {
  #komu .d-sec-head h2 { white-space: normal; text-wrap: balance; }
}
@media (max-width: 760px) {
  #komu .d-sec-head p:last-child { white-space: normal; text-wrap: balance; }
}

/* Nov 26: vertical training video, original aspect ratio. */
#media-video .training-video{display:block;width:100%;max-width:360px;height:auto;aspect-ratio:9/16;max-height:none;object-fit:contain;margin:0 auto;border-radius:12px;background:#12284c}

/* Nov 26: client request, improve subtitle contrast. */
#komu .d-sec-head p:last-child{color:var(--blue)}

/* Remove the redundant divider where economics meets the launch steps. */
#ekonomika + #start{border-top:0}

@media(min-width:1024px){#o-reshenii .solution-panel h2{max-width:none;white-space:nowrap;text-wrap:nowrap;font-size:clamp(22px,2.15vw,34px)}}

/* B2C, 27 ноября: отдельная копия, второй блок по образцу клиента. */
#komu .d-sec-head h2 { white-space:normal; text-wrap:balance; max-width:1100px; margin:0 auto; font-size:clamp(26px,2.35vw,38px); }
#komu .d-komu { padding-top:clamp(40px,4.5vw,68px); padding-bottom:8px; }
.b2c-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:clamp(32px,4vw,60px); row-gap:38px; list-style:none; max-width:1120px; margin:40px auto 0; padding:0; }
.b2c-benefit { display:flex; flex-direction:column; align-items:center; gap:16px; padding:0; color:var(--blue); text-align:center; }
.b2c-illustration { display:block; width:112px; height:112px; flex:none; background:var(--blue); -webkit-mask:var(--scene) center / contain no-repeat; mask:var(--scene) center / contain no-repeat; }
.b2c-benefit p { margin:0; font-size:17px; line-height:1.6; width:100%; min-width:0; }
#o-reshenii .solution-wrap { padding-top:36px; }
#o-reshenii .solution-panel { border:0; background:transparent; padding:28px 0 36px; }
#o-reshenii .solution-panel h2 { white-space:normal; text-wrap:balance; max-width:none; font-size:clamp(24px,2.1vw,34px); }
#o-reshenii .solution-lead { max-width:1060px; text-align:center; }
@media(max-width:900px) {
 .b2c-benefits { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; }
}
@media(max-width:560px) {
 #komu .d-sec-head h2 { font-size:26px; }
 .b2c-benefits { grid-template-columns:1fr; gap:26px; margin-top:30px; }
 .b2c-benefit { flex-direction:column; gap:12px; padding:0; }
 .b2c-illustration { width:80px; height:80px; }
 .b2c-benefit p { font-size:16px; max-width:none; }
 #o-reshenii .solution-wrap { padding-top:20px; }
 #o-reshenii .solution-panel { padding-top:24px; }
}
@media(min-width:1200px) {
 #komu .d-sec-head h2 { max-width:none; font-size:clamp(24px,2vw,32px); white-space:nowrap; text-wrap:nowrap; }
}

/* Preserve the original facial and clothing detail in the feeding illustration. */
.b2c-illustration-detail { object-fit:contain; background:none; -webkit-mask:none; mask:none; mix-blend-mode:multiply; }

.b2c-benefit strong { font-weight:700; }

@media(max-width:560px){.d-logo img{height:38px;width:auto}}

/* Nov 27, Alexey 16:35: compact footer with grouped contacts and separate legal row. */
.af-foot-cols{grid-template-columns:1.15fr .85fr 1fr;gap:clamp(24px,4vw,64px);align-items:start}
.foot-nav-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}
.foot-contact-links{display:flex;flex-wrap:wrap;gap:12px 22px}
.af-foot-cols .foot-nav-links a,.af-foot-cols .foot-contact-links a{margin:0}
.foot-contact-links a{white-space:nowrap}
.foot-bottom{max-width:1584px;margin:28px auto 0;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;font-size:13px}
.foot-bottom p{margin:0!important}.foot-bottom a{color:inherit;text-underline-offset:3px}.foot-bottom .foot-credit{margin-left:auto}
@media(max-width:1000px){.af-foot-cols{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}.af-foot-note{max-width:65ch}}
@media(max-width:560px){.af-foot-cols{grid-template-columns:1fr;gap:24px}.foot-brand{grid-column:auto}.foot-bottom{align-items:flex-start;flex-direction:column;gap:14px}.foot-bottom .foot-credit{margin-left:0}}

/* Taller contact photo, aligned with the form on desktop. */
@media(min-width:1100px){#kontakty .af-split-form{align-items:stretch}#kontakty .af-split-form>.section-photo{height:100%;align-self:stretch;object-fit:cover;object-position:center}}
@media(max-width:1099px){#kontakty .af-split-form>.section-photo{height:auto;align-self:center}}
