/* ─────────────────────────────────────────────────────────────────────
   TUGAN — shared design system for the public site
   Light, warm, easy to read. Burgundy + antique gold, referencing the
   real Volga Tatar tradition of gold-thread embroidery on velvet — one
   ornamental motif (a stylised tulip-and-vine, the classic ornament of
   that craft) is the signature element, used only as a thin divider.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Golos+Text:wght@400;500;600&display=swap');

:root {
  --paper: #FBF7F1;
  --panel: #F4EBDD;
  --wine: #8A2432;
  --wine-soft: rgba(138, 36, 50, 0.08);
  --gold: #A9782B;
  --ink: #2B211B;
  --ink-dim: rgba(43, 33, 27, 0.64);
  --line: rgba(43, 33, 27, 0.14);
  --danger: #B0463A;
  --danger-soft: rgba(176, 70, 58, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1120px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

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

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.wordmark {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; color: var(--ink);
}
.wordmark svg { flex-shrink: 0; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-anno {
  font-family: var(--font-body); font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--ink-dim); margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none; color: var(--ink-dim); font-size: 0.92rem;
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.current { color: var(--wine); }

.nav-toggle {
  display: none; background: none; border: none; color: var(--ink);
  font-size: 1.4rem; cursor: pointer;
}

/* Language switcher */
.lang-switch { display: flex; gap: 4px; font-size: 0.85rem; }
.lang-switch button {
  background: none; border: 1px solid transparent; color: var(--ink-dim);
  padding: 4px 8px; border-radius: var(--radius-s); cursor: pointer; font-family: var(--font-body);
}
.lang-switch button.active { color: var(--wine); border-color: var(--line); }
.lang-switch button:hover { color: var(--wine); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
}

/* ── Ornament divider — the one signature mark ─────────────────────
   A thin repeating tulip-and-vine, the classic motif of Tatar
   gold-thread embroidery, standing in for a section break. Used only
   here — nowhere else — so it stays a mark, not wallpaper. */
.ornament-strip {
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2760%27%20height%3D%2726%27%20viewBox%3D%270%200%2060%2026%27%3E%3Cpath%20d%3D%27M0%2013%20Q15%204%2030%2013%20T60%2013%27%20fill%3D%27none%27%20stroke%3D%27%23A9782B%27%20stroke-width%3D%271%27/%3E%3Cpath%20d%3D%27M30%2013%20C27%209%2027%204%2030%201%20C33%204%2033%209%2030%2013%20Z%27%20fill%3D%27%23A9782B%27/%3E%3Ccircle%20cx%3D%2730%27%20cy%3D%2713%27%20r%3D%271.3%27%20fill%3D%27%23A9782B%27/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 60px 24px;
  opacity: 0.9;
}

.tri-divider { display: flex; align-items: center; gap: 14px; margin: 0; }
.tri-divider::before, .tri-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.tri-divider svg { flex-shrink: 0; color: var(--wine); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-s); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: filter 0.15s, background 0.15s;
}
.btn-primary { background: var(--wine); color: var(--paper); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px; display: flex; flex-direction: column;
}

/* Placeholder for missing photography — honest, on-brand, not a grey box */
.photo-slot {
  aspect-ratio: 4 / 5; border-radius: var(--radius-m); border: 1px solid var(--line);
  background: var(--panel); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .mark { color: var(--gold); opacity: 0.5; }

/* ── Forms ──────────────────────────────────────────────────────── */
label { display: block; font-size: 0.82rem; color: var(--ink-dim); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 13px; color: var(--ink);
  font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--wine); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  font-size: 0.9rem; padding: 10px 14px; border-radius: var(--radius-s); margin-top: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--wine-soft); color: var(--wine); }
.form-status.error { background: var(--danger-soft); color: var(--danger); }

/* ── Next-delivery strip (homepage only) ───────────────────────────── */
.next-delivery-strip { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.next-delivery-strip .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px;
}
.next-delivery-strip .btn { padding: 6px 16px; font-size: 0.82rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 24px; }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.85rem; color: var(--wine); margin: 0 0 12px; font-weight: 600; }
.site-footer a { text-decoration: none; color: var(--ink-dim); }
.site-footer a:hover { color: var(--wine); }
.site-footer .legal { font-size: 0.8rem; color: var(--ink-dim); line-height: 1.8; }
.site-footer .bottom {
  border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.82rem; color: var(--ink-dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
