/* ==========================================================================
   PRO ПРОДАЖІ · Pro Business Club
   Brand: Nohemi (primary) → Unbounded (fallback)
   Colors: #E22020 · #F9F6F2 · #000000
   Style: Swiss / editorial — typography-led, brutally minimal.
   ========================================================================== */

/* ============================================ FONT FACES — NOHEMI
   Drop the files into /fonts and they'll be picked up automatically.
   If absent, Unbounded (self-hosted, below) is used as visual fallback.
   ============================================================== */
@font-face {
  font-family: 'Nohemi';
  src: url('fonts/Nohemi-Light.woff2') format('woff2'),
       url('fonts/Nohemi-Light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('fonts/Nohemi-Bold.woff2') format('woff2'),
       url('fonts/Nohemi-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('fonts/Nohemi-Black.woff2') format('woff2'),
       url('fonts/Nohemi-Black.woff')  format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('fonts/Nohemi-Medium.woff2') format('woff2'),
       url('fonts/Nohemi-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================ UNBOUNDED (self-hosted)
   1:1 з Google Fonts CSS — 5 окремих @font-face на вагу × 4 unicode-range.
   ====================================================================== */
/* 300 */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 400 */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 500 */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 700 */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 900 */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette — exact from brandbook */
  --black: #000000;
  --black-2: #0c0c0c;
  --white: #F9F6F2;        /* cream from brandbook */
  --white-pure: #ffffff;
  --red: #E22020;          /* exact brandbook red */
  --red-deep: #b81717;

  /* Lines & muted */
  --line-w: rgba(249, 246, 242, 0.16);
  --line-b: rgba(0, 0, 0, 0.14);
  --muted-w: rgba(249, 246, 242, 0.62);
  --muted-b: rgba(0, 0, 0, 0.6);

  /* Type — Unbounded: Black(900) заголовки · Bold(700) підзаголовки · Light(300) текст */
  --font: 'Unbounded', system-ui, -apple-system, sans-serif;
  /* PBC wordmark — той самий стек, окремий токен для написів лого */
  --font-wordmark: 'Unbounded', system-ui, -apple-system, sans-serif;

  /* Sizing */
  --container: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 0;            /* brand is sharp, no rounded corners */

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================ RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-weight: 300;        /* Light by default — per brandbook body */
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Prevent any title from overflowing the viewport */
h1, h2, h3, h4, h5, h6, p, li, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: manual;
}

/* Allow grid/flex children to shrink below content size */
main, section, article, .container, [class*="__"] {
  min-width: 0;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Body text не жирніє: Bold(700) лише для заголовків/підзаголовків.
   Акцент у тексті — кольором, не вагою. */
strong,
b {
  font-weight: inherit;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ============================================ TYPOGRAPHY HIERARCHY */
.t-display {
  font-family: var(--font);
  font-weight: 900;        /* Black */
  font-size: clamp(56px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.t-h2 {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.t-h3 {
  font-family: var(--font);
  font-weight: 700;        /* Bold */
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.t-body {
  font-family: var(--font);
  font-weight: 300;        /* Light */
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.t-caps {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.t-caps-sm {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.accent { color: var(--red); }

/* ============================================ LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(45px, 11vw, 160px) 0;
}

.section--invert {
  background: var(--white);
  color: var(--black);
}

.section--red {
  background: var(--red);
  color: var(--white);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-w);
  margin-bottom: clamp(45px, 5vw, 120px);
}

.section--invert .section__head {
  border-top-color: var(--line-b);
}

.section__head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.section__head .num {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.section__head .label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-w);
}

.section--invert .section__head .label { color: var(--muted-b); }

.section__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(29px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section__title--mid {
  font-size: clamp(28px, 4.6vw, 68px);
}

.section__lead {
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  max-width: 540px;
}

.section--invert .section__lead { color: var(--muted-b); }
/* .section .section__lead { color: var(--muted-w); } */

/* ============================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  transition: background 0.35s var(--ease-out),
              color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.4s var(--ease-out);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.section--invert .btn--primary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.section--invert .btn--ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--lg {
  padding: 22px 34px;
  font-size: 13px;
}

.btn--xl {
  padding: 28px 44px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
  justify-content: space-between;
}

/* link arrow editorial */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease-out), color 0.3s var(--ease-out);
}

.link-arrow:hover {
  gap: 22px;
}

/* ============================================ NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-w);
}

.nav__backdrop {
  display: none;
}

.nav__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-wordmark);
}

.nav__logo-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav__logo-chev {
  display: inline-block;
  width: 24px;
  height: 16px;
  margin-left: -3px;
  transform: translateY(1px);
}

.nav__burger {
  display: none;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav__burger:hover {
  background: rgba(249, 246, 242, 0.08);
}

.nav__burger-line {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  margin-left: -10px;
  background: currentColor;
  transition: transform 0.38s var(--ease-out), top 0.38s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav__burger-line:nth-child(1) {
  top: calc(50% - 6px);
}

.nav__burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav__burger-line:nth-child(3) {
  top: calc(50% + 6px);
}

.nav--open .nav__burger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav--open .nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.2);
}

.nav--open .nav__burger-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav__menu {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__menu a:not(.nav__cta) {
  position: relative;
  opacity: 0.65;
  transition: opacity 0.25s var(--ease-out);
}

.nav__menu a:not(.nav__cta):hover {
  opacity: 1;
}

.nav__menu a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav__menu a:not(.nav__cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: 14px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

@media (max-width: 900px) {
  .nav {
    padding: 10px 0;
  }
  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s var(--ease-out), visibility 0.38s;
  }

  .nav--open .nav__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.nav--open {
    z-index: 150;
  }

  .nav__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav__logo {
    order: 1;
    position: relative;
    z-index: 4;
  }

  .nav__cta {
    order: 3;
    margin-left: auto;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
    position: relative;
    z-index: 4;
  }

  .nav__cta svg {
    flex-shrink: 0;
  }

  .nav__burger {
    display: block;
    order: 4;
    position: relative;
    z-index: 4;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.9);
    transform: translate3d(100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.45s var(--ease-out),
      opacity 0.32s var(--ease-out),
      visibility 0.45s;
  }

  .nav--open .nav__menu {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__menu a:not(.nav__cta) {
    display: block;
    padding: 18px 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 1;
    border-bottom: 1px solid var(--line-w);
  }

  .nav__menu a:not(.nav__cta)::after {
    display: none;
  }

  .nav__menu a:not(.nav__cta):active {
    color: var(--red);
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__menu,
  .nav__backdrop,
  .nav__burger-line {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================ HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--line-w);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Тепла червона база замість чистого чорного — світліше/живіше */
  background: radial-gradient(125% 95% at 70% 16%, #2a0a0a 0%, #0e0404 52%, #000 100%);
}

/* ===== HERO v2 — aurora mesh · tech grid · film grain · glass · kinetic ===== */
.hero__aurora {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(58px);
  mix-blend-mode: screen;
  will-change: transform, border-radius;
}

.hero__blob--1 {
  width: 54vw; height: 54vw;
  left: -6vw; top: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(255, 56, 56, 1), rgba(226, 32, 32, 0) 68%);
  animation: blobMorph1 22s var(--ease) infinite;
}

.hero__blob--2 {
  width: 46vw; height: 46vw;
  right: -10vw; top: -8vw;
  background: radial-gradient(circle at 50% 50%, rgba(226, 32, 32, 0.95), rgba(184, 23, 23, 0) 70%);
  animation: blobMorph2 27s var(--ease) infinite;
}

.hero__blob--3 {
  width: 46vw; height: 46vw;
  right: 0; top: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 252, 248, 0.72), rgba(249, 246, 242, 0) 62%);
  animation: blobMorph3 31s var(--ease) infinite;
}

.hero__blob--4 {
  width: 40vw; height: 40vw;
  left: 12vw; bottom: -10vw;
  background: radial-gradient(circle at 50% 50%, rgba(255, 70, 70, 0.85), rgba(226, 32, 32, 0) 70%);
  animation: blobMorph4 24s var(--ease) infinite;
}

/* Faint perspective tech grid */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(249, 246, 242, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 246, 242, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 26%, #000 0%, transparent 68%);
          mask-image: radial-gradient(120% 95% at 72% 26%, #000 0%, transparent 68%);
  opacity: 0.32;
}

/* Neural network constellation (JS-driven canvas) */
.hero__neural {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Cursor spotlight — follows mouse, brightens via screen blend */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    460px circle at var(--mx, 70%) var(--my, 28%),
    rgba(226, 32, 32, 0.22) 0%,
    rgba(226, 32, 32, 0.08) 35%,
    transparent 62%
  );
  transition: opacity 0.4s var(--ease-out);
}

/* Film grain */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 5s steps(5) infinite;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Легший веаль: світло/колір проступають, низ-ліво лишається під текст */
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.62) 24%,
      rgba(0, 0, 0, 0.28) 50%,
      rgba(0, 0, 0, 0.08) 76%,
      rgba(0, 0, 0, 0) 100%),
    linear-gradient(to right,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.12) 42%,
      rgba(0, 0, 0, 0) 68%);
}

/* Портрет ведучої — grid-елемент (mobile: смуга; desktop: права колона) */
.hero__portrait-wrap {
  position: relative;
  grid-area: portrait;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: clamp(300px, 44vh, 480px);
}

.hero__portrait-glow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 78%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(226, 32, 32, 0.5) 0%, rgba(226, 32, 32, 0) 60%);
  filter: blur(30px);
  z-index: -1;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero__portrait {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

/* Subtitle — текст 1 блоку */
.hero__subtitle {
  grid-area: kinetic;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(16px, 1.9vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 34ch;
  margin-top: clamp(-10px, -0.6vw, -4px);
}

.hero__subtitle-dim {
  color: var(--muted-w);
}

/* Suffix заголовка «для бізнесу» */
.hero__title-suffix {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--white);
  margin-top: 0.14em;
}

@keyframes blobMorph1 {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50%      { transform: translate(5vw, 4vw) scale(1.12); border-radius: 58% 42% 40% 60% / 55% 48% 52% 45%; }
}

@keyframes blobMorph2 {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50% 50% 55% 45% / 48% 52% 48% 52%; }
  50%      { transform: translate(-4vw, 5vw) scale(1.14); border-radius: 40% 60% 48% 52% / 60% 40% 58% 42%; }
}

@keyframes blobMorph3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4vw, -4vw) scale(1.16); }
}

