/* ============ Час кофе — стили ============
   Палитра: северный лён, сланец и фирменный оранжевый из логотипа.
   Шрифты: Unbounded (заголовки), Golos Text (текст).
*/
:root {
  --linen: #EEF0EC;      /* фон */
  --linen-2: #E2E6E1;    /* фон второго уровня */
  --white: #FBFCFA;
  --slate: #1D2A33;      /* основной текст */
  --slate-2: #52606A;    /* второстепенный текст */
  --brand: #ED700A;      /* фирменный оранжевый — из векторного логотипа */
  --accent: #B25205;      /* акцент для кнопок и текста — тот же оранжевый, темнее для читаемости */
  --accent-dark: #8E4104;
  --crema: #B98446;      /* цены */
  --line: #CDD3CF;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--slate);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.top__phone { text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .top__phone { display: none; }
  .nav { gap: 18px; font-size: 15px; }
}
@media (max-width: 480px) { .nav a[href="#gallery"] { display: none; } }

/* ---------- Главный экран ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero__in {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { margin: 0 0 0 -1%; }
.hero__title img { width: min(100%, 500px); height: auto; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 30em; margin: 28px 0 20px; color: var(--slate-2); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px; font-weight: 500; }
.status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #3F8A5A; box-shadow: 0 0 0 4px color-mix(in srgb, #3F8A5A 20%, transparent); }
.status.is-closed .status__dot { background: var(--slate-2); box-shadow: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--slate);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--main { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--main:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost:hover { background: var(--slate); color: var(--white); }

/* Часы: фото кофейни — это циферблат */
.dial { position: relative; margin: 0; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.dial__photo {
  position: absolute; inset: 7%; width: 86%; height: 86%;
  object-fit: cover; border-radius: 50%; background: var(--linen-2);
  color: transparent; font-size: 0; /* прячем alt-текст, пока фото грузится */
}
.dial__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__face .tick { stroke: var(--slate); stroke-linecap: round; }
.dial__face .tick--hour { stroke-width: 2.6; }
.dial__face .tick--min { stroke-width: 1; opacity: .45; }
.dial__face .num { font: 600 9px var(--display); fill: var(--slate); text-anchor: middle; dominant-baseline: central; }
.hand { stroke-linecap: round; transform-origin: 100px 100px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.hand--h { stroke: var(--white); stroke-width: 6; }
.hand--m { stroke: var(--brand); stroke-width: 3.5; }
.hand__pin { fill: var(--brand); stroke: var(--white); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hand { transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
}

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .dial { max-width: 360px; }
}

/* ---------- Заголовки разделов ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.link { font-weight: 600; text-underline-offset: 4px; }
.link:hover { color: var(--accent); }

/* ---------- Сезонное меню ---------- */
.season { padding: 72px 0; background: var(--slate); color: var(--white); }
.season h2 { color: var(--white); }
.season .link { color: var(--white); }
.season__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 16px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.drink { scroll-snap-align: start; display: flex; flex-direction: column; }
.drink__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #2A3943; margin-bottom: 16px;
}
.drink__photo img { width: 100%; height: 100%; object-fit: cover; }
.drink__empty { display: grid; place-items: center; height: 100%; color: #4A5B66; }
.drink__empty svg { width: 64px; height: 64px; }
.drink h3 { font-size: 18px; margin-bottom: 8px; }
.drink p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #C3CCD1; }
.drink .prices { margin-top: auto; }
.drink .price { border-color: #3B4C57; }
.drink .price b { color: #E2B57C; }

/* ---------- О нас ---------- */
.about { padding: clamp(64px, 9vw, 120px) 0; }
.about__in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__photo {
  color: transparent;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); /* арка */
  background: var(--linen-2); position: sticky; top: 100px;
}
.letter { max-width: 36em; }
.letter h2 { margin-bottom: 28px; }
.letter p { margin: 0 0 16px; }
.letter__key { font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--display); color: var(--accent); margin: 32px 0 16px !important; }
.letter__sign { font: 600 22px var(--display); margin-top: 28px !important; }
.letter__ps { color: var(--slate-2); font-size: 15px; }
@media (max-width: 860px) {
  .about__in { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 420px; }
}

/* ---------- Фото зала ---------- */
.gallery { padding: 0 0 clamp(64px, 9vw, 112px); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 230px); gap: 12px;
}
.gallery__item { border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--linen-2); cursor: zoom-in; color: transparent; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item:nth-child(4) { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .gallery__item img { transition: none; } }

/* ---------- Меню ---------- */
.menu { padding: 72px 0 96px; background: var(--white); border-top: 1px solid var(--line); }
.menu__note { margin: 0; color: var(--slate-2); font-size: 15px; }
.chips {
  position: sticky; top: 80px; z-index: 20; background: var(--white);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; background: var(--white);
}
.chip:hover { border-color: var(--slate); }
.chip.is-active { background: var(--slate); border-color: var(--slate); color: var(--white); }

.cat { padding-top: 48px; }
.cat h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 20px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 40px; }
.item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item__photo {
  width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--linen);
  border: 0; padding: 0; cursor: zoom-in;
}
.item__photo img { width: 100%; height: 100%; object-fit: cover; }
.item__photo--empty { cursor: default; display: grid; place-items: center; color: var(--line); }
.item__photo--empty svg { width: 40px; height: 40px; }
.item h4 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.item p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--slate-2); }
@media (max-width: 420px) {
  .items { grid-template-columns: 1fr; }
  .item { grid-template-columns: 76px 1fr; gap: 14px; }
  .item__photo { width: 76px; height: 76px; }
}

.prices { display: flex; flex-wrap: wrap; gap: 6px; }
.price {
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
}
.price span { opacity: .75; }
.price b { color: var(--crema); font-weight: 600; }

/* Просмотр фото */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); }
.lightbox::backdrop { background: rgba(20, 28, 34, .82); }
.lightbox img { border-radius: var(--r-lg); max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox p { color: var(--white); text-align: center; font-weight: 600; margin: 12px 0 0; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); font-size: 22px; cursor: pointer; }

/* ---------- Контакты ---------- */
.contacts { padding: clamp(64px, 9vw, 112px) 0; }
.contacts__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.facts { margin: 32px 0 40px; display: grid; gap: 20px; }
.facts dt { font-size: 14px; color: var(--slate-2); }
.facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 500; line-height: 1.45; }
.facts a { text-decoration: none; }
.socials__title { font-size: 20px; margin-bottom: 16px; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.socials a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; background: var(--white);
  transition: border-color .15s;
}
.socials a:hover { border-color: var(--slate); }
.socials svg { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--slate); color: var(--white); }
.socials span { display: flex; flex-direction: column; font-size: 14px; color: var(--slate-2); line-height: 1.3; }
.socials b { color: var(--slate); font-size: 16px; font-weight: 600; }
.map { min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--linen-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) {
  .contacts__in { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .socials { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.foot { background: var(--slate); color: #C3CCD1; padding: 40px 0; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-start; }
.foot p { margin: 0; }
.foot__brand { margin-right: auto !important; }
.foot__brand img { height: 72px; width: auto; filter: brightness(0) invert(1); /* белая версия логотипа */ }
