/* ===== SELF-HOSTED FONTS (Inter, Oswald, Barlow Condensed) ===== */
/* Barlow Condensed 600 latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600-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;
}
/* Barlow Condensed 700 latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700-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;
}
/* Barlow Condensed 800 latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-800-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;
}
/* Inter 400 cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 400 cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 400 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-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;
}
/* Inter 500 cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 500 cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 500 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-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;
}
/* Inter 600 cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 600 cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 600 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-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;
}
/* Inter 700 cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 700 cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 700 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-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;
}
/* Inter 800 cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 800 cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 800 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800-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;
}
/* Oswald 600 cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Oswald 600 cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 600 latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600-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;
}
/* Oswald 700 cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Oswald 700 cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald 700 latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-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;
}

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --color-bg:           #f5f1e5;
  --color-text:         #3c3c3c;
  --color-heading:      #1a1a1a;
  --color-accent:       #d81b00;
  --color-accent-hover: #c01800;
  --color-accent-muted: #c87060;
  --color-surface:      #ffffff;
  --color-dark:         #1a1a1a;
  --color-green:        #1a8c5e;
  --color-green-hover:  #157a50;

  /* Typography */
  --font-heading: 'Oswald', 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 40px;
}

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

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

/* ===== A11Y: keyboard focus rings ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
.btn-pay:focus-visible,
.btn-outline:focus-visible,
.link-btn:focus-visible,
.social-link:focus-visible {
  outline-offset: 4px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
.h1,
.h2,
.h3,
.h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-heading);
}

.h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 9.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-heading);
}

.h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 6.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-heading);
}

.h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 4.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--color-heading);
}

.h1--accent,
.h2--accent,
.h3--accent {
  color: var(--color-accent);
}

.lead {
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--color-text);
}

.label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background-color: var(--color-surface);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.product-card:active {
  transform: scale(0.99);
}

.product-card__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-muted);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-heading);
}

.product-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}

.product-card__cta {
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== STEP CARD (numbered steps) ===== */
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
}

.step-card {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 140px;
}

.step-card--light {
  background-color: var(--color-surface);
  border: 1.5px solid rgba(0,0,0,0.1);
  color: var(--color-heading);
}

.step-card--accent {
  background-color: var(--color-accent);
  color: #fff;
}

.step-card__badge {
  display: inline-block;
  background-color: var(--color-heading);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.step-card--accent .step-card__badge {
  background-color: rgba(255,255,255,0.25);
}

.step-card__text {
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ===== STAT ROW ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md);
}

.stat-cell {
  background-color: var(--color-bg);
  padding: var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-cell__number {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: 0;
}

.stat-cell__desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text);
}

/* ===== DIVIDER ===== */
.divider {
  height: 2px;
  background-color: var(--color-accent);
  margin: var(--space-md) 0;
  border: none;
}

.divider--muted {
  background-color: rgba(0,0,0,0.08);
}

/* ===== BULLET LIST (timeline connector — taplink-style) =====
   - line connects bullets between consecutive li's only
   - no line when there's a single bullet (:only-child = :last-child)
   - line stops at the last bullet (no trailing tail) */
.bullet-list {
  list-style: none;
  position: relative;
}

.bullet-list > li {
  position: relative;
  padding-left: 22px;
  padding-bottom: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.bullet-list > li:last-child {
  padding-bottom: 0;
}

.bullet-list > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(0.5em + 11px);
  bottom: -0.5em;
  width: 1.5px;
  background-color: var(--color-accent-muted);
  opacity: 0.55;
}

.bullet-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-accent-muted);
  z-index: 1;
}

/* ===== CONTENT SECTION WRAPPER ===== */
.content-block {
  padding: var(--space-xl) var(--space-md);
}

.content-block--accent {
  background-color: var(--color-accent);
  color: #fff;
}

.content-block--dark {
  background-color: var(--color-dark);
  color: #fff;
}

.content-block--accent .h1,
.content-block--accent .h2,
.content-block--accent .h3,
.content-block--dark .h1,
.content-block--dark .h2,
.content-block--dark .h3 {
  color: #fff;
}

/* ===== STICKY HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #f5f1e5;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.site-header__logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}

.site-header__contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background-color: #1a1a1a;
  color: #f5f1e5;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header__contact:hover {
  opacity: 0.82;
}

/* ===== SUBPAGE BACK BUTTON (inside header) ===== */
.site-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.site-header__back:hover {
  opacity: 1;
}

.site-header__back svg {
  width: 22px;
  height: 22px;
  fill: var(--color-heading);
}