@keyframes blobMorph4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3vw, -3vw) scale(1.1); }
}

@keyframes grainShift {
  0%   { background-position: 0 0; }
  20%  { background-position: -40px 30px; }
  40%  { background-position: 30px -50px; }
  60%  { background-position: -20px -30px; }
  80%  { background-position: 40px 20px; }
  100% { background-position: 0 0; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7;  transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

/* Мобайл/планшет: контент зверху */
@media (max-width: 1024px) {
  .hero {
    align-items: start;
  }
}

/* Мобайл: PRO AI в один рядок */
@media (max-width: 700px) {
  .hero__title {
    display: flex;
    align-items: center;
    gap: 0.26em;
    flex-wrap: wrap;
  }
  .hero__title-l1 {
    display: inline;
  }
  .hero__title-l2 {
    gap: 0.26em;
  }
  .hero__title-suffix {
    flex-basis: 100%;
    font-size: clamp(18px, 6vw, 32px);
    margin-top: 0;
  }
  .hero__portrait-wrap {
    height: clamp(300px, 42vh, 460px);
  }
  .hero__lead {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__blob,
  .hero__grain,
  .hero__portrait-glow,
  .hero__rotator > span,
  .hero__title-l1,
  .hero__title-l2 > span:first-child {
    animation: none;
  }
  .hero__spotlight { display: none; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.6vw, 36px);
  /* Мобайл-порядок: PRO AI → кінетика → спікер → чіпи → решта */
  grid-template-areas:
    "title"
    "kinetic"
    "portrait"
    "meta"
    "bottom";
}

.hero__top { grid-area: meta; }
.hero__title { grid-area: title; }
.hero__kinetic { grid-area: kinetic; }
.hero__bottom { grid-area: bottom; }

/* Desktop: чіпи стовпчиком зліва, портрет — права колона (нічого не перекриває) */
@media (min-width: 1025px) {
  .hero {
    align-items: stretch;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(400px, 46vw, 710px);
    column-gap: clamp(28px, 4vw, 60px);
    align-content: start;
    grid-template-areas:
      "meta    ."
      "title   ."
      "kinetic ."
      "bottom  .";
  }
  /* Чіпи — стрічка одразу під хедером */
  .hero__inner .hero__top {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 560px;
  }
  /* Портрет — приліплений до низу екрану, великий */
  .hero__portrait-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(400px, 46vw, 720px);
    height: min(94vh, 1120px);
    align-items: flex-end;
  }
  .hero__portrait {
    object-fit: contain;
    object-position: bottom center;
  }
  .hero__inner .hero__bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero__top-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(249, 246, 242, 0.04);
  border: 1px solid rgba(249, 246, 242, 0.12);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.hero__top-cell:hover {
  border-color: rgba(226, 32, 32, 0.6);
  background: rgba(249, 246, 242, 0.06);
}

.hero__top-cell .t-caps-sm {
  color: var(--muted-w);
}

.hero__top-cell .val {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.hero__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(48px, 11.5vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__title-l1 {
  display: block;
}

/* Animated sheen across PRO / AI text (mark untouched) */
.hero__title-l1,
.hero__title-l2 > span:first-child {
  background: linear-gradient(
    100deg,
    var(--white) 0%,
    var(--white) 36%,
    var(--white-pure) 50%,
    var(--white) 64%,
    var(--white) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleSheen 6.5s linear infinite;
}

@keyframes titleSheen {
  from { background-position: 210% 0; }
  to   { background-position: -110% 0; }
}

.hero__title-l2 {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: nowrap;
  min-width: 0;
}

.hero__title-mark {
  display: inline-flex;
  width: clamp(40px, 6vw, 96px);
  height: clamp(40px, 6vw, 96px);
  background: var(--red);
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__title-mark img {
  width: 80%;
  height: 80%;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--line-w);
}

@media (max-width: 900px) {
  .hero {
    padding: 100px 0 60px;
  }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.hero__lead {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.5;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__lead p {
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
}

.hero__lead-strong {
  font-weight: 500;
  color: var(--white);
}

.hero__benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin-top: 2px;
}

.hero__benefits li {
  position: relative;
  padding-left: 18px;
  font-weight: 300;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  color: var(--muted-w);
}

.hero__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

@media (max-width: 600px) {
  .hero__benefits {
    grid-template-columns: 1fr;
  }
}

.hero__index {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted-w);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.chip__dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
  position: relative;
}

.chip__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.chip--req { color: var(--muted-w); }
.chip__dot--static { background: var(--muted-w); }
.chip__dot--static::after { display: none; }

/* ============================================ MARQUEE */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background: var(--red);
  color: var(--white);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(22px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  animation: marquee 35s linear infinite;
}

.marquee__chev {
  display: inline-flex;
  align-items: center;
  width: clamp(24px, 2.4vw, 38px);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================ ABOUT */
.about__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-bottom: clamp(45px, 8vw, 120px);
}

@media (max-width: 900px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--muted-w);
}

.section--invert .about__text { color: var(--muted-b); }

.about__text strong {
  color: var(--white);
}

.section--invert .about__text strong { color: var(--black); }

.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.4fr 1fr;
  gap: 8px;
  height: 100%;
  min-height: 500px;
}

.about__img {
  position: relative;
  overflow: hidden;
  background: var(--black-2);
  border: 1px solid var(--line-w);
}

.section--invert .about__img {
  border-color: var(--line-b);
  background: rgba(0, 0, 0, 0.06);
}

.about__img--lg {
  grid-column: 1 / 3;
}

.img-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--white);
  color: var(--black);
}

.img-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted-w);
}

