/* ==========================================================================
   AXIO — whitegen edition
   Визуальный язык оригинального Axio (скин color-1): разделённый экран
   «глубокий фиолетовый + светлая фиолетовая панель», крупные жирные
   заголовки Montserrat, лаймовые акценты, кнопки с прямыми углами.
   Палитра генератора перекрашивает фиолетовую гамму (см. блок hooks внизу).
   ========================================================================== */

:root {
  --ax-deep: #6b2b6b;          /* основной фон героя */
  --ax-panel: #B247B2;         /* правая панель / тёмные секции */
  --ax-panel-2: #a040a0;       /* меню */
  --ax-lime: #ADD322;          /* фирменный акцент */
  --ax-lime-2: #c6e064;
  --ax-ink: #070707;
  --ax-light: #f2f2f2;
  --ax-white: #ffffff;
  --ax-grey: #6f7273;
  --ax-line: rgba(7, 7, 7, 0.1);
  --ax-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ax-text: var(--font-body, 'Montserrat'), 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ax-pad: clamp(20px, 4vw, 50px);
  --ax-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ax-text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ax-ink);
  background: var(--ax-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ax-display); margin: 0; line-height: 1.12; }
p { margin: 0; }
::selection { background: var(--ax-lime-2); color: var(--ax-ink); }

.ax-wrap { width: 100%; max-width: var(--ax-max); margin: 0 auto; padding: 0 var(--ax-pad); }

