/* ============================================================
   РемМастер — лендинг по ремонту холодильников
   Палитра холодная: navy + ледяной cyan + морозный белый
   ============================================================ */

:root {
  --navy-900: #07182B;
  --navy-800: #0C2742;
  --navy-700: #12365A;
  --ink:      #0E2233;
  --slate:    #5B7488;
  --slate-300:#9DB1C0;
  --frost-50: #F2FAFC;
  --frost-100:#E4F4F8;
  --frost-200:#CDE9F1;
  --cyan-400: #2BC6E6;
  --cyan-500: #12A8C9;
  --cyan-600: #0E89A6;
  --amber:    #F0A13B;
  --white:    #FFFFFF;

  --line: rgba(14, 34, 51, 0.10);
  --line-light: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 8px rgba(7, 24, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 24, 43, 0.10);
  --shadow-lg: 0 28px 64px rgba(7, 24, 43, 0.18);
  --shadow-cyan: 0 14px 34px rgba(18, 168, 201, 0.32);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;

  --ff-display: 'Unbounded', system-ui, sans-serif;
  --ff-body: 'Manrope', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Типографика-помощники ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-400);
}
.eyebrow--dark { color: var(--cyan-600); }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(43, 198, 230, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(43,198,230,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(43,198,230,0.05); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--ff-body); font-weight: 700;
  font-size: 16px; padding: 15px 26px; border: none; cursor: pointer;
  border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  color: var(--white); box-shadow: var(--shadow-cyan);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(18,168,201,0.42); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; color: var(--white);
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  box-shadow: var(--shadow-cyan);
}
.logo__text { font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.logo__text b { font-weight: 800; }
.logo--light .logo__text { color: var(--white); }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--slate);
  position: relative; transition: color .18s ease;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan-400); transition: width .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone-label { font-size: 11px; color: var(--slate); font-weight: 500; }
.header__phone-num { font-size: 17px; font-weight: 800; color: var(--ink); font-family: var(--ff-mono); letter-spacing: -0.02em; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(43,198,230,0.22), transparent 60%),
    radial-gradient(700px 600px at 10% 110%, rgba(18,168,201,0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 520px at 70% 20%, #000, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 76px 0 90px;
}

.hero__title {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 22px 0 20px;
}
.hero__title-cold {
  background: linear-gradient(120deg, var(--cyan-400), #8FE9FA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px); color: var(--slate-300);
  max-width: 30em; margin-bottom: 34px;
}
.hero__facts { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b {
  font-family: var(--ff-display); font-weight: 700; font-size: 30px;
  color: var(--white); line-height: 1.1;
}
.hero__facts span { font-size: 13px; color: var(--slate-300); }

/* ---- Панель с датчиком и формой ---- */
.hero__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 28px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

/* ---- Сигнатура: температурный датчик ---- */
.gauge { display: grid; place-items: center; margin-bottom: 22px; }
.gauge__ring { position: relative; width: 200px; height: 200px; }
.gauge__svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 12; }
.gauge__fill {
  fill: none; stroke: var(--amber); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 540; stroke-dashoffset: 135;
  transition: stroke-dashoffset 2.6s cubic-bezier(.5,0,.2,1), stroke 2.6s ease;
}
.gauge__center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.gauge__value {
  font-family: var(--ff-mono); font-weight: 700; font-size: 46px; line-height: 1;
  color: var(--amber); transition: color 2.6s ease;
}
.gauge__unit { font-family: var(--ff-mono); font-size: 15px; color: var(--slate-300); margin-top: 2px; }
.gauge__state {
  display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--slate-300); font-weight: 600;
}
.gauge.is-cold .gauge__fill { stroke: var(--cyan-400); stroke-dashoffset: 470; }
.gauge.is-cold .gauge__value { color: var(--cyan-400); }

.frost {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #BDEEFA; opacity: 0; pointer-events: none;
  box-shadow: 0 0 8px rgba(143,233,250,0.8);
}
.frost--1 { top: 22px; right: 40px; }
.frost--2 { bottom: 34px; left: 30px; }
.frost--3 { top: 60px; left: 18px; }
.gauge.is-cold .frost { animation: frostIn .6s ease forwards; }
.gauge.is-cold .frost--2 { animation-delay: .15s; }
.gauge.is-cold .frost--3 { animation-delay: .3s; }
@keyframes frostIn {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.4); }
  100% { opacity: .9; transform: scale(1); }
}

/* ---- Форма заявки ---- */
.lead-form__title {
  font-family: var(--ff-body); font-weight: 700; font-size: 17px;
  color: var(--white); margin-bottom: 16px; line-height: 1.35;
}
.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%; padding: 17px 16px 7px; font-size: 16px; font-family: var(--ff-body);
  color: var(--white); background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-light); border-radius: 12px;
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus { outline: none; border-color: var(--cyan-400); background: rgba(255,255,255,0.10); }
.field label {
  position: absolute; left: 16px; top: 15px; font-size: 16px; color: var(--slate-300);
  pointer-events: none; transition: all .16s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 7px; font-size: 11px; color: var(--cyan-400); font-weight: 600;
}
.field--invalid input { border-color: #FF6B6B; }
.field__error { display: block; min-height: 0; font-size: 12px; color: #FF8B8B; margin-top: 4px; }
.field--invalid .field__error { min-height: 16px; }

.lead-form__note { font-size: 11px; color: var(--slate-300); margin-top: 12px; line-height: 1.45; }

/* honeypot — скрыт от людей, заполняется ботами */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============================================================
   СЕКЦИИ — общее
   ============================================================ */
.section { padding: 86px 0; }
.section--frost { background: var(--frost-50); }
.section--dark { background: var(--navy-900); color: var(--white); }

.section__head { max-width: 680px; margin-bottom: 46px; }
.section__head--light .section__title { color: var(--white); }
.section__title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 14px 0 14px; color: var(--ink);
}
.section__sub { font-size: 17px; color: var(--slate); max-width: 46em; }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Преимущества ---------- */
.advantages { padding-top: 70px; padding-bottom: 70px; }
.adv {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.adv:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--frost-200); }
.adv__ico {
  display: grid; place-items: center; width: 52px; height: 52px; font-size: 26px;
  border-radius: 14px; background: var(--frost-100); margin-bottom: 18px;
}
.adv h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.adv p { font-size: 15px; color: var(--slate); }