.section--invert .img-num { color: var(--muted-b); }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-w);
  border-bottom: 1px solid var(--line-w);
}

.section--invert .stats {
  border-color: var(--line-b);
}

.stat {
  position: relative;
  padding: 40px 28px;
  border-right: 1px solid var(--line-w);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section--invert .stat { border-right-color: var(--line-b); }

.stat:last-child {
  border-right: none;
}

.stat__top {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat__num {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stat__plus {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.9;
  color: var(--red);
}

.stat__label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-w);
  max-width: 180px;
}

.section--invert .stat__label { max-width: none; color: var(--muted-b); }

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-bottom: 1px solid var(--line-w);
  }
  .section--invert .stat { border-bottom-color: var(--line-b); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================ FOR WHOM */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-w);
  border-bottom: 1px solid var(--line-w);
}

.section--invert .cards-3 {
  border-color: var(--line-b);
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.for-card {
  position: relative;
  padding: 40px 32px 32px;
  border-right: 1px solid var(--line-w);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: background 0.4s var(--ease-out);
}

.section--invert .for-card { border-right-color: var(--line-b); }

.for-card:last-child {
  border-right: none;
}

.for-card:hover {
  background: var(--red);
  color: var(--white);
}

.for-card__num {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--red);
  margin-bottom: 32px;
  transition: color 0.4s var(--ease-out);
}