/* ---------- Header ---------- */
.ax-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--ax-pad);
}
.ax-logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ax-display); font-weight: 700; font-size: 1.25rem;
  color: var(--ax-white); text-decoration: none; letter-spacing: 0.02em;
}
.ax-logo__mark {
  width: 38px; height: 38px; border: 2px solid var(--ax-white); border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem; flex: none;
}
.ax-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.ax-nav a {
  color: var(--ax-white); text-decoration: none; font-family: var(--ax-display);
  font-weight: 700; font-size: 0.95rem; position: relative; padding: 4px 0;
}
.ax-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--ax-lime); transition: right .3s;
}
.ax-nav a:hover::after { right: 0; }
.ax-toggle {
  display: none; width: 46px; height: 46px; border: 2px solid var(--ax-white);
  background: transparent; color: var(--ax-white); cursor: pointer; padding: 0;
  position: relative;
}
.ax-toggle span, .ax-toggle span::before, .ax-toggle span::after {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; content: '';
  transition: transform .3s, opacity .3s;
}
.ax-toggle span { top: 21px; }
.ax-toggle span::before { left: 0; right: 0; top: -7px; }
.ax-toggle span::after { left: 0; right: 0; top: 7px; }
.ax-menu-open .ax-toggle span { background: transparent; }
.ax-menu-open .ax-toggle span::before { transform: translateY(7px) rotate(45deg); }
.ax-menu-open .ax-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.ax-menu {
  position: fixed; inset: 0; z-index: 25; background: var(--ax-panel-2);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 110px var(--ax-pad) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.ax-menu.is-open { opacity: 1; visibility: visible; }
.ax-menu a {
  color: var(--ax-white); text-decoration: none; font-family: var(--ax-display);
  font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.3;
}
.ax-menu a:hover { color: var(--ax-lime); }
.ax-menu-open { overflow: hidden; }
.ax-menu-open .ax-header { position: fixed; }

/* ---------- Buttons ---------- */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border: 2px solid transparent; border-radius: 0;
  font-family: var(--ax-display); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.ax-btn--solid { background: var(--ax-lime); color: var(--ax-ink); border-color: var(--ax-lime); }
.ax-btn--solid:hover { background: var(--ax-white); border-color: var(--ax-white); }
.ax-btn--outline { background: transparent; color: var(--ax-white); border-color: var(--ax-white); }
.ax-btn--outline:hover { background: var(--ax-lime); border-color: var(--ax-lime); color: var(--ax-ink); }
.ax-btn--dark { background: var(--ax-ink); color: var(--ax-white); border-color: var(--ax-ink); }
.ax-btn--dark:hover { background: var(--ax-lime); border-color: var(--ax-lime); color: var(--ax-ink); }

/* ---------- Split hero ---------- */
.ax-hero {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  min-height: 100vh; background: var(--ax-deep); color: var(--ax-white);
}
.ax-hero--inner { min-height: 68vh; }
.ax-hero__main {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--ax-pad) 90px; overflow: hidden;
}
.ax-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.ax-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ax-deep) 92%, transparent) 0%, color-mix(in srgb, var(--ax-deep) 78%, transparent) 60%, color-mix(in srgb, var(--ax-deep) 55%, transparent) 100%);
}
.ax-hero__content { position: relative; max-width: 760px; }
.ax-hero__pre { font-family: var(--ax-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 400; margin-bottom: 8px; }
.ax-hero__title {
  font-weight: 700; font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1.02;
  letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.ax-hero--inner .ax-hero__title { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.ax-hero__title::after {
  content: ''; display: inline-block; width: 6px; height: 0.82em; margin-left: 10px;
  background: var(--ax-lime); vertical-align: -0.06em;
}
.ax-hero__lead { margin-top: 26px; max-width: 560px; font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.88); }
.ax-hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.ax-hero__aside {
  background: var(--ax-panel); display: flex; flex-direction: column; justify-content: center;
  gap: 22px; padding: 140px 50px 90px;
}
.ax-hero__aside h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.ax-hero__aside p { font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,.92); overflow-wrap: anywhere; }
.ax-hero__aside .ax-btn { align-self: flex-start; }
.ax-hero__aside-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Sections ---------- */
.ax-section { padding: clamp(70px, 9vw, 120px) 0; }
.ax-section--light { background: var(--ax-light); }
.ax-section--white { background: var(--ax-white); }
.ax-section--dark { background: var(--ax-deep); color: var(--ax-white); }
.ax-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 60px; align-items: end; margin-bottom: 50px; }
.ax-head--single { grid-template-columns: minmax(0, 1fr); }
.ax-title { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.ax-title::after { content: ''; display: block; width: 60px; height: 5px; background: var(--ax-lime); margin-top: 22px; }
.ax-lead { color: var(--ax-grey); font-size: 1.02rem; line-height: 1.8; max-width: 640px; }
.ax-section--dark .ax-lead { color: rgba(255,255,255,.8); }
.ax-label { display: inline-block; font-family: var(--ax-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ax-panel); margin-bottom: 14px; }
.ax-section--dark .ax-label { color: var(--ax-lime); }

/* cards */
.ax-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--ax-cols, 3), minmax(0, 1fr)); }
.ax-grid--2 { --ax-cols: 2; }
.ax-grid--4 { --ax-cols: 4; }
.ax-card {
  background: var(--ax-white); padding: 36px 32px; border-top: 4px solid var(--ax-lime);
  box-shadow: 0 18px 40px -28px rgba(7,7,7,.35); display: flex; flex-direction: column; gap: 14px;
}
.ax-section--white .ax-card { background: var(--ax-light); box-shadow: none; }
.ax-card h3 { font-size: 1.2rem; font-weight: 700; }
.ax-card p { color: var(--ax-grey); font-size: 0.97rem; line-height: 1.75; }
.ax-icon {
  width: 54px; height: 54px; display: grid; place-items: center; background: var(--ax-deep);
  color: var(--ax-lime); font-size: 1.6rem; flex: none;
}

