/* =========================================================
   Скотч с логотипом — Ростов-на-Дону
   Базовые стили. Токены цвета/типографики взяты с текущего
   сайта (logostick-don-maker.lovable.app), чтобы адаптация
   была визуально близкой к оригиналу.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #f8fafc;
  --color-fg: #0f172b;
  --color-card: #ffffff;

  --color-primary: #0f172b;
  --color-primary-fg: #f8fafc;

  --color-secondary: #f1f5f9;
  --color-secondary-fg: #0f172b;

  --color-muted: #f1f5f9;
  --color-muted-fg: #62748e;

  --color-accent: #fe6e00;
  --color-accent-fg: #f8fafc;
  --color-accent-soft: rgb(254 110 0 / 10%);
  --color-accent-soft-strong: rgb(254 110 0 / 18%);
  --color-accent-glow: rgb(249 115 22 / 25%);
  --color-accent-glow-30: rgb(254 110 0 / 30%);
  --color-primary-glow-20: rgb(15 23 43 / 20%);

  --color-border: #e2e8f0;
  --color-destructive: #e40014;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container-w: 1280px;
  --container-w-narrow: 800px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shadow-card: 0 1px 2px rgb(15 23 43 / 6%), 0 1px 1px rgb(15 23 43 / 4%);
  --shadow-card-hover: 0 12px 24px -8px rgb(15 23 43 / 12%);

  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 16px;
}
.container-narrow { max-width: var(--container-w-narrow); }

.section { padding-block: 64px; }
.section-lead {
  color: var(--color-muted-fg);
  font-size: 1.0625rem;
  margin-top: 8px;
}
.section-head { margin-bottom: 48px; text-align: center; }
.section-head.centered {
  max-width: 768px;
  margin-inline: auto;
}
.section h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0 20px;
  height: 44px;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
.btn-accent:hover { background: #e56200; }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-fg);
}
.btn-outline:hover { background: var(--color-secondary); }

.btn-lg { height: 48px; padding: 0 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgb(248 250 252 / 80%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgb(226 232 240 / 60%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.9375rem; font-weight: 700; }
.brand-text small { font-size: 0.8125rem; color: var(--color-muted-fg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted-fg);
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-fg); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.phone-link:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--color-accent-soft-strong), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero h1 .accent { color: var(--color-accent); }
.hero .lead {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--color-muted-fg);
  max-width: 52ch;
}
.hero .lead strong { color: var(--color-fg); }
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.hero-actions .btn-accent {
  box-shadow: 0 10px 30px -5px rgb(249 115 22 / 50%);
}
.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 448px;
}
.hero-stats .stat-num {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stats .stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 2px;
}
.hero-media { position: relative; }
.hero-media .glow {
  position: absolute;
  inset: -32px;
  border-radius: 999px;
  background: linear-gradient(to bottom right, var(--color-accent-glow-30), transparent 50%, var(--color-primary-glow-20));
  filter: blur(64px);
}
.hero-media img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero { padding-block: 96px; }
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--color-muted-fg); font-size: 0.9375rem; }

/* ---------- Examples ---------- */
.examples-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.example-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-card);
}
.example-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.example-card figcaption { padding: 20px; }
.example-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.example-card p { color: var(--color-muted-fg); font-size: 0.875rem; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1024px;
  margin-inline: auto;
  counter-reset: step;
}
.process-step .step-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(254 110 0 / 20%);
  margin-bottom: 8px;
}
.process-step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.process-step p { color: var(--color-muted-fg); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 16px;
  height: 16px;
  color: var(--color-muted-fg);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 28px 20px 4px;
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, var(--color-accent-glow), transparent 60%);
}
.cta-banner h2 { position: relative; }
.cta-banner p {
  position: relative;
  margin-top: 12px;
  color: rgb(248 250 252 / 75%);
  max-width: 44ch;
  margin-inline: auto;
}
.cta-banner .btn { position: relative; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding-top: 64px;
  margin-top: 0;
}
.site-footer .brand-icon { background: var(--color-accent); }
.site-footer .brand-text small { color: rgb(248 250 252 / 55%); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 16px;
  color: rgb(248 250 252 / 65%);
  font-size: 0.9375rem;
  max-width: 40ch;
}
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-contacts h4 {
  color: var(--color-primary-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-nav a, .footer-contacts a {
  color: rgb(248 250 252 / 65%);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contacts svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--color-primary-fg); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgb(248 250 252 / 12%);
  color: rgb(248 250 252 / 55%);
  font-size: 0.875rem;
}
.footer-bottom a:hover { color: var(--color-primary-fg); }

/* ---------- Placeholder page (stub content for pages built later) ---------- */
.page-stub {
  padding-block: 96px;
  text-align: center;
}
.page-stub h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.page-stub p { color: var(--color-muted-fg); max-width: 48ch; margin-inline: auto; }

/* ---------- Toast (temporary placeholder for order buttons) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
  max-width: min(90vw, 360px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }

  .header-actions .phone-link { display: none; }
  .header-actions .btn-accent { display: none; }
  .nav-toggle { display: flex; }

  .hero-stats { gap: 28px; }
}

@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Article pages (Руководство / Политика) ---------- */
.page-intro { padding-block: 56px 24px; }
.eyebrow {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-intro h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-intro .lead {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--color-muted-fg);
  max-width: 60ch;
}
.page-intro .meta {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.guide-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.guide-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.guide-card-icon svg { width: 20px; height: 20px; }
.guide-card h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.guide-card p {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .guide-cards { grid-template-columns: 1fr; }
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  color: var(--color-muted-fg);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.article-body p strong { color: var(--color-fg); }
.article-body ul.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-muted-fg);
  font-size: 1rem;
  line-height: 1.6;
}
.article-body ul.plain-list li { padding-left: 18px; position: relative; }
.article-body ul.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-muted-fg);
}

