/* ======================================================================
 style.css (cleaned)
 - Удалены комментарии с закомментированным кодом
 - Приведён к аккуратному виду, сортировка свойств в простых правилах
 - Добавлены краткие разделительные комментарии
 Визуал и функционал сохранены.
 ====================================================================== */
/* Чек-лист документов */


:root {
  --accent: #7C3AED;
  --bg-color: #d9d5e9;
  --cta: #afd675;
  --danger: #E11D48;
  --footer-bg: #EEE9FF;
  --header-bg: #775fff;
  --section-bg: #FFFFFF;
  --soc-chip-h: 48px;
  --soc-chip-w: 224px;
  --steps-bg: #e4e4e4;
  --text-color: #120F1A;
  --tag-alpha-bg: 88%;
  --tag-alpha-br: 42%;
}

body.dark {
  --accent: #A78BFA;
  --bg-color: #0F0B18;
  --cta: #91bb4e;
  --danger: #E11D48;
  --footer-bg: #0F0B18;
  --header-bg: #120C1F;
  --section-bg: #161228;
  --steps-bg: #0a0718;
  --text-color: #EDEAF6;
  --tag-alpha-bg: 92%;
  --tag-alpha-br: 36%;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 2560px;
}

header {
  align-items: center;
  background: var(--header-bg);
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* === Brand (логотип + имя) в шапке === */
.site-brand {
  margin: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 2.15rem;
  color: #fff;
  /* шапка тёмная — текст белый */
}

.header-brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .12));
}

/* чтобы бренд «толкал» остальное вправо на десктопе */
header {
  gap: 1rem;
  /* чуть воздуха между элементами */
}

.site-brand {
  /* занимает минимум места, но остаётся первым */
  flex: 0 0 auto;
}


.menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 1.3s ease, opacity 1.3s ease;
}

nav a {
  color: white;
  text-decoration: none;
}

#lang-switch {
  background: transparent;
  border: 2px solid white;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
}

section {
  background: var(--section-bg);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin: 1rem auto;
  max-width: 1400px;
  padding: 2rem;
}

/* Hero секция */


#hero {
  background: url("intechlo.png") no-repeat center/cover;
  color: #fff;
  margin: 0;
  max-width: 2560px;
  padding: 5rem 2rem;
  position: relative;
  text-align: center;
}

#hero::before {
  background: color-mix(in oklab, #000 10%, transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body.dark #hero::before {
  background: color-mix(in oklab, #000 20%, transparent);
}

#hero>* {
  position: relative;
}

#hero h2,
#hero p,
#hero button {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .23),
    0 0 2px rgba(0, 0, 0, .18),
    0 0 .5px #000;
}

#hero button {
  background: var(--cta);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

/* Блок "Почему выбирают нас" */


#about-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

#about-list li {
  align-items: center;
  background: var(--section-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  color: var(--text-color);
  display: flex;
  font-size: 1.18rem;
  font-weight: 500;
  min-width: 200px;
  padding: 1.2rem 2.1rem;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.2s;
}

#about-list li .emoji {
  font-size: 1.7rem;
  margin-right: 0.7rem;
}

#about-list li:hover {
  box-shadow: 0 6px 24px rgba(50, 80, 120, 0.14);
  transform: translateY(-4px) scale(1.04);
}

/* Этапы поступления */


#steps.steps-timeline {
  background: var(--section-bg) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, .05) !important;
  margin: 1rem auto !important;
  max-width: 1400px !important;
  padding: 2rem !important;
  position: relative;
}

#steps.steps-timeline .timeline {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0 0 0 3.2rem;
  position: relative;
}

#steps.steps-timeline .timeline::before {
  background: var(--text-color);
  bottom: 0;
  content: "";
  left: 1.4rem;
  opacity: .7;
  position: absolute;
  top: 0;
  width: 2px;
}

#steps.steps-timeline .tl-item {
  opacity: 0;
  position: relative;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: transform, opacity;
}

#steps.steps-timeline .tl-item._in {
  opacity: 1;
  transform: none;
}

#steps.steps-timeline .tl-dot {
  background: var(--steps-accent);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  color: var(--text-color);
  display: grid;
  font-size: .95rem;
  font-weight: 800;
  height: 2.1rem;
  left: 0;
  place-items: center;
  position: absolute;
  top: .65rem;
  user-select: none;
  width: 2.1rem;
}

