/* =========================================================
   Кафе «Белка» — стили
   Цветовая гамма снята с сайта чайной «Матрёна» (Grig-Group):
   графитовый #1D1D1B, тёмный #151819, тёплое золото #E3A154,
   терракота #D15F3C, светлый фон #F8F8F8, серый текст #888
   ========================================================= */

:root {
  --ink:        #1d1d1b;
  --ink-deep:   #151819;
  --ink-soft:   #384043;
  --gold:       #e3a154;
  --gold-dark:  #c8873c;
  --terra:      #d15f3c;
  --paper:      #f8f8f8;
  --white:      #ffffff;
  --grey:       #888888;
  --line:       rgba(29, 29, 27, .14);
  --line-light: rgba(255, 255, 255, .18);

  --font:    'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;
  --serif:   'Cormorant Garamond', 'Times New Roman', serif;

  --wrap:    1240px;
  --pad:     clamp(18px, 4vw, 56px);
  --ease:    cubic-bezier(.22, .68, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Общие заголовки секций ---------- */
.section__label {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 18px;
}
.section__label--center { text-align: center; }

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin-bottom: 28px;
}
.section__title--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}
.btn--solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost {
  border-color: currentColor;
  color: inherit;
  opacity: .85;
}
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); opacity: 1; }

/* =========================================================
   ТОП-БАР
   ========================================================= */
.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  letter-spacing: .08em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 40px;
  flex-wrap: wrap;
}
.topbar__sep { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.topbar__phone:hover { color: var(--gold); }

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 248, 248, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-stuck { box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 34px; height: 34px; color: var(--gold-dark); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  letter-spacing: .04em;
  display: flex;
  flex-direction: column;
}
.logo__text em {
  font-family: var(--font);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 3px;
}

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__cta { padding: 12px 24px; }

.burger { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: all .3s var(--ease);
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* =========================================================
   ГЛАВНЫЙ ЭКРАН
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: center;
  background: var(--ink-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.03);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(21, 24, 25, .88) 0%, rgba(21, 24, 25, .55) 45%, rgba(21, 24, 25, .25) 100%),
    linear-gradient(to top, rgba(21, 24, 25, .85) 0%, rgba(21, 24, 25, 0) 45%);
}

.hero__content { position: relative; z-index: 2; color: var(--white); padding-bottom: 60px; }
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  animation: fadeUp 1s .2s var(--ease) both;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 132px);
  line-height: .95;
  letter-spacing: .01em;
  animation: fadeUp 1s .35s var(--ease) both;
}
.hero__title span { color: var(--gold); font-style: italic; }
.hero__slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  color: rgba(255, 255, 255, .88);
  margin: 22px 0 40px;
  animation: fadeUp 1s .5s var(--ease) both;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 1s .65s var(--ease) both; }