/* text body */
.ax-prose { max-width: 820px; display: grid; gap: 20px; font-size: 1.05rem; line-height: 1.85; color: #313637; }
.ax-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.ax-split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* plans */
.ax-plan { background: var(--ax-white); padding: 40px 34px; display: flex; flex-direction: column; gap: 18px; border-top: 4px solid var(--ax-ink); }
.ax-plan--hl { background: var(--ax-deep); color: var(--ax-white); border-top-color: var(--ax-lime); }
.ax-plan__name { font-family: var(--ax-display); font-weight: 700; font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; }
.ax-plan__price { font-family: var(--ax-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.ax-plan__desc { color: var(--ax-grey); }
.ax-plan--hl .ax-plan__desc { color: rgba(255,255,255,.8); }
.ax-plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--ax-line); display: grid; gap: 10px; flex: 1; }
.ax-plan--hl ul { border-top-color: rgba(255,255,255,.18); }
.ax-plan li { padding-left: 26px; position: relative; font-size: .97rem; }
.ax-plan li::before { content: ''; position: absolute; left: 0; top: .62em; width: 12px; height: 4px; background: var(--ax-lime); }
.ax-plan .ax-btn { align-self: flex-start; margin-top: 8px; }

/* team */
.ax-member { background: var(--ax-white); padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; }
.ax-member__initial {
  width: 76px; height: 76px; background: var(--ax-lime); color: var(--ax-ink); display: grid; place-items: center;
  font-family: var(--ax-display); font-weight: 800; font-size: 2rem; margin-bottom: 10px;
}
.ax-member h3 { font-size: 1.15rem; }
.ax-member__role { font-family: var(--ax-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ax-panel); }
.ax-member p { color: var(--ax-grey); font-size: .95rem; }

/* gallery */
.ax-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ax-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* reviews */
.ax-review { background: var(--ax-white); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; border-left: 4px solid var(--ax-lime); }
.ax-stars { color: var(--ax-lime); letter-spacing: 3px; font-size: 1.1rem; }
.ax-stars .off { color: #d4d6d6; }
.ax-review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.8; color: #313637; }
.ax-review cite { font-style: normal; font-family: var(--ax-display); font-weight: 700; font-size: .9rem; }

/* contact */
.ax-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ax-contact__item { background: var(--ax-white); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--ax-lime); }
.ax-contact__item span { font-family: var(--ax-display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-panel); }
.ax-contact__item a, .ax-contact__item p { font-family: var(--ax-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.ax-map { width: 100%; height: 460px; border: 0; display: block; filter: grayscale(.2); }

/* CTA band */
.ax-cta { background: var(--ax-panel); color: var(--ax-white); padding: clamp(60px, 8vw, 100px) 0; }
.ax-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.ax-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; max-width: 680px; }
.ax-cta__text { margin-top: 12px; max-width: 640px; color: rgba(255,255,255,.88); line-height: 1.75; }

/* ---------- Footer ---------- */
.ax-footer { background: var(--ax-ink); color: rgba(255,255,255,.7); padding: 70px 0 34px; font-size: .92rem; }
.ax-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.ax-footer .ax-logo { margin-bottom: 18px; }
.ax-footer h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-white); margin-bottom: 16px; }
.ax-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ax-footer a { text-decoration: none; }
.ax-footer a:hover { color: var(--ax-lime); }
.ax-footer__bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--ax-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Reveal (только если JS работает) ---------- */
.ax-js .ax-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ax-js .ax-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ax-nav { display: none; }
  .ax-toggle { display: inline-block; }
  .ax-grid--4 { --ax-cols: 2; }
}
@media (max-width: 960px) {
  .ax-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ax-hero__main { min-height: 78vh; }
  .ax-hero--inner .ax-hero__main { min-height: 52vh; }
  .ax-hero__aside { padding: 56px var(--ax-pad); }
  .ax-head, .ax-split { grid-template-columns: minmax(0, 1fr); }
  .ax-grid { --ax-cols: 2; }
  .ax-contact { grid-template-columns: minmax(0, 1fr); }
  .ax-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ax-footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ax-grid, .ax-grid--2, .ax-grid--4 { --ax-cols: 1; }
  .ax-gallery { grid-template-columns: minmax(0, 1fr); }
  .ax-hero__main { padding-top: 120px; }
  .ax-btn { width: 100%; }
  .ax-hero__aside .ax-btn { align-self: stretch; }
  .ax-map { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== whitegen hooks: палитра генератора ===== */
/* акцент палитры задаёт фиолетовую гамму Axio (фон героя, панель, меню);
   лайм — подпись шаблона — остаётся */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --ax-panel: color-mix(in srgb, var(--color-accent, #B247B2) 82%, #fff);
    --ax-panel-2: color-mix(in srgb, var(--color-accent, #B247B2) 72%, #000);
    --ax-deep: color-mix(in srgb, var(--color-accent, #B247B2) 48%, #0b0b0b);
  }
}



@font-face {
    font-family: 'Roboto Mono';
    src: url('fonts/robotomono-var.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dmsans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dmsans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: 'DM Sans';
    --font-body: 'Roboto Mono';
}


:root {
    --color-bg: #160f1a;
    --color-bg-alt: #211729;
    --color-text: #f3edf7;
    --color-muted: #b3a3bd;
    --color-accent: #c14fd6;
}