.for-card:hover .for-card__num { color: var(--white); }

.for-card h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.for-card p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-w);
  flex: 1;
}

.section--invert .for-card p { color: var(--muted-b); }
.for-card:hover p { color: rgba(255, 255, 255, 0.85); }

.for-card__bottom {
  margin-top: 32px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-w);
  color: var(--muted-w);
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.section--invert .for-card__bottom {
  border-top-color: var(--line-b);
  color: var(--muted-b);
}

.for-card:hover .for-card__bottom {
  color: var(--white);
  border-top-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .for-card {
    border-right: none;
    border-bottom: 1px solid var(--line-w);
    min-height: 360px;
  }
  .section--invert .for-card { border-bottom-color: var(--line-b); }
  .for-card:last-child { border-bottom: none; }
}

/* ============================================ SPEAKERS */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-w);
  border-top: 1px solid var(--line-w);
  border-bottom: 1px solid var(--line-w);
}

.section--invert .speakers__grid {
  background: var(--line-b);
  border-color: var(--line-b);
}

@media (max-width: 900px) {
  .speakers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .speakers__grid {
    grid-template-columns: 1fr;
  }
}

.speaker {
  position: relative;
  background: var(--black);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease-out);
}

.section--invert .speaker { background: var(--white); }

.speaker__img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--black-2);
  overflow: hidden;
}

