/* ===== Токены ===== */
:root {
  --ink: #12222f;        /* тёмный текст и тёмная секция */
  --ink-soft: #55636f;   /* второстепенный текст */
  --accent: #0b63ce;     /* основной синий */
  --accent-dark: #094ea4;/* синий для наведения */
  --accent-soft: #e8f0fb;/* очень светлый синий фон */
  --paper: #ffffff;
  --line: #dfe4e9;       /* границы и разделители */
  --gas: #ffd200;
  --oftec: #2f8a3b;

  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.demo-bar {
  background: var(--gas); text-align: center;
  font-size: .85rem; font-weight: 700; padding: .35rem 1rem;
}

/* ===== Шапка ===== */
.header {
  background: rgba(255, 255, 255, 0.90);      /* белый, но на 80% непрозрачный */
  -webkit-backdrop-filter: blur(12px);   /* для Safari */
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.4);           /* размытие того, что ПОЗАДИ шапки */
  border-bottom: 1px solid rgba(29,42,53,.1);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 1rem; }
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -.01em;
}
.logo span { color: var(--accent); }
.header-call {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; font-size: 1rem;
}
.header-call strong { font-family: var(--display); font-size: 1.3rem; }
/* Зелёная точка «на связи» */
.dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2fa84f;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2fa84f;
}

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: dot-fade 2.4s ease-in-out infinite; }
  .dot::after { animation: dot-wave 2.4s ease-out infinite; }
}

@keyframes dot-fade {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

@keyframes dot-wave {
  0%   { transform: scale(1);   opacity: .45; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ===== Первый экран ===== */
/* Фото на фоне + тёмная подложка, чтобы текст читался.
   Если файла нет, остаётся тёмный цвет. */
.hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(29,42,53,.94) 0%, rgba(29,42,53,.8) 45%, rgba(29,42,53,.35) 100%);
  background-size: cover;
  background-position: center;
  min-height: calc(100svh - 70px);
  display: flex;
  align-items: center;
}

/* Слой 1: тёплое свечение за отзывами */
/* Тёплое свечение за отзывами — привязано к блоку записок */
.notes::before {
  content: "";
  position: absolute;
  inset: -30%;              /* свечение больше блока, выходит за его края */
  background: radial-gradient(
    circle at center,
    rgba(240,120,0,.28),
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;              /* под записками, а не поверх них */
}

/* Слой 2: полосы, как рёбра радиатора */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0 14px,   /* светлая полоса шириной 14px */
    transparent 14px 28px           /* прозрачный промежуток до 28px */
  );
  /* маска: слева полосы невидимы, к правому краю проявляются */
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 80%);
  pointer-events: none;
    background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.025) 0 10px,
    transparent 10px 22px
  );
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: center; width: 100%; }

