/* ============================================================
   Рыбарис — паназиатская кухня, Новосибирск
   «Счастье по кругу» — runnable layout
   Palette / tokens per design/design.md
   ============================================================ */

:root {
  --navy: #102335;        /* ночной синий: текст, глубокие секции */
  --red: #B52D26;         /* ресторанный красный: бренд, CTA */
  --red-deep: #7B1E22;    /* тёмный край hero-градиента */
  --coral: #F05A4F;       /* коралловый: декоративные акценты */
  --cream: #FFF8F0;       /* тёплый крем: основной фон */
  --mint: #DDEBE3;        /* мята: иллюстративные поля */
  --saffron: #F3C766;     /* шафран: эмоциональный акцент */
  --card-warm: #F1E8DD;   /* подложка кард-плашек лояльности */
  --plate-fill: #FAF6EE;  /* подложка блюд */
  --plate-ring: #F1E8DD;
  --ink-soft: rgba(16, 35, 53, 0.72);
  --white: #FFFFFF;
  --font: Arial, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --gutter: 72px;
  --radius-lg: 48px;
  --radius-md: 32px;
  --radius-pill: 31px;
  --focus-ring: 3px solid var(--red);
  --shadow-soft: 0 10px 30px rgba(16, 35, 53, 0.08);
  --shadow-lift: 0 18px 40px rgba(16, 35, 53, 0.14);
  --hero-height: 690px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Responsive copy variants: desktop-wide vs mobile-narrow */
.v-narrow { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(16, 35, 53, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.brand-word {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1;
}

.brand-dot {
  position: absolute;
  top: -2px;
  left: 58%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--red-deep);
}

/* Burger: hidden on desktop, visible below 768 */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 10px 4px;
  background: transparent;
  border: none;
}

.burger-bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--coral);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 40px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-saffron {
  background: var(--saffron);
  color: var(--navy);
}

.btn-saffron:hover {
  background: #e9b94f;
  box-shadow: var(--shadow-soft);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: #0b1a29;
  box-shadow: var(--shadow-soft);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-deep);
  box-shadow: var(--shadow-soft);
}

.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.footer-cta:focus-visible,
.footer-social:focus-visible,
.burger:focus-visible,
.brand:focus-visible,
.menu-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0 0;
}

.hero-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: var(--hero-height);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  overflow: hidden;
}

.hero-copy {
  flex: 1 1 auto;
  padding: 48px 0 48px 48px;
  min-width: 0;
}

.eyebrow {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--saffron);
  margin-bottom: 44px;
}

.hero-title {
  font-size: 82px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-line {
  display: block;
}

.hero-sub {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 56px;
  max-width: 460px;
}

.anniversary {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: 0.4px;
}

.hero-art {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  width: 400px;
}

.hero-art img {
  width: 320px;
  height: 320px;
}

.hero-arcs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Booking ---------- */
.booking {
  padding: 0 0 88px;
}

.booking-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.booking-form {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

.booking-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
}

.booking-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.booking-field-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.booking-field {
  flex: 1 1 320px;
  min-width: 260px;
}

.booking-input {
  width: 100%;
  min-height: 62px;
  padding: 0 24px;
  border: 2px solid rgba(16, 35, 53, 0.14);
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-input::placeholder {
  color: rgba(16, 35, 53, 0.45);
}

.booking-input:hover {
  border-color: rgba(16, 35, 53, 0.3);
  box-shadow: var(--shadow-soft);
}

.booking-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(181, 45, 38, 0.25);
}

.booking-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-input[aria-invalid="true"] {
  border-color: var(--red);
  background: #fdeeed;
}

.booking-submit {
  flex: 0 0 auto;
  min-height: 62px;
}

.booking-submit:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.booking-error {
  flex-basis: 100%;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.booking-success {
  flex-basis: 100%;
  font-size: 15px;
  font-weight: 700;
  color: #1e6b45;
  background: var(--mint);
  border-radius: 12px;
  padding: 12px 18px;
}

/* ---------- Intro ---------- */
.intro {
  padding: 0 0 80px;
  text-align: center;
}

.intro-inner {
  max-width: 820px;
}

.intro-kicker {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
}

.intro-title {
  font-size: 66px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.05;
}

.intro-text {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Menu cards ---------- */
.menu {
  padding-bottom: 96px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.menu-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.menu-card:active {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.card-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
}

.card-arrow {
  position: absolute;
  top: 24px;
  right: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.menu-card:nth-child(2) .card-arrow {
  background: var(--navy);
}

.card-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--navy);
  margin-top: 40px;
}

.card-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.45;
}

.card-plate {
  margin-top: auto;
  align-self: flex-end;
  width: 84px;
  height: 84px;
}

.card-plate img {
  width: 84px;
  height: 84px;
}

/* ---------- Evening / atmosphere ---------- */
.evening {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 88px 0 96px;
}

.evening-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 48px;
  align-items: center;
}

.evening-copy {
  padding-right: 24px;
}

.evening-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 28px;
}

.evening-text {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 44px;
  max-width: 420px;
}

.evening-panel {
  background: var(--mint);
  border-radius: 38px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evening-plate {
  width: 260px;
  height: 260px;
}

.evening-arcs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Loyalty ---------- */
.loyalty {
  padding: 96px 0;
  text-align: center;
}

.loyalty-title {
  font-size: 62px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.05;
}

.loyalty-text {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 64px;
}

.loyalty-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--card-warm);
  border-radius: 28px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 96px;
}

.footer-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-logo {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 40px;
}

