/* =============================================
   Невский пуф - Design System
   «Янтарный уют» - тёплый, живой, контрастный
   ============================================= */

:root {
  --ink: #1c1410;
  --ink-muted: #5c4a3f;
  --ink-faint: #8a7366;
  --mist: #fff1e8;
  --mist-deep: #f0d5c4;
  --paper: #fff7f1;
  --surface: #ffffff;
  --accent: #ff5a1f;
  --accent-hover: #e04512;
  --accent-deep: #c23a0e;
  --accent-soft: #ffe3d4;
  --accent-glow: rgba(255, 90, 31, 0.42);
  --teal: #0f8a78;
  --teal-hover: #0c6f61;
  --teal-soft: #d8f5ef;
  --sun: #ffb347;
  --line: rgba(28, 20, 16, 0.1);
  --line-strong: rgba(28, 20, 16, 0.16);
  --shadow-soft: 0 20px 50px -22px rgba(28, 20, 16, 0.28);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(255, 90, 31, 0.18), transparent 55%),
    radial-gradient(900px 520px at 92% 4%, rgba(255, 179, 71, 0.22), transparent 50%),
    radial-gradient(700px 420px at 70% 90%, rgba(15, 138, 120, 0.1), transparent 55%),
    linear-gradient(180deg, #ffe8da 0%, var(--paper) 32%, #fff9f5 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.font-display {
  font-family: var(--font-display);
}

/* Утилиты вместо Tailwind CDN */
.hidden {
  display: none !important;
}

.icon-4 {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-5 {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-6 {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-8 {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.page-section {
  padding: 2.5rem 0 3.5rem;
}

@media (min-width: 640px) {
  .page-section {
    padding: 3.5rem 0 4.5rem;
  }
}

.page-intro--spaced {
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .page-intro--spaced {
    margin-bottom: 2.5rem;
  }
}

.container-site {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container-site { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .container-site { padding-inline: 2rem; }
}

.section-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.05rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  /* Вертикальный градиент - без цветных «полосок» слева/справа на круглой кнопке */
  border: 0;
  background: linear-gradient(180deg, #ff6f38 0%, var(--accent) 55%, #e34e16 100%);
  color: #fff;
  /* Без широкого glow - на светлом фоне выглядел как грязная обводка */
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.12);
}

.btn--primary:hover {
  border: 0;
  background: linear-gradient(180deg, #ff7d4a 0%, var(--accent-hover) 55%, #d44512 100%);
  box-shadow: 0 4px 14px rgba(28, 20, 16, 0.16);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #0f0b09;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.btn--teal {
  background: linear-gradient(135deg, #19a894 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(15, 138, 120, 0.45);
}

.btn--teal:hover {
  background: var(--teal-hover);
}

.btn--light {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 10px 24px -12px rgba(28, 20, 16, 0.25);
}

.btn--light:hover {
  background: #fff4ec;
  color: var(--accent-hover);
}

.page-home main {
  padding-top: 0;
}

.page-inner main {
  padding-top: var(--header-h);
}

.page-intro {
  padding: 2.5rem 0 1rem;
}

.page-intro__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-intro__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.page-intro--center {
  text-align: center;
}

.page-intro--center .page-intro__lead {
  margin-inline: auto;
}

.legal-content,
.content-prose {
  max-width: 42rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-content h2,
.content-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.legal-content h2:first-child,
.content-prose h2:first-child,
.legal-content > :first-child,
.content-prose > :first-child {
  margin-top: 0;
}

.legal-content p,
.content-prose p,
.legal-content ul,
.content-prose ul {
  margin: 0 0 0.9rem;
  color: var(--ink-muted);
}

.legal-content ul,
.content-prose ul {
  padding-left: 1.25rem;
}

.legal-content li,
.content-prose li {
  margin-bottom: 0.35rem;
}

.legal-content strong,
.content-prose strong {
  color: var(--ink);
  font-weight: 650;
}

.legal-content a,
.content-prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Inline links in page copy */
a.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a.text-link:hover {
  color: var(--teal-hover);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise-in 0.9s var(--ease-out) both;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    animation: none !important;
  }
  .btn:hover { transform: none; }
}
