/* ==========================================================================
   ООО «Солнечные семена» — стили сайта
   Палитра взята из самой культуры: шелуха семечки, лист, лепесток.
   ========================================================================== */

:root {
  --husk: #1f331a;
  --husk-soft: #2a4023;
  --husk-line: #44603a;
  --husk-rgb: 31, 51, 26;
  --leaf: #33492b;
  --leaf-light: #5f7a4f;
  --petal: #f0b429;
  --petal-dark: #8a5a05;
  --paper: #f1f3e9;
  --card: #ffffff;
  --line: #dce0ce;
  --ink: #1c1a13;
  --muted: #5c5a4b;

  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "PT Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "PT Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Метрика после загрузки разбирает номер в ссылке tel: на посимвольные <small>
   с убывающей opacity — хвост номера бледнеет, последняя цифра исчезает вовсе.
   Отключить это в настройках счётчика нельзя, поэтому возвращаем
   непрозрачность здесь. Своей разметки с <small> внутри tel: у нас нет. */
a[href^="tel:"] small { opacity: 1 !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--petal);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petal);
  color: var(--husk);
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- Подписи */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petal-dark);
  margin: 0 0 14px;
}

/* На тёмных первых экранах тёмно-жёлтая метка тонет в фотографии. */
.on-dark .eyebrow { color: var(--petal); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 16px;
}

/* -------------------------------------------------- Штамп технологии */
/* Фирменный элемент: гербицидная технология подаётся как штамп на
   агрономическом документе — по ней фермер выбирает семена в первую очередь. */

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 9px 5px;
  border: 2px solid currentColor;
  border-radius: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.5deg);
  white-space: nowrap;
}

.stamp--express { color: var(--petal); }
.stamp--clearfield { color: var(--leaf-light); }
.stamp--classic { color: var(--petal-dark); }
.stamp--sort { color: var(--petal-dark); }
.stamp--new { color: #e2432c; }

/* ----------------------------------------------------------- Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--petal);
  color: var(--husk);
}
.btn--primary:hover { background: #ffc84a; }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* Пока первый экран с тем же призывом на виду, кнопка в шапке лишняя.
   Без JS класса is-hero не появится и кнопка просто видна всегда. */
.header__cta {
  transition: opacity 0.2s, visibility 0.2s;
}

.header.is-hero .header__cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.on-dark .btn--outline { color: var(--paper); }
.on-dark .btn--outline:hover { background: var(--paper); color: var(--husk); }

/* ----------------------------------------------------------- Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--husk);
  color: #efeee6;
  border-bottom: 1px solid var(--husk-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.logo__text span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #b0ab98;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  text-decoration: none;
  color: #d8d5c8;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--petal);
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.header__phone:hover { color: var(--petal); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--husk-line);
  border-radius: var(--radius);
  color: #efeee6;
  width: 44px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ------------------------------------------------------------ Первый экран */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--husk-soft), var(--husk));
  color: #f2f1e8;
  padding: clamp(48px, 7vw, 96px) 0 0;
  overflow: hidden;
}

.hero[style*="--hero-bg"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center/cover no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.hero[style*="--hero-bg"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--husk-rgb), 0.52) 0%, rgba(var(--husk-rgb), 0.58) 45%, rgba(var(--husk-rgb), 0.85) 100%);
  z-index: 0;
}

.hero[style*="--hero-bg"] > .wrap,
.hero[style*="--hero-bg"] > .ticker {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--petal);
}

.hero__text {
  margin: 26px 0 0;
  font-size: 18px;
  color: #c9c6b8;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #a8a494;
}

/* Витрина цен прямо в первом экране: посетитель из Директа
   ищет цену, поэтому она — главный герой страницы, а не картинка. */

.offers {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.offers__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--leaf);
  color: #eef2e7;
}

.offers__head strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offers__head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #b9c9ac;
}

.offerrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.offerrow__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.offerrow__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.offerrow__price {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  white-space: nowrap;
}

.offerrow__price small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}

.offers__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  font-size: 15px;
}