.footer-line {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-cta {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.footer-cta:hover {
  border-color: var(--saffron);
}

.footer-social {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-social:hover {
  color: var(--saffron);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  margin-top: 40px;
}

.footer-motto {
  font-size: 18px;
  font-weight: 700;
  color: var(--saffron);
}

.footer-arcs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* ============================================================
   Tablet: 768–1199 px, 48 px gutter
   ============================================================ */
@media (max-width: 1199px) {
  :root {
    --gutter: 48px;
    --hero-height: 640px;
  }

  .brand-word { font-size: 34px; }
  .brand-dot { left: 52%; width: 14px; height: 14px; }
  .nav { gap: 18px; }
  .nav-link { font-size: 14px; }
  .nav-cta { font-size: 14px; min-height: 44px; padding: 0 22px; }

  .hero-copy { padding: 40px 0 40px 40px; }
  .hero-title { font-size: 62px; }
  .eyebrow { margin-bottom: 36px; }
  .hero-sub { margin-bottom: 44px; }
  .hero-art { width: 340px; padding: 40px; }
  .hero-art img { width: 280px; height: 280px; }

  .booking-card { padding: 30px 36px; }
  .intro-title { font-size: 54px; }

  .card-title { font-size: 30px; }
  .menu-card { min-height: 300px; }

  .evening-row { grid-template-columns: 1fr 320px; }
  .evening-title { font-size: 48px; }
  .evening-panel { height: 460px; }
  .evening-plate { width: 220px; height: 220px; }

  .loyalty-title { font-size: 54px; }
  .stat-num { font-size: 36px; }

  .footer-logo { font-size: 50px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer-links-col { align-items: flex-start; }
}

/* ============================================================
   Mobile: < 768 px, 24 px safe field, burger nav, one column
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --gutter: 24px;
    --hero-height: auto;
  }

  .v-wide { display: none; }
  .v-narrow { display: inline; }
  .card-arrow { display: inline-flex; }
  .hero-row .v-narrow { display: block; }

  .header-row { min-height: 88px; }
  .brand-word { font-size: 30px; }
  .brand-dot { left: 56%; width: 12px; height: 12px; }
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid rgba(16, 35, 53, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 16px 24px 24px;
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav-link {
    font-size: 18px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(16, 35, 53, 0.08);
  }

  .nav-cta {
    margin-top: 16px;
    width: 100%;
    min-height: 56px;
    border-radius: var(--radius-pill);
  }

  /* Hero: stacked, illustration below copy, separated from
     the anniversary line */
  .hero { padding-top: 12px; }
  .hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 32px;
  }
  .hero-copy {
    padding: 56px 40px 40px;
    text-align: left;
  }
  .eyebrow { margin-bottom: 28px; }
  .hero-title { font-size: 53px; margin-bottom: 28px; }
  .hero-sub { font-size: 18px; margin-bottom: 40px; max-width: none; }
  .btn-saffron { min-height: 56px; padding: 0 32px; font-size: 18px; }
  .anniversary { margin-top: 32px; font-size: 15px; }
  .hero-art {
    width: 100%;
    padding: 0 40px 48px;
  }
  .hero-art img {
    width: 156px;
    height: 156px;
  }
  .hero-arcs { display: none; }

  /* Booking */
  .booking { padding-bottom: 64px; }
  .booking-card {
    padding: 24px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .booking-form { flex-direction: column; align-items: stretch; gap: 14px; }
  .booking-title { display: block; }
  .booking-field { min-width: 0; }
  .booking-field-label { display: block; margin-bottom: 6px; font-size: 17px; }
  .booking-submit { width: 100%; min-height: 58px; }

  /* Intro */
  .intro { padding-bottom: 56px; }
  .intro-kicker { font-size: 18px; margin-bottom: 14px; }
  .intro-title { font-size: 30px; margin-bottom: 18px; }
  .intro-text { font-size: 16px; }

  /* Menu: one column, sequential */
  .menu { padding-bottom: 64px; }
  .menu-grid { grid-template-columns: 1fr; gap: 16px; }
  .menu-card {
    min-height: 180px;
    border-radius: 28px;
    padding: 28px 24px;
  }
  .card-title { font-size: 31px; margin-top: 24px; }
  .card-desc { font-size: 15px; }
  .card-plate { width: 60px; height: 60px; }
  .card-plate img { width: 60px; height: 60px; }

  /* Evening */
  .evening { padding: 64px 0 72px; }
  .evening-row { grid-template-columns: 1fr; gap: 28px; }
  .evening-copy { padding-right: 0; }
  .evening-title { font-size: 30px; margin-bottom: 18px; }
  .evening-text { font-size: 17px; margin-bottom: 32px; max-width: none; }
  .evening-panel { height: 250px; border-radius: 30px; }
  .evening-plate { width: 184px; height: 184px; }
  .evening-arcs { height: 45%; }

  /* Loyalty */
  .loyalty { padding: 64px 0; }
  .loyalty-title { font-size: 34px; margin-bottom: 16px; }
  .loyalty-text { font-size: 16px; margin-bottom: 44px; }
  .loyalty-stats { grid-template-columns: 1fr; gap: 16px; }
  .stat {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-radius: 24px;
    padding: 24px;
  }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 15px; }

  /* Footer */
  .footer { padding: 64px 0 72px; }
  .footer-logo { font-size: 44px; margin-bottom: 28px; }
  .footer-line { font-size: 16px; }
  .footer-cta { font-size: 18px; }
  .footer-social { font-size: 16px; }
  .footer-bottom { padding-top: 40px; margin-top: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .menu-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

  .btn:hover {
    transform: none;
  }
}
