/* ==========================================================================
   ЗаполнAI — front-end
   Стилистика повторяет референс: тёплая «бумажная» палитра, Georgia,
   синий акцент на CTA, карточки с мягкой тенью и тонкой рамкой.
   ========================================================================== */

/* ── Токены ──────────────────────────────────────────────────────────────── */
:root {
  --ink: #2c1a08;
  --ink-muted: #7a5c3a;
  --sand: #b89a70;
  --line: #e8dcc8;
  --line-strong: #c8b89a;

  --paper: #ffffff;
  --cream: #fdf8f0;
  --cream-2: #f5ede0;

  --blue: #3b6fd4;
  --blue-dark: #2f5bbf;
  --blue-soft: #f0f4ff;
  --blue-disabled: #a0b8e8;

  --green: #1e5b4f;
  --green-soft: #eaf2ee;
  --green-chip: #cfe3da;

  --danger: #a03020;
  --danger-deep: #7a2010;
  --danger-soft: #fdf0ec;
  --danger-line: #e8c0b0;

  --radius-card: 16px;
  --shadow-card: 0 1px 8px rgba(100, 60, 20, 0.06);
  --shadow-lift: 0 10px 30px rgba(100, 60, 20, 0.10);

  --font: Georgia, 'Times New Roman', serif;
  --container: 1120px;
}

/* ── Reset / база ────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--blue-dark); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo:hover { color: inherit; }

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--green-chip);
  border-radius: 11px;
}

/* Знак: векторная картинка из assets/img, показывается как нарисована (без фильтров) */
.logo__mark img {
  display: block;
  width: 30px;
  height: auto;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }

.logo__name {
  font-family: var(--font);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green);
}
.logo__name em { font-style: normal; color: var(--blue); }

.logo__tag {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 0.18rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--blue);
  transition: right 0.25s ease;
}
.site-nav a:hover,
.site-nav a:focus { color: var(--blue); }
.site-nav a:hover::after,
.site-nav a:focus::after { right: 0; }
.site-nav a.is-active { color: var(--ink); font-weight: 600; }
.site-nav a.is-active::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--blue);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: background 0.2s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ── Страница / контент ──────────────────────────────────────────────────── */
.site-main { padding-bottom: 3rem; }

.page-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}
.page-head h1 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.page-head p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }

.section-stack { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.section-stack > * + * { margin-top: 1.25rem; }

/* ── Футер ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--line);
  background: var(--cream);
  margin-top: 2.5rem;
  padding: 2.25rem 0 1.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer__brand p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  max-width: 30ch;
  line-height: 1.6;
}
.site-footer h4 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.42rem; }
.site-footer li a,
.site-footer li span { font-size: 0.83rem; color: var(--ink-muted); }
.site-footer li a:hover { color: var(--blue); }

.site-footer__bottom {
  margin: 1.75rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 0.5px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--sand);
}
.site-footer__bottom a { color: var(--sand); }
.site-footer__bottom a:hover { color: var(--blue); }

/* ==========================================================================
   Форма (классы .rfq-* — повторяют референс один в один)
   ========================================================================== */
.rfq-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.rfq-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  font-family: Georgia, 'Times New Roman', serif;
  background: transparent;
  color: #2c1a08;
}

/* ── Hero ── */
.rfq-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 1.75rem;
  background: #fff;
  border: 0.5px solid #e8dcc8;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(100, 60, 20, 0.06);
}
.rfq-hero-text { flex: 1; }
.rfq-hero h1 {
  font-size: 1.65rem;
  font-weight: 500;
  color: #2c1a08;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}
.rfq-hero p {
  font-size: 0.9rem;
  color: #7a5c3a;
  line-height: 1.6;
  font-family: Georgia, serif;
}
.rfq-hero p strong { color: #3b6fd4; font-weight: 600; }
.rfq-hero-ded { width: 150px; flex-shrink: 0; }
.rfq-hero-ded img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(100, 60, 20, 0.10));
}

