/* ═══════════════════════════════════════════════════════════
   site.css — общие стили для всех страниц lika.su
   Подключается в каждой странице: <link rel="stylesheet" href="site.css">
═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #faf8f5;
  --surface:      #ffffff;
  --border:       #e8e3dc;
  --text:         #2c2825;
  --muted:        #8a8078;
  --accent:       #c0855a;
  --accent-light: #f5ede4;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; }
body { font-family: "Nunito", sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ─── NAV ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 48px; gap: 4px;
}
.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 600;
  color: var(--text); text-decoration: none;
  margin-right: auto; letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }

.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-item > a:hover,
.nav-item.open > a   { color: var(--text); background: var(--accent-light); }
.nav-item > a.active { color: var(--accent); background: var(--accent-light); }

.nav-item > a .arrow { font-size: 10px; transition: transform .25s; opacity: .45; }
.nav-item.open > a .arrow { transform: rotate(180deg); opacity: 1; }

.dropdown {
  opacity: 0; pointer-events: none;
  position: absolute; top: 100%; left: 0;
  padding-top: 8px; min-width: 210px;
  transition: opacity .15s ease, transform .15s ease;
  transform: translateY(-4px);
}
.dropdown-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.08); overflow: hidden;
}
.nav-item.open .dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

.dropdown a {
  display: block; padding: 11px 18px; font-size: 13.5px;
  color: var(--text); text-decoration: none;
  transition: background .15s, color .15s; border-bottom: 1px solid var(--border);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover,
.dropdown a.active { background: var(--accent-light); color: var(--accent); }

/* ─── CARDS ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 22px;
  text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  border-color: var(--accent);
}
.card .ci { font-size: 26px; margin-bottom: 12px; }
.card h3  { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.card p   { font-size: 13px; color: var(--muted); line-height: 1.55; }

.badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: var(--accent-light); color: var(--accent);
  border-radius: 4px; padding: 1px 6px; vertical-align: middle;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ─── HERO (index) ─────────────────────────────────────────── */
.hero {
  max-width: 900px; margin: 90px auto 70px; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 50px); font-weight: 600; line-height: 1.2; margin-bottom: 18px;
}
.hero-text h1 em { color: var(--accent); font-style: normal; }
.hero-text p { font-size: 15px; color: var(--muted); line-height: 1.75; }

.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.hero-card .icon { font-size: 30px; margin-bottom: 8px; }
.hero-card .ctitle {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .07em; text-transform: uppercase;
}

/* ─── SECTION ──────────────────────────────────────────────── */
.section { max-width: 900px; margin: 0 auto 90px; padding: 0 48px; }
.section-label {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.section h2 { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 600; margin-bottom: 28px; }

/* ─── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); text-align: center;
  padding: 30px 48px; font-size: 13px; color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 720px) {
  nav { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 40px; margin: 50px auto; padding: 0 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 0 20px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}
