/* ============================================================
   ЛЕЧО · Лендинг «Итальянский ресторан» — локальные стили
   Тянет дизайн-систему: ../../design-system/{fonts,tokens,components}.css
   Здесь только то, чего нет в системе: шапка, hero-медиа, карточки блюд,
   bottom-sheet меню, врапперы виджетов, контакты.
   ============================================================ */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* ── Шапка ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-5);
  padding: 0.75rem var(--gutter);
  background: color-mix(in srgb, var(--lecho-cream) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__brand {
  display: inline-flex; align-items: center;
  line-height: 0; text-decoration: none;
  margin-right: auto;
}
.site-header__brand img { height: 36px; width: auto; display: block; }
.site-header__phone { font-weight: 700; color: var(--color-text); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.site-header__phone:hover { color: var(--color-primary); }
@media (max-width: 640px) { .site-header__phone { display: none; } }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--color-primary); }
@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-text-invert);
  overflow: hidden;
  isolation: isolate;
}
/* Фото интерьера с гостями + затемнение для читаемости текста */
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(85% 70% at 50% 52%, rgba(18,14,8,0.55), rgba(18,14,8,0.12) 80%),
    linear-gradient(180deg, rgba(18,14,8,0.45) 0%, rgba(18,14,8,0.40) 40%, rgba(18,14,8,0.82) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.hero__media::after { /* зернистость */
  content: ""; position: absolute; inset: 0;
  background-image: var(--paper-noise);
  background-size: 200px 200px;
  opacity: 0.22; mix-blend-mode: overlay;
}
.hero__inner { max-width: 760px; padding: var(--space-8) var(--gutter); }
.hero__logo { height: clamp(46px, 7vw, 68px); width: auto; margin: 0 auto 1.1rem; display: block; }
.hero__eyebrow { color: color-mix(in srgb, var(--lecho-red) 65%, white); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.01em;
  color: var(--color-text-invert);
  margin: 0.4rem 0 0.6rem;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(244,237,220,0.9);
  margin: 0 auto 2rem; max-width: 38ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Десктоп: текст прижат влево, фото-гости остаются справа */
@media (min-width: 860px) {
  .hero { text-align: left; }
  .hero__inner { max-width: var(--container); width: 100%; }
  .hero__logo { margin-left: 0; }
  .hero__subtitle { margin-left: 0; margin-right: 0; max-width: 30ch; }
  .hero__cta { justify-content: flex-start; }
  .hero__media {
    background-image:
      linear-gradient(90deg, rgba(18,14,8,0.88) 0%, rgba(18,14,8,0.68) 42%, rgba(18,14,8,0.32) 72%, rgba(18,14,8,0.12) 100%),
      linear-gradient(180deg, rgba(18,14,8,0.10), rgba(18,14,8,0.52)),
      url("assets/hero.jpg");
    background-position: center;
  }
}

/* ── Награды в hero ───────────────────────────────────────── */
.hero__awards { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.6rem; }
.award {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  background: rgba(244, 237, 220, 0.12); border: 1px solid rgba(244, 237, 220, 0.28);
  color: var(--lecho-cream); backdrop-filter: blur(4px);
}
.award__ico { font-size: 1rem; line-height: 1; }
@media (min-width: 860px) { .hero__awards { justify-content: flex-start; } }

/* ── Топ-блюда ────────────────────────────────────────────── */
.dishes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
@media (max-width: 900px) { .dishes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dishes { grid-template-columns: 1fr; } }

.dish { display: flex; flex-direction: column; }
.dish__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--lecho-cream-200);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.dish__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.dish:hover .dish__img img { transform: scale(1.04); }

/* Заглушка (фото пока нет) */
.dish__img--placeholder { background: linear-gradient(150deg, var(--lecho-cream-200), var(--lecho-paper)); }
.dish__img--placeholder span { font-size: 2.8rem; filter: saturate(1.05); }
.dish__img--placeholder::after {
  content: "фото"; position: absolute; right: .6rem; bottom: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-text-muted); opacity: .55;
}
.dish__desc {
  margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.45;
  color: var(--color-text-muted);
}
.dish__name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; line-height: 1.2;
  margin: 0.85rem 0 0;
}