#steps.steps-timeline .tl-card {
  align-items: center;
  background: var(--steps-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  color: var(--text-color);
  display: inline-flex;
  font-weight: 600;
  gap: .7rem;
  min-height: 54px;
  outline: none;
  padding: 1rem 1.25rem 1rem 1.9rem;
}

#steps.steps-timeline .tl-card .feature-emoji {
  flex: 0 0 auto;
  font-size: 1.35rem;
  margin-left: .35rem;
}

#steps.steps-timeline .tl-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steps-accent) 60%, transparent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  #steps.steps-timeline .timeline {
    gap: .8rem;
    padding-left: 3rem;
  }

  #steps.steps-timeline .timeline::before {
    left: 1.35rem;
  }

  #steps.steps-timeline .tl-dot {
    font-size: .9rem;
    height: 1.9rem;
    top: .55rem;
    width: 1.9rem;
  }

  #steps.steps-timeline .tl-card {
    font-size: .98rem;
    padding: .9rem 1rem .9rem 1.7rem;
  }

  #steps.steps-timeline .tl-card .feature-emoji {
    margin-left: .3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #steps.steps-timeline .tl-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

#steps.steps-timeline {
  --steps-accent: var(--accent);
}

#steps.steps-timeline .steps-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(520px, 720px) 1fr;
}

#steps.steps-timeline .steps-col-left {
  min-width: 0;
}

#steps.steps-timeline .steps-col-right {
  min-width: 0;
}

#steps.steps-timeline .aside-card {
  background: var(--section-bg);
  border: 1px solid color-mix(in oklab, var(--text-color) 10%, transparent);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  color: var(--text-color);
  padding: 1.1rem 1.2rem;
  position: sticky;
  top: 96px;
}

#steps.steps-timeline .aside-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 .4rem 0;
}

#steps.steps-timeline .aside-desc {
  font-size: .95rem;
  margin: 0 0 .6rem 0;
  opacity: .8;
}

#steps.steps-timeline .aside-list {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0 0 .9rem 0;
  padding: 0;
}

#steps.steps-timeline .aside-list li {
  font-weight: 600;
  padding-left: 1.55rem;
  position: relative;
}

#steps.steps-timeline .aside-list li::before {
  background: color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 999px;
  content: "✓";
  display: inline-grid;
  font-size: .8rem;
  height: 1.1rem;
  left: 0;
  line-height: 1;
  place-items: center;
  position: absolute;
  top: 0;
  width: 1.1rem;
}

#steps.steps-timeline .aside-cta {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(50, 80, 140, .25);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 800;
  padding: .7rem 1rem;
  transition: transform .15s ease, box-shadow .2s ease, opacity .15s;
}

#steps.steps-timeline .aside-cta:hover {
  box-shadow: 0 10px 28px rgba(50, 80, 140, .28);
  transform: translateY(-2px);
}

#steps.steps-timeline .aside-cta:active {
  opacity: .9;
  transform: translateY(0);
}

#steps.steps-timeline .aside-tip {
  font-size: .9rem;
  margin: .65rem 0 0 0;
  opacity: .7;
}

#steps.steps-timeline .tl-dot {
  background: var(--accent);
  color: #fff;
}

#steps.steps-timeline .tl-card {
  background: var(--steps-bg);
}

@media (max-width: 1024px) {
  #steps.steps-timeline .steps-layout {
    grid-template-columns: 1fr;
  }

  #steps.steps-timeline .aside-card {
    position: static;
  }
}

#configurator {
  max-width: 1400px;
}

.conf-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-top: 1rem;
}