.hello {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--accent); margin-bottom: .8rem;
  line-height: 1.25;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 700; letter-spacing: -.02em; max-width: 19ch;
}
.hero-sub { margin-top: 1.25rem; max-width: 50ch; color: #d5dde3; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.5rem; border-radius: 999px;
  font: 700 1.1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-call { background: var(--accent); }
.btn-quiet { border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.hero .btn-quiet { border-color: rgba(255,255,255,.7); color: var(--paper); }
.hero .btn-quiet:hover { background: var(--paper); color: var(--ink); }

.creds { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; color: #d5dde3; font-size: 1rem; }
.creds li { display: flex; align-items: center; gap: .7rem; }

.cred-reviews {
  border-left: 1px solid rgba(255,255,255,.2);  /* тонкая полупрозрачная линия */
  padding-left: 1.5rem;
}

/* Ссылка: иконка и текст в одну линию, без стандартного подчёркивания */
.reviews-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: inherit;          /* цвет как у родителя, а не синий цвет ссылки */
  text-decoration: none;   /* убираем стандартное подчёркивание браузера */
}

/* Текст — «якорь» для линии */
.reviews-text {
  position: relative;      /* линия будет позиционироваться относительно текста */
  display: inline-block;
  padding-bottom: 4px;     /* место под линию */
}

/* Сама линия */
.reviews-text::after {
  content: "";             /* без content псевдоэлемент не появится */
  position: absolute;
  left: 0;                 /* начинается от буквы G */
  bottom: 0;
  height: 2px;             /* толщина линии */
  width: 85%;              /* примерно до «iew» */
  background: #fff;
  transition: width .38s ease;  /* плавное изменение ширины */
}

/* При наведении и при фокусе с клавиатуры — до конца слова */
.reviews-link:hover .reviews-text::after,
.reviews-link:focus-visible .reviews-text::after {
  width: 100%;
}

/* Если у человека отключены анимации в системе — без плавности */
@media (prefers-reduced-motion: reduce) {
  .reviews-text::after { transition: none; }
}

.cred {
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.cred-gas { background: var(--gas); border-color: #e0b900; }
.cred-oftec { background: var(--oftec); border-color: #24702f; color: #fff; }
.cred-google {
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

.cred-icon { width: 18px; height: 18px; display: block; }

/* Отзывы-записки: главная изюминка первого экрана */
.notes {
  position: relative;   /* нужен для свечения ::before */
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);  /* сетка из 12 колонок */
}

.note {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(29,42,53,.45);
}
.note blockquote {
  margin: 0 0 .7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2;
}
.note figcaption { font-size: .95rem; color: var(--ink-soft); }
.note figcaption::before { content: "★★★★★  "; color: var(--accent); letter-spacing: .05em; }

.note-1 {
  grid-column: 1 / 10;       /* с 1-й линии до 10-й: левая часть */
  transform: rotate(-3deg);
}
.note-2 {
  grid-column: 4 / 13;       /* сдвинута вправо до края */
  margin-top: -1.25rem;      /* немного наезжает на первую */
  background: var(--accent);
  transform: rotate(2.5deg);
}
.note-2 figcaption,
.note-2 figcaption::before { color: var(--ink); }  

.note-3 {
  grid-column: 2 / 11;
  margin-top: -1.25rem;
  transform: rotate(-1deg);
}

/* Плавное движение записок */
.note { transition: transform .25s ease, box-shadow .25s ease; }

.note-1:hover { transform: rotate(-1deg) translateY(-8px) scale(1.03); }
.note-2:hover { transform: rotate(0.5deg) translateY(-8px) scale(1.03); }
.note-3:hover { transform: rotate(1deg) translateY(-8px) scale(1.03); }

.note:hover {
  box-shadow: 0 22px 40px -18px rgba(18,34,47,.45);
  z-index: 1;               /* поднятая записка поверх соседних */
  position: relative;       /* z-index работает только с position */
}

@media (prefers-reduced-motion: reduce) {
  .note { transition: none; }
}

/* Одно движение на странице: записки мягко «приклеиваются» при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .note { animation: stick .6s cubic-bezier(.2,.8,.2,1.2) both; }
  .note-2 { animation-delay: .15s; }
  .note-3 { animation-delay: .3s; }
  @keyframes stick { from { opacity: 0; translate: 0 18px; scale: .96; } }
}

/* ===== Общие заголовки секций ===== */
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; max-width: 22ch; }
.section-intro { margin-top: .8rem; color: var(--ink-soft); max-width: 52ch; }

/* ===== Обещания с доказательствами ===== */
.promises { 
  padding: 6rem 0; 
  border-top: 1px solid var(--line);
}
.promise-list {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem;
}
.promise { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.promise h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: .9rem; }
.promise blockquote {
  margin: 0; padding-left: 1rem; border-left: 3px solid var(--accent);
  font-size: 1.15rem; color: var(--ink);
}
.who { margin-top: .5rem; padding-left: 1rem; font-size: .95rem; color: var(--ink-soft); }

/* ===== О компании ===== */
.about { padding: 0 0 6rem; }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;  /* как в блоке услуг, чтобы колонки совпадали */
  gap: 4rem;
  border-top: 1px solid #dde3e8;
  padding-top: 4rem;
}
.about-text p { color: var(--ink-soft); max-width: 55ch; }
.about-text p + p { margin-top: 1rem; }  /* отступ только между абзацами */

/* ===== Услуги ===== */
.jobs { background: var(--ink); color: var(--paper); padding: 6rem 0; }
.jobs .section-intro { color: #b9c4cd; }
.jobs-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.job-list { list-style: none; padding: 0; margin: 0; }
.job-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid #3a4a58;
}
.job-list li:first-child { border-top: 1px solid #3a4a58; }
.job-list strong { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.job-list span { color: #b9c4cd; font-size: 1rem; text-align: right; }

/* ===== Контакты ===== */
.contact { background: var(--accent-soft); padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-number {
  display: block; margin: 1rem 0 1.5rem; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--accent-dark); text-decoration: none; letter-spacing: -.02em;
}
.contact-copy p { max-width: 44ch; }
.small { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }

.form { background: var(--paper); padding: 2rem; border-radius: 18px; }
.form h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.form label { display: block; font-weight: 700; margin: 1rem 0 .35rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea {
  width: 100%; font: inherit; padding: .75rem .9rem;
  border: 2px solid #cfd8df; border-radius: 10px; background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .is-invalid { border-color: #c0392b; }
.form .btn { margin-top: 1.5rem; width: 100%; }
.form-status { margin-top: 1rem; font-weight: 700; }

.map {
  margin-top: 2rem;
  aspect-ratio: 4 / 3;      /* пропорции карты на любом экране */
  border-radius: 18px;
  overflow: hidden;         /* обрезает углы iframe по скруглению */
  background: #cfd8df;      /* серый фон, пока карта грузится */
}

.map iframe {
  display: block;           /* убирает лишний отступ снизу */
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Согласие на cookies --- */
.cookie {
  position: fixed;
  left: 1rem; bottom: 1rem;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 20px 45px -20px rgba(18,34,47,.45);
  z-index: 40;
}
.cookie[hidden] { display: none; }        /* иначе flex-стили перебьют hidden */
.cookie-text { font-size: .95rem; color: var(--ink-soft); }
.cookie-opt { margin: .9rem 0; font-weight: 700; }
.cookie-opt label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions .btn { min-height: 44px; font-size: 1rem; padding: 0 1.2rem; }

/* Заглушка вместо карты */
.map-hold {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .9rem; padding: 1.5rem; text-align: center;
  color: var(--ink-soft); font-size: .95rem;
}

/* ===== Футер ===== */
.footer { background: var(--ink); color: #b9c4cd; padding: 2rem 0 5.5rem; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.sticky-call { display: none; }

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


/* ================================================================
   СВЕТЛАЯ ТЕМА И НОВЫЕ СЕКЦИИ
   Эти правила идут после базовых, поэтому перебивают их.
   ================================================================ */

/* --- Первый экран стал светлым --- */
.hero {
  color: var(--ink);
  background-color: var(--accent-soft);
  background-image: none;
}
.hero-sub { color: var(--ink-soft); }

/* Свечение за записками — теперь голубое */
.notes::before {
  background: radial-gradient(circle at center, rgba(11,99,206,.16), transparent 60%);
}

/* Полосы-«рёбра» на светлом фоне должны быть тёмными, а не белыми */
.hero::after {
  background: repeating-linear-gradient(
    90deg,
    rgba(18,34,47,.025) 0 15px,
    transparent 28px 76px
  );
}

/* --- Кнопки --- */
.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-dark); }
.hero .btn-quiet { border-color: var(--ink); color: var(--ink); }
.hero .btn-quiet:hover { background: var(--ink); color: #fff; }

/* --- Значки и отзывы в шапке первого экрана --- */
.creds { color: var(--ink-soft); }
.cred-reviews { border-left: 1px solid var(--line); }
.cred-google { background: #fff; border: 1px solid var(--line); }
.reviews-text::after { background: var(--accent); }

/* --- Записки с отзывами --- */
.note {
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(18,34,47,.35);
}
.note-2 { background: var(--accent); color: #fff; }
.note-2 figcaption,
.note-2 figcaption::before { color: #fff; }

/* --- Как это работает --- */
.steps { padding: 6rem 0; background: var(--paper); }
.step-list {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.step-list li { padding-top: .25rem; }
.step-icon {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: .9rem;
}

.step-list h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: .5rem; }
.step-list p { color: var(--ink-soft); }

/* --- Районы --- */
.areas { padding: 5rem 0; background: var(--accent-soft); }
.area-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.area-list li {
  background: #fff; border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700;
}

/* --- Вопросы и ответы --- */
.faq { padding: 6rem 0; }
.faq-list { margin: 2.5rem 0 0; }
.faq-list dt {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  border-top: 1px solid var(--line); padding-top: 1.25rem;
}
.faq-list dd {
  margin: .5rem 0 1.5rem; padding: 0;
  color: var(--ink-soft); max-width: 65ch;
}

/* --- Липкая кнопка звонка --- */
.sticky-call { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
  .step-list { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid, .jobs-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* На планшете и телефоне записки идут стопкой */
  .notes { grid-template-columns: 1fr; gap: 1rem; }
  .note-1, .note-2, .note-3 { grid-column: auto; margin-top: 0; transform: none; }
  .promise-list { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .header-call { display: none; }
  .hero { padding: 3rem 0 3.5rem; }
  .promises, .jobs, .contact { padding: 4rem 0; }
  .job-list li { flex-direction: column; gap: .15rem; }
  .job-list span { text-align: left; }
  .form { padding: 1.25rem; }
  .hero-actions .btn { width: 100%; }

  .sticky-call {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; min-height: 58px;
    background: var(--accent); color: #fff; border-radius: 999px;
    font-weight: 700; font-size: 1.15rem; text-decoration: none; z-index: 30;
    box-shadow: 0 10px 24px -8px rgba(29,42,53,.5);
    opacity: 0;
    visibility: hidden;
    translate: 0 150%;     /* уезжает вниз за край экрана */
    transition: opacity .25s ease, translate .25s ease, visibility .25s;

    .cookie { left: .75rem; right: .75rem; bottom: 5.5rem; max-width: none; }
  }
    /* Класс, который добавит JavaScript */
  .sticky-call.is-visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-call { transition: none; }
}

/* Невысокие экраны ноутбуков: делаем hero компактнее,
   чтобы кнопки поместились на первом экране */
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
  .hello { font-size: 1.2rem; margin-bottom: .5rem; }
  .hero-sub { margin-top: .9rem; font-size: 1.1rem; }
  .hero-actions { margin-top: 1.4rem; }
  .creds { margin-top: 1.4rem; }
  .note blockquote { font-size: 1.2rem; }
}