/* ── Bottom sheet (меню) ──────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(13,8,2,0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-height: 88vh;
  background: var(--color-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 320ms var(--ease);
  display: flex; flex-direction: column;
}
.sheet.open { transform: translateY(0); }
.sheet__handle { width: 44px; height: 5px; border-radius: 99px; background: var(--color-line-strong); margin: 0.75rem auto 0; }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem var(--gutter) 0.75rem; border-bottom: 1px solid var(--color-line);
}
.sheet__head h3 { margin: 0; }
.sheet__close {
  border: 0; background: var(--lecho-cream-200); color: var(--color-text);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.sheet__close:hover { background: var(--color-primary); color: #fff; }
.sheet__body { flex: 1; min-height: 0; }
.sheet__body iframe { width: 100%; height: min(70vh, 680px); border: 0; display: block; }

/* ── Отзывы (бейдж оценки + свои карточки) ────────────────── */
.rating-badge {
  display: inline-flex; align-items: center; gap: 1rem;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: 0.9rem 1.5rem;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
}
.rating-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rating-badge__score { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--color-primary); }
.rating-badge__stars { color: #E3A73C; letter-spacing: 2px; font-size: 1.05rem; }
.rating-badge__meta { font-size: 0.85rem; color: var(--color-text-muted); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.75rem;
  color: var(--color-text); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-card__stars { color: #E3A73C; letter-spacing: 2px; }
.review-card__text { margin: 0; }
.review-card__author { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; padding-top: 0.5rem; }
.review-card__name { font-weight: 700; }
.review-card__src { color: var(--color-text-muted); }
.review-card__src::after { content: " ↗"; }

/* ── Бизнес-ланч ──────────────────────────────────────────── */
.lunch-card {
  display: grid; grid-template-columns: 1.5fr auto; gap: var(--space-6);
  align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  max-width: 860px; margin-inline: auto;
}
@media (max-width: 720px) { .lunch-card { grid-template-columns: 1fr; text-align: center; } }
.lunch-card h2 { margin: 0.25rem 0 0.5rem; }
.lunch-card__meta { margin: 0; color: var(--color-text-muted); }
.lunch-card__cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lunch-card__price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--color-primary); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--color-line); padding: 0.35rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 0.9rem 0;
  font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 1rem; color: var(--color-text-muted); }
.faq a { color: var(--color-primary); }

/* ── Бронь ────────────────────────────────────────────────── */
.booking-card {
  max-width: 720px; margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.booking-frame {
  width: 100%;
  height: clamp(640px, 80vh, 820px);
  border: 0; border-radius: var(--radius);
  display: block; background: #fff;
}

/* ── Контакты ─────────────────────────────────────────────── */
.contacts-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: start;
}
@media (max-width: 760px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1rem; font-size: 1.05rem; }
.contact-line .ico { font-size: 1.2rem; line-height: 1.4; }
.contacts a.tel { color: var(--color-text-invert); text-decoration: none; font-weight: 700; }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.social-ico { width: 1.2em; height: 1.2em; flex: none; }

/* ── Карта гостя (программа лояльности) ───────────────────── */
.loyalty { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 820px) { .loyalty { grid-template-columns: 1fr; text-align: center; } }
.loyalty__perks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.loyalty__perks li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 1.05rem; }
.loyalty__ico { font-size: 1.8rem; line-height: 1; flex: none; }
.loyalty__cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loyalty__qr { width: 180px; height: 180px; border-radius: var(--radius); background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); display: grid; place-items: center; overflow: hidden; }
.loyalty__qr img { width: 100%; height: 100%; object-fit: contain; }
.loyalty__qr--ph { border: 2px dashed var(--color-line-strong); color: var(--color-text-muted); font-weight: 700; font-size: 0.85rem; text-align: center; }
@media (max-width: 820px) { .loyalty__qr, .loyalty__hint { display: none; } }

/* ── Подвал ───────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-5) var(--gutter);
  text-align: center; font-size: 0.85rem; color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

/* ── Галерея веранды ──────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-2); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); display: block;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ── Карта в контактах ────────────────────────────────────── */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; line-height: 0; }
.map-embed iframe { display: block; border: 0; width: 100%; }
.map-embed--full { border-radius: 0; margin-top: calc(-1 * var(--section-y)); margin-bottom: var(--space-8); }
.map-embed--full iframe { height: 420px; }
@media (max-width: 760px) { .map-embed--full iframe { height: 280px; } }