.section--invert .speaker__img { background: rgba(0, 0, 0, 0.05); }

/* Легкий бренд-«полив» знизу при hover (поверх фото, під номером/тегом) */
.speaker__img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
  background: linear-gradient(
    to top,
    rgba(226, 32, 32, 0.32) 0%,
    rgba(226, 32, 32, 0.08) 40%,
    transparent 68%
  );
}

.speaker:hover .speaker__img::after {
  opacity: 1;
}

.speaker__img .ph {
  transition: transform 0.65s var(--ease-out), filter 0.5s var(--ease-out);
}

.speaker:hover .speaker__img .ph {
  transform: scale(1.06);
  filter: saturate(1.1) brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .speaker__img .ph,
  .speaker__img::after {
    transition: none;
  }

  .speaker:hover .speaker__img .ph {
    transform: none;
    filter: none;
  }
}

.speaker__num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--white);
  z-index: 3;
}

.speaker__topic-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--red);
  color: var(--white);
  z-index: 3;
}

.speaker__info {
  padding: 28px 24px 32px;
}

.speaker h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.speaker p {
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-w);
}

.section--invert .speaker p { color: var(--muted-b); }

.speaker__role {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

/* ============================================ SPEAKER — SOLO SPOTLIGHT */
.speaker-solo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1px;
  background: var(--line-b);
  border-top: 1px solid var(--line-b);
  border-bottom: 1px solid var(--line-b);
}

.speaker-solo__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.speaker-solo__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out), filter 0.5s var(--ease-out);
}

.speaker-solo:hover .speaker-solo__media .ph {
  transform: scale(1.04);
  filter: saturate(1.08) brightness(1.02);
}

.speaker-solo__num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--white);
  z-index: 3;
}

.speaker-solo__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--red);
  color: var(--white);
  z-index: 3;
}

.speaker-solo__info {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px);
}

.speaker-solo__role {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.speaker-solo__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.speaker-solo__bio {
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--muted-b);
  max-width: 52ch;
  margin-bottom: 32px;
}

.speaker-solo__facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-b);
}

.speaker-solo__facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-b);
}

.speaker-solo__fact-l {
  font-family: var(--font);
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-b);
}

.speaker-solo__fact-v {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--black);
}

@media (max-width: 760px) {
  .speaker-solo {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaker-solo__media .ph {
    transition: none;
  }
  .speaker-solo:hover .speaker-solo__media .ph {
    transform: none;
    filter: none;
  }
}

/* ============================================ PROGRAM */
.program__list {
  border-top: 1px solid;
  border-color: currentColor;
  border-color: var(--line-w);
}

.section--invert .program__list { border-top-color: var(--line-b); }

.program__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 140px;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 32px 16px;
  border-bottom: 1px solid var(--line-w);
  align-items: start;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

@media (max-width: 1100px) {
  .program__item {
    grid-template-columns: 48px minmax(0, 1fr) 110px;
    gap: 16px;
  }
}

.program__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  max-width: 620px;
}

.program__points li {
  position: relative;
  padding-left: 18px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-w);
}

.program__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.section--invert .program__points li { color: var(--muted-b); }
.program__item:hover .program__points li { color: rgba(255, 255, 255, 0.9); }
.program__item:hover .program__points li::before { background: var(--white); }

.section--invert .program__item { border-bottom-color: var(--line-b); }

.program__item:hover {
  background: var(--red);
  color: var(--white);
}

.program__num {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted-w);
  padding-top: 8px;
}

