/* ===========================================================================
   Artrolet — styles.css
   Palette: white #FFFFFF · gray #F5F5F7 · ink/navy #0F172A · line #E6E6EB
            muted #6E6E73 · green #17876B · CTA coral #FF5A36
   Type: Inter (400–900) — для безупречной кириллицы и казахских букв.
   Sections alternate: white → gray → navy.  Mobile-first.
   =========================================================================== */

:root {
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;
  --ink: #0F172A;
  --line: #E6E6EB;
  --muted: #6E6E73;
  --green: #17876B;
  --green-light: #2FBF8F;
  --cta: #FF5A36;
  --cta-dark: #E84A2A;
  --white: #FFFFFF;

  --ink-70: rgba(15, 23, 42, 0.70);
  --on-dark-70: rgba(255, 255, 255, 0.72);
  --on-dark-50: rgba(255, 255, 255, 0.50);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.22);
  --shadow-sm: 0 8px 24px -14px rgba(15, 23, 42, 0.20);

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* анти-overflow: ничего не выходит за пределы экрана */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-wrap: break-word;
}

/* длинные слова/заголовки переносятся, а не распирают вёрстку */
h1, h2, h3, p, a, span, li { overflow-wrap: break-word; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 620px; }

/* ============================ Buttons =================================== */
.btn {
  --btn-bg: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  background: var(--btn-bg);
  border: none;
  border-radius: 999px;
  padding: 16px 26px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--cta { --btn-bg: var(--cta); box-shadow: 0 14px 30px -12px rgba(255, 90, 54, 0.65); }
.btn--cta:hover { --btn-bg: var(--cta-dark); }
.btn--lg { padding: 18px 32px; font-size: 18px; }
.btn--sm { padding: 13px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(47, 191, 143, 0.14);
  color: var(--green);
}
.badge--offer { background: rgba(255, 90, 54, 0.12); color: var(--cta-dark); }

/* ============================ Header ==================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; font-family: var(--font); font-weight: 800; font-size: 22px; line-height: 0; }
.logo { height: 48px; width: auto; display: block; }
/* текстовый запасной вариант, если файл логотипа не загрузился */
.brand__name { display: none; line-height: 1.1; color: var(--ink); }
.brand.logo-failed .logo { display: none; }
.brand.logo-failed .brand__name { display: inline; }
.header__right { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch__btn { font-family: var(--font); font-weight: 700; font-size: 13px; border: none; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch__btn.is-active { background: var(--green); color: #fff; }

/* ============================ Hero ===================================== */
.hero { padding: 24px 0 16px; background: var(--surface); }
.hero__grid { display: grid; gap: 20px; }
.hero__title { font-size: clamp(28px, 6.4vw, 46px); margin: 8px 0; }
.hero__subtitle { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0; }

.hero__benefits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 540px; }
.hero__benefits li {
  position: relative; padding-left: 32px; font-size: 16px; line-height: 1.4; color: var(--ink);
}
.hero__benefits li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.hero__lead-end { margin: 16px 0 0; font-weight: 700; font-size: 16px; color: var(--green); }

.countdown { margin: 18px 0; padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: inline-block; max-width: 100%; }
.countdown__label { margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.countdown__timer { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 4px 6px; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.countdown__num { font-family: var(--font); font-weight: 800; font-size: 38px; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown__unit { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: lowercase; }
.countdown__sep { font-weight: 700; font-size: 32px; color: var(--line); line-height: 1.1; }

.hero__actions { margin-top: 6px; }
.hero__note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.hero__media { position: relative; display: flex; justify-content: center; align-items: center; }
.product-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero__product { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(15,23,42,.18)); }
.hero__product.is-hidden { display: none; }
.product-frame__ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 800; font-size: clamp(28px, 6vw, 44px); color: var(--green); letter-spacing: -0.02em;
}
.hero__discount {
  position: absolute; top: 8%; right: 6%; z-index: 2;
  font-family: var(--font); font-weight: 800; font-size: 26px;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--cta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(255,90,54,.7);
  transform: rotate(-12deg);
}

/* ============================ Sections ================================= */
.section { padding: 32px 0; background: var(--surface); }
.section--gray { background: var(--surface-2); }
.section--navy { background: var(--ink); color: #fff; }
.section__title { font-size: clamp(24px, 4.6vw, 34px); text-align: center; margin-bottom: 8px; }
.section__title--left { text-align: left; }
.section__lead { text-align: center; color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 auto 20px; }

.section--navy .section__title { color: #fff; }
.section--navy .section__lead { color: var(--on-dark-70); }

/* Cards */
.cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section--gray .card { background: var(--surface); }
.card--soft { background: linear-gradient(180deg, rgba(47,191,143,.08), rgba(47,191,143,0)); border-color: rgba(47,191,143,.18); }
.card__icon { font-size: 30px; display: block; margin-bottom: 8px; }
.card__title { font-size: 18px; margin-bottom: 5px; }
.card p { margin: 0; color: var(--muted); }

/* Cards on navy */
.section--navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--navy .card--soft { background: linear-gradient(180deg, rgba(47,191,143,.18), rgba(47,191,143,.04)); border-color: rgba(47,191,143,.32); }
.section--navy .card__title { color: #fff; }
.section--navy .card p { color: var(--on-dark-70); }

.card--review p { color: var(--ink); font-size: 15px; }
.section--gray .card--review p { color: var(--ink); }
.card__author { display: block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--green); }
.stars { color: #F5B301; letter-spacing: 2px; margin-bottom: 10px; }

.disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ===================== News head (video) ============================== */
.news-head { text-align: center; }
.news-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,90,54,.12); color: var(--cta-dark);
  font-weight: 700; font-size: 13px; letter-spacing: .05em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 10px;
}
.news-badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cta);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,54,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,90,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,54,0); }
}

/* YouTube facade */
.yt-facade {
  position: relative; max-width: 820px; margin: 20px auto 0;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: #000; box-shadow: var(--shadow);
}
.yt-facade__thumb { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .25s, transform .35s; }
.yt-facade:hover .yt-facade__thumb { opacity: 1; transform: scale(1.03); }
.yt-facade__play {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cta); color: #fff; border-radius: 50%; font-size: 26px; padding-left: 6px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .2s;
}
.yt-facade:hover .yt-facade__play { transform: scale(1.08); }
.yt-facade.is-loaded { cursor: default; }
.yt-facade iframe { width: 100%; height: 100%; border: 0; }