.hero__actions .btn--ghost { color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Бегущая строка */
.hero__ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  border-top: 1px solid var(--line-light);
  background: rgba(21, 24, 25, .55);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker__track span {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}
.ticker__track i { color: var(--gold); font-style: normal; font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   СЛОГАНЫ
   ========================================================= */
.slogans { background: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.slogans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
}
.slogan { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.slogan__num {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.slogan p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.25;
}

/* =========================================================
   О КАФЕ
   ========================================================= */
.about { padding: clamp(60px, 9vw, 120px) 0; background: var(--paper); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.about__text p + p { margin-top: 16px; }
.about__text > p:not(.section__label) { color: #4a4a48; max-width: 52ch; }

.about__facts {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.about__facts b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.about__facts span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.5;
}

.about__photo { position: relative; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */
.gallery { padding: clamp(60px, 9vw, 120px) 0; background: var(--white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
  margin-top: 44px;
}
.gallery__item { position: relative; overflow: hidden; grid-row: span 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(21, 24, 25, .85), transparent);
}

/* =========================================================
   МЕНЮ
   ========================================================= */
.menu {
  padding: clamp(60px, 9vw, 120px) 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
}
.menu .section__label { color: var(--gold); }
.menu .section__title { color: var(--white); }
.menu__note {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
}

.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 44px 0 48px;
  flex-wrap: wrap;
}
.menu__tab {
  background: none;
  border: 1px solid var(--line-light);
  color: rgba(255, 255, 255, .7);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.menu__tab:hover { border-color: var(--gold); color: #fff; }
.menu__tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }

.menu__panel { display: none; }
.menu__panel.is-active {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  animation: fadeUp .6s var(--ease) both;
}

.dish { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dish:first-child { padding-top: 0; }
.dish__head { display: flex; align-items: baseline; gap: 10px; }
.dish__head h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}
.dish__dots {
  flex: 1;
  height: 1px;
  border-bottom: 1px dotted rgba(255, 255, 255, .3);
  transform: translateY(-4px);
  min-width: 20px;
}
.dish__price {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.dish__desc { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .6); max-width: 62ch; }
.dish__meta { margin-top: 10px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dish__meta > span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.tag {
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  color: rgba(255, 255, 255, .7) !important;
  letter-spacing: .16em !important;
}
.tag--hit  { border-color: var(--terra); color: var(--terra) !important; }
.tag--veg  { border-color: #7d9a63; color: #9dbb82 !important; }

.menu__photo { position: sticky; top: 110px; }
.menu__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.menu__photo figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* =========================================================
   КОНТАКТЫ И КАРТА
   ========================================================= */
.contacts { padding: clamp(60px, 9vw, 120px) 0; background: var(--paper); }
.contacts__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.contacts__lead { color: #4a4a48; max-width: 40ch; margin-bottom: 32px; }

.contacts__list { margin-bottom: 36px; }
.contacts__list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contacts__list dt {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 4px;
}
.contacts__list dd { font-size: 17px; }
.contacts__list dd span { font-size: 13px; color: var(--grey); }
.contacts__list dd a:hover { color: var(--gold-dark); }

.contacts__map { position: relative; }
.contacts__map iframe {
  width: 100%;
  height: clamp(340px, 52vh, 520px);
  border: 1px solid var(--line);
  display: block;
  filter: grayscale(.35) contrast(1.05);
}
.contacts__maplink {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.contacts__maplink:hover { color: var(--terra); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { background: var(--ink-deep); color: rgba(255, 255, 255, .62); padding: clamp(50px, 7vw, 84px) 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-light);
}
.logo__text--footer { color: var(--white); margin-bottom: 16px; }
.logo__text--footer em { color: var(--gold); }
.footer__brand p { font-size: 15px; line-height: 1.7; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__social a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__nav a:hover, .footer__social a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

/* =========================================================
   Появление при скролле
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1024px) {
  .header__cta { display: none; }
  .menu__panel.is-active { grid-template-columns: 1fr; }
  .menu__photo { position: static; order: -1; max-width: 460px; margin: 0 auto 20px; }
  .menu__photo img { aspect-ratio: 16 / 9; }
  .contacts__inner { grid-template-columns: 1fr; }
  .slogans__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .topbar__inner { font-size: 11px; gap: 12px; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    transition: max-height .45s var(--ease), padding .45s var(--ease);
  }
  .nav.is-open { max-height: 340px; padding: 10px var(--pad) 26px; border-bottom-color: var(--line); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo { order: -1; }
  .about__photo img { aspect-ratio: 4 / 3; }

  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery__item--tall { grid-row: span 2; }

  .dish__head { flex-wrap: wrap; }
  .dish__head h3 { white-space: normal; }
  .dish__dots { display: none; }
  .dish__price { margin-left: auto; }

  .contacts__list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
  .topbar__inner { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: span 1; grid-column: span 1; }
  .menu__tab { padding: 12px 18px; letter-spacing: .12em; }
}