.section--invert .program__num { color: var(--muted-b); }

.program__item:hover .program__num { color: var(--white); }

.program__time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.program__hour {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.program__dur {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-w);
}

.section--invert .program__dur { color: var(--muted-b); }

.program__item:hover .program__dur { color: var(--white); }

.program__body h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.program__body p {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-w);
  max-width: 560px;
}

.section--invert .program__body p { color: var(--muted-b); }

.program__item:hover .program__body p { color: rgba(255, 255, 255, 0.85); }

.program__tag {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: right;
  padding-top: 8px;
  color: var(--red);
}

.program__item:hover .program__tag { color: var(--white); }

@media (max-width: 900px) {
  .program__item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .program__num { padding-top: 0; font-size: 10px; }
  .program__tag { text-align: left; padding-top: 0; }
}

/* ============================================ PARTNERS */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-w);
}

.section--invert .partners__grid { border-color: var(--line-b); }

@media (max-width: 900px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partners__logo {
  display: grid;
  place-items: center;
  height: 140px;
  position: relative;
  overflow: hidden;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted-w);
  border-right: 1px solid var(--line-w);
  border-bottom: 1px solid var(--line-w);
  transition: background 0.3s var(--ease-out);
}

.section--invert .partners__logo {
  border-color: var(--line-b);
  color: var(--muted-b);
}

.partners__logo:hover {
  background: rgba(249, 246, 242, 0.06);
}

.section--invert .partners__logo:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Логотипи партнерів (окремо від .ph — absolute cover для карток) */
.partners__logo .partners__img {
  display: block;
  width: auto;
  height: clamp(52px, 7vw, 88px);
  max-width: min(260px, 86%);
  max-height: 88px;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  padding: 12px 16px;
  box-sizing: content-box;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.partners__logo:hover .partners__img {
  filter: grayscale(0);
  opacity: 1;
}

.section--invert .partners__logo .partners__img {
  filter: grayscale(0.2);
  opacity: 0.92;
}

.section--invert .partners__logo:hover .partners__img {
  filter: grayscale(0);
  opacity: 1;
}

.partners__grid .partners__logo:nth-child(4n) { border-right: none; }
.partners__grid .partners__logo:nth-last-child(-n+4) { border-bottom: none; }

@media (max-width: 900px) {
  .partners__grid .partners__logo:nth-child(4n) { border-right: 1px solid var(--line-w); }
  .partners__grid .partners__logo:nth-child(2n) { border-right: none; }
  .partners__grid .partners__logo:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-w); }
  .partners__grid .partners__logo:nth-last-child(-n+2) { border-bottom: none; }
  .section--invert .partners__grid .partners__logo:nth-child(4n) { border-right: 1px solid var(--line-b); }
  .section--invert .partners__grid .partners__logo:nth-child(2n) { border-right: none; }
  .section--invert .partners__grid .partners__logo:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-b); }
  .section--invert .partners__grid .partners__logo:nth-last-child(-n+2) { border-bottom: none; }
}

.partners__cta-row {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-w);
}

.section--invert .partners__cta-row { border-top-color: var(--line-b); }

.partners__cta-row p {
  font-weight: 300;
  font-size: 14px;
  max-width: 480px;
  color: var(--muted-w);
}

.section--invert .partners__cta-row p { color: var(--muted-b); }

/* ============================================ PRICING */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-w);
  border: 1px solid var(--line-w);
  margin-bottom: 32px;
}

.section--invert .pricing__grid {
  background: var(--line-b);
  border-color: var(--line-b);
}

/* 2 тарифи — центрована сітка */
.pricing__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  background: var(--black);
  color: var(--white);
}

.section--invert .tariff { background: var(--white); color: var(--black); }

.tariff--featured {
  background: var(--red);
  color: var(--white);
}

.tariff__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-w);
}

.section--invert .tariff__head { border-bottom-color: var(--line-b); }
.tariff--featured .tariff__head { border-bottom-color: rgba(255, 255, 255, 0.25); }

.tariff__tag {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-w);
}

.section--invert .tariff__tag { color: var(--muted-b); }
.tariff--featured .tariff__tag { color: rgba(255, 255, 255, 0.7); }

.tariff__num-tag {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--red);
}

.tariff--featured .tariff__num-tag { color: var(--white); }

.tariff h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.tariff__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-w);
}

.section--invert .tariff__price { border-bottom-color: var(--line-b); }
.tariff--featured .tariff__price { border-bottom-color: rgba(255, 255, 255, 0.25); }

