/* ALIOME — Warm Gold (по референсу Димы, 2026-10-28). Токены → :root. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);

  --cream: #f8f3ea;       /* фон */
  --cream-2: #f1e8d9;     /* полосы-подложки */
  --paper: #fffdf8;       /* карточки */
  --ink: #2f2219;         /* основной текст 13.9:1 */
  --ink-soft: #5a4636;    /* вторичный текст 8.0:1 */
  --gold: #7d5a2c;        /* золото-текст/кнопки ≥5.1:1 на обоих фонах */
  --gold-mid: #a98049;    /* линии, иконки (декор) */
  --gold-light: #d6b37a;  /* только декор / на тёмном */
  --line: #e2d4bd;
  --dark: #2a1e16;        /* футер */
  --focus: #1a5fd0;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ph-bg: #fff3c4;
  --ph-border: #b38600;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink-soft); background: var(--cream);
}
img { display: block; max-width: 100%; height: auto; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 500; }
p + p { margin-top: 1rem; }
a { color: var(--gold); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 2rem; height: 2rem; fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.75rem; height: 2.75rem; }

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

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: -100%; background: var(--paper); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Типографика */
.display, h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.06; }
.display { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.25rem; }
.eyebrow, .eyebrow-sm {
  font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem; line-height: 1.4;
}
.eyebrow-sm { margin-bottom: 1rem; }
.lead { font-size: 1.1875rem; color: var(--ink); }
.tagline { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold); line-height: 1.3; margin-top: 1.5rem; }
.display + p, .display + .lead { margin-top: 0; }

/* Кнопки */
.button {
  display: inline-flex; align-items: center; gap: .625rem; min-height: 3rem; padding: .75rem 1.5rem; margin-top: 2rem;
  border: 1px solid var(--gold); color: var(--gold); text-decoration: none;
  font-size: .9375rem; font-weight: 500; letter-spacing: .04em;
  transition: background-color .2s, color .2s;
}
.button:hover { background: var(--gold); color: var(--paper); }
.button-solid { background: var(--gold); color: var(--paper); }
.button-solid:hover { background: var(--ink); border-color: var(--ink); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(248 243 234 / .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(248 243 234 / .85); backdrop-filter: blur(8px); } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: var(--header-h); }
.brand, .brand-foot { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-decoration: none; color: var(--ink); }
.brand { min-height: 44px; min-width: 44px; padding-block: .25rem; }
.brand-name { font-family: var(--serif); font-size: 1.875rem; font-weight: 500; letter-spacing: .08em; }
.brand-sub { font-size: .625rem; font-weight: 500; letter-spacing: .5em; margin-top: .25rem; margin-right: -.5em; color: var(--gold); }
.nav-list { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  color: var(--ink); text-decoration: none; font-size: .9375rem; letter-spacing: .02em;
}
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-list a[aria-current="true"] { color: var(--gold); }
.nav-toggle { display: none; }
@media (max-width: 63.99rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; min-width: 44px; padding: .5rem .875rem;
    font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.125rem; height: 1px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
  .js nav { display: contents; }
  .js .nav-list { display: none; flex-direction: column; width: 100%; padding: .5rem 0 1rem; border-top: 1px solid var(--line); }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a { display: flex; min-height: 48px; font-size: 1.1875rem; border-bottom: 1px solid var(--line); }
  .js .nav-list a::after { display: none; }
}

