/* Світанок — кав'ярня і пекарня. Основний стиль сайту. */

:root {
  --bg: #f6eee1;
  --surface: #fffbf3;
  --text: #2a2017;
  --muted: #706453;
  --line: #e4d6bf;

  --accent: #a8632f;
  --accent-dark: #7c481f;
  --accent-tint: #f1e2cd;

  --accent2: #7c2f2a;
  --accent2-tint: #f1dcd6;

  --deep: #352217;
  --deep-2: #231408;

  --font-head: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --h1: clamp(2.3rem, 5.6vw, 4.4rem);
  --h2: clamp(1.8rem, 3.6vw, 2.8rem);
  --h3: clamp(1.3rem, 2vw, 1.7rem);
  --lead: clamp(1.02rem, .5vw + .9rem, 1.2rem);
  --base: 1rem;

  --sp-1: .5rem;
  --sp-2: .9rem;
  --sp-3: 1.4rem;
  --sp-4: 2.1rem;
  --sp-5: 3.2rem;
  --sp-6: 4.6rem;
  --sp-7: 6.8rem;
  --gap: clamp(1.2rem, 4vw, 3rem);
  --measure: 72rem;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 24px -14px rgba(42, 32, 23, .35);
  --shadow-md: 0 16px 38px -20px rgba(42, 32, 23, .4);
  --shadow-lg: 0 24px 56px -26px rgba(42, 32, 23, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--base)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-tint); }

.container { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gap); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- типографіка ---------- */

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 var(--sp-2);
}

.eyebrow--on-dark { color: #e9c9a4; }

.lead { font-size: var(--lead); color: var(--muted); max-width: 42ch; }
.muted { color: var(--muted); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  font: 600 .98rem var(--font-body);
  padding: var(--sp-2) var(--sp-4);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.btn:hover { background: var(--deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

.btn-light { background: var(--surface); color: var(--text); }
.btn-light:hover { background: var(--accent-tint); }

/* ---------- шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 238, 225, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-2);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; margin-right: auto; }
.brand b { font: 400 1.5rem var(--font-head); }
.brand span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav-links {
  display: flex; align-items: center; gap: var(--sp-4);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a[aria-current="page"] { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: block; content: ""; height: 2px; width: 1.4rem;
  background: var(--text); margin: .3rem auto; transition: .18s;
}

@media (max-width: 54rem) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--surface);
    padding: var(--sp-3) var(--gap);
    border-bottom: 1px solid var(--line);
    display: none;
    gap: var(--sp-3);
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: var(--sp-6) var(--sp-5);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap);
  align-items: center;
}
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }

.hero-photo-wrap { position: relative; }

/* ---------- фото ---------- */

.photo {
  margin: 0; border-radius: var(--radius-md); overflow: hidden;
  background: var(--line); aspect-ratio: var(--ratio, 4/3); position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--lg { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* картка поверх фотографії */
.float-note {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); box-shadow: var(--shadow-sm);
  max-width: 13rem;
}
.float-note strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.float-note span { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

@media (max-width: 40rem) {
  .float-note { left: auto; right: var(--sp-2); bottom: var(--sp-2); }
}

/* фото край в край */
.bleed { position: relative; overflow: hidden; }
.bleed .photo { border-radius: 0; height: 100%; aspect-ratio: auto; }
.bleed-caption {
  position: absolute; left: var(--gap); bottom: var(--sp-4);
  color: #fff; max-width: 28rem;
}
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,20,8,.1), rgba(35,20,8,.65));
}

/* ---------- переваги ---------- */

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 62rem) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .benefits { grid-template-columns: 1fr; } }

.benefit-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-pill);
  background: var(--accent-tint); display: grid; place-items: center;
  margin-bottom: var(--sp-2);
}
.benefit-icon svg { width: 1.4rem; height: 1.4rem; stroke: var(--accent-dark); fill: none; stroke-width: 1.7; }
.benefit h3 { margin-bottom: var(--sp-1); }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- кольорові блоки ---------- */

.block-accent, .block-deep {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--surface);
}
.block-accent { background: var(--accent); }
.block-deep { background: var(--deep); }
.block-accent h2, .block-deep h2 { color: var(--surface); }
.block-accent .lead, .block-deep .lead { color: rgba(255,251,243,.82); }