.offers__foot a {
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--petal);
  padding-bottom: 2px;
}

/* Бегущая строка с условиями — «сеялка» под первым экраном */

.ticker {
  margin-top: clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--husk-line);
  border-bottom: 1px solid var(--husk-line);
  overflow: hidden;
  background: var(--husk-soft);
}

.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker__item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a49e8b;
  padding: 15px 0;
  white-space: nowrap;
}

.ticker__item::after {
  content: "◆";
  color: var(--petal-dark);
  margin: 0 26px;
  font-size: 8px;
  vertical-align: middle;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------- Секции */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--card { background: #fbfcf7; border-block: 1px solid var(--line); }

.section--dark {
  background: var(--husk);
  color: #f2f1e8;
}
.section--dark .section-head p { color: #a8a494; }
.section--dark .eyebrow { color: var(--petal); }

/* ---------------------------------------------------------- О компании */

.about {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  margin: 0 0 18px;
  font-size: 17.5px;
}
.about__text p:last-child { margin-bottom: 0; }

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact {
  background: var(--card);
  padding: 22px 24px;
}

.fact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.fact dd small {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------------------------------------------------------- Каталог */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.filter:hover { border-color: var(--leaf-light); color: var(--ink); }

.filter[aria-pressed="true"] {
  background: var(--husk);
  border-color: var(--husk);
  color: var(--petal);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.card:hover {
  border-color: var(--leaf-light);
  box-shadow: 0 14px 30px rgba(28, 42, 20, 0.1);
  transform: translateY(-3px);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.card__kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.card__lead {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--muted);
  flex-grow: 1;
}

.cardmeta { margin: 0 0 16px; }

.cardmeta div { margin-bottom: 10px; }
.cardmeta div:last-child { margin-bottom: 0; }

.cardmeta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.cardmeta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.spec {
  background: var(--card);
  padding: 10px 12px;
  min-width: 0;
  flex: 1 1 100px;
}

.spec b {
  display: block;
  font-family: var(--display);
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.spec span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.card__more {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petal-dark);
}

.card__more::after {
  content: " →";
}

.card__photo {
  position: relative;
  z-index: 0;
  margin: -24px -24px 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
}

.card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--husk-rgb), 0) 32%, rgba(var(--husk-rgb), 0.85) 100%);
  z-index: -1;
}

.card__photo-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 16px;
  color: #f2f1e8;
}

.card__photo-overlay .card__top { margin-bottom: 8px; }
.card__photo-overlay .card__kind {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.card__photo-overlay h3 { color: #fff; margin-bottom: 0; }

.card__price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
}

.card__cta {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 2px solid var(--petal-dark);
  color: var(--petal-dark);
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.card__cta:hover { background: var(--petal-dark); color: #fff; }

/* -------------------------------------------------------- Плитки групп */

.grouptiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grouptile {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--leaf) center/cover no-repeat;
  isolation: isolate;
}

.grouptile[style*="--tile-bg"] { background-image: var(--tile-bg); }

.grouptile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--husk-rgb), 0.15), rgba(var(--husk-rgb), 0.85));
  z-index: -1;
}

.grouptile__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.25s ease;
}

.grouptile:hover .grouptile__body { transform: translateY(-4px); }

.grouptile__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petal);
  margin-bottom: 8px;
}

.grouptile h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.grouptile p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #d8d5c8;
  max-width: 36ch;
}

.grouptile__more {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petal);
}

/* ------------------------------------------------------- Преимущества */

/* Пункты можно выключать по одному, поэтому их бывает от одного до шести.
   Сетка на шесть колонок и разные пролёты под каждое количество: последний
   ряд всегда заполнен целиком, пустых ячеек с фоном-разделителем не остаётся. */
.advantages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--husk-line);
  border: 1px solid var(--husk-line);
}

