/* Общий каркас сайта: типографика, шапка, кнопки, футер.
   На страницах языков этот файл подключается ПЕРЕД theme.css конкретного языка:
   дальше theme.css переопределяет палитру и детали, поэтому внешний вид лендингов
   остаётся прежним. На главной и (частично) на юр.страницах — это база. */

:root {
  --sand: #FBF7EF;
  --sand-2: #F2EADC;
  --ink: #2A2118;
  --muted: #7C6E5E;
  --gold: #B8862B;
  --gold-deep: #8C6318;
  --jade: #16706A;
  --saffron: #E08A2C;
  --line: rgba(42, 33, 24, .14);
  --maxw: 1140px;
  --accent: var(--gold);
  --serif: "Lora", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand .dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.brand .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .35;
}

.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -18px rgba(42, 33, 24, .55); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.nav-cta { padding: 10px 16px; font-size: 13.5px; }

/* ---------- Футер ---------- */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  padding: 54px 0 36px;
  margin-top: 0;
}

footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

footer h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}

footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 5px 0; }

.legal {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  footer .cols { grid-template-columns: 1fr; }
}