/* ---------- картки меню ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 60rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: var(--sp-1) var(--sp-1) var(--sp-3); box-shadow: var(--shadow-sm);
}
.card .photo { border-radius: var(--radius-sm); }
.card-row { display: flex; align-items: baseline; gap: var(--sp-2); margin: var(--sp-3) var(--sp-2) 0; }
.card-name { font-family: var(--font-head); font-size: 1.2rem; margin-right: auto; }
.card-price { font-weight: 700; white-space: nowrap; color: var(--accent-dark); }
.card-note { margin: var(--sp-1) var(--sp-2) 0; font-size: .9rem; color: var(--muted); }

/* ---------- меню-сторінка ---------- */

.menu-section { padding-block: var(--sp-5); }
.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.menu-item {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--line);
}
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-item-name { font-family: var(--font-head); font-size: 1.15rem; }
.menu-item-desc { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; max-width: 36ch; }
.menu-item-price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* ---------- цифра-привид ---------- */

.ghost-wrap { position: relative; }
.ghost-number {
  position: absolute; top: -2.6rem; right: -.6rem;
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 10vw, 8rem);
  color: var(--accent-tint);
  line-height: 1; z-index: 0; pointer-events: none; user-select: none;
}
.ghost-wrap > *:not(.ghost-number) { position: relative; z-index: 1; }

/* ---------- списки ---------- */

.dotted { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.dotted li { display: flex; gap: var(--sp-2); align-items: baseline; color: var(--muted); }
.dotted li::before {
  content: ""; width: .5rem; height: .5rem; border-radius: var(--radius-pill);
  background: var(--accent2); flex: none;
}

/* ---------- цитата ---------- */

.quote {
  background: var(--surface); border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  margin: 0; position: relative;
}
.quote p { margin: 0; font-size: 1.08rem; font-family: var(--font-head); }
.quote footer { margin-top: var(--sp-3); font-size: .88rem; color: var(--muted); }

/* ---------- форми ---------- */

.form-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field--full { grid-column: 1 / -1; }

.field { display: grid; gap: var(--sp-1); }
.field > span { font-size: .85rem; color: var(--muted); font-weight: 600; }

.input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); width: 100%;
}
textarea.input { resize: vertical; line-height: 1.5; min-height: 7rem; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); }

.field-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

.agree { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: .87rem; color: var(--muted); }
.agree input { accent-color: var(--accent); margin-top: .25rem; }

.form-msg {
  display: none; border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3);
  font-size: .92rem; margin-top: var(--sp-3);
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: var(--accent-tint); color: var(--accent-dark); }
.form-msg--error { background: var(--accent2-tint); color: var(--accent2); }

/* ---------- newsletter у футері ---------- */

.newsletter-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsletter-form .input { flex: 1; min-width: 12rem; }

/* ---------- футер ---------- */

.site-footer { background: var(--deep); color: #eee3d4; padding-block: var(--sp-6) var(--sp-4); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: var(--gap); }
@media (max-width: 54rem) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.footer-brand b { font: 400 1.4rem var(--font-head); color: #fff; }
.footer-brand p { color: #cbb89d; max-width: 30ch; }

.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-2); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-list a { text-decoration: none; color: #e4d5bf; }
.footer-list a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
  font-size: .82rem; color: #b7a488;
}
.footer-bottom a { text-decoration: underline; color: #d8c7ab; }

/* ---------- cookie-банер ---------- */

.cookie-banner {
  position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3);
  max-width: 34rem; margin-inline: auto;
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--sp-3) var(--sp-4);
  display: none; z-index: 50; gap: var(--sp-3); align-items: center; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 16rem; }
.cookie-banner a { text-decoration: underline; }

/* ---------- сторінка 404 / проста сторінка ---------- */

.plain-hero { padding-block: var(--sp-7); text-align: center; }

/* ---------- таблиця годин ---------- */

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: var(--sp-1) 0; border-bottom: 1px dashed var(--line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

.contact-card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: var(--sp-4); box-shadow: var(--shadow-sm);
}

.section { padding-block: var(--sp-6); }
.section-head { max-width: 40rem; margin-bottom: var(--sp-5); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 54rem) { .two-col { grid-template-columns: 1fr; } }