.advantages--1 .advantage { grid-column: span 6; }
.advantages--2 .advantage { grid-column: span 3; }
.advantages--3 .advantage { grid-column: span 2; }
.advantages--4 .advantage { grid-column: span 3; }
.advantages--5 .advantage { grid-column: span 2; }
.advantages--5 .advantage:nth-child(n+4) { grid-column: span 3; }
.advantages--6 .advantage { grid-column: span 2; }

.advantage {
  background: var(--husk);
  padding: 32px 28px;
}

.advantage__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--petal);
  margin-bottom: 18px;
}

.advantage h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.advantage p {
  margin: 0;
  color: #a8a494;
  font-size: 16px;
}

/* ---------------------------------------------------------- Прайс */

.pricetable {
  margin-bottom: 46px;
}

.pricetable__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pricetable__head h3 {
  font-size: 26px;
}

.pricetable__head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}

table.price {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.price th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f8f1;
  white-space: normal;
  max-width: 160px;
}

table.price th:first-child { text-align: left; white-space: nowrap; max-width: none; }

table.price td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-family: var(--mono);
  font-size: 14.5px;
  white-space: normal;
  max-width: 260px;
}

table.price tr:last-child td { border-bottom: 0; }
table.price tbody tr:hover td { background: #fbfbf4; }

table.price td:first-child {
  text-align: left;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: normal;
  min-width: 190px;
}

table.price td:last-child {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.tag-new {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2432c;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: 2px 5px;
  margin-left: 8px;
  vertical-align: 3px;
}

.pricefoot {
  border-left: 3px solid var(--petal);
  padding: 4px 0 4px 18px;
  margin-top: 34px;
}

.pricefoot p {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--muted);
}
.pricefoot p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- Страница продукта */

.product__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.product h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 16px;
}

.product__type {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petal);
  margin-bottom: 20px;
}

.product__lead {
  font-size: 19px;
  color: #c9c6b8;
  max-width: 48ch;
  margin: 0 0 30px;
}

.product__photo {
  border: 1px solid var(--husk-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--husk-soft);
  aspect-ratio: 4 / 3;
}

.product__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paspec {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.paspec div {
  background: var(--card);
  padding: 20px 18px;
  flex: 1 1 170px;
}

.paspec dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.paspec dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.paspec dd small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.marklist { list-style: none; margin: 0; padding: 0; }

.marklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 16.5px;
}

.marklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--petal);
  border-radius: 50%;
}

.marklist--plain li::before {
  background: transparent;
  border: 1px solid var(--leaf-light);
}

.calcblock {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
}

.calcblock__head p { color: var(--muted); margin-top: 14px; max-width: 40ch; }

.calc { display: grid; gap: 16px; }

.calc__result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.calc__result div { background: var(--card); padding: 16px 18px; }

.calc__result b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}

.calc__result span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.backlink {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--leaf);
  border-bottom: 1px solid var(--line);
  display: inline-block;
  margin-bottom: 26px;
}
.backlink:hover { color: var(--petal-dark); border-color: var(--petal-dark); }

/* Ссылка «назад» стоит поверх фотографии первого экрана — там она светлая. */
.on-dark .backlink { color: var(--petal); border-color: rgba(240, 180, 41, 0.45); }
.on-dark .backlink:hover { color: #ffd166; border-color: var(--petal); }

/* ------------------------------------------------------------ Форма */

.formblock {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--ink);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fafbf5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  border-color: var(--leaf-light);
  background: #fff;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  margin: 18px 0 20px;
  line-height: 1.45;
}

.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--petal-dark); }

.form .btn { width: 100%; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

.formnote {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}

.msg {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.msg--ok { background: #eaf3e2; border: 1px solid #b9d1a5; color: #2c4520; }
.msg--err { background: #fdeeea; border: 1px solid #e8b7a9; color: #8c3319; }

.contactlist {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.contactlist li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--husk-line);
}

.contactlist dt,
.contactlist .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a494;
  width: 120px;
  flex-shrink: 0;
  padding-top: 4px;
}

.contactlist .v {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contactlist .v a { text-decoration: none; }
.contactlist .v a:hover { color: var(--petal); }
.contactlist .v small {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: #a8a494;
  margin-top: 4px;
  text-transform: none;
}

/* ------------------------------------------------------- Контакты */

.contacts {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Карточка связи: телефон крупно, действие рядом, реквизиты — во вторую
   колонку. Посетителю из Директа нужен способ связаться, а не выписка ЕГРЮЛ. */

.contactcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--petal);
  padding: 34px 36px;
}

.contactcard__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petal-dark);
  margin: 0 0 10px;
}