.conf-card {
  background: var(--section-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  color: var(--text-color);
  padding: 1rem 1.2rem;
}

.conf-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.conf-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.conf-radio label {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 0.5rem;
  user-select: none;
}

#configurator select {
  background: var(--section-bg);
  border: 1px solid #ccc;
  border-radius: 8px;
  color: var(--text-color);
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.conf-hint {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.conf-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

#conf-generate {
  background: #0055a5;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
}

.conf-result.hidden {
  display: none;
}

.conf-timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.conf-timeline li {
  background: var(--section-bg);
  border-left: 4px solid #226cff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 0.7rem 0;
  padding: 0.9rem 1rem 0.9rem 1rem;
}

.conf-timeline .tl-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.conf-timeline .tl-meta {
  font-size: 0.95rem;
  opacity: 0.85;
}

.conf-cta {
  margin-top: 1rem;
}

.conf-cta button {
  background: #ffcc00;
  border: none;
  border-radius: 8px;
  color: #222;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
}

@media (max-width: 1024px) {
  .conf-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .conf-grid {
    grid-template-columns: 1fr;
  }
}

.simple-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.simple-feature-list li {
  align-items: center;
  background: var(--section-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  color: var(--text-color);
  display: flex;
  font-size: 1.18rem;
  font-weight: 500;
  min-width: 200px;
  padding: 1.2rem 2.1rem;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.2s;
}

.simple-feature-list li:hover {
  box-shadow: 0 6px 24px rgba(50, 80, 120, 0.14);
  transform: translateY(-4px) scale(1.04);
}

.feature-emoji {
  font-size: 1.7rem;
  margin-right: 0.7rem;
}

input,

textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  width: 100%;
}

button[type="submit"] {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 0.75rem;
}

/* #docs-checklist {
  max-width: 1000px;
} */
.docs-list {
  display: grid;
  gap: .6rem;
  list-style: none;
  margin: .75rem 0 1rem;
  padding: 0;
}

.docs-list li {
  align-items: flex-start;
  background: var(--section-bg);
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  color: var(--text-color);
  display: flex;
  gap: .7rem;
  padding: .75rem .9rem;
}

.docs-list input[type="checkbox"] {
  cursor: pointer;
  height: 20px;
  margin-top: .2rem;
  width: 20px;
}

.docs-item-text {
  line-height: 1.35;
}

.docs-tag {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .75rem;
  margin-left: .5rem;
  opacity: .9;
  padding: .05rem .45rem;
}

.docs-tag.translate { --tag-seed: #4f8bff; } /* спокойный синий */
.docs-tag.notary    { --tag-seed: #ff6b6b; } /* красный, но не ядерный */
.docs-tag.self      { --tag-seed: #39b96a; } /* зелёный без радиоактивного свечения */

/* опционально: чуть усилить контраст текста на очень тёмных фонах */
body.dark .docs-tag { opacity: .98; }

.docs-tag {
  /* seed подставим в дочерних модификаторах */
  --tag-seed: #888;

  /* фон тега под конкретную тему */
  background: color-mix(in oklab, var(--section-bg) var(--tag-alpha-bg), var(--tag-seed));
  border: 1px solid color-mix(in oklab, var(--tag-seed) var(--tag-alpha-br), transparent);
  border-radius: 6px;
  font-size: .75rem;
  margin-left: .5rem;
  opacity: .95;
  padding: .05rem .45rem;
  color: var(--text-color);
}



.docs-progress {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr auto;
  margin-top: .5rem;
}

.docs-bar {
  background: #e6e6e6;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.docs-bar>#docs-bar {
  background: #226cff;
  height: 100%;
  transition: width .25s;
  width: 0%;
}

.docs-num {
  font-weight: 700;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .75rem;
}

#docs-print {
  background: #444;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: .7rem 1.1rem;
}

#docs-reset {
  background: #ff3366;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: .7rem 1.1rem;
}

.print-only {
  display: none;
}

#logo-print{
  max-width: 100px;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  /* Header и навигация */

  header,
  #hero,
  #about,
  #steps,
  #specialties,
  #reviews,
  .faq-section,
  #configurator,
  #contact,
  footer,
  #chat-widget-root,
  #pl-edu-opportunities,
  #docs-desc,
  #docs-title {
    display: none !important;
  }

  #docs-checklist {
    box-shadow: none;
    margin: 0;
  }

  .docs-actions {
    display: none !important;
  }

  .print-only {
    display: block !important;
    margin-bottom: .5rem;
  }

  .docs-bar {
    background: #ddd !important;
  }

  .docs-bar>#docs-bar {
    background: #000 !important;
  }
}

/* ========= СЕКЦИОННЫЕ РАЗДЕЛИТЕЛИ И ЧИТАЕМОСТЬ ========= */

/* Тонкий градиентный разделитель между блоками */
.section-divider {
  border: 0;
  height: 1px;
  width: min(100%, 1400px);
  margin: clamp(16px, 3vw, 32px) auto;
  background:
    linear-gradient(90deg,
      transparent 0%,
      color-mix(in oklab, var(--text-color) 20%, transparent) 12%,
      color-mix(in oklab, var(--text-color) 35%, transparent) 50%,
      color-mix(in oklab, var(--text-color) 20%, transparent) 88%,
      transparent 100%);
  opacity: .7;
}

/* Единый вид заголовков секций */
section h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: .2px;
  margin-bottom: .75rem;
}