/* Секции */
main > section { padding-block: var(--section); scroll-margin-top: var(--header-h); }
.tint { background: var(--cream-2); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split-rev { grid-template-columns: 1.1fr 1fr; }
  .split-even { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Фото: assets/photos/<name>.webp (временный сток, см. assets/photos/README.md); фон — пока картинка грузится */
.photo { position: relative; overflow: hidden; background: linear-gradient(135deg, #e8d7b8, #c9a874 55%, #8d6a3f); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag {
  position: absolute; left: .5rem; bottom: .5rem; max-width: calc(100% - 1rem);
  background: var(--ph-bg); border: 1px dashed var(--ph-border); color: #5a4300;
  font-size: .75rem; font-weight: 500; line-height: 1.3; padding: .2rem .45rem;
}

/* Hero */
.hero { position: relative; padding-block: 0; display: grid; }
.hero-photo { aspect-ratio: 16 / 10; }
.hero-inner { padding-block: 2.5rem 3.5rem; }
.hero .lead { margin-top: 1.5rem; }
/* Десктоп и любой ландшафт (превью 700×400, телефон 844×390): фото справа, текст слева — не пересекаются,
   H1 в первом экране. --hero-split — где начинается фото (в vw). Burj Khalifa (≈31% кадра) в видимой части. */
@media (min-width: 64rem), (orientation: landscape) {
  .hero { --hero-split: 50; min-height: min(46rem, calc(100vh - var(--header-h))); align-items: center; }
  .hero-photo { position: absolute; inset: 0 0 0 calc(var(--hero-split) * 1vw); aspect-ratio: auto; }
  .hero-photo img { object-position: 30% 50%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgb(248 243 234 / .4) 8%, transparent 18%); }
  .hero-inner { position: relative; width: 100%; padding-block: 5rem; }
  .hero-copy { max-width: calc(var(--hero-split) * 1vw - max(0px, (100vw - var(--container)) / 2) - var(--gutter) - 2rem); }
  .hero h1 { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); }
}
@media (orientation: landscape) and (max-width: 63.99rem) {
  .hero { --hero-split: 60; min-height: 0; align-items: start; }
  .hero-inner { padding-block: 2rem 3rem; }
}

/* Услуги */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 36rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); padding: 1.75rem 1.5rem 2rem; }
.card h3 { font-family: var(--serif); font-size: 1.5rem; margin: 1.25rem 0 .75rem; }
.card p { font-size: .9375rem; }
.card-deco { display: none; place-items: center; background: linear-gradient(135deg, var(--cream-2), #e6d4b4); }
@media (min-width: 36rem) and (max-width: 63.99rem) { .card-deco { display: grid; } }
@media (min-width: 64rem) { .card-deco { display: grid; } }
.deco-mark { font-family: var(--serif); font-size: 7rem; font-weight: 300; color: var(--gold-light); line-height: 1; }

/* Рынок */
.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chips li { border: 1px solid var(--gold-mid); padding: .4rem 1rem; font-size: .9375rem; color: var(--ink); background: var(--paper); }

.placeholder-block {
  display: inline-block; margin-top: 1.5rem; background: var(--ph-bg); border: 1px dashed var(--ph-border); color: #5a4300;
  font-size: .875rem; font-weight: 500; padding: .35rem .65rem;
}

/* События */
.events { display: grid; gap: 2.5rem; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.tile { aspect-ratio: 4 / 5; }
@media (min-width: 64rem) {
  .events { grid-template-columns: minmax(20rem, 1fr) 2fr; align-items: center; gap: 3.5rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: 3 / 5; }
}

/* Почему */
.why { display: grid; gap: 2.5rem; }
.pillars { display: grid; gap: 1.25rem; font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 500; }
.pillars span { display: flex; align-items: center; gap: 1rem; }
.why-copy { align-self: center; }
@media (min-width: 56rem) { .why { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

/* Контакт */
.contact { display: grid; gap: 2.5rem; align-items: center; }
.contact-list { display: grid; gap: 1.25rem; align-content: center; }
.contact-list li { display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.contact-list .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
address { font-style: normal; }
.contact-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-mid); text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-actions .button { margin-top: 0; }
.contact-list a:hover { text-decoration-color: currentColor; }
.contact-services { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 64rem) {
  .contact { grid-template-columns: 1fr 1.25fr .9fr; gap: 3.5rem; }
  .contact-photo { aspect-ratio: 4 / 5; }
  .contact-list { padding-left: 2.5rem; border-left: 1px solid var(--line); }
}

/* Футер */
.site-footer { background: var(--dark); color: #e9dcc6; padding-block: 3rem; font-size: .9375rem; }
.footer-inner { display: grid; gap: 1.5rem; align-items: center; }
.site-footer p + p { margin-top: .25rem; }
.brand-foot { color: #f8f3ea; align-items: flex-start; }
.brand-foot .brand-sub { color: var(--gold-light); }
.footer-social { display: flex; gap: .5rem; justify-self: start; margin-inline-start: -.625rem; } /* иконка по линии текста, зона касания 44px */
.footer-social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--gold-light); }
.footer-social .icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; stroke-width: 1.5; }
.footer-social a:hover { color: #f8f3ea; }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.site-footer .placeholder-block { margin-top: 0; justify-self: start; }
@media (min-width: 56rem) { .footer-inner { grid-template-columns: auto 1fr auto; gap: 3rem; } }