.tariff__currency {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  color: var(--muted-w);
}

.section--invert .tariff__currency { color: var(--muted-b); }
.tariff--featured .tariff__currency { color: rgba(255, 255, 255, 0.7); }

.tariff__num {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tariff__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.tariff__list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
}

.tariff__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 1px;
  background: var(--red);
}

.tariff--featured .tariff__list li::before { background: var(--white); }

.tariff__list li strong {
  color: var(--red);
}

.tariff--featured .tariff__list li strong { color: var(--white); }
.section--invert .tariff__list li strong { color: var(--red); }

.tariff--featured .btn--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

.tariff--featured .btn--primary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.section--invert .tariff:not(.tariff--featured) .btn--ghost {
  border-color: var(--black);
  color: var(--black);
}

.section--invert .tariff:not(.tariff--featured) .btn--ghost:hover {
  background: var(--black);
  color: var(--white);
}

.pricing__note {
  font-family: var(--font);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-w);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.section--invert .pricing__note { color: var(--muted-b); }

/* ============================================ FAQ */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) {
  .faq__layout {
    grid-template-columns: 1fr;
  }
}

.faq__head {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 900px) {
  .faq__head { position: static; }
}

.faq__list {
  border-top: 1px solid var(--line-w);
}

.section--invert .faq__list { border-top-color: var(--line-b); }

.faq__item {
  border-bottom: 1px solid var(--line-w);
}

.section--invert .faq__item { border-bottom-color: var(--line-b); }

.faq__item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--red);
}

.faq__item-num {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted-w);
}

.section--invert .faq__item-num { color: var(--muted-b); }

.faq__item-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.faq__icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__body {
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  gap: 24px;
  padding: 0 0 32px;
}

.faq__body-content {
  grid-column: 2;
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-w);
  max-width: 720px;
}

.section--invert .faq__body-content { color: var(--muted-b); }

.faq__body-content strong {
  color: var(--red);
}

@media (max-width: 700px) {
  .faq__item summary {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .faq__item-num { display: none; }
  .faq__body { grid-template-columns: 1fr; }
  .faq__body-content { grid-column: 1; }
}

/* ============================================ FINAL CTA */
.cta {
  position: relative;
  padding: clamp(80px, 12vw, 180px) 0;
  background: var(--red);
  color: var(--white);
  border-top: 1px solid var(--red);
  overflow: hidden;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.cta__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.cta__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(40px, 8.4vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.cta__title span.acc {
  color: var(--black);
}

.cta__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.cta__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta__meta-l {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cta__meta-v {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(20px, 1.6vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cta .btn--primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.cta .btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ============================================ FOOTER */
.footer {
  padding: clamp(60px, 7vw, 100px) 0 32px;
  background: var(--black);
  border-top: 1px solid var(--line-w);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-w);
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.footer__logo svg {
  width: clamp(28px, 3vw, 55px);
  height: auto;
}

.footer__mission {
  max-width: 360px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-w);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-w);
  margin-bottom: 8px;
}

.footer__col a {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  color: var(--white);
  transition: color 0.25s var(--ease-out);
}

.footer__col a:hover {
  color: var(--red);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-w);
}

/* ============================================ REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track,
  .chip__dot::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================ HELPERS */
.divider {
  height: 1px;
  background: var(--line-w);
  width: 100%;
}

.section--invert .divider { background: var(--line-b); }

.row-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-w);
}

.section--invert .row-line { border-bottom-color: var(--line-b); }

/* ============================================ IMAGE SLOTS
   <img class="ph"> покриває контейнер (images/1.webp … у корені images/).
   ============================================ */
.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* У сітці партнерів — лише .partners__img, не .ph. */

.about__img .ph { z-index: 1; }
.about__img .img-tag,
.about__img .img-num { z-index: 2; }

.speaker__img .ph { z-index: 1; }
.speaker__img .speaker__num,
.speaker__img .speaker__topic-tag { z-index: 3; }

/* ============================================ CHECKOUT MODAL */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s var(--ease-out), visibility 0.38s;
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.checkout-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
  padding: clamp(32px, 6vw, 44px) clamp(24px, 5vw, 40px) 36px;
  border: 1px solid var(--line-b);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.42s var(--ease-out);
}

.checkout-modal.is-open .checkout-modal__dialog {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .checkout-modal,
  .checkout-modal__dialog {
    transition: none;
  }

  .checkout-modal.is-open .checkout-modal__dialog {
    transform: none;
  }
}