/* ============================ Trust =================================== */
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ticks--row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-light); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.section--navy .ticks li { color: #fff; }

.cert-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 20px 0;
}
.cert-gallery__item {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); background: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.trust__cta { text-align: center; margin-top: 12px; }

/* ============================ Lead form ================================ */
.section--lead { background: linear-gradient(180deg, var(--surface), var(--surface-2)); padding: 36px 0 96px; }
.lead-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 26px 20px; }
.lead-card__head { text-align: center; margin-bottom: 16px; }
.lead-card__head .section__lead { margin-bottom: 0; }

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; text-align: left; }
.field__label { font-weight: 600; font-size: 14px; color: var(--muted); }
.field__input {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: border-color .2s, background .2s;
  width: 100%;
}
.field__input:focus { outline: none; border-color: var(--green-light); background: #fff; }
.field.has-error .field__input { border-color: var(--cta); background: rgba(255,90,54,.05); }
.field__error { display: none; color: var(--cta-dark); font-size: 13px; font-weight: 600; }
.field.has-error .field__error { display: block; }
.field__error--form { text-align: center; margin: 4px 0 0; }
.field__error--form.is-visible { display: block; }

.lead-form__consent { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* honeypot — off-screen */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.lead-success { text-align: center; padding: 24px 10px; }
.lead-success__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-light); color: #fff;
  font-size: 38px; margin-bottom: 16px;
}
.lead-success__title { font-size: 26px; margin-bottom: 8px; }
.lead-success p { color: var(--muted); margin: 0; }

/* ============================ Footer =================================== */
.site-footer { background: var(--ink); color: var(--on-dark-70); padding: 36px 0 96px; text-align: center; }
.brand--footer { justify-content: center; margin-bottom: 16px; }
.logo--footer { height: 44px; }
.site-footer .brand__name { color: #fff; }
.site-footer__copy { font-size: 13px; margin: 0; }
/* юридический дисклеймер: присутствует, но максимально незаметный */
.site-footer__disclaimer { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.35); text-align: center; margin: 8px 0 0; }

/* ===================== Sticky mobile CTA bar =========================== */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15,23,42,.2);
}
.mobile-cta__offer { display: flex; flex-direction: column; line-height: 1.1; flex: 0 0 auto; }
.mobile-cta__offer strong { font-family: var(--font); font-weight: 800; color: var(--cta); font-size: 20px; }
.mobile-cta__timer { font-weight: 600; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mobile-cta .btn { flex: 1 1 auto; min-width: 0; }   /* min-width:0 — иначе flex-элемент распирает бар по ширине контента */

/* ============================ Responsive =============================== */
/* Mobile (<= 820px): в Hero оффер идёт ПЕРВЫМ, фото — последним */
@media (max-width: 820px) {
  .hero__copy { order: 1; }
  .hero__media { order: 2; }

  /* логотип чуть меньше на мобильных */
  .logo { height: 38px; }
  .logo--footer { height: 36px; }

  /* контейнер изображения не шире экрана */
  .hero__media, .product-frame { max-width: 100%; }

  /* −50% кружок: фиксируем в px, чтобы не вылезал за правый край */
  .hero__discount { top: 12px; right: 12px; width: 64px; height: 64px; font-size: 20px; }

  /* таймер: блок на всю ширину, цифры по центру, без переполнения */
  .countdown { display: block; width: 100%; max-width: 100%; }
  .countdown__num { font-size: 34px; }
}

@media (min-width: 600px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .lead-card { padding: 32px; }
  .cert-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 44px 0 28px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 32px; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cert-gallery { grid-template-columns: repeat(6, 1fr); }
  .section { padding: 48px 0; }
  .section--lead { padding-bottom: 56px; }
  .mobile-cta { display: none; }   /* sticky-бар нужен в основном на мобильных */
  .site-footer { padding-bottom: 36px; }
}

/* ===================== Reduced motion ================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
