/* Tandyr delivery - public website */

:root {
  --bg: #121214;
  --bg-soft: #1a1a1e;
  --surface: #1e1e24;
  --surface-2: #26262e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #a8adb8;
  --accent: hsl(354, 84%, 57%);
  --accent-2: hsl(339, 90%, 51%);
  --accent-grad: linear-gradient(135deg, hsl(354, 84%, 57%) 0%, hsl(339, 90%, 51%) 100%);
  --green: hsl(150, 70%, 55%);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 20px;
}

.main-nav { display: none; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.header-phone-text { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(900px 380px at 78% -8%, rgba(237, 53, 72, 0.22), transparent 62%),
    radial-gradient(700px 320px at 5% 0%, rgba(255, 138, 0, 0.10), transparent 60%);
}

.hero h1 {
  font-size: clamp(28px, 6.2vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.8px;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, opacity .2s ease;
}

.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px rgba(237, 53, 72, 0.28); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 132px;
}

.hero-facts strong { display: block; font-size: 16px; }
.hero-facts span { font-size: 12px; color: var(--muted); }

/* ---------- Advantages ---------- */

.advantages { padding: 8px 0 12px; }

.adv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.adv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.adv-icon { font-size: 26px; margin-bottom: 8px; }
.adv-card h3 { font-size: 16px; margin-bottom: 6px; }
.adv-card p { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */

section { padding: 44px 0; }

h2 {
  font-size: clamp(23px, 4.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- Menu ---------- */

.cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 6px;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.cat-block { margin-top: 26px; }

.cat-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dish-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; }

.dish-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}

.dish-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
}

.dish-body { padding: 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.dish-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dish-desc { font-size: 13px; color: var(--muted); flex: 1; }

.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dish-price { font-size: 17px; font-weight: 800; color: var(--green); white-space: nowrap; }
.dish-price s { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 6px; }

.btn-add {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease;
}

.btn-add:active { transform: scale(0.95); }
.btn-add.added { background: var(--surface-2); color: var(--green); }

/* ---------- Info ---------- */

.info-section { background: var(--bg-soft); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card h2 { font-size: 21px; margin-bottom: 12px; }
.info-list { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 15px; color: var(--muted); }
.info-list strong { color: var(--text); }
.info-steps { counter-reset: step; }
.info-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.info-note a { color: var(--green); }

/* ---------- Order ---------- */

.order-layout { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }

.order-cart, .order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.order-cart h3 { font-size: 18px; margin-bottom: 14px; }
.cart-empty { color: var(--muted); font-size: 14px; }
.cart-empty a { color: var(--green); }

.cart-items { list-style: none; display: grid; gap: 10px; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-row-name { flex: 1; font-size: 14px; }
.cart-row-price { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }

.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 5px 11px;
  cursor: pointer;
  font-family: inherit;
}

.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 700; }

.cart-summary { margin-top: 16px; display: grid; gap: 8px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cart-summary .row strong { color: var(--text); }
.cart-summary .total { font-size: 17px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-summary .total strong { color: var(--green); font-size: 20px; }
.cart-hint { font-size: 13px; color: var(--accent); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }

.field input, .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px;
  outline: none;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 4px; }
.btn-submit[disabled] { opacity: 0.6; cursor: default; }

.form-error {
  background: rgba(237, 53, 72, 0.12);
  border: 1px solid rgba(237, 53, 72, 0.4);
  color: #ff9aa5;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.form-legal { font-size: 12px; color: var(--muted); margin-top: 12px; }

.order-success {
  background: var(--surface);
  border: 1px solid rgba(45, 200, 120, 0.35);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  margin-top: 22px;
}

.success-icon { font-size: 44px; margin-bottom: 10px; }
.order-success h3 { font-size: 22px; margin-bottom: 10px; }
.order-success p { color: var(--muted); margin-bottom: 6px; }
.order-success strong { color: var(--green); font-size: 19px; }
.order-success .btn { margin-top: 16px; }

/* ---------- Contacts ---------- */

.contacts-section { background: var(--bg-soft); }
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contacts-lead { color: var(--muted); margin-top: 8px; }

.phone-list { list-style: none; display: grid; gap: 8px; margin-top: 16px; }

.phone-list a {
  display: inline-block;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.tg-line { margin-top: 16px; color: var(--muted); }
.tg-line a { color: var(--green); }

.contacts-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.contacts-card h3 { font-size: 15px; margin-bottom: 4px; }
.contacts-card h3 + p { color: var(--muted); margin-bottom: 14px; font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 90px; }
.footer-inner { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.footer-inner a { color: var(--muted); }

/* ---------- Floating cart ---------- */

.cart-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cart-fab-count {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
  .main-nav { display: flex; }
  .lang-switch { margin-left: 0; }
  .header-phone-text { display: inline; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1.1fr 1fr; }
  .order-layout { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .cart-fab { left: auto; right: 24px; width: auto; min-width: 240px; }
  section { padding: 60px 0; }
  .hero { padding: 76px 0 60px; }
}

@media (min-width: 1000px) {
  .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adv-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================
   Light theme - follows the visitor's system setting
   ============================================ */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-soft: #f5f5f8;
    --surface: #ffffff;
    --surface-2: #f1f1f5;
    --line: rgba(0, 0, 0, 0.10);
    --text: #17171a;
    --muted: #5b5b67;
    /* darker so prices stay readable on white (~5.2:1) */
    --green: hsl(150, 90%, 26%);
  }

  .site-header {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }

  .hero {
    background:
      radial-gradient(900px 380px at 78% -8%, rgba(237, 53, 72, 0.12), transparent 62%),
      radial-gradient(700px 320px at 5% 0%, rgba(255, 138, 0, 0.10), transparent 60%);
  }

  .adv-card,
  .dish,
  .info-card,
  .order-cart,
  .order-form,
  .contacts-card,
  .hero-facts li {
    box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
  }

  .dish-media { background: var(--surface-2); }

  .cart-fab { box-shadow: 0 10px 26px rgba(190, 30, 60, 0.32); }

  .form-error {
    background: rgba(209, 16, 74, 0.08);
    border-color: rgba(209, 16, 74, 0.35);
    color: #a80f3c;
  }

  .order-success { border-color: rgba(13, 150, 82, 0.4); }

  .qty button:active,
  .btn-ghost:active { background: rgba(0, 0, 0, 0.04); }
}