.contactcard__phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--husk);
  text-decoration: none;
  white-space: nowrap;
}

.contactcard__phone:hover { color: var(--petal-dark); }

.contactcard__person {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 40ch;
}

.contactcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contactcard__note {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contactcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contactcard__links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--leaf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  transition: border-color 0.15s, color 0.15s;
}

.contactcard__links a:hover { border-color: var(--petal-dark); color: var(--petal-dark); }

.contactcard__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 26px;
  margin: 24px 0 0;
}

.contactcard__facts div { margin: 0; }

.contactcard__facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contactcard__facts dd { margin: 0; font-size: 16px; }

.requisites {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.requisites div { background: var(--card); padding: 15px 20px; }

.requisites dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.requisites dd { margin: 0; font-size: 15px; }

.messengers {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.messengers a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--husk-line);
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: border-color 0.15s, color 0.15s;
}

.messengers a:hover { border-color: var(--petal); color: var(--petal); }

/* --------------------------------------------------------- Подвал */

.footer {
  background: var(--husk-soft);
  color: #8d8877;
  padding: 46px 0 30px;
  font-size: 15px;
  border-top: 1px solid var(--husk-line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--husk-line);
}

.footer h4 {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #d8d5c8;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--petal); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #6c6757;
}

/* -------------------------------------------------- Плавающий звонок */

.callnow {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  gap: 10px;
}

.callnow .btn { flex: 1; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

/* ------------------------------------------------------- Появление */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   Конверсионные блоки: лид-магниты, частые вопросы, модальная форма
   ========================================================================== */

/* --------------------------------------------------------- Первый экран */

.hero__value {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: #c9c6b6;
}

.hero__phone {
  color: var(--petal);
  text-decoration: none;
  white-space: nowrap;
}
.hero__phone:hover { text-decoration: underline; }

/* --------------------------------------------------------- Секция-акцент */

.section--petal {
  background: var(--petal);
  color: var(--husk);
}
.section--petal .eyebrow { color: var(--husk); opacity: 0.8; }

/* ------------------------------------------------- Лид-магнит (подбор, прайс) */

.magnet {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  align-items: center;
}

.magnet__text h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 6px 0 14px;
}

.magnet__text p {
  margin: 0;
  max-width: 52ch;
  font-size: 17.5px;
}

.magnet__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.magnet__note {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  opacity: 0.85;
}

.magnet__link {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--petal-dark);
}
.magnet__link:hover { text-decoration: underline; }

.magnet--price { color: var(--ink); }

.btn--big { padding: 18px 30px; font-size: 16px; }

/* Три шага подбора: снимают тревогу «что будет после клика» */

.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
}

.steps span {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 50%;
  background: var(--husk);
  color: var(--petal);
}

/* ------------------------------------------------------- Полоса с призывом */

.ctaband__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.ctaband__inner h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.ctaband__inner p { margin: 0; max-width: 56ch; color: var(--muted); }
.section--petal .ctaband__inner p { color: var(--husk); opacity: 0.8; }

/* --------------------------------------------------------- Карточка предложения */

.card--offer .card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.card--offer .card__more { margin: 0; text-decoration: none; }
.card--offer .card__more:hover { text-decoration: underline; }

/* --------------------------------------------------------- Частые вопросы */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  position: relative;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--petal-dark);
}

.faq__item[open] summary::after { content: "−"; }
.faq__item[open] { border-color: var(--leaf-light); }

