/* ESEN — токены из ESEN_Web_Brand_Kit/web/tokens.json.
   Текст только deep olive на ivory (6.7:1) или ivory на deep olive.
   Khaki — фирменные блоки с логотипом, не фон для текста (3.1:1). */
:root {
  --esen-khaki: #85896D;
  --esen-ivory: #EEEFEA;
  --esen-sage: #B5BCA5;
  --esen-smoky-blue: #819CA5;
  --esen-sand: #C8BD85;
  --esen-deep-olive: #4F5543;
  --esen-text: var(--esen-deep-olive);
  --esen-bg: var(--esen-ivory);
  --esen-font: Arial, Helvetica, sans-serif;
  --esen-radius: 4px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --content: 640px;
  --cta-bar: 72px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--esen-bg);
  color: var(--esen-text);
  font-family: var(--esen-font);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: calc(var(--cta-bar) + env(safe-area-inset-bottom));
}

h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 var(--s4); }
h1 { font-size: clamp(26px, 6vw, 36px); }
h2 { font-size: 20px; margin-top: var(--s7); }
p { margin: 0 0 var(--s4); }
a { color: var(--esen-deep-olive); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--esen-deep-olive); outline-offset: 4px; }

.skip {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--esen-deep-olive); color: var(--esen-ivory);
  padding: var(--s2) var(--s4); z-index: 10;
}
.skip:focus { top: var(--s4); }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--s5); }

/* Шапка */
.site-header { padding: var(--s4) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.site-header .logo-link { display: block; width: 128px; }
.site-header nav a {
  display: inline-block; padding: var(--s3) 0; margin-left: var(--s5);
  text-decoration: none; font-size: 15px; letter-spacing: .04em;
}
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Фирменный блок с логотипом */
.brand-panel {
  background: var(--esen-khaki);
  padding: clamp(48px, 14vw, 120px) var(--s5);
}
.brand-panel img { width: min(78%, 420px); margin: 0 auto; }

main { padding: var(--s7) 0 var(--s8); }

.lead { font-size: 19px; }

.eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: var(--s3);
}

/* Адрес */
.address {
  font-style: normal;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 var(--s5);
}
.address small { display: block; font-size: 15px; margin-top: var(--s2); }

/* Кнопки */
.actions { display: grid; gap: var(--s3); margin: var(--s5) 0; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: var(--s3) var(--s5);
  border: 1px solid var(--esen-deep-olive); border-radius: var(--esen-radius);
  font-size: 16px; letter-spacing: .02em; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--esen-deep-olive); color: var(--esen-ivory); }
.btn-secondary { background: transparent; color: var(--esen-deep-olive); }
.btn-primary:hover { background: #434838; }
.btn-secondary:hover { background: rgba(79, 85, 67, .06); }
@media (min-width: 560px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn-primary:only-child, .actions .wide { grid-column: 1 / -1; }
}

/* Карта */
.map {
  aspect-ratio: 4 / 3; width: 100%;
  border: 1px solid var(--esen-sage); border-radius: var(--esen-radius);
  overflow: hidden; background: var(--esen-sage);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { font-size: 14px; margin-top: var(--s2); }

.divider { border: 0; border-top: 1px solid var(--esen-sage); margin: var(--s7) 0; }

/* Подвал */
.site-footer {
  background: var(--esen-deep-olive); color: var(--esen-ivory);
  padding: var(--s7) 0; font-size: 14px; line-height: 1.7;
}
.site-footer a { color: var(--esen-ivory); }
.site-footer img { width: 120px; margin-bottom: var(--s5); }
.site-footer p { margin: 0; }

/* Нижняя панель действий на мобильном */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--esen-ivory); border-top: 1px solid var(--esen-sage);
}
.cta-bar .btn { min-height: 48px; padding: var(--s2) var(--s3); font-size: 15px; }
@media (min-width: 900px) {
  .cta-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease; }
}

.site-header .wrap:has(> nav:only-child) { justify-content: flex-end; }
