/* ==========================================================================
   tyshivan.com — вариант «Гибрид» (макет 17.09.2026), адаптивная вёрстка
   ========================================================================== */

:root {
  --blue:      #3375BA;
  --blue-dark: #2A64B4;
  --ink:       #101D33;
  --ink-2:     #3A4556;
  --lime:      #D4EC5F;
  --pale:      #C5DCED;
  --pale-2:    #E2EDF6;
  --grey:      #E6E6E6;
  --grey-2:    #F2F2F2;
  --white:     #FFFFFF;
  --green:     #218459;
  --green-ink: #18231C;
  --green-bg:  #F4F6F4;
  --navy:      var(--ink);   /* имена для юридических страниц (legal.css) */
  --muted:     #5C6676;

  --gutter: clamp(16px, 8.3vw, 120px);
  --section: clamp(64px, 8vw, 120px);
  --h2: clamp(36px, 4.2vw, 60px);
  --lead: clamp(17px, 1.35vw, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px; line-height: 1.5;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tariffs :focus-visible, .contacts :focus-visible, .site-header :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; }

/* ---------- общие элементы ---------- */
.section { position: relative; padding-block: var(--section); }
.section h2, .contacts-title {
  font-weight: 400; font-size: var(--h2); line-height: 1.02;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.lead { font-size: var(--lead); line-height: 1.55; color: var(--ink-2); max-width: 520px; }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; }
.section-head.split > div:first-child { display: flex; flex-direction: column; gap: 20px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 26px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-white { background: var(--white); color: var(--blue); }
.pill-white:hover { color: var(--blue-dark); }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-lime:hover { background: #def37a; color: var(--ink); }
.pill-xl { height: 64px; padding: 0 34px; border-radius: 32px; font-size: 18px; }

.tag {
  align-self: flex-start; display: inline-block;
  padding: 5px 14px; border-radius: 14px;
  background: var(--blue); color: var(--white); font-size: 14px; font-weight: 500;
}
.tag-offline { background: var(--ink); }
.tag-white { background: var(--white); color: var(--blue); }
.tag-green { background: var(--green); padding: 6px 16px; font-size: 15px; }

.sq-btn {
  display: grid; place-items: center; width: 60px; height: 60px;
  border: 0; border-radius: 18px; background: var(--blue); color: var(--white); cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.sq-btn:hover { transform: translateY(-2px); }
.sq-btn-pale { background: var(--pale); color: var(--blue); }

/* ---------- шапка ---------- */
.header-shell { position: sticky; top: 0; z-index: 50; background: var(--grey); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 96px; padding: 0 48px;
  background: var(--blue); color: var(--white);
  border-radius: 0 0 28px 28px;
  transition: min-height .2s ease, box-shadow .2s ease;
}
.header-shell.is-scrolled .site-header { min-height: 76px; box-shadow: 0 10px 30px rgba(16, 29, 51, .18); }
.brand { display: none; color: var(--white); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 17px; font-weight: 500; }
.nav a { color: var(--white); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--white); border-color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 26px;
  background: var(--lime); color: var(--blue); transition: transform .15s ease;
}
.round-btn:hover { transform: translateY(-2px); color: var(--blue); }

.burger { display: none; width: 52px; height: 52px; border: 0; border-radius: 26px; background: rgba(255,255,255,.16); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; margin: 8px 12px 0; padding: 8px 20px 20px;
  background: var(--blue); border-radius: 24px;
}
.mobile-nav a { color: var(--white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 18px; }
.mobile-nav .pill { margin-top: 16px; border: 0; color: var(--ink); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .brand { display: block; }
  .burger { display: grid; }
  .mobile-nav:not([hidden]) { display: flex; animation: drop .22s ease both; }
}
@media (max-width: 560px) {
  .site-header { min-height: 72px; padding: 0 12px 0 20px; border-radius: 0 0 22px 22px; }
  .header-shell.is-scrolled .site-header { min-height: 64px; }
  .header-actions .pill-white { display: none; }
  .round-btn, .burger { width: 46px; height: 46px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- первый экран ---------- */
.hero { background: var(--grey); padding-inline: var(--gutter); }
.hero-stage { position: relative; max-width: 1200px; height: 600px; margin-inline: auto; }
.hero-title {
  position: absolute; left: 0; right: 0; top: 132px;
  text-align: center; font-weight: 400;
  font-size: clamp(56px, 11.7vw, 168px); line-height: .96; letter-spacing: -.045em;
  color: var(--ink);
}
.sticker {
  position: absolute; margin: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: 18px; border: 0;
  background: var(--blue); color: var(--white);
  font-size: 17px; line-height: 1.35; text-align: left;
  box-shadow: 0 14px 30px rgba(16, 29, 51, .12);
}
.sticker-intro { left: 6%; top: 40px; padding: 12px 22px 12px 12px; border-radius: 20px; transform: rotate(-1.5deg); }
.sticker-intro img { flex: none; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--pale); }
.sticker-habits { left: 10%; top: 410px; transform: rotate(2deg); }
.sticker-years {
  right: 9%; top: 450px; width: 270px; min-height: 64px; justify-content: space-between; flex-wrap: wrap;
  cursor: pointer; font-family: inherit; transition: transform .2s ease, background-color .2s ease;
}
.sticker-years:hover { transform: rotate(-2deg) translateY(-2px); background: var(--blue-dark); }
.sticker-sub { flex-basis: 100%; font-size: 13px; opacity: .8; margin-top: -8px; }
.hero-cta { position: absolute; left: 50%; top: 490px; transform: translateX(-50%); }
.hero-cta:hover { transform: translateX(-50%) translateY(-2px); }

.hero-wave { width: 100%; height: clamp(70px, 13.9vw, 200px); margin-bottom: -40px; position: relative; z-index: 1; }
.hero-wave-line { stroke-width: 30px; }

/* мягкое появление первого экрана */
.hero-title, .sticker, .hero-cta { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { animation-delay: .05s; }
.sticker-intro { animation-delay: .15s; }
.sticker-habits { animation-delay: .25s; }
.sticker-years { animation-delay: .3s; }
.hero-cta { animation-name: rise-c; animation-delay: .35s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-c { from { opacity: 0; translate: 0 18px; } }

@media (max-width: 1100px) {
  .hero-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 28px 56px; }
  .hero-title, .sticker, .hero-cta { position: static; }
  .hero-title { order: 2; margin-block: 8px 4px; }
  .sticker-intro { order: 1; }
  .sticker-habits { order: 3; }
  .sticker-years { order: 4; }
  .hero-cta { order: 5; transform: none; margin-top: 12px; }
  .hero-cta:hover { transform: translateY(-2px); }
}
@media (max-width: 560px) {
  .hero-stage { gap: 12px; padding-block: 20px 44px; align-items: stretch; }
  .hero-title { text-align: center; font-size: clamp(48px, 15vw, 64px); }
  .sticker { font-size: 15px; }
  .sticker-intro { align-self: center; }
  .sticker-habits, .sticker-years { width: auto; }
  .sticker-habits { align-self: flex-start; }
  .sticker-years { align-self: flex-end; width: 250px; }
  .hero-cta { width: 100%; padding: 0 20px; font-size: 17px; }
}

/* ---------- направления ---------- */
.directions { padding-top: calc(var(--section) - 20px); }
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dir-card {
  display: flex; flex-direction: column; gap: 18px;
  min-height: 300px; padding: 32px; border-radius: 26px;
  background: var(--blue); color: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dir-card svg { color: var(--lime); }
.dir-card h3 { font-weight: 600; font-size: clamp(26px, 2.1vw, 30px); line-height: 1.1; }
.dir-card p { font-size: 17px; line-height: 1.55; }
.dir-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(51, 117, 186, .28); }
.dir-card-offset { margin-top: 36px; }
@media (max-width: 900px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card { min-height: 0; padding: 26px; }
  .dir-card-offset { margin-top: 0; }
}

/* ---------- тарифы ---------- */
.tariffs { background: var(--blue); color: var(--white); overflow: hidden; }
.tariffs .lead { color: var(--white); }
.tariffs-squiggle { position: absolute; right: 0; top: 0; width: 100%; height: 240px; pointer-events: none; }
.tariffs .wrap { position: relative; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex; flex-direction: column; gap: 20px;
  min-height: 520px; padding: 30px 28px; border-radius: 26px;
  background: var(--white); color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(16, 29, 51, .25); }
.plan h3 { font-weight: 600; font-size: clamp(26px, 2.1vw, 30px); }
.plan ul { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.plan li::marker { color: var(--blue); }
.plan-price { font-weight: 600; font-size: clamp(36px, 3vw, 44px); letter-spacing: -.02em; color: var(--blue); line-height: 1; }
.plan-btn {
  display: flex; align-items: center; justify-content: center; height: 60px; border-radius: 16px;
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: background-color .15s ease;
}
.plan-btn:hover { background: var(--blue-dark); color: var(--white); }
.tariffs-note { margin-top: clamp(32px, 4vw, 56px); font-size: 18px; }
.tariffs-note a { color: var(--lime); font-weight: 600; }
.tariffs-note a:hover { color: #e6f69c; }
@media (max-width: 1180px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan { min-height: 0; } }
@media (max-width: 640px)  { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- результаты ---------- */
.results-strokes { position: absolute; right: clamp(16px, 4vw, 60px); top: -22px; width: min(440px, 50vw); height: auto; }
.results-head { align-items: end; }
/* список слева + карточка справа: помещаются в один экран, переключатель на фото */
.rv {
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px;
  height: clamp(560px, calc(100svh - 130px), 700px);
}
.rv-list { display: flex; flex-direction: column; min-height: 0; padding: 26px 16px 20px; border-radius: 30px; background: var(--grey-2); }
.rv-list-head { padding: 0 12px 8px; }
.rv-list-head .underlined { font-size: clamp(22px, 1.8vw, 26px); }
.rv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.rv-legend span { display: flex; align-items: center; gap: 6px; }
.rv-legend .lg { width: 22px; height: 10px; }
.rv-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 2px 18px; }
.rv-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
  width: 100%; padding: 10px 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink);
  text-align: left; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease;
}
.rv-row:hover { background: rgba(255,255,255,.65); }
.rv-row[aria-selected="true"] { background: var(--white); box-shadow: 0 6px 18px rgba(16,29,51,.08), inset 4px 0 0 var(--blue); }
.rv-name { font-size: 17px; font-weight: 600; min-width: 0; }
.rv-line { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-line small { flex: none; min-width: 92px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rv-row .delta { font-size: 17px; padding: 1px 9px; border-radius: 8px; }
.rv-tag { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--pale); color: var(--ink); }
.rv-line .bar { flex: 1; height: 10px; }
.rv-row .bar i { border-radius: 5px; }
.rv-row .bar .bar-before { border-width: 1.5px; }
.rv.is-pending .bar i { transform: scaleX(0); }
.rv-list .more-link { margin: 14px 12px 0; font-size: 15px; }

.rv-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px);
  min-height: 0; padding: 24px; border-radius: 30px; background: var(--blue); color: var(--white); overflow: hidden;
}
.rv-photo { position: relative; align-self: center; margin: 0; max-height: 100%; border-radius: 20px; overflow: hidden; background: var(--pale); }
.rv-photo img { display: block; width: 100%; height: auto; max-height: calc(clamp(560px, calc(100svh - 130px), 700px) - 48px); object-fit: cover; }
.rv-photo img, .rv-body { transition: opacity .18s ease; }
.rv-card.is-swapping .rv-photo img, .rv-card.is-swapping .rv-body { opacity: 0; }
.rv-nav {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(16,29,51,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white);
}
.rv-arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s ease, transform .15s ease;
}
.rv-arrow:hover { background: var(--lime); }
.rv-arrow:active { transform: scale(.94); }
.rv-arrow svg { width: 18px; height: 18px; }
.rv-count { min-width: 64px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-body { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); padding-bottom: 24px; overscroll-behavior: contain; padding-right: 6px; padding-top: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.rv-card .client-name { font-size: clamp(20px, 1.7vw, 28px); padding: 12px 26px; white-space: nowrap; }
.rv-more { display: none; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--lime); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-rows { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.rv-card .client-weight { font-size: 18px; }
.rv-card .client-weight .delta { font-size: 28px; }
.rv-card .client-text { font-size: 16.5px; line-height: 1.55; }
.rv-card .measures { margin-top: auto; padding-top: 16px; gap: 8px 24px; }
.rv-card .measures > div { font-size: 15px; }
.rv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); }
.rv-progress i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .35s ease; }
.rv :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rv-card :focus-visible { outline-color: var(--lime); }

.underlined { position: relative; font-weight: 600; font-size: clamp(24px, 2.1vw, 30px); padding-bottom: 12px; }
.underlined::after {
  content: ''; position: absolute; left: -4px; bottom: -2px; width: 290px; max-width: 100%; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290 16'%3E%3Cpath d='M4 10 C 60 2 140 4 200 7 S 270 12 286 5' fill='none' stroke='%233375BA' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left / contain;
}
.lg { display: inline-block; width: 30px; height: 14px; border-radius: 7px; }
.lg-before { border: 2px solid var(--blue); }
.lg-after { background: var(--blue); }
.bar { position: relative; display: block; height: 30px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 15px; transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bar .bar-before { border: 2px solid var(--blue); }
.bar .bar-after { background-color: var(--blue); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 14px); }
.delta {
  justify-self: end; display: inline-block; padding: 2px 12px; border-radius: 10px;
  background: var(--lime); color: var(--ink); font-weight: 700; font-size: 26px; white-space: nowrap;
  transform: rotate(-2deg); font-variant-numeric: tabular-nums;
}
.delta[hidden], .client-weight[hidden], .client-weight > [hidden] { display: none; }
.badge { position: absolute; top: 14px; padding: 4px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.badge-white { left: 14px; background: var(--white); }
.badge-lime { left: calc(50% + 14px); background: var(--lime); }
.client-name { position: relative; align-self: flex-start; padding: 14px 30px; font-weight: 600; font-size: clamp(24px, 2.1vw, 30px); }
.client-name::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 70' preserveAspectRatio='none'%3E%3Cpath d='M40 10 C 120 -2 300 2 314 30 C 326 56 180 68 70 62 C 10 58 -2 34 20 20 C 40 8 90 6 120 8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.client-name span { position: relative; }
.client-weight { display: flex; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; font-size: 20px; }
.client-weight .delta { font-size: 34px; justify-self: auto; }
.client-text { display: flex; flex-direction: column; gap: 10px; max-width: 560px; font-size: 18px; line-height: 1.6; font-style: italic; }
.measures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; max-width: 560px;
  margin: auto 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35);
}
.measures:empty { display: none; }
.measures > div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.measures dd { margin: 0; font-weight: 600; white-space: nowrap; }
.more-link { display: inline-block; margin-top: 28px; font-size: 17px; font-weight: 500; }

/* до 1180: список превращается в ленту чипсов над карточкой — карточке достаётся вся ширина */
@media (max-width: 1180px) {
  .rv { display: flex; flex-direction: column; gap: 14px; height: auto; }
  .rv-list { display: contents; }
  .rv-list-head { display: none; }
  .rv-rows {
    order: 1; flex: none; flex-direction: row; gap: 8px; overflow-x: auto; overflow-y: visible;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: none; mask-image: none;
  }
  .rv-rows::-webkit-scrollbar { display: none; }
  .rv-row { flex: 0 0 auto; width: auto; grid-template-columns: auto auto; padding: 9px 12px; border-radius: 14px; background: var(--grey-2); scroll-snap-align: center; }
  .rv-row[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
  .rv-row[aria-selected="true"] .rv-tag { background: var(--white); }
  .rv-line { display: none; }
  .rv-name { font-size: 15px; white-space: nowrap; }
  .rv-row .delta { font-size: 15px; }
  .rv-card { order: 2; height: min(560px, calc(100svh - 190px)); min-height: 440px; }
  .rv-photo img { max-height: calc(min(560px, calc(100svh - 190px)) - 48px); }
  .rv-list .more-link { order: 3; margin: 4px 0 0; }
  #results { scroll-margin-top: 70px; }
}
@media (max-width: 900px) { .section-head.split { grid-template-columns: 1fr; } }

/* телефон: фото сверху, отзыв свёрнут до 4 строк, чтобы блок помещался в экран */
@media (max-width: 700px) {
  .rv-card { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 16px 16px 22px; border-radius: 24px; gap: 18px; }
  .rv-photo img { max-height: none; }
  .rv-body { overflow: visible; padding: 0; gap: 12px; -webkit-mask-image: none; mask-image: none; }
  .rv-card:not(.is-open) .client-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .rv-card:not(.is-open) .client-text p + p { display: none; }
  .rv-card:not(.is-open) .measures { display: none; }
  .rv-more { display: inline-block; }
}
@media (max-width: 560px) {
  .rv-card .client-text { font-size: 16px; }
  .measures { grid-template-columns: 1fr; }
  .rv-card .client-weight .delta { font-size: 24px; }
  .rv-arrow { width: 38px; height: 38px; }
}

/* ---------- подкаст и тренировки ---------- */
.watch { background: var(--grey-2); border-radius: 40px 40px 0 0; }
.seg { justify-self: end; display: flex; gap: 6px; padding: 6px; border-radius: 20px; background: var(--white); }
.seg button {
  height: 52px; padding: 0 26px; border: 0; border-radius: 15px; background: transparent; color: var(--ink);
  font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.seg button[aria-selected="true"] { background: var(--blue); color: var(--white); }
.watch-panel { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.podcast { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.ep-main, .ep, .wo {
  display: flex; border-radius: 26px; background: var(--white); color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ep-main:hover, .ep:hover, .wo:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16, 29, 51, .1); color: var(--ink); }
.ep-main { flex-direction: column; gap: 18px; padding: 20px 20px 26px; }
.ep-cover, .wo-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--blue); }
.ep-cover-note { position: absolute; left: 18px; bottom: 14px; font-size: 14px; color: var(--white); }
.play { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--lime); }
.play::after { content: ''; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.play-lg { width: 88px; height: 88px; }
.play-lg::after { border-width: 14px 0 14px 22px; margin-left: 6px; }
.ep-title { padding: 0 6px; font-weight: 600; font-size: 24px; }
.ep-meta { padding: 0 6px; font-size: 16px; color: var(--ink-2); }
.ep-list { display: flex; flex-direction: column; gap: 12px; }
.ep { gap: 18px; align-items: center; padding: 14px; border-radius: 20px; }
.ep-thumb { flex: none; display: grid; place-items: center; width: 128px; height: 80px; border-radius: 14px; background: var(--pale); }
.ep-thumb .play { width: 40px; height: 40px; background: transparent; }
.ep-thumb .play::after { border-color: transparent transparent transparent var(--blue); }
.ep > span:last-child { display: flex; flex-direction: column; gap: 6px; }
.ep b { font-size: 18px; font-weight: 600; }
.ep small, .wo small { font-size: 15px; color: var(--ink-2); }
.block-btn {
  display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 32px; margin-top: auto;
  border-radius: 18px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 18px; text-decoration: none;
}
.block-btn:hover { background: var(--blue-dark); color: var(--white); }
.block-btn-inline { display: inline-flex; margin-top: 32px; }
.wo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wo { flex-direction: column; gap: 14px; padding: 16px 16px 22px; border-radius: 24px; }
.wo-cover .tag { position: absolute; left: 12px; top: 12px; font-size: 13px; }
.wo b { padding: 0 4px; font-size: 19px; font-weight: 600; }
.wo small { padding: 0 4px; }
@media (max-width: 900px) {
  .seg { justify-self: start; }
  .podcast, .wo-grid { grid-template-columns: 1fr; }
  .ep-thumb { width: 96px; height: 64px; }
  .watch { border-radius: 28px 28px 0 0; }
}

/* ---------- приложение ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 64px; align-items: center; }
.app-copy { display: flex; flex-direction: column; gap: 28px; }
.app-features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.app-features li {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px;
  background: var(--green-bg); font-size: 17px; font-weight: 500;
}
.app-features svg { flex: none; color: var(--green); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; height: 58px; padding: 0 26px; border-radius: 16px;
  background: var(--green-ink); color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .15s ease;
}
.store:hover { color: var(--white); transform: translateY(-2px); }
.app-stage { position: relative; height: 640px; border-radius: 36px; background: var(--green); overflow: hidden; }
.app-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone {
  position: absolute; padding: 10px; border-radius: 42px; background: var(--green-ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.25); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.phone-a { left: 11.6%; top: 60px; width: 250px; height: 520px; transform: rotate(-4deg); }
.phone-b { left: 51.6%; top: 110px; width: 230px; height: 480px; border-radius: 40px; transform: rotate(5deg); }
.app-stage:hover .phone-a { transform: rotate(-6deg) translateY(-6px); }
.app-stage:hover .phone-b { transform: rotate(7deg) translateY(-10px); }
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-stage { max-width: 600px; width: 100%; }
}
@media (max-width: 560px) {
  .app-features { grid-template-columns: 1fr; }
  .app-stage { height: 470px; border-radius: 28px; }
  .phone-a { left: 6%; top: 40px; width: 52%; height: 390px; }
  .phone-b { left: 46%; top: 70px; width: 48%; height: 360px; }
  .store { flex: 1 1 auto; justify-content: center; }
}

/* ---------- запись и контакты ---------- */
.contacts {
  position: relative; padding-top: clamp(80px, 7.6vw, 110px);
  background: var(--blue); color: var(--white); border-radius: 40px 40px 0 0;
}
.stripes { position: absolute; right: clamp(16px, 4vw, 60px); top: -6px; display: flex; gap: 34px; }
.stripes i { display: block; height: 52px; background: var(--white); transform: skewX(-32deg); }
.stripes i:nth-child(1) { width: 120px; } .stripes i:nth-child(2) { width: 26px; }
.stripes i:nth-child(3) { width: 90px; }  .stripes i:nth-child(4) { width: 26px; }
.stripes i:nth-child(5) { width: 150px; } .stripes i:nth-child(6) { width: 60px; }
@media (max-width: 760px) { .stripes { gap: 18px; } .stripes i:nth-child(n+4) { display: none; } .stripes i { height: 36px; } }

.contacts .wrap { display: flex; flex-direction: column; gap: 48px; }
.signup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center;
  padding: 44px 48px; border-radius: 28px; background: var(--white); color: var(--ink);
}
.signup-copy { display: flex; flex-direction: column; gap: 14px; }
.sticker-lime {
  align-self: flex-start; padding: 4px 14px; border-radius: 12px; background: var(--lime);
  font-size: 16px; font-weight: 600; transform: rotate(-2deg);
}
.signup h2 { font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; color: var(--blue); }
.signup-copy > p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.signup-tariff {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px; border-radius: 12px; background: var(--pale-2); color: var(--ink); font-size: 16px;
}
.signup-tariff[hidden] { display: none; }
.chip-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form > label:not(.consent) { font-size: 14px; font-weight: 500; }
.lead-form input[type="text"] {
  height: 54px; margin-top: -6px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid var(--pale); background: var(--grey-2); font-size: 17px; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.lead-form input[type="text"]:focus { outline: none; border-color: var(--blue); background: var(--white); }
.lead-form input[aria-invalid="true"] { border-color: #d9534f; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid #d9534f; outline-offset: 2px; }
.form-submit {
  margin-top: 6px; height: 60px; border: 0; border-radius: 16px; background: var(--lime); color: var(--ink);
  font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.form-submit:hover { background: #def37a; transform: translateY(-2px); }
.form-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--green); font-weight: 600; font-size: 17px; }
.form-status a { color: inherit; }

.contacts-title { margin-top: 16px; }
.map { height: 360px; border-radius: 28px; overflow: hidden; background: #E8EEF2; }
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px 240px; gap: 40px;
  padding: 40px 48px; border-radius: 28px; background: var(--white); color: var(--ink);
}
.contact-main { display: flex; flex-direction: column; gap: 14px; }
.metro { font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.ic { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ic svg { flex: none; }
.ic a { color: var(--ink); text-decoration: none; }
.ic a:hover { color: var(--blue); }
.contact-nav { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.contact-nav a { text-decoration: none; }
.contact-social { display: flex; flex-direction: column; gap: 14px; }
.muted-title { font-size: 17px; color: var(--blue); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: transform .15s ease;
}
.socials a:hover { transform: translateY(-2px); color: var(--white); }
.small-note { font-size: 13px; line-height: 1.4; color: var(--ink-2); }

.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 40px;
  padding: 4px 0 36px; font-size: 14px; color: var(--white);
}
.site-footer p { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }

@media (max-width: 1100px) {
  .signup { grid-template-columns: 1fr; padding: 32px; }
  .contact-card { grid-template-columns: 1fr 1fr; padding: 32px; }
  .contact-main { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .contacts { border-radius: 28px 28px 0 0; }
  .contacts .wrap { gap: 32px; }
  .signup { padding: 24px 20px; border-radius: 24px; gap: 28px; }
  .map { height: 280px; border-radius: 24px; }
  .contact-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; border-radius: 24px; }
}

/* ---------- модальное окно сертификатов ---------- */
.modal {
  border: 0; padding: 0; border-radius: 28px; width: min(1100px, calc(100vw - 32px)); max-height: min(90vh, 900px);
  box-shadow: 0 30px 80px rgba(16, 29, 51, .3); color: var(--ink); background: var(--white); overflow: auto;
}
.modal::backdrop { background: rgba(16, 29, 51, .62); backdrop-filter: blur(3px); }
.modal, .modal::backdrop { transition: opacity .22s ease, transform .22s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
.modal { opacity: 0; transform: translateY(14px) scale(.98); }
.modal[open] { opacity: 1; transform: none; }
.modal::backdrop { opacity: 0; }
.modal[open]::backdrop { opacity: 1; }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(14px) scale(.98); }
  .modal[open]::backdrop { opacity: 0; }
}
.modal-close {
  position: sticky; top: 12px; left: 100%; z-index: 2; width: 44px; height: 44px; margin: 12px 12px -44px 0;
  border: 0; border-radius: 14px; cursor: pointer; background: var(--grey-2); color: var(--ink); font-size: 26px; line-height: 1;
}
.modal-close:hover { background: var(--pale); }
.gallery-title { padding: 28px 24px 18px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 0 24px 24px; }
.gallery button { padding: 0; border: 0; background: var(--pale); border-radius: 14px; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button.is-zoomed { grid-column: 1 / -1; cursor: zoom-out; background: none; }
.gallery button.is-zoomed img { aspect-ratio: auto; object-fit: contain; max-height: 75vh; transform: none; }

/* ---------- появление при прокрутке (прячется только то, что ниже первого экрана) ---------- */
.reveal { transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-pending { opacity: 0; translate: 0 24px; }
.dir-grid .reveal:nth-child(2), .plan-grid .reveal:nth-child(2) { transition-delay: .06s; }
.dir-grid .reveal:nth-child(3), .plan-grid .reveal:nth-child(3) { transition-delay: .12s; }
.plan-grid .reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending { opacity: 1; translate: none; }
  .chart.is-pending .bar i { transform: none; }
  .hero-title, .sticker, .hero-cta { animation: none; }
}

/* блоки, для которых ещё нет ссылок (YouTube, приложение), скрыты на боевом сайте */
[data-needs].is-off { display: none !important; }

/* ---------- служебные страницы (политика, оферта, реквизиты, 404) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; border-radius: 32px; }
.btn-accent { background: var(--lime); color: var(--ink); }
.btn-lg { height: 64px; padding: 0 34px; font-size: 18px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
body > .site-header { position: sticky; top: 0; z-index: 50; padding: 0; min-height: 0; display: block; }
body > .site-header .nav { display: flex; }
body > .site-footer { background: var(--blue); margin-top: 40px; padding: 0; display: block; }
body > .site-footer .footer-bottom { padding-block: 24px; }
body > .site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ---------- правки телефона ---------- */
@media (max-width: 560px) {
  .hero-title { font-size: clamp(40px, 12.6vw, 60px); letter-spacing: -.04em; }
  .tariffs-squiggle { height: 120px; top: -10px; opacity: .9; }
  .tariffs .section-head { padding-top: 40px; }
  .results-strokes { width: 200px; top: -10px; }
}

/* ---------- обложки роликов YouTube (лежат на сайте, без запросов к Google) ---------- */
.ep-cover, .wo-cover, .ep-thumb { overflow: hidden; }
.ep-cover img, .wo-cover img, .ep-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ep-thumb { position: relative; }
.ep-cover .play, .wo-cover .play, .ep-thumb .play, .wo-cover .tag { position: relative; z-index: 1; }
.wo-cover .tag { position: absolute; z-index: 1; }
.ep-thumb .play { width: 40px; height: 40px; background: var(--lime); }
.ep-thumb .play::after { border-color: transparent transparent transparent var(--ink); border-width: 7px 0 7px 11px; margin-left: 3px; }
.ep-cover .play, .wo-cover .play { box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s ease; }
.ep-main:hover .ep-cover img, .wo:hover .wo-cover img, .ep:hover .ep-thumb img { transform: scale(1.04); }
.ep-main:hover .play, .wo:hover .play { transform: scale(1.08); }
.ep-title { line-height: 1.25; }
.ep b, .wo b { line-height: 1.3; }

.app-note { font-size: 16px; color: var(--ink-2); padding: 14px 18px; border-radius: 16px; background: var(--green-bg); border-left: 3px solid var(--green); max-width: 560px; }
.watch-panel[hidden] { display: none !important; }
