/* © 2025 Твоё имя — Unauthorized copying prohibited */
/* === Base styles === */
* { box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --text: #1d1f20;
  --muted: #6b7280;
  --brand: #4f46e5;
  --brand-2: #14b8a6;
  --surface: #f3f4f6;
  --border: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --text: #f3f4f6;
    --muted: #a1a1aa;
    --surface: #12161b;
    --border: #1f2937;
  }
}
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* === Header / Nav === */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { .header { background: rgba(11,13,16,0.7); } }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { padding: 8px 10px; border-radius: 8px; }
.nav-links a.active, .nav-links a:hover { background: var(--surface); }
.burger { display: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: transparent; }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; }
  .nav-links.open { display: flex; }
  .burger { display: inline-flex; }
}

/* === Hero === */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 40px 0; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; }
.btn.ghost { border: 1px solid var(--border); }
.hero .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.hero .card small { color: var(--muted); }

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

/* === Sections === */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.card .body { padding: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .grid, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* === Table === */
.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: var(--surface); }
.badge { display: inline-block; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); }

/* === Gallery === */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery img { width: 100%; margin: 0 0 14px; border-radius: 12px; border: 1px solid var(--border); }

/* === Footer === */
.footer { padding: 30px 0 50px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer a { text-decoration: underline; color: inherit; }

/* === Contact form === */
form { display: grid; gap: 12px; }
.input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); }
label { font-weight: 600; }
.helper { color: var(--muted); font-size: 13px; }

/* === Utility === */
.kicker { text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; color: var(--brand-2); font-weight: 800; }
.stroke { -webkit-text-stroke: 1px var(--text); color: transparent; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
