/* ============================================================
   CLOVA — премиальный стиль + адаптив
   ============================================================ */

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

:root {
  --ink: #140e0c;
  --bg: #1f1713;
  --bg-mid: #2b211a;
  --surface: #f8f4f0;
  --surface-dim: #f2ede7;
  --muted: #7a6d66;
  --muted-high: #5a4d47;

  --accent: #c68b59;
  --accent-hover: #d89e71;
  --accent-2: #b07546;

  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-pill: 9999px;

  --shadow-card: 0 22px 45px rgba(30, 20, 14, 0.12);
  --shadow-card-hover: 0 28px 70px rgba(30, 20, 14, 0.2);

  --ease-bounce: cubic-bezier(0.2, 0.8, 0.2, 1.2);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: 'Playfair Display', Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--muted-high);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: var(--menu-scroll-top, 0);
  touch-action: none;
}

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

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

/* ---------- утилиты ---------- */
.container {
  width: min(1200px, 100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 2rem;
}

.section--light {
  background: var(--surface);
  color: var(--bg);
}

.section--dark {
  background: var(--bg-mid);
  color: var(--surface);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

.section--light .section__title {
  color: var(--bg);
}

/* ---------- навигация ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(31, 23, 19, 0.72);
  transition: transform 0.25s ease, background 0.25s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 12, 0.75);
  z-index: 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--surface);
  text-decoration: none;
  font-size: 1.25rem;
}

.brand mark {
  background: transparent;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav__link--accent {
  background: rgba(198, 139, 89, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(198, 139, 89, 0.35);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav__link--accent:hover {
  background: rgba(198, 139, 89, 0.25);
  color: var(--white);
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .nav__burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: auto 0 0 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20, 14, 12, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.25rem;
    transform: translateY(110%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .nav__link--accent {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 19, 0.35) 0%,
      rgba(31, 23, 19, 0.55) 55%,
      rgba(31, 23, 19, 0.85) 100%
    ),
    url('https://v3b.fal.media/files/b/0a9d51c5/BZAoLOvU5VYoEevdx1F-D_oj2MTicD.png') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(180, 130, 90, 0.35), transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(180, 130, 90, 0.18), transparent 45%);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 120px
  ),
  repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 120px
  );
  transform: perspective(1200px) rotateX(20deg) scale(1.1);
  opacity: 0.6;
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  0%   { transform: perspective(1200px) rotateX(20deg) translateY(0); }
  50%  { transform: perspective(1200px) rotateX(20deg) translateY(-30px); }
  100% { transform: perspective(1200px) rotateX(20deg) translateY(0); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: var(--surface-dim);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: 1.05;
  color: var(--white);
  margin-top: 1.4rem;
  text-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.3rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 0.2s var(--ease-smooth),
              background 0.2s var(--ease-smooth),
              box-shadow 0.2s var(--ease-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  isolation: isolate;
  font-size: 0.95rem;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

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

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(198, 139, 89, 0.35);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 20px 45px rgba(198, 139, 89, 0.5);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}
.btn--primary:hover::after { opacity: 1; }

.btn--ghost {
  background: var(--glass-bg);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 55%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}
.btn--ghost:hover::after { opacity: 1; }

/* ---------- features ---------- */
.features {
  padding: 5rem 2rem;
  position: relative;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  background: rgba(255, 255, 255, 0.1);
}

.feature__icon {
  font-size: 0;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature__icon .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.feature__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.feature__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* ---------- about ---------- */
.about {
  position: relative;
  overflow: hidden;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-high);
}

.about__text p + p {
  margin-top: 1rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .about__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bg);
  line-height: 1;
}

.stat__label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-high);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- menu ---------- */
.menu__group {
  margin-bottom: 3.5rem;
}

.menu__group:last-child {
  margin-bottom: 0;
}

.menu__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu__list {
  display: grid;
  gap: 0.75rem;
}

.menu__item {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu__item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.menu__item:active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.12);
}

.menu__item-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.menu__name {
  font-weight: 600;
  color: var(--surface);
  font-size: 1rem;
}

.menu__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
  flex-basis: 100%;
}

.menu__price {
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .menu__item {
    padding: 1rem;
  }

  .menu__name {
    font-size: 0.95rem;
  }

  .menu__desc {
    font-size: 0.85rem;
  }

  .menu__price {
    font-size: 0.95rem;
  }

  .menu__heading {
    font-size: 1.25rem;
  }

  .section__title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 2rem;
  }

  .container {
    width: min(100%, 100% - 1.5rem);
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .feature {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .contacts__grid {
    gap: 1.25rem;
  }

  .map-placeholder {
    min-height: 220px;
  }

  .dish-preview__panel {
    max-height: 88vh;
    padding: 1.25rem;
  }

  .dish-preview__img {
    max-height: 260px;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ---------- testimonial ---------- */
.testimonial {
  padding: 5rem 2rem;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--bg);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__author {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted-high);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- contacts ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contacts__grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contacts__info {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-row {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--surface);
}

.contact-row + .contact-row {
  margin-top: 0.75rem;
}

.contact-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.contact-phone {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 600;
}

.contact-phone:hover {
  text-decoration: underline;
}

.map-placeholder {
  display: block;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 40%, rgba(198, 139, 89, 0.2), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
  min-height: 260px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.map-placeholder:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25), 0 22px 45px rgba(30, 20, 14, 0.25);
}

.map-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  min-height: 260px;
}

.map-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.9;
}

.map-placeholder__text {
  font-size: 1rem;
  color: var(--surface);
  letter-spacing: 0.04em;
}

.map-placeholder__hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- footer ---------- */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  background: #130c08;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__links {
  margin-top: 0.5rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.footer__links a:hover {
  color: var(--accent);
}

/* ---------- dish preview modal ---------- */
.dish-preview {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}
.dish-preview.is-open {
  pointer-events: auto;
  opacity: 1;
}

.dish-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.dish-preview__panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 2rem));
  max-height: min(85vh, 720px);
  overflow: auto;
  background: var(--surface-dim);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--bg);
  box-shadow: var(--glass-shadow);
}

.dish-preview__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dish-preview__img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.dish-preview__body strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--bg);
  display: block;
  margin-bottom: 0.4rem;
}

.dish-preview__body p {
  color: var(--muted-high);
  line-height: 1.55;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .dish-preview__panel {
    max-height: 88vh;
    padding: 1.25rem;
  }

  .dish-preview__img {
    max-height: 260px;
  }
}