/* ---------- Неисправности ---------- */
.problems { margin-bottom: 40px; }
.problem {
  position: relative; padding: 28px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.problem::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--cyan-400), var(--cyan-600));
  transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem:hover::before { transform: scaleY(1); }
.problem__temp {
  font-family: var(--ff-mono); font-weight: 700; font-size: 22px;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--frost-100); border-radius: 14px; color: var(--cyan-600);
  margin-bottom: 18px;
}
.problem h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.problem p { font-size: 15px; color: var(--slate); }

.problems__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--frost-100), var(--white));
  border: 1px solid var(--frost-200);
}
.problems__cta p { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 30px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-light);
}
.step__num {
  font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  color: var(--navy-900); background: var(--cyan-400);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--slate-300); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 52px; right: -13px; width: 26px; height: 2px;
  background: var(--line-light);
}

/* ---------- Цены ---------- */
.price-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.price-row {
  display: grid; grid-template-columns: 1fr 0.5fr 0.5fr; align-items: center;
  gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.price-row:last-child { border-bottom: none; }
.price-row:not(.price-row--head):hover { background: var(--frost-50); }
.price-row--head {
  background: var(--navy-900); color: var(--slate-300);
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.price-row__name { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; }
.price-row__name small { font-weight: 500; font-size: 13px; color: var(--slate); margin-top: 3px; }
.price-row__term { font-size: 14px; color: var(--slate); }
.price-row__cost { font-size: 15px; color: var(--slate); text-align: right; }
.price-row__cost b { font-family: var(--ff-mono); font-size: 20px; color: var(--ink); font-weight: 700; }
.price-note { margin-top: 16px; font-size: 13px; color: var(--slate); }

/* ---------- Бренды ---------- */
.brand-list {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.brand-list li {
  display: grid; place-items: center; padding: 22px 10px;
  font-family: var(--ff-display); font-weight: 500; font-size: 19px; color: var(--navy-800);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.brand-list li:hover { color: var(--cyan-600); border-color: var(--frost-200); transform: translateY(-3px); }

/* ---------- Отзывы ---------- */
.review {
  padding: 30px 28px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: var(--amber); font-size: 18px; letter-spacing: 2px; }
.review blockquote { font-size: 16px; color: var(--ink); line-height: 1.6; flex: 1; }
.review figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.review figcaption b { font-size: 15px; }
.review figcaption span { font-size: 13px; color: var(--slate); }

/* ---------- Финальный CTA ---------- */
.final-cta { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 10%, rgba(43,198,230,0.18), transparent 60%);
}
.final-cta__inner {
  position: relative; display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center;
}
.final-cta__copy h2 {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.1;
}
.final-cta__copy p { font-size: 17px; color: var(--slate-300); max-width: 30em; margin-bottom: 24px; }
.final-cta__phone {
  display: inline-block; font-family: var(--ff-mono); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); color: var(--cyan-400); letter-spacing: -0.02em;
}
.final-cta__work { display: block; font-size: 14px; color: var(--slate-300); margin-top: 4px; }

.lead-form--solid {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.lead-form--solid .lead-form__title { color: var(--ink); font-size: 20px; }
.lead-form--solid .field input { color: var(--ink); background: var(--frost-50); border-color: var(--line); }
.lead-form--solid .field input:focus { background: var(--white); border-color: var(--cyan-400); }
.lead-form--solid .field label { color: var(--slate); }
.lead-form--solid .field input:focus + label,
.lead-form--solid .field input:not(:placeholder-shown) + label { color: var(--cyan-600); }
.lead-form--solid .lead-form__note { color: var(--slate); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: var(--slate-300); padding: 64px 0 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-light);
}
.footer__tag { font-size: 15px; margin-top: 16px; max-width: 24em; }
.footer__col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__col a, .footer__col span { display: block; font-size: 15px; margin-bottom: 10px; transition: color .15s ease; }
.footer__col a:hover { color: var(--cyan-400); }
.footer__phone { font-family: var(--ff-mono); font-weight: 700; font-size: 18px !important; color: var(--white) !important; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 13px;
}

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; display: none; place-items: center;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  color: var(--white); border-radius: 50%; box-shadow: var(--shadow-cyan);
  animation: fabPulse 2.6s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(18,168,201,0.4); }
  50% { box-shadow: 0 10px 26px rgba(18,168,201,0.4), 0 0 0 12px rgba(43,198,230,0.10); }
}

/* ---------- Reveal при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 70px; }
  .hero__panel { max-width: 520px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .final-cta__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .brand-list { grid-template-columns: repeat(4, 1fr); }
  .fab { display: grid; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .grid--4, .grid--3, .steps, .brand-list { grid-template-columns: 1fr 1fr; }
  .hero__facts { gap: 22px; }
  .hero__facts b { font-size: 24px; }
  .step::after { display: none !important; }
  .price-row { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .price-row__term { display: none; }
  .price-row--head span:nth-child(2) { display: none; }
  .problems__cta { flex-direction: column; align-items: flex-start; }
  .header__inner { gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .brand-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Доступность ---------- */
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan-400); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