/* Заголовок занимает ширину своего текста */
section>h2 {
  display: inline-block;
  /* сжимается под содержимое */
  line-height: 1.25;
  letter-spacing: .2px;
  margin-bottom: .75rem;
}

/* Плашка строго по ширине текста */
section>h2::after {
  content: "";
  display: block;
  inline-size: 100%;
  /* ширина = ширине текста заголовка */
  block-size: 3px;
  margin-top: .55rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--accent) 40%, transparent);
}

/* В герое эта красота не нужна */
#hero h1::after,
#hero h2::after {
  display: none;
}

/* Опционально: точечно отключать где-то ещё */
.no-accent>h2::after {
  display: none;
}


/* Комфортная ширина строк для длинных текстов (без ломания карточек) */
.prose p,
.prose blockquote,
.prose li {
  max-width: 72ch;
  /* читаемая длина строки */
}

.prose>* {
  margin-left: auto;
  margin-right: auto;
  /* выравниваем контент по центру колонки */
}

.prose p {
  line-height: 1.7;
  font-size: 1.05rem;
}

.prose blockquote {
  opacity: .95;
}

/* Чуть больше воздуха внутри секций на больших экранах */
@media (min-width: 900px) {
  section {
    padding: 2.2rem;
  }
}

/* Читаемость FAQ ответа усилим независимо от .prose */
.faq-answer p {
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
}

/* Чтобы якорные ссылки не прятали заголовки под потенциально фиксированными шапками */
h2,
[id] {
  scroll-margin-top: 84px;
}

.site-footer {
  --soc-chip-h: 48px;
  --soc-chip-w: 224px;
  background: var(--footer-bg);
  color: var(--text-color);
  margin-top: 2rem;
  padding-top: 2rem;
}

.site-footer .footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem 1.5rem;
}

.site-footer .footer-brand .footer-logo {
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .08));
  height: 44px;
  margin-bottom: .6rem;
  width: 44px;
}

.site-footer .footer-brand p {
  font-size: .98rem;
  opacity: .9;
}

.site-footer .footer-heading {
  font-size: 1.05rem;
  margin: 0 0 .65rem;
  opacity: .9;
}

.site-footer .footer-links,
.site-footer .footer-contacts {
  display: grid;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: inherit;
  opacity: .9;
  text-decoration: none;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: from-font;
}

.site-footer .footer-social {
  display: grid;
  gap: .8rem;
  grid-template-columns: (--soc-chip-w);
  justify-content: start;
  margin-top: .6rem;
}

.site-footer .footer-social .sicon {
  align-items: center;
  background: var(--section-bg);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  color: var(--text-color);
  display: inline-flex;
  gap: .6rem;
  height: var(--soc-chip-h);
  overflow: visible;
  padding: 0 .9rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
  width: var(--soc-chip-w);
}

.site-footer .footer-social .sicon:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer .footer-social .sicon img {
  display: block;
  filter: none;
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}

body.dark .site-footer .footer-social .sicon img {
  filter: brightness(0) invert(1);
}

.site-footer .footer-social .sicon .sicon-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  opacity: 1;
}

.site-footer .footer-bottom {
  align-items: center;
  border-top: 1px solid color-mix(in oklab, var(--text-color) 22%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1400px;
  padding: .9rem 1rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-legal {
  align-items: center;
  display: flex;
  font-size: .95rem;
  gap: .5rem;
  opacity: .95;
}

.site-footer .footer-legal span[aria-hidden="true"] {
  opacity: .6;
}

.site-footer .back-to-top {
  align-items: center;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  width: 40px;
}

.site-footer .back-to-top:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .site-footer .footer-inner {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-bottom: 5rem;
  }

  .site-footer .footer-social {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-social .sicon {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .site-footer .footer-social .sicon,
  .site-footer .back-to-top {
    transition: none;
  }
}

.footer-sections-mobile {
  display: none;
}

@media (max-width: 600px) {

  .site-footer .footer-nav {
    display: none;
  }

  .footer-sections-mobile {
    display: block;
    margin-top: .5rem;
  }

  .footer-sections-mobile .sec-toggle {
    align-items: center;
    background: var(--section-bg);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    color: (--text-color);
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    padding: .9rem 1rem;
    width: 100%;
  }

  .footer-sections-mobile .sec-toggle .chevron {
    transition: transform .25s ease;
  }

  .footer-sections-mobile.open .sec-toggle .chevron {
    transform: rotate(180deg);
  }

  .footer-sections-mobile .sec-list {
    list-style: none;
    margin: .6rem 0 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .35s ease;
  }

  .footer-sections-mobile .sec-list li+li {
    margin-top: .5rem;
  }

  .footer-sections-mobile .sec-list a {
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
    color: var(--text-color);
    display: block;
    padding: .85rem 1rem;
    text-decoration: none;
  }

  .footer-sections-mobile .sec-list a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .site-footer {
    padding-bottom: 5rem;
  }
}

/* Виджет мессенджеров */


#chat-widget-root {
  align-items: flex-end;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 24px;
  z-index: 9999;
}

.chat-btn-main {
  align-items: center;
  background: #226cff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(60, 60, 60, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 35px;
  height: 64px;
  justify-content: center;
  margin-bottom: 12px;
  outline: none;
  position: relative;
  transition: background 0.3s ease;
  width: 64px;
}

@keyframes chat-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 108, 255, 0.65), 0 8px 32px rgba(60, 60, 60, 0.18);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(34, 108, 255, 0), 0 8px 32px rgba(60, 60, 60, 0.18);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 108, 255, 0.65), 0 8px 32px rgba(60, 60, 60, 0.18);
  }
}