/* ===== BURGER BUTTON ===== */
.site-header__burger {
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== NAV MENU (slide-in) ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 300;
  background-color: #f5f1e5;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.site-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.site-nav__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav__close {
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 14px;
  margin: -10px -14px -10px 0;
  color: #1a1a1a;
}

.site-nav__list {
  list-style: none;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.site-nav__item a {
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background-color 0.15s ease;
}

.site-nav__item a:active {
  background-color: rgba(0,0,0,0.05);
}

.site-nav__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.site-nav__footer .site-header__contact {
  width: 100%;
  justify-content: center;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== LAYOUT ===== */
.page-wrapper {
  max-width: 768px;
  margin: 0 auto;
  background-color: #f5f1e5;
  min-height: 100vh;
}

/* ===== SECTIONS ===== */
.section {
  width: 100%;
  position: relative;
}

.section--beige {
  background-color: #f5f1e5;
}

.section--black {
  background-color: #000000;
}

.section--with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== BANNER IMAGES ===== */
.banner {
  display: block;
  width: 100%;
  line-height: 0;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero banner: crop bottom ~22% (the baked-in lead paragraph)
   so we can render the lead as live HTML text below */
.banner--hero {
  aspect-ratio: 1080 / 1430;
  overflow: hidden;
}
.banner--hero img {
  width: 100%;
  height: auto;
}

/* Hero lead: width matches the photo (full bleed, no side padding) */
.hero-lead {
  padding: var(--space-md) 0 var(--space-xl);
}
.hero-lead .lead {
  /* match the natural width of the banner above (edge-to-edge) */
  padding: 0;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  line-height: 1.55;
}
.hero-lead .btn-pay {
  /* keep the CTA button looking like a button (not edge-to-edge) */
  margin-left: var(--space-md);
  margin-right: var(--space-md);
  width: auto;
}

.banner--link {
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.banner--link:hover {
  opacity: 0.92;
}

/* ===== CAROUSEL (Podsvetka page) ===== */
.carousel {
  width: 100%;
  display: flex;
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.carousel:active {
  cursor: grabbing;
}

.carousel__item {
  min-width: 85%;
  flex-shrink: 0;
  scroll-snap-align: start;
  line-height: 0;
}

.carousel__item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@media (min-width: 769px) {
  .carousel__item {
    min-width: 70%;
  }
}

/* ===== REVIEW CARDS (Podsvetka carousel) ===== */
.review-card {
  width: 100%;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  border: 1.5px solid var(--color-accent);
  border-radius: 8px;
  position: relative;
  background: var(--color-bg);
  line-height: 1.55;
}
.review-card__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(216, 27, 0, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-card__icon svg { width: 18px; height: 18px; }
.review-card__quote {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-heading);
}

/* ===== TOGGLE SECTIONS (Course page) ===== */
.toggle-section {
  width: 100%;
  line-height: 0;
}

.toggle-trigger {
  display: block;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.toggle-trigger:hover {
  opacity: 0.9;
}

.toggle-trigger img {
  width: 100%;
  height: auto;
  display: block;
}

.toggle-content {
  display: none;
  width: 100%;
  line-height: 0;
  animation: fadeIn 0.3s ease;
}

.toggle-content.is-open {
  display: block;
}

.toggle-content img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toggle-trigger--text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  line-height: 1.3;
}
.toggle-trigger--text .toggle-q {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.4;
}
.toggle-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}
.toggle-content--text {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  line-height: 1.6;
}
.toggle-content--text p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===== PAYMENT FORMS ===== */
.form-section {
  padding: 20px 16px;
  background-color: #f5f1e5;
}

.form-block {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3c3c3c;
  margin-bottom: 6px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #3c3c3c;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #3c3c3c;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-checkbox span {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.4;
}

.form-checkbox a {
  color: var(--color-accent);
  text-decoration: underline;
}

.btn-pay {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
  text-decoration: none;
}

.btn-pay:hover {
  background-color: var(--color-accent-hover);
}

.btn-pay:active {
  transform: scale(0.98);
}

/* ===== LINK BUTTONS (Telegram, Documents) ===== */
.link-buttons {
  padding: 8px 16px 24px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  margin-bottom: 8px;
  background-color: transparent;
  border: 1.5px solid var(--color-heading);
  color: var(--color-heading);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.link-btn:hover {
  background-color: var(--color-heading);
  color: var(--color-bg);
}

.link-btn:active {
  transform: scale(0.98);
}

.link-btn--telegram {
  border-color: var(--color-heading);
  color: var(--color-heading);
}

.link-btn--telegram:hover {
  background-color: var(--color-heading);
  color: var(--color-bg);
}

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

.link-btn--red:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.link-btn--dark {
  border-color: var(--color-heading);
  color: var(--color-heading);
}

.link-btn--dark:hover {
  background-color: var(--color-heading);
  color: var(--color-bg);
}

/* Muted variant for legal links (terms, policy) — subtle, not competing for attention */
.link-btn--muted {
  border-color: rgba(0,0,0,0.18);
  color: var(--color-text);
  font-size: 13px;
  min-height: 40px;
  padding: 8px 18px;
}

.link-btn--muted:hover {
  border-color: rgba(0,0,0,0.4);
  color: var(--color-heading);
  background-color: transparent;
}

.link-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== DUAL PAYMENT BUTTONS (₽ / ₸) ===== */
.pay-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.pay-buttons .btn-pay {
  flex: 1;
}

.btn-pay--rub {
  background-color: var(--color-accent);
}

.btn-pay--rub:hover {
  background-color: var(--color-accent-hover);
}

.btn-pay--kzt {
  background-color: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-pay--kzt:hover {
  background-color: var(--color-green);
  color: #ffffff;
}

@media (max-width: 380px) {
  .pay-buttons {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== SCREEN-READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== OUTLINED BUTTON ===== */
.btn-outline {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: transparent;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--color-accent);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ===== HERO TITLE (live HTML text above hero photo) ===== */
.hero-title {
  padding: var(--space-xl) var(--space-md) var(--space-md);
}
.hero-title__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 13vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-title__sub {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 2.9vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-heading);
}
.hero-title__rule {
  flex: 1;
  height: 1px;
  background-color: var(--color-heading);
  opacity: 0.65;
}

/* ===== ABOUT PHOTO (crop top text portion of the image) ===== */
.about-photo-wrap {
  width: 100%;
  overflow: hidden;
  /* The webp contains text (top ~42%) + photo (bottom ~58%).
     We shift up and clip to show only the photo portion. */
  height: 0;
  padding-bottom: 95%; /* approximate aspect ratio of photo portion */
  position: relative;
}

.about-photo-wrap img {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  display: block;
}

/* ===== CONTENT BLOCK VARIANTS ===== */
.content-block--tight { padding-bottom: var(--space-sm); }
.content-block--snug  { padding-bottom: var(--space-md); }
.content-block--flush { padding-bottom: 0; }
.content-block--notop { padding-top: var(--space-md); }

/* ===== SPACING UTILITIES ===== */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ===== COLOR UTILITIES ===== */
.text-accent { color: var(--color-accent); }

/* ===== IF-LIST (ПРИХОДИТЕ В РАБОТУ) ===== */
.if-list { margin-top: var(--space-lg); }
.if-list__item {
  padding: var(--space-md) 0;
  border-bottom: 1.5px solid var(--color-accent);
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--color-text);
}

/* ===== OFFERS BOXES (ЧТО Я ПРЕДЛАГАЮ) ===== */
.offers-boxes {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.offers-box {
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.offers-box__head {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-accent);
  text-align: center;
}

.offers-box__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.offers-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.offers-item__num {
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.55;
  min-width: 1.5rem;
}

/* ===== PRODUCT SECTION ===== */
.product-section + .product-section {
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Consistent inner spacing for product sections */
.product-section .h2--accent { margin-bottom: 0; }
.product-section .product-sub { margin-top: var(--space-lg); }
.product-section .bullet-list { margin-top: var(--space-md); }
.product-section .btn-outline  { margin-top: var(--space-xl); }
.product-section .product-meta {
  margin-top: var(--space-lg);
  color: var(--color-accent);
}

/* ===== SOCIAL LINKS (text-based, replacing image buttons) ===== */
.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: transparent;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--color-accent);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.social-link--disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

/* ===== FOOTER TEXT ===== */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__link {
  font-size: 0.8rem;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__entity {
  font-size: 0.8rem;
  color: var(--color-text);
  text-align: right;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: rgba(60,60,60,0.55);
  line-height: 1.4;
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #3C3C3C;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #ECEAE5;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(0,0,0,0.7);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .form-section {
    padding: 16px 12px;
  }
  
  .carousel__item {
    min-width: 92%;
  }
}

/* ===== PRICING CARD ===== */
.pricing-card {
  border: 1.5px solid var(--color-heading);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}

.pricing-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

.pricing-card__meta {
  font-size: 0.82rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ===== COURSE TARIFF CARD ===== */
.tariff-card {
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}

.tariff-card:hover {
  border-color: var(--color-accent-hover);
}

.tariff-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.tariff-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
}

.tariff-card__price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
}

.tariff-card__cta {
  display: block;
  margin-top: var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

@media (min-width: 769px) {
  .page-wrapper {
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
  }
}