/* ── Form card ── */
.rfq-card {
  background: #fff;
  border: 0.5px solid #e8dcc8;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(100, 60, 20, 0.06);
  margin-bottom: 1.25rem;
}

/* ── Step label ── */
.rfq-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b89a70;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  font-family: Georgia, serif;
}
.rfq-step-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2c1a08;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}
.rfq-step { margin-bottom: 1.75rem; }
.rfq-step:last-of-type { margin-bottom: 0; }

/* ── Drop zone ── */
.rfq-drop-zone {
  border: 1px dashed #c8b89a;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fdf8f0;
  position: relative;
}
.rfq-drop-zone:hover,
.rfq-drop-zone.over,
.rfq-drop-zone:focus-within {
  border-color: #3b6fd4;
  background: #f0f4ff;
}
.rfq-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.rfq-dz-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.rfq-dz-text { font-size: 0.85rem; color: #7a5c3a; font-family: Georgia, serif; }
.rfq-dz-hint { font-size: 0.75rem; color: #b89a70; margin-top: 0.2rem; font-family: Georgia, serif; }
.rfq-dz-chosen {
  font-size: 0.85rem;
  color: #3b6fd4;
  font-weight: 500;
  margin-top: 0.3rem;
  display: none;
  font-family: Georgia, serif;
  word-break: break-word;
}
.rfq-drop-zone.has-files { text-align: left; }
.rfq-dz-files {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rfq-dz-file {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 0.5px solid #cddbf5;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
}
.rfq-dz-file-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rfq-dz-file-size {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: #b89a70;
}
.rfq-dz-file-remove {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f2e8da;
  color: #7a5c3a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.rfq-dz-file-remove:hover,
.rfq-dz-file-remove:focus-visible {
  background: #a03020;
  color: #fff;
}
.rfq-dz-total {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: #b89a70;
}
.rfq-file-error {
  font-size: 0.78rem;
  color: #a03020;
  margin-top: 0.4rem;
  display: none;
  font-family: Georgia, serif;
}

/* ── Select ── */
.rfq-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0.5px solid #e8dcc8;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2c1a08;
  background: #fdf8f0;
  appearance: none;
  -webkit-appearance: none;
  font-family: Georgia, serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b89a70' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}
.rfq-select:focus { outline: none; border-color: #3b6fd4; }

/* ── Input (e-mail) ── */
.rfq-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0.5px solid #e8dcc8;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2c1a08;
  background: #fdf8f0;
  font-family: Georgia, serif;
}
.rfq-input::placeholder { color: #b89a70; }
.rfq-input:focus { outline: none; border-color: #3b6fd4; }
.rfq-file-error + .rfq-input,
.rfq-input + .rfq-file-error { margin-top: 0.4rem; }

/* ── Textarea ── */
.rfq-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0.5px solid #e8dcc8;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #2c1a08;
  background: #fdf8f0;
  resize: vertical;
  min-height: 76px;
  font-family: Georgia, serif;
  line-height: 1.55;
}
.rfq-textarea::placeholder { color: #b89a70; }
.rfq-textarea:focus { outline: none; border-color: #3b6fd4; }
.rfq-textarea--short { min-height: 62px; font-size: 0.85rem; }

/* ── Переключатель «есть шаблон / нет шаблона» ── */
.rfq-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  margin-bottom: 0.75rem;
  background: #fdf8f0;
  border: 0.5px solid #e8dcc8;
  border-radius: 999px;
}
.rfq-tab {
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7a5c3a;
  font-size: 0.8rem;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rfq-tab:hover { color: #3b6fd4; }
.rfq-tab.is-active {
  background: #3b6fd4;
  color: #fff;
  font-weight: 500;
}
.rfq-tab:focus-visible { outline: 2px solid #3b6fd4; outline-offset: 2px; }

/* ── Режим «таблица с нуля»: свои колонки ── */
.rfq-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: #7a5c3a;
  font-family: Georgia, serif;
}
#tmpl-auto .rfq-dz-hint { margin-top: 0.6rem; }

/* ── Divider ── */
.rfq-divider {
  height: 0.5px;
  background: #e8dcc8;
  margin: 1.5rem 0;
}

/* ── Button ── */
.rfq-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #3b6fd4;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1.75rem;
  transition: background 0.2s, transform 0.1s;
  font-family: Georgia, serif;
  letter-spacing: 0.01em;
}
.rfq-btn:hover:not(:disabled) {
  background: #2f5bbf;
  transform: translateY(-1px);
}
.rfq-btn:disabled { background: #a0b8e8; cursor: not-allowed; }

/* ── Progress ── */
.rfq-progress-wrap { display: none; margin-top: 1.25rem; }
.rfq-progress-bg {
  height: 3px;
  background: #e8dcc8;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.rfq-progress-fill {
  height: 100%;
  background: #3b6fd4;
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}
.rfq-progress-label {
  font-size: 0.82rem;
  color: #7a5c3a;
  text-align: center;
  font-family: Georgia, serif;
}
.rfq-progress-sub {
  font-size: 0.72rem;
  color: #b89a70;
  text-align: center;
  margin-top: 0.2rem;
  font-family: Georgia, serif;
}

/* ── Error box ── */
.rfq-submit-error {
  display: none;
  background: #fdf0ec;
  border: 0.5px solid #e8c0b0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #7a2010;
  margin-top: 1rem;
  font-family: Georgia, serif;
}

/* Подсказка вместо ошибки, если сервис временно недоступен */
.rfq-submit-error--hint {
  background: var(--blue-soft, #eef3fc);
  border-color: #d5e0f8;
  color: #2c4a80;
}

/* ── Tips ── */
.rfq-tips {
  background: #f5ede0;
  border: 0.5px solid #e8dcc8;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
}
.rfq-tips-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b89a70;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  font-family: Georgia, serif;
}
.rfq-tips ul { list-style: none; padding: 0; }
.rfq-tips ul li {
  font-size: 0.83rem;
  color: #7a5c3a;
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
  font-family: Georgia, serif;
  line-height: 1.5;
}
.rfq-tips ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #b89a70;
}

/* ── Дополнительные элементы внутри формы ── */
.rfq-consent {
  font-size: 0.74rem;
  color: #b89a70;
  text-align: left;
  margin-top: 0.85rem;
  font-family: Georgia, serif;
  line-height: 1.5;
}
.rfq-consent a { color: #7a5c3a; text-decoration: underline; }
.rfq-consent a:hover { color: #3b6fd4; }
.rfq-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  cursor: pointer;
}
.rfq-consent__label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0.1rem 0 0;
  accent-color: #3b6fd4;
  cursor: pointer;
}

.rfq-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 0.5px dashed #e8dcc8;
  border-radius: 10px;
  background: #fdf8f0;
  font-size: 0.78rem;
  color: #7a5c3a;
  line-height: 1.5;
  font-family: Georgia, serif;
}
.rfq-note b { color: #2c1a08; font-weight: 600; }

/* ── Карточка-секция внутренних страниц ── */
.card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.card p + p { margin-top: 0.65rem; }
.card p, .card li {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.card p strong { color: var(--ink); }

/* ── Тарифы ── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.plans--single {
  grid-template-columns: minmax(0, 32rem);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.plan--featured { border: 1.5px solid var(--blue); box-shadow: var(--shadow-lift); }
.plan__badge {
  position: absolute;
  top: -0.65rem;
  left: 1.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.plan__price {
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1.1;
}
.plan__price small {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 400;
}
.plan__desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  line-height: 1.55;
}
.plan ul {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}
.plan li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sand);
}
.plan .btn,
.plan .btn-ghost,
.plan .rfq-btn {
  margin-top: auto;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font);
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  border: 0.5px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ── FAQ (accordion) ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 0.5px solid var(--line);
  padding: 0.95rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--line);
  border-radius: 50%;
  color: var(--sand);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
  border-color: var(--blue);
  color: var(--blue);
}
.faq-item[open] summary { color: var(--blue); }
.faq-answer {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.7;
  padding-top: 0.6rem;
  max-width: 62ch;
}
.faq-answer a { text-decoration: underline; }
.faq-answer p + p,
.faq-answer ul + p,
.faq-answer p + ul { margin-top: 0.55rem; }
.faq-answer ul { list-style: none; margin: 0.5rem 0; }
.faq-answer li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.28rem;
}
.faq-answer li:last-child { margin-bottom: 0; }
.faq-answer li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sand);
}

/* ── Как это работает ── */
.steps { display: flex; flex-direction: column; }
.how-step {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 0.5px solid var(--line);
}
.how-step:last-child { border-bottom: none; padding-bottom: 0; }
.how-step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 0.5px solid #d5e0f8;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}
.how-step h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.how-step p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.65; }

/* ── Текстовые страницы ── */
.prose h2 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.75;
}
.prose p + p, .prose ul + p { margin-top: 0.6rem; }
.prose ul { list-style: none; margin: 0.5rem 0; }
.prose ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}
.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sand);
}
.prose a { text-decoration: underline; }

/* ── Предпросмотр / таблица ── */
.preview-table-wrap {
  overflow-x: auto;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 560px;
}
table.preview-table th,
table.preview-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 0.5px solid var(--line);
  white-space: nowrap;
}
table.preview-table th {
  background: var(--cream);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
table.preview-table td { color: var(--ink); }
table.preview-table tbody tr:nth-child(even) td { background: #fffdf8; }
table.preview-table tbody tr.is-masked td { color: var(--sand); filter: blur(4px); user-select: none; }

/* Пометки: цвета те же, что в готовом .xlsx */
table.preview-table tbody tr td.is-missing { background: #ffc7ce; }
table.preview-table tbody tr td.is-high { background: #e2efda; }
table.preview-table tbody tr td.is-doubt { background: #fff2cc; }
table.preview-table tbody tr td.is-low { background: #f8cbad; }
table.preview-table tbody tr.is-masked td.is-missing,
table.preview-table tbody tr.is-masked td.is-high,
table.preview-table tbody tr.is-masked td.is-doubt,
table.preview-table tbody tr.is-masked td.is-low { background: transparent; }

.preview-marks {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.preview-marks__legend,
.preview-marks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.preview-marks__legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.preview-marks__list { margin-top: 0.55rem; flex-direction: column; }
.preview-marks__list li { max-width: 72ch; }
.mark-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
}
.mark-dot--high { background: #e2efda; }
.mark-dot--mid,
.mark-dot--doubt { background: #fff2cc; }
.mark-dot--low { background: #f8cbad; }
.mark-dot--missing { background: #ffc7ce; }

/* ── Предпросмотр .xlsx: готовый лист, показанный в HTML ──────────────────
   Не своя таблица из строк ответа, а сам файл: размеры строк и столбцов,
   объединения, рамки, заливки, шрифты и форматы чисел приходят inline —
   здесь только рамка окна, вкладки листов и размытие закрытых ячеек. */
.xlsx-preview {
  margin-top: 0.6rem;
  border: 0.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.xlsx-preview-empty {
  padding: 1.2rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.xlsx-tabbar {
  display: flex;
  gap: 0.15rem;
  padding: 0.3rem 0.45rem 0;
  background: var(--cream-2);
  border-bottom: 0.5px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: thin;
}
.xlsx-tab {
  flex: 0 0 auto;
  padding: 0.35rem 0.85rem 0.4rem;
  border: 0.5px solid transparent;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.xlsx-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.xlsx-tab.is-active {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--paper);
}
.xlsx-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.xlsx-pane { display: none; }
.xlsx-pane.is-active { display: block; }

/* Окно листа: прокрутка в обе стороны, номера строк и колонок закреплены */
.xlsx-scroll {
  max-height: 68vh;
  overflow: auto;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table.xlsx-grid {
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  line-height: 1.25;
}
table.xlsx-grid th,
table.xlsx-grid td {
  padding: 0 3px;
  margin: 0;
  font-weight: normal;
  text-align: left;
  vertical-align: bottom;
}
table.xlsx-grid td.xlsx-cell { overflow: hidden; }

/* Служебные шапки Excel: серая полоса с номерами строк и буквами столбцов */
table.xlsx-grid .xlsx-colhead,
table.xlsx-grid .xlsx-rowhead,
table.xlsx-grid .xlsx-corner {
  background: var(--cream-2);
  border: 0.5px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
  vertical-align: middle;
  padding: 0 2px;
  user-select: none;
}
table.xlsx-grid .xlsx-colhead {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 20px;
}
table.xlsx-grid .xlsx-rowhead {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 46px;
}
table.xlsx-grid .xlsx-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
}

/* Закрытые до оплаты данные: текст размыт, рамки и заливки остаются */
.xlsx-cell .xlsx-mask {
  display: inline-block;
  filter: blur(3.5px);
  opacity: 0.65;
  user-select: none;
  letter-spacing: 0.02em;
}

/* Поля шаблона: подпись → значение, цвета те же, что в .xlsx */
.preview-fields {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--ink);
}
.preview-fields__title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.preview-fields__list { margin: 0.6rem 0 0; padding: 0; }
.preview-fields__row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.25rem 0.9rem;
  padding: 0.3rem 0;
  border-top: 0.5px solid var(--line);
}
.preview-fields__row:first-child { border-top: none; }
.preview-fields__row dt { color: var(--ink-muted); }
.preview-fields__value {
  margin: 0;
  padding: 0 0.3rem;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.preview-fields__value.is-high { background: #e2efda; }
.preview-fields__value.is-missing { background: #ffc7ce; }
.preview-fields__value.is-doubt { background: #fff2cc; }
.preview-fields__value.is-low { background: #f8cbad; }

/* ── Таблица примеров цены (pricing.html) ── */
.price-table-wrap { overflow-x: auto; margin-top: 0.9rem; -webkit-overflow-scrolling: touch; }
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.price-table caption { text-align: left; }
table.price-table th,
table.price-table td {
  padding: 0.6rem 0.6rem;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 0.5px solid var(--line);
}
table.price-table thead th {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.price-table tbody th { font-weight: 600; white-space: nowrap; }
table.price-table .total,
table.price-table .save { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.price-table .total { font-weight: 700; }
table.price-table .save { color: var(--green); }
table.price-table tbody tr:last-child th,
table.price-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  table.price-table { font-size: 0.8rem; }
  table.price-table th,
  table.price-table td { padding: 0.55rem 0.35rem; }
  table.price-table .calc { display: none; }
}

.preview-rules {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 0.5px solid var(--line);
}
.preview-rules h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.preview-rules p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.6; }
.preview-rules__list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.preview-rules__list li { margin-bottom: 0.25rem; }

.service-goal { margin-top: 1.25rem; }
.service-goal h2 { margin-bottom: 0.5rem; }
.service-goal p { max-width: 72ch; color: var(--ink-muted); line-height: 1.65; }
.service-goal__list {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  max-width: 72ch;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.service-goal__list li { margin-bottom: 0.3rem; }

.preview-locked {
  position: relative;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--cream);
  border: 0.5px solid var(--line);
  text-align: center;
}
.preview-locked h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.preview-locked p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.preview-locked .pay-info {
  max-width: 52ch;
  margin: 0 auto 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #fff;
  border: 0.5px dashed var(--line-strong);
  text-align: left;
}
.preview-locked .pay-info p { margin: 0 0 0.4rem; max-width: none; }
.preview-locked .pay-info p:last-child { margin-bottom: 0; }
.preview-locked .btn,
.preview-locked .btn-ghost { margin: 0.2rem; }

.preview-download {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 0.5px solid var(--line);
  text-align: center;
}
.preview-download h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.preview-download p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 auto 0.9rem;
  line-height: 1.6;
}
.preview-download .btn { margin-top: 0.15rem; }

/* ── Служебное ── */
.notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 0.5px dashed var(--line-strong);
  background: var(--cream);
  font-size: 0.79rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.notice--demo { border-color: #d5e0f8; background: var(--blue-soft); color: #2c4a80; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Анимации появления (класс .js ставится в <head>, чтобы без JS контент был виден) ── */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Мобильное меню ── */
.mobile-nav {
  display: none;
  border-top: 0.5px solid var(--line);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.4rem 1.25rem 1rem; }
.mobile-nav li:last-child { margin-top: 0.7rem; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.mobile-nav a.is-active { color: var(--blue); font-weight: 600; }
.mobile-nav .nav-cta {
  border-bottom: none;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
}

/* ── Адаптив ── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: inline-flex; }
  .plans { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 60px; }
  .logo__mark { width: 32px; height: 32px; border-radius: 10px; }
  .logo__mark img { width: 26px; }
  .logo__name { font-size: 1.15rem; }
  .logo__tag { font-size: 0.55rem; letter-spacing: 0.1em; }
  .card { padding: 1.4rem; }
  .page-head { padding-top: 1.75rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer__bottom { flex-direction: column; }
  .how-step { gap: 0.8rem; }
}

@media (max-width: 520px) {
  .rfq-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .rfq-hero-ded { width: 100px; }
  .rfq-card { padding: 1.4rem; }
  .rfq-wrap { padding: 1.5rem 1rem 2.5rem; }
  .rfq-step-title { font-size: 0.92rem; }
  .rfq-tabs { display: flex; width: 100%; }
  .rfq-tab { flex: 1 1 auto; padding: 0.4rem 0.45rem; font-size: 0.73rem; }
  .preview-locked { padding: 1.2rem 1rem; }
}

/* ── Доступность: меньше движения ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js .reveal { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .preview-locked, .preview-download, .rfq-btn { display: none !important; }
}

/* ==========================================================================
   Внутренние страницы: заголовок, сетки, CTA-полоса
   ========================================================================== */
.rfq-card,
#rfq-form,
.anchor { scroll-margin-top: 92px; }

.page-hero {
  padding: 2.75rem 0 0.5rem;
  max-width: 720px;
}
.page-hero h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.page-hero p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 58ch;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}
.page-wrap--narrow { max-width: 760px; }

.section-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.stack > * + * { margin-top: 1.25rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.mini-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.mini-card p { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.6; }
.mini-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 0.5px solid #d5e0f8;
  font-size: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 0.5px solid var(--line);
  background: var(--cream);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.tag--blue { border-color: #d5e0f8; background: var(--blue-soft); color: #2c4a80; }
.tag--green { border-color: #cfe2d9; background: var(--green-soft); color: var(--green); }

.cta-band {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  border: 0.5px solid #d5e0f8;
  background: var(--blue-soft);
  text-align: center;
}
.cta-band h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.cta-band p {
  font-size: 0.88rem;
  color: #2c4a80;
  max-width: 52ch;
  margin: 0 auto 1.1rem;
  line-height: 1.6;
}
.cta-band .btn,
.cta-band .btn-ghost { margin: 0.2rem; }

/* ── Контакты ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-card {
  display: block;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-card);
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
  color: inherit;
}
.contact-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.35rem;
}
.contact-card__value {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
  word-break: break-word;
}
.contact-card p { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.55; }

/* ── Предпросмотр ── */
.preview-head { margin-bottom: 1.4rem; padding-top: 2.25rem; }
.preview-head h1 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.preview-head p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.preview-meta span {
  padding: 0.3rem 0.7rem;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.preview-meta b { color: var(--ink); font-weight: 600; }

.preview-actions { margin-top: 1rem; }

/* ── Мелкие утилиты ── */
.text-muted { color: var(--ink-muted); }
.text-small { font-size: 0.82rem; line-height: 1.6; color: var(--ink-muted); }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.center { text-align: center; }
.updated { font-size: 0.78rem; color: var(--sand); }

@media (max-width: 760px) {
  .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 1.9rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .preview-head { padding-top: 1.6rem; }
  .cta-band { padding: 1.4rem; }
  .rfq-card, #rfq-form, .anchor { scroll-margin-top: 78px; }
}