.faq__answer {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.faq__answer p { margin: 0 0 10px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- Поля форм */

.field__opt {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.field select:focus { border-color: var(--leaf-light); background: #fff; }

.product__note {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
  color: #a8a494;
}
.product__note a { color: var(--petal); }

/* --------------------------------------------------------- Модальная форма */

body.is-locked { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--husk-rgb), 0.72);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  /* Нижний отступ — у формы, не у окна: иначе в нём просвечивают поля,
     проезжающие под закреплённой кнопкой отправки */
  padding: 34px 34px 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); }

.modal__title {
  font-size: clamp(24px, 4vw, 32px);
  margin: 4px 0 12px;
  padding-right: 30px;
}

.modal__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Что человек уже указал на странице — видно прямо в форме */
.modal__context {
  margin: -8px 0 22px;
  padding: 12px 14px;
  background: #fff;
  border-left: 3px solid var(--petal);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

.modal__context[hidden] { display: none; }

.form--modal { padding: 0 0 30px; background: transparent; }

/* Кнопка отправки всегда на экране. Окно формы выше экрана телефона и даже
   ноутбука 1366×768, и кнопка оказывалась за краем: люди не видели, где форма
   кончается. Тени цвета фона закрывают поля, проезжающие под кнопкой; сверху
   полоса 16px помещается в отступ после согласия (20px) и его не задевает. */
.form--modal [data-modal-button] {
  position: sticky;
  bottom: 12px;
  z-index: 1;
  box-shadow: 0 -16px 0 var(--paper), 0 12px 0 var(--paper);
}

/* --------------------------------------------------------- Экран «заявка принята» */

.done { text-align: left; }

.done__mark {
  width: 46px;
  height: 46px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--petal);
  color: var(--husk);
  font-size: 24px;
  line-height: 1;
}

.done__title { font-size: 30px; margin: 0 0 12px; }

.done__lead {
  margin: 0 0 22px;
  font-size: 17px;
}

.done__note {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header__cta { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ------------------------------------------------------ Адаптив */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .product__head { grid-template-columns: 1fr; gap: 30px; }
  .formblock { grid-template-columns: 1fr; gap: 36px; }
  .calcblock { grid-template-columns: 1fr; gap: 24px; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .contactcard { padding: 26px 22px; }
  .contactcard__actions .btn { flex: 1 1 100%; }
  .advantages .advantage,
  .advantages--5 .advantage:nth-child(n+4) { grid-column: span 3; }
  .advantages .advantage:last-child:nth-child(odd) { grid-column: span 6; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .advantages .advantage,
  .advantages .advantage:last-child:nth-child(odd),
  .advantages--5 .advantage:nth-child(n+4) { grid-column: span 6; }
  body { font-size: 16px; }
  .nav,
  .header__contact { display: none; }
  .burger { display: inline-flex; }

  .header.is-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--husk);
    border-bottom: 1px solid var(--husk-line);
    padding: 6px 24px 18px;
  }
  .header.is-open .nav a { padding: 13px 0; border-bottom: 1px solid var(--husk-line); }
  .header.is-open .header__contact {
    display: flex;
    position: absolute;
    top: 300px;
    left: 24px;
  }

  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .callnow { display: flex; }
  body { padding-bottom: 76px; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 48px 0; }
  .form { padding: 22px; }
  html { scroll-padding-top: 78px; }
}

/* --------------------------------------------------------- Печать */

@media (max-width: 860px) {
  .magnet { grid-template-columns: 1fr; gap: 28px; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
  .ctaband__inner .btn { width: 100%; }
}

@media (max-width: 760px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__box {
    max-width: none;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 28px 20px 0;
  }
  .form--modal { padding-bottom: 24px; }
}

@media print {
  .header, .footer, .callnow, .hero__actions, .filters, .form, .ticker { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .section { padding: 12px 0; }
  .tablewrap { border: 0; }
  table.price { min-width: 0; page-break-inside: auto; }
  table.price td { font-size: 11px; padding: 6px 8px; }
  table.price td:first-child { font-size: 13px; }
  .pricetable { page-break-inside: avoid; }
}

/* --------------------------------------------------- Видео-виджет */

/* Превью в углу: маленький вертикальный кадр, а не рекламный баннер.
   z-index между шапкой (50) и модалкой заявки (90) */
.vwidget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 58;
  width: 96px;
}

.vwidget[hidden] { display: none; }

.vwidget__open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  background: var(--husk);
  border: 2px solid var(--husk);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(var(--husk-rgb), 0.35);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.vwidget__open:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(var(--husk-rgb), 0.45); }

.vwidget__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.vwidget__play {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--petal);
  color: var(--husk);
  padding-left: 2px;
}

.vwidget__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 7px 7px;
  background: linear-gradient(to top, rgba(var(--husk-rgb), 0.94), rgba(var(--husk-rgb), 0));
  color: #fff;
  text-align: left;
}