.chat-btn-main {
  animation: chat-pulse 1.6s infinite;
}

.chat-btn-main.opened {
  animation: none;
  background: var(--danger);
}

.chat-btn-main .icon-default,
.chat-btn-main .icon-close {
  position: absolute;
  transition: opacity 0.3s;
}

.chat-btn-main .icon-default {
  align-items: center;
  display: flex;
  justify-content: center;
  opacity: 1;
}

.chat-btn-main.opened .icon-default {
  align-items: center;
  display: flex;
  justify-content: center;
  opacity: 0;
}

.chat-btn-main .icon-close {
  align-items: center;
  display: flex;
  justify-content: center;
  opacity: 0;
}

.chat-btn-main.opened .icon-close {
  align-items: center;
  display: flex;
  justify-content: center;
  opacity: 1;
}

.chat-tooltip {
  background: #444;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 0.7em;
  opacity: 0;
  padding: 9px 16px;
  pointer-events: none;
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.25s;
  white-space: nowrap;
}

.chat-btn-main:hover .chat-tooltip {
  opacity: 1;
}

.chat-btn-messengers {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.chat-messenger {
  align-items: center;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(60, 60, 60, 0.16);
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 14px;
  opacity: 0;
  outline: none;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s ease;
  width: 64px;
}

.chat-messenger.opened {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-messenger.telegram {
  background: #229ed9;
}

.chat-messenger.whatsapp {
  background: #25d366;
}

.chat-messenger.viber {
  background: #7360f2;
}

.chat-messenger img {
  filter: brightness(0) invert(1);
  height: 43px;
  width: 43px;
}

/* FAQ */


.faq-section {
  max-width: 1400px;
}

.faq-title {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--section-bg);
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 1rem 1.5rem;
  position: relative;
  text-align: left;
  width: 100%;
}

.faq-question .icon {
  font-size: 2.4rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-answer {
  box-sizing: border-box;
  color: var(--text-color, #ffffff);
  font-size: 1.19rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0rem;
  transition: max-height 0.5s ease,
    opacity 0.1s ease 0.1s;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-item.active {
  padding-bottom: 1rem;
}

.faq-item.active .faq-question .icon {
  transform: translateY(-50%) rotate(45deg);
}

html {
  color-scheme: light dark;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.simple-feature-list li {
  gap: 0.7rem;
}

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



#about-list li,
.simple-feature-list li {
  justify-content: center;
  text-align: center;
}

.about-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  margin-top: 1.2rem;
}

.about-card {
  align-items: start;
  background: var(--section-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  color: var(--text-color);
  column-gap: .9rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  padding: 1.2rem 1.2rem 1.05rem;
  transition: transform .18s, box-shadow .2s;
}

.about-card:hover {
  box-shadow: 0 6px 24px rgba(50, 80, 120, .14);
  transform: translateY(-4px) scale(1.02);
}

.about-emoji {
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  border-radius: 12px;
  display: grid;
  font-size: 1.6rem;
  height: 56px;
  place-items: center;
  width: 56px;
}

.about-card h3 {
  font-size: 1.16rem;
  line-height: 1.25;
  margin: 0;
}

.about-card .about-sub {
  font-size: .98rem;
  grid-column: 1 / -1;
  margin-top: .55rem;
  opacity: .9;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.spec-accordion {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

/* === Specialties tabs === */
.spec-tabs {
  display: inline-flex;
  gap: .5rem;
  background: color-mix(in oklab, var(--section-bg) 80%, transparent);
  padding: .4rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--text-color) 12%, transparent);
  margin: .5rem 0 1rem 0;
}

.spec-tab {
  appearance: none;
  border: none;
  padding: .55rem .9rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-color);
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease, transform .04s ease;
  outline-offset: 2px;
}

.spec-tab:hover {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}

.spec-tab.active {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  box-shadow: 0 2px 10px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* Адаптив */
@media (max-width: 640px) {
  .spec-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .spec-tab {
    padding: .5rem .6rem;
    font-size: .95rem;
  }
}


@media (max-width: 900px) {
  .spec-accordion {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  background: var(--section-bg);
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: box-shadow .25s ease;
}

.spec-item:hover {
  box-shadow: 0 6px 20px rgba(50, 50, 80, .14);
}

.spec-head {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: grid;
  font-size: 1.05rem;
  gap: .6rem;
  grid-template-columns: 2.2rem auto 1.8rem;
  padding: 1rem 1.25rem 1rem 1rem;
  text-align: left;
  width: 100%;
}

.spec-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.spec-title {
  font-weight: 700;
}

.spec-sub {
  display: block;
  font-weight: 500;
  margin-top: .2rem;
  opacity: .8;
}

.spec-icon {
  font-size: 1.8rem;
  justify-self: end;
  line-height: 1;
  transition: transform .3s ease;
}

.spec-body {
  color: var(--text-color);
  font-size: 1.02rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height .45s ease, opacity .2s ease .08s, padding .3s ease;
}

.spec-item.active .spec-body {
  opacity: 1;
  padding: 0 1.25rem 1rem 1.25rem;
}

.spec-item.active .spec-icon {
  transform: rotate(180deg);
}

/* ===== NAV: фикс для десктопа/планшета (вне @media) ===== */
.main-nav {
  color: #fff;
  /* текст навигации белый на тёмной шапке */
}

body.dark .main-nav {
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
}

/* вертикальные разделители */
.main-nav li+li {
  margin-left: clamp(8px, 1.2vw, 16px);
  padding-left: clamp(8px, 1.2vw, 16px);
}

.main-nav li+li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: .9em;
  background: currentColor;
  opacity: .35;
  border-radius: 1px;
}

/* кликабельные зоны и индикатор */
.main-nav a {
  color: inherit;
  /* не перетираем белый цвет из .main-nav */
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  line-height: 1;
  border-radius: 10px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  outline: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.2);
  transform-origin: left;
  transition: transform .18s ease, opacity .18s ease;
}

.main-nav a.is-active,
.main-nav a[aria-current="true"] {
  color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after,
.main-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== Footer nav: чипы без линий, с подсветкой активного ===== */
.site-footer .footer-links {

  gap: .4rem .6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  /* комфортная зона клика */
  border-radius: 10px;
  color: inherit;
  /* берём цвет футера */
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}

/* мягкий hover, без линий под ссылкой */
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  outline: none;
}

/* активный пункт — цветом, без индикаторных линий */
.site-footer .footer-links a.is-active,
.site-footer .footer-links a[aria-current="true"] {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}

/* те же чипы для мобильного списка "Разделы" */
.footer-sections-mobile .sec-list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .18s ease, color .18s ease;
}

.footer-sections-mobile .sec-list a:hover,
.footer-sections-mobile .sec-list a:focus-visible {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  outline: none;
}

@media (max-width: 768px) {

  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
    transition: ease 0.3s;
  }

  nav ul {
    backdrop-filter: saturate(120%) blur(2px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s, opacity 0.35s;
    width: 100%;
  }

  nav ul.open {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }

  section {
    margin: 1rem;
    padding: 1rem;
  }

  #hero {
    padding: 3rem 1rem;
  }

  #hero button {
    width: 100%;
  }

  #about-list {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  #about-list li {
    justify-content: center;
    min-width: unset;
    width: 100%;
  }

  .simple-feature-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .simple-feature-list li {
    border-radius: 10px;
    font-size: 0.98rem;
    justify-content: flex-start;
    max-width: 100%;
    min-width: unset;
    padding: 0.8rem 1rem;
    width: 100%;
  }

  .feature-emoji {
    font-size: 1.6rem;
    margin-right: 0.9rem;
  }

  form {
    max-width: 100%;
    width: 100%;
  }

  input,

  textarea {
    font-size: 1rem;
  }

  /* Footer */


  footer {
    padding: 0.5rem;
  }

}