/* Деус – design system. Inspired by large coffee-house brands: restrained green/white palette,
   flat surfaces, confident small type, pill buttons, editorial image/text tiles. */
:root {
  --green: #00754A;
  --green-hover: #006241;
  --house: #1E3932;
  --gold: #CBA258;
  --warm: #F2F0EB;
  --ceramic: #EDEBE9;
  --white: #fff;
  --text: rgba(0,0,0,.87);
  --text-soft: rgba(0,0,0,.58);
  --line: rgba(0,0,0,.12);
  --error: #C82014;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.muted { color: var(--text-soft); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 12px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px; min-height: 36px; border-radius: 50px; cursor: pointer;
  font: 700 .875rem/1.2 inherit; font-family: inherit; letter-spacing: -.01em; text-decoration: none;
  border: 1px solid var(--green); background: var(--green); color: var(--white);
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); text-decoration: none; }
.btn:active { transform: scale(.95); }
.btn.outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn.outline:hover { background: rgba(0,0,0,.06); }
.btn.light { background: var(--white); color: var(--text); border-color: var(--white); }
.btn.light:hover { background: var(--ceramic); }
.btn.outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline-light:hover { background: rgba(255,255,255,.12); }
.btn.lg { padding: 11px 24px; min-height: 44px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(255,255,255,.55);
}
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; flex: 1; }
.nav a.link {
  display: flex; align-items: center; padding: 0 12px; color: var(--text); font-weight: 700; font-size: .875rem;
  position: relative; text-decoration: none;
}
.nav a.link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--green);
  transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left;
}
.nav a.link:hover::after, .nav a.link[aria-current='page']::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.loc { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: .875rem; }
.loc:hover { color: var(--green); text-decoration: none; }
.loc svg { width: 20px; height: 20px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; margin-left: auto; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 8px 0 0; color: var(--text-soft); max-width: 60ch; }
.breadcrumb { font-size: .8125rem; color: var(--text-soft); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-soft); }
section.block { padding: 56px 0; }
.block + .block { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head a { font-weight: 700; font-size: .875rem; }

/* ---------- Home: hero + tiles ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: var(--house); color: var(--white); }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero:hover .hero-img img { transform: scale(1); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 96px); }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }
.hero-copy p { color: rgba(255,255,255,.85); font-size: 1.125rem; max-width: 42ch; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.tile { display: grid; grid-template-columns: 1fr 1fr; background: var(--warm); }
.tile.reverse .tile-img { order: 2; }
.tile-img { overflow: hidden; min-height: 380px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px clamp(24px, 6vw, 96px); }
.tile-copy h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tile-copy p { max-width: 46ch; color: var(--text-soft); }
.tile.dark { background: var(--green); color: var(--white); }
.tile.dark h2 { color: var(--white); }
.tile.dark p { color: rgba(255,255,255,.85); }

.cards { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: block; color: var(--text); }
.card:hover { text-decoration: none; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--ceramic); margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card h3 { margin-bottom: 6px; }
.card:hover h3 { color: var(--green); }
.card p { color: var(--text-soft); font-size: .9375rem; margin: 0; }

.cats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }
.cat { color: var(--text); font-weight: 700; font-size: .9375rem; }
.cat:hover { text-decoration: none; color: var(--green); }
.cat .disc { width: min(160px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; background: var(--ceramic); transition: transform .3s var(--ease); }
.cat:hover .disc { transform: scale(1.06); }
.cat .disc img { width: 100%; height: 100%; object-fit: cover; }

.info-band { background: var(--house); color: var(--white); padding: 48px 0; }
.info-band .wrap { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-band h3 { color: var(--gold); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.info-band p, .info-band a { color: var(--white); margin: 0; font-size: 1.0625rem; }

/* ---------- Menu ---------- */
.menu-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0 72px; align-items: start; }
.menu-layout > * { min-width: 0; }
.menu-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.menu-nav h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
.menu-nav a { display: block; padding: 8px 0 8px 14px; color: var(--text); font-weight: 600; border-left: 2px solid transparent; font-size: .9375rem; }
.menu-nav a:hover, .menu-nav a.active { color: var(--green); border-left-color: var(--green); text-decoration: none; }
.menu-cat { scroll-margin-top: calc(var(--header-h) + 24px); margin-bottom: 48px; }
.menu-cat-head { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-cat-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-item strong { display: block; font-weight: 700; }
.menu-item span.d { color: var(--text-soft); font-size: .9rem; }
.price { font-weight: 700; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 32px 0 72px; }
.gallery button { padding: 0; border: 0; background: var(--ceramic); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; margin: auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ---------- Article / team ---------- */
.article { padding: 40px 0 72px; }
.article img { margin-bottom: 24px; width: 100%; }
.article p { font-size: 1.0625rem; line-height: 1.7; }
.team { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.75rem; margin-bottom: 16px; overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 72px; align-items: start; }
.form-layout.single { grid-template-columns: minmax(0, 560px); }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid rgba(0,0,0,.45); border-radius: 4px; transition: border-color .2s, box-shadow .2s;
}
input:hover, textarea:hover { border-color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,117,74,.2); }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: .8125rem; font-weight: 600; }
.flash { background: var(--warm); border-left: 4px solid var(--green); padding: 14px 18px; margin: 24px 0 0; font-weight: 600; }
iframe.map { width: 100%; height: 320px; border: 0; margin-top: 24px; filter: saturate(.85); }
.hours { border-collapse: collapse; margin: 16px 0; }
.hours td { padding: 6px 32px 6px 0; border-bottom: 1px solid var(--line); }
.contact-list p { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 56px 0 40px; }
.footer-top h3 { font-size: .8125rem; letter-spacing: .02em; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { color: var(--text-soft); font-size: .9375rem; }
.footer-top a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { color: var(--text-soft); max-width: 32ch; margin-top: 14px; font-size: .9375rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: var(--text-soft); }
.footer-bottom a { color: var(--text-soft); }

/* ---------- Floating + cookie ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.cookie {
  position: fixed; left: 24px; bottom: 24px; max-width: 420px; z-index: 150; background: var(--house); color: #fff;
  padding: 20px; display: grid; gap: 14px; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .875rem; }
.cookie a { color: var(--gold); }
.cookie .row { display: flex; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .menu-layout { grid-template-columns: 1fr; gap: 24px; }
  .menu-nav { position: sticky; top: var(--header-h); background: var(--white); z-index: 5; margin: 0 -24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
  .menu-nav h2 { display: none; }
  .menu-nav .list { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .menu-nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 14px 10px; }
  .menu-nav a:hover, .menu-nav a.active { border-left-color: transparent; border-bottom-color: var(--green); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .burger { display: block; }
  .header-cta .loc { display: none; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 8px 16px 24px; gap: 0; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a.link { padding: 18px 4px; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav a.link::after { display: none; }
  .nav .mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .hero, .tile { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-img { aspect-ratio: 4/3; }
  .tile.reverse .tile-img { order: 0; }
  .tile-img { min-height: 0; aspect-ratio: 4/3; }
  .hero-copy, .tile-copy { padding: 32px 16px 40px; }
  .menu-items { grid-template-columns: 1fr; }
  .menu-nav { margin: 0 -16px; padding: 0 16px; }
  .page-head { padding: 32px 0 20px; }
  section.block { padding: 40px 0; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; }
  .float-cta .btn { width: 100%; }
  .cookie { left: 16px; right: 16px; bottom: 76px; max-width: none; }
  .footer-top { grid-template-columns: 1fr; padding-top: 40px; }
  body { padding-bottom: 76px; }
}
@media (min-width: 821px) { .nav .mobile-cta { display: none; } }