.vwidget__cap b {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vwidget__cap i {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-style: normal;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}

.vwidget__close {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--husk);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

/* Одно короткое привлечение внимания после появления — и всё */
.vwidget.is-in .vwidget__open { animation: vwidget-in 0.9s ease-out 1; }

@keyframes vwidget-in {
  0%   { transform: translateY(14px) scale(0.94); opacity: 0; }
  60%  { transform: translateY(0) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Лента роликов. Ниже модалки заявки (90): форма открывается поверх видео */
.vplayer {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vplayer[hidden] { display: none; }

.vplayer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--husk-rgb), 0.94);
}

.vplayer__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 100%;
  max-height: 100%;
}

.vplayer__frame {
  position: relative;
  height: min(80vh, 760px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  flex: none;
  background: #000 center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.vplayer__stage { position: absolute; inset: 0; background: #000 center / cover no-repeat; }
.vplayer__stage iframe,
.vplayer__stage video { display: block; width: 100%; height: 100%; border: 0; }
.vplayer__stage video { object-fit: contain; background: #000; }

.vplayer__close,
.vplayer__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: rgba(var(--husk-rgb), 0.72);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  cursor: pointer;
}

.vplayer__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; line-height: 1; }

.vplayer__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
}

.vplayer__nav[hidden] { display: none; }
.vplayer__nav--prev { left: 10px; }
.vplayer__nav--next { right: 10px; }
.vplayer__close:hover, .vplayer__nav:hover { background: var(--husk); }

.vplayer__panel { width: 320px; flex: none; color: #fff; }

.vplayer__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.vplayer__title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.15;
  margin-top: 10px;
}

.vplayer__text { margin-top: 12px; color: rgba(255, 255, 255, 0.78); font-size: 15px; }

.vplayer__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.3;
}

.vplayer__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.vplayer__cta .btn { width: 100%; }
.vplayer__cta .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.vplayer__cta .btn--outline:hover { color: var(--husk); background: #fff; border-color: #fff; }
.vplayer__cta [hidden] { display: none; }

@media (max-width: 900px) {
  .vplayer { padding: 0; }
  .vplayer__box {
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
  }
  /* Кадр остаётся вертикальным: высоту ограничиваем так, чтобы ширина
     никогда не вылезала за экран — иначе плеер добавит чёрные поля */
  .vplayer__frame {
    width: auto;
    height: min(70vh, calc(100vw * 16 / 9));
    max-width: 100%;
    margin: env(safe-area-inset-top, 0px) auto 0;
    border: 0;
    border-radius: 0;
  }
  .vplayer__panel {
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .vplayer__title { font-size: 23px; }
  .vplayer__note { margin-top: 16px; padding-top: 14px; font-size: 16px; }
}

/* Мобильные: превью уступает место фиксированной полосе «Позвонить» */
@media (max-width: 760px) {
  .vwidget {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 76px;
  }
  .vwidget__cap { padding: 14px 6px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .vwidget.is-in .vwidget__open { animation: none; }
  .vwidget__open:hover { transform: none; }
}

@media print {
  .vwidget, .vplayer { display: none !important; }
}
