/* ============================================================
   Вишняков — IT-мастер. Визуальная система «Сигнал».
   Красная точка = индикатор: логотип, буллеты, шаги, статусы.
   Палитра: тёплая бумага, чернильный текст, вишнёвый акцент.
   ============================================================ */

:root {
  --paper: #f5f0e8;
  --paper-dim: #ece5d8;
  --ink: #1a1613;
  --ink-soft: #574f47;
  --line: #d9d0c0;
  --cherry: #c73e35;
  --cherry-deep: #9e2b23;
  --cherry-on-dark: #e85043;
  --green: #2e7d45;
  --dark: #171310;
  --dark-line: #352d26;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --wrap: 1120px;
  --radius: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

::selection { background: var(--cherry); color: var(--paper); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------- Точка (базовый приём) ---------- */
.dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--cherry);
  flex: none;
  vertical-align: baseline;
}

.dot--hero {
  width: clamp(16px, 2.4vw, 30px);
  height: clamp(16px, 2.4vw, 30px);
  margin-left: 0.12em;
  vertical-align: -0.06em;
}

.dot--ok { background: var(--green); }
.dot--paper { background: var(--paper); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.dot--live { animation: blink 1.8s ease-in-out infinite; }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero__signal-live {
  transform-origin: 40px 40px;
  animation: pulse-ring 2.6s ease-out infinite;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn--primary {
  background: var(--cherry);
  color: var(--paper);
}
.btn--primary:hover { background: var(--cherry-deep); }

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

.btn--sm { min-height: 40px; padding: 0.45em 1.2em; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0.8em 1.8em; font-size: 1.0625rem; }
.btn--xl { min-height: 64px; padding: 0.9em 2em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 3.4vw, 1.6rem); letter-spacing: 0.01em; }

a:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--dark a:focus-visible,
.section--dark summary:focus-visible {
  outline-color: var(--paper);
}

/* ---------- Ссылки ---------- */
a { color: var(--cherry-deep); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo .dot { width: 0.62em; height: 0.62em; }

.logo__tag {
  margin-left: 0.5em;
  padding-left: 0.9em;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.6875rem;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover { color: var(--cherry-deep); border-bottom-color: var(--cherry); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 100px);
}

.hero__signal {
  position: absolute;
  right: clamp(8px, 4vw, 48px);
  top: 18%;
  width: clamp(180px, 26vw, 340px);
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

/* 3D-вишни справа от текста */
.hero__3d {
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-52%);
  width: clamp(300px, 42vw, 600px);
  height: clamp(300px, 42vw, 600px);
  pointer-events: none;
  opacity: 0.96;
  z-index: 0;
}

@media (max-width: 900px) {
  .hero__3d { display: none; }
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.75rem;
}

.hero__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero__accent { color: var(--cherry-deep); }

.hero__lead {
  margin: 0 0 clamp(28px, 4vw, 40px);
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.hero__phone { margin: 0; font-size: 1.0625rem; color: var(--ink-soft); }
.hero__phone .mono { color: var(--ink-soft); text-transform: none; letter-spacing: 0.03em; font-size: 0.8125rem; }

.hero__phone-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--cherry);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.hero__phone-num:hover { color: var(--cherry-deep); }

/* ---------- Секции ---------- */
.section { padding-block: clamp(56px, 9vw, 96px); }

.kicker {
  margin: 0 0 14px;
  color: var(--cherry-deep);
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.18;
}

.section__lead {
  margin: 0 0 clamp(32px, 5vw, 56px);
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.section--dark {
  background: var(--dark);
  color: var(--paper);
}
.section--dark .section__lead { color: #b3a898; }
.section--dark .kicker { color: var(--cherry-on-dark); }

/* ---------- Задачи (заказы) ---------- */
.job {
  border-top: 2px solid var(--ink);
  padding-block: clamp(28px, 4vw, 44px);
}
.job:last-child { border-bottom: 2px solid var(--ink); }

.job__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.job__num { color: var(--cherry-deep); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.job__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  max-width: 30ch;
}

.job__symptoms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.job__symptoms li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-dim);
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.job__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job__list li {
  position: relative;
  padding-left: 1.4em;
  font-weight: 500;
}

.job__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--cherry);
}

/* Два столбца: «Самое частое» + «Ещё делаю» */
.job__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.job__sublabel {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cherry-deep);
}