.checkout-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--black);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.checkout-modal__close:hover {
  border-color: var(--line-b);
  background: rgba(0, 0, 0, 0.03);
}

.checkout-modal__close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  left: 50%;
  top: 50%;
  margin-left: -9px;
  margin-top: -0.5px;
}

.checkout-modal__close span:first-child {
  transform: rotate(45deg);
}

.checkout-modal__close span:last-child {
  transform: rotate(-45deg);
}

.checkout-modal__head {
  padding-right: 48px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-b);
}

.checkout-modal__eyebrow {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-b);
  margin-bottom: 16px;
}

.checkout-modal__title {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.checkout-modal__product {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-b);
  margin-bottom: 20px;
}

.checkout-modal__product:empty {
  display: none;
}

.checkout-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.checkout-modal__currency {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted-b);
}

.checkout-modal__amount {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 44px);
  letter-spacing: -0.02em;
  color: var(--red);
}

.checkout-modal__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-modal__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-modal__label {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-b);
}

.checkout-modal__req {
  color: var(--red);
  letter-spacing: 0;
}

.checkout-modal__input {
  width: 100%;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.3;
  color: var(--black);
  padding: 12px 0 14px;
  border: none;
  border-bottom: 1px solid var(--line-b);
  border-radius: 0;
  background: transparent;
  outline: none;
  transition: border-color 0.25s var(--ease-out);
}

.checkout-modal__input::placeholder {
  color: rgba(0, 0, 0, 0.28);
}

.checkout-modal__input:hover {
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

.checkout-modal__input:focus {
  border-bottom-color: var(--red);
}

.checkout-modal__input:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: var(--red-deep);
}

.checkout-modal .btn--primary {
  margin-top: 8px;
}

/* ============================================ INVITE TOAST (iOS-style, bottom-right) */
.invite-toast {
  --invite-ios-green: #34c759;
  --invite-ios-blue: #007aff;
  --invite-ios-blue-hover: #0066db;
  --invite-ios-blue-press: #0056bf;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 210;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(8px, 16px, 0) scale(0.97);
  transition:
    opacity 0.42s var(--ease-out),
    visibility 0.42s,
    transform 0.48s var(--ease-out);
}

.invite-toast[hidden] {
  display: none;
}

.invite-toast:not([hidden]) {
  display: block;
}

.invite-toast.invite-toast--visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.invite-toast__panel {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(249, 246, 242, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--black);
}

.invite-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.invite-toast__close:hover {
  color: var(--black);
}

.invite-toast__close:active {
  transform: scale(0.92);
}

.invite-toast__close-line {
  position: absolute;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.invite-toast__close-line:first-child {
  transform: rotate(45deg);
}

.invite-toast__close-line:last-child {
  transform: rotate(-45deg);
}

.invite-toast__banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 28px;
  margin-bottom: 14px;
}

.invite-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--invite-ios-green);
  color: var(--white-pure);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
}

.invite-toast__icon svg {
  margin-top: 1px;
}

.invite-toast__copy {
  min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.invite-toast__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.invite-toast__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--black);
}

.invite-toast__time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.38);
}

.invite-toast__msg {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0;
}

/* iOS-style primary action (system blue, pill, ~44pt tap) */
.invite-toast__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 35px;
  margin: 0;
  padding: 10px;
  border: none;
  border-radius: 14px;
  background: var(--invite-ios-blue);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 1px 3px rgba(0, 80, 200, 0.28);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

.invite-toast__cta:hover {
  background: var(--invite-ios-blue-hover);
  color: #fff;
}

.invite-toast__cta:active {
  background: var(--invite-ios-blue-press);
  transform: scale(0.985);
}

.invite-toast__cta:focus {
  outline: none;
}

.invite-toast__cta:focus-visible {
  outline: 2px solid var(--invite-ios-blue);
  outline-offset: 3px;
}

.invite-toast__cta-label {
  position: relative;
  top: 0.5px;
}

.invite-toast__cta-chev {
  flex-shrink: 0;
  opacity: 0.92;
  transition: transform 0.2s ease;
}

.invite-toast__cta:hover .invite-toast__cta-chev {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .invite-toast {
    transition: opacity 0.2s ease, visibility 0.2s;
    transform: none;
  }

  .invite-toast.invite-toast--visible {
    transform: none;
  }

  .invite-toast__cta,
  .invite-toast__cta:active,
  .invite-toast__cta:hover .invite-toast__cta-chev {
    transition: none;
    transform: none;
  }
}
