/* ==========================================================================
   ПАР — кофейня и завтраки
   Палитра: сливки, эспрессо, горчица
   Шрифты: Bitter (заголовки) + Golos Text (текст), локально
   ========================================================================== */

:root {
  --cream: #fbf6ec;
  --cream-2: #f3ead9;
  --ink: #2a1d14;
  --ink-soft: #6d5a4a;
  --mustard: #d9a227;
  --olive: #5c5b3a;

  --display: 'Bitter', Georgia, serif;
  --text: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --hair: rgba(42, 29, 20, 0.14);
  --ease: cubic-bezier(0.22, 0.68, 0.26, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mustard); color: var(--ink); }

section[id] { scroll-margin-top: 80px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* заголовок для поиска и скринридеров, визуально скрыт */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 12px; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- шапка ---------- */
.head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px var(--pad);
  color: #fff;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo__dot { color: var(--mustard); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav a:hover { border-color: var(--mustard); }
.head__phone { font-size: 14px; font-weight: 500; white-space: nowrap; }
.head__cta {
  padding: 11px 20px;
  background: rgba(251, 246, 236, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}
.head__cta:hover { background: var(--cream); color: var(--ink); }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 11px;
  width: 18px; height: 1px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- герой ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 13, 9, 0.55) 0%, rgba(20, 13, 9, 0.15) 35%, rgba(20, 13, 9, 0.6) 100%);
}
.hero__meta {
  position: absolute;
  top: 96px;
  left: var(--pad);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero__hours {
  position: absolute;
  right: var(--pad);
  bottom: clamp(28px, 4vw, 56px);
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero__card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  background: var(--cream);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 24px 60px rgba(20, 13, 9, 0.35);
}
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hair);
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.menu li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
}
.menu li:last-child { border-bottom: 0; }
.menu__dots { flex: 1; height: 1px; border-bottom: 1px dotted rgba(42, 29, 20, 0.35); }
.menu li span:last-child { font-weight: 600; white-space: nowrap; }
.hero__note { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }

/* ---------- секции ---------- */
.block { padding: clamp(50px, 7vw, 100px) var(--pad); }
.block > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.block__head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  gap: clamp(16px, 4vw, 56px);
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(28px, 3.6vw, 48px);
}
.kicker {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 8px;
}
.kicker--light { color: var(--mustard); }
.block__head h2,
.coffee__head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.block__note { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- завтраки ---------- */
.morning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.morning__photo img {
  width: 100%;
  height: clamp(300px, 40vw, 460px);
  object-fit: cover;
}
.morning__photo figcaption,
.where__photo figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.morning__text p { margin-bottom: 14px; color: var(--ink-soft); max-width: 44ch; }
.dots { display: grid; gap: 8px; margin-top: 20px; }
.dots li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}
.dots li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  background: var(--mustard);
  border-radius: 50%;
}

/* ---------- кофе ---------- */
.coffee { background: var(--ink); color: var(--cream); padding: clamp(50px, 7vw, 96px) var(--pad); }
.coffee__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}
.coffee__head p:not(.kicker) { margin-top: 16px; max-width: 36ch; color: rgba(251, 246, 236, 0.7); font-size: 14.5px; }
.coffee__list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251, 246, 236, 0.16);
  font-size: 16px;
}
.coffee__list li:first-child { border-top: 1px solid rgba(251, 246, 236, 0.16); }
.coffee__list li span:last-child { font-weight: 600; color: var(--mustard); }

/* ---------- почему ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.why__item { border-top: 2px solid var(--ink); padding-top: 16px; }
.why__num { font-family: var(--display); font-size: 14px; color: var(--mustard); }
.why__item h3 {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  margin: 10px 0 8px;
}
.why__item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- адрес ---------- */
.where__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}
.where__list { display: grid; }
.where__list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
}
.where__list dt { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.where__list a:hover { color: var(--mustard); }
.where__photo { margin-top: 26px; }
.where__photo img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- форма ---------- */
.form { background: var(--cream-2); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input::placeholder { color: rgba(42, 29, 20, 0.35); }
.field input:focus { outline: none; border-color: var(--mustard); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input {
  appearance: none;
  width: 17px; height: 17px;
  margin: 2px 0 0;
  flex: none;
  border: 1px solid var(--ink);
  position: relative;
  cursor: pointer;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: '';
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--cream);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.check a { color: var(--ink); border-bottom: 1px solid var(--mustard); }
.form__status { font-size: 13px; min-height: 20px; }
.form__status.is-error { color: #a33; }

/* ---------- подвал ---------- */
.foot { background: var(--cream-2); padding: clamp(30px, 4vw, 46px) var(--pad) 24px; }
.foot__row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.foot__logo { font-family: var(--display); font-size: 24px; font-weight: 700; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; font-size: 13px; }
.foot__nav a:hover { color: var(--mustard); }
.foot__up { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.foot__legal {
  max-width: var(--max);
  margin: 16px auto 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.foot__legal a { border-bottom: 1px solid rgba(42, 29, 20, 0.3); }

/* ---------- cookie ---------- */
.cookie {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: min(540px, calc(100vw - 40px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 0 16px 36px rgba(42, 29, 20, 0.18);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 280px; font-size: 12.5px; line-height: 1.5; }
.cookie a { border-bottom: 1px solid var(--mustard); color: var(--ink); }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .morning { grid-template-columns: 1fr; }
  .coffee__inner { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .where__grid { grid-template-columns: 1fr; }
  .block__head { grid-template-columns: 1fr; align-items: start; }
  .hero__hours { display: none; }
}

@media (max-width: 860px) {
  .head { position: absolute; }
  .nav {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 100px var(--pad) 40px;
    background: var(--cream);
    color: var(--ink);
    flex-direction: column;
    gap: 0;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    z-index: 80;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .nav.is-open { transform: translateY(0); }
  .head__phone, .head__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .hero { min-height: 88vh; padding-bottom: 20px; }
  .hero__card { width: 100%; }
  .hero__meta { top: 84px; font-size: 10px; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 110px; align-items: stretch; flex-direction: column; }
  .hero__bg { height: 58%; }
  .hero__meta { position: static; color: var(--ink); margin-bottom: 14px; }
  .hero__card { box-shadow: none; background: var(--cream); padding: 18px 0 0; }
  .cookie { padding: 12px 14px; gap: 10px; }
  .cookie p { font-size: 11.5px; }
  .cookie .btn { padding: 8px 12px; font-size: 11px; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  .foot__nav { margin-left: 0; }
}

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