.job__list--more li {
  color: var(--ink-soft);
  font-weight: 400;
}

/* вторичный список — «пустая» точка, не конкурирует с главным */
.job__list--more li::before {
  background: transparent;
  border: 1.5px solid var(--ink-soft);
  top: 0.52em;
  width: 0.52em;
  height: 0.52em;
}

/* вишнёвая метка в подвале */
.cherry {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -0.25em;
}

/* ---------- Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
}

.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 0;
}

.step__num {
  display: block;
  margin-bottom: 14px;
  color: var(--cherry-on-dark);
  font-size: 0.6875rem;
}

.step .dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--cherry-on-dark);
}
.step .dot--ok { background: var(--green); }

.step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.step__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #b3a898;
}

/* ---------- Обо мне ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about__main { max-width: 62ch; }

.about__text {
  margin: 0 0 18px;
  max-width: 60ch;
}

.about__side {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-dim);
}

.about__side-title { margin: 0 0 16px; color: var(--cherry-deep); font-size: 0.75rem; }

.about__side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.about__side-list li {
  position: relative;
  padding-left: 1.4em;
  font-weight: 500;
  font-size: 0.9375rem;
}

.about__side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--cherry);
}

/* ---------- Стоимость ---------- */
.price {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.price__main { max-width: 62ch; }

.price__sum {
  margin: 8px 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--cherry-deep);
}

.price__pre {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.price__side {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-dim);
}

.price__side-title { margin: 0 0 16px; color: var(--cherry-deep); font-size: 0.75rem; }

.price__side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.price__side-list li {
  position: relative;
  padding-left: 1.4em;
  font-weight: 500;
  font-size: 0.9375rem;
}

.price__side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--cherry);
}

/* ---------- FAQ ---------- */
.faq__item {
  border-top: 1px solid var(--ink);
}
.faq__item:last-child { border-bottom: 1px solid var(--ink); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: var(--cherry-deep);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq__item[open] .faq__plus {
  transform: rotate(45deg);
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--paper);
}

.faq__a {
  padding: 0 0 20px 46px;
  max-width: 70ch;
  color: var(--ink-soft);
}
.faq__a p { margin: 0; }

/* ---------- Контакты ---------- */
.contacts .section__lead { margin-bottom: 28px; }

.contacts__tips {
  display: grid;
  gap: 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.contacts__tips li {
  position: relative;
  padding-left: 1.5em;
  font-weight: 500;
}

.contacts__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--cherry);
}

.contacts__cta { display: grid; gap: 14px; justify-items: start; }
.contacts__note { margin: 0; color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.site-footer p { margin: 0; color: var(--ink-soft); font-size: 0.6875rem; }
.site-footer .dot { width: 7px; height: 7px; margin-left: 8px; }

/* ---------- Плавающая кнопка (мобайл) ---------- */
.callbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--cherry);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.callbar--hidden { transform: translateY(110%); }

.callbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  flex: 1;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.callbar__num {
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  /* Кнопка не помещается рядом с полной навигацией —
     первичное действие всё равно есть в первом экране. */
  .site-header .btn { display: none; }
  .site-nav { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .job__list { grid-template-columns: 1fr; }
  .job__cols { grid-template-columns: 1fr; gap: 24px; }
  .about, .price { grid-template-columns: 1fr; }
  .about__side, .price__side { max-width: 560px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 84px; font-size: 1rem; }

  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .logo__tag { display: none; }

  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero__signal { display: none; }
  .hero__title { max-width: 100%; }

  .job__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .callbar { display: flex; }
}

@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .callbar__num { display: none; }
}

/* ---------- Уменьшение анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
