/* ============================================================
   Fashion Group — основной стиль сайта
   Без внешних зависимостей: только системные шрифты.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-elev: #ffffff;
  --fg: #10131a;
  --fg-muted: #5b6472;
  --border: #e4e7ee;
  --border-strong: #d3d8e3;
  --accent: #5457d6;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(84, 87, 214, 0.09);
  --shadow: 0 1px 2px rgba(16, 19, 26, 0.04), 0 12px 32px -12px rgba(16, 19, 26, 0.12);
  --shadow-lg: 0 24px 60px -24px rgba(16, 19, 26, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-soft: #11141b;
    --bg-elev: #141820;
    --fg: #eef1f7;
    --fg-muted: #9aa3b5;
    --border: #222836;
    --border-strong: #2e3647;
    --accent: #8b8ff5;
    --accent-2: #b794ff;
    --accent-soft: rgba(139, 143, 245, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-elev);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */

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

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 48px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--fg-muted);
  max-width: 62ch;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--fg-muted);
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav a:hover { color: var(--fg); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(46% 46% at 22% 32%, rgba(84, 87, 214, 0.20), transparent 70%),
    radial-gradient(40% 40% at 78% 18%, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 { max-width: 19ch; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(84, 87, 214, 0.8);
}
.btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(84, 87, 214, 0.9); }

.btn--ghost {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card { color: inherit; display: block; }
a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--fg-muted); font-size: 0.96rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.94rem;
}

/* ---------- Feature list ---------- */

.features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--fg-muted); font-size: 0.94rem; margin: 0; }

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}

/* ---------- App page ---------- */

.app-hero {
  padding: 64px 0 48px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.app-hero-top {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.app-icon-lg {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  flex: 0 0 auto;
}

.app-hero h1 { margin-bottom: 8px; }
.app-hero .lead { margin-bottom: 0; }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--fg); }

/* ---------- Placeholders ---------- */

.placeholder-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-elev);
}

.placeholder-box h3 { margin-bottom: 8px; }
.placeholder-box p { color: var(--fg-muted); margin: 0; }

.shots {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.shot {
  aspect-ratio: 9 / 16;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  color: var(--fg-muted);
  font-size: 0.86rem;
  background: var(--bg-soft);
}

/* ---------- Document list ---------- */

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

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--fg);
  font-weight: 500;
}
.doc-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.doc-list a span:last-child { color: var(--fg-muted); }

/* ---------- Legal documents ---------- */

.legal {
  max-width: 840px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }

.legal h2 {
  font-size: 1.18rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.legal h3 {
  font-size: 1.02rem;
  margin: 26px 0 10px;
}

.legal p,
.legal li { color: var(--fg); }

.legal ol,
.legal ul { padding-left: 24px; margin: 0 0 16px; }
.legal li { margin-bottom: 10px; }

.doc-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  padding: 18px 22px;
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.9rem;
}
.doc-meta dt { color: var(--fg-muted); }
.doc-meta dd { margin: 0; }

.legal-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.93rem;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--fg); }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--fg-muted);
  font-size: 0.86rem;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--fg); }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- 404 ---------- */

.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

/* ---------- Utilities ---------- */

.text-muted { color: var(--fg-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-inner { min-height: 60px; }
  .nav a { padding: 7px 9px; font-size: 0.88rem; }
  .app-hero { padding: 44px 0 36px; }
  .app-icon-lg { width: 84px; height: 84px; border-radius: 20px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .doc-meta { grid-template-columns: 1fr; }
  .doc-meta dt { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .breadcrumbs { display: none; }
  body { background: #fff; color: #000; }
}