.checklist-box {
  margin-top: 32px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.checklist-box h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 16px; }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-fg);
}
.checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Price table (страница «Цены») ---------- */
.price-table-wrap {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.price-table th,
.price-table td {
  padding: 18px 24px;
  text-align: left;
  white-space: nowrap;
}
.price-table th {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  border-bottom: 1px solid var(--color-border);
}
.price-table td {
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:first-child { font-weight: 600; }
.price-table th:nth-child(4), .price-table td:nth-child(4),
.price-table th:nth-child(5), .price-table td:nth-child(5) {
  text-align: right;
}
.price-table td:last-child { font-weight: 700; }

.badge {
  display: inline-flex;
  margin-left: 10px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Мобильные карточки — показываются вместо таблицы ниже 768px */
.price-cards { display: none; flex-direction: column; gap: 12px; }
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 20px;
}
.price-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.price-card-title { font-size: 1.375rem; font-weight: 700; }
.price-card-size { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 2px; }
.price-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.price-stat-label { font-size: 0.75rem; color: var(--color-muted-fg); margin-bottom: 2px; }
.price-stat-value { font-weight: 600; }
.price-card.is-popular .price-stat-value.total,
.price-card .price-stat-value.total { color: var(--color-accent); }

.price-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.price-cta h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.price-cta p { color: var(--color-muted-fg); font-size: 0.9375rem; }
.price-note {
  margin-top: 16px;
  color: var(--color-muted-fg);
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .price-table-wrap { display: none; }
  .price-cards { display: flex; }
}

@media (max-width: 640px) {
  .price-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =========================================================
   Попап заявки (форма + окно успеха)
   ========================================================= */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(15 23 43 / 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.popup-window {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 250ms ease, transform 250ms ease;
  box-shadow: var(--shadow-card-hover);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-muted-fg);
  border-radius: var(--radius-sm);
}
.popup-close:hover { background: var(--color-secondary); color: var(--color-fg); }
.popup-close svg { width: 20px; height: 20px; }

.form-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 32px;
}
.form-intro {
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.form-description {
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  margin-top: 4px;
}
.form-description:empty { display: none; margin: 0; }

.form-1-click .form-header,
.form-1-click .form-intro,
.form-1-click .form-description {
  text-align: center;
}
.form-1-click .form-intro {
  color: var(--color-accent);
  font-weight: 600;
}
.form-1-click .field-optional { display: none; }

#ajax-contact-form { margin-top: 20px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--color-card);
  color: var(--color-fg);
  transition: border-color var(--transition);
}
.form-field textarea { resize: vertical; min-height: 88px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--color-muted-fg); }

.field-error {
  color: var(--color-destructive);
  font-size: 0.8125rem;
  margin-top: 6px;
}
.hidden { display: none !important; }

/* Honeypot — визуально скрытые поля-ловушки для ботов */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.btn-block { width: 100%; }

.form-consent {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
}
.form-consent a { text-decoration: underline; }
.form-consent a:hover { color: var(--color-fg); }

/* Окно "Спасибо" */
.popup-window-success { text-align: center; }
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 28px; height: 28px; }
.popup-window-success h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.popup-window-success p { color: var(--color-muted-fg); font-size: 0.9375rem; }
