:root { --cream:#f2efe7; --dark:#0d1917; --ink:#17201e; --muted:#6c746f; --copper:#9d8059; --line-c:#c7b99c; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==== TOP NAV ==== */
.top { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; position: fixed; z-index: 50; top: 0; left: 0; right: 0; background: rgba(242,239,231,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.brand { display: flex; align-items: center; gap: 13px; }
.wordmark-main { font: 700 clamp(20px,2vw,30px)/1 Inter,system-ui,sans-serif; color: var(--dark); letter-spacing:-0.045em; white-space:nowrap; }
.brand span:not(.wordmark-main) { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink); }
.brand small { display: block; font-size: 9px; letter-spacing: 0.17em; color: var(--muted); font-weight: 500; margin-top: 2px; }
.links { display: flex; gap: 25px; font-size: 12px; }
.links a { color: var(--ink); transition: color 0.2s; font-weight: 500; letter-spacing: 0.02em; }
.links a:hover { color: var(--copper); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; gap: 2px; }
.lang button { border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; font-family: inherit; }
.lang button.on { background: var(--dark); color: white; }
.topbtn { border-radius: 999px; padding: 13px 20px; background: var(--dark); color: white; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.2s; }
.topbtn:hover { transform: translateY(-2px); }
.menu-btn { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; }

/* ==== STORY / CHAPTERS ==== */
.story { padding: 76px 0 0; }
.chapter { height: calc(100svh - 76px); min-height: 620px; position: relative; overflow: hidden; border-radius: 0; margin-bottom: 0; background: #0e1b19; color: white; isolation: isolate; }
.chapter .media { position: absolute; inset: 0; }
.chapter .media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.04); transition: filter 0.7s ease; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); border-radius: 0; }
.chapter .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,19,17,0.96) 0%, rgba(8,19,17,0.82) 33%, rgba(8,19,17,0.28) 57%, rgba(8,19,17,0.04) 100%); z-index: 3; }
.chapter .copy { position: absolute; z-index: 5; left: 6vw; top: clamp(38px, 7vh, 78px); transform: none; max-width: 600px; transition: opacity 0.5s ease; }
.chapter .index { font-size: 11px; letter-spacing: 0.22em; color: #c6cec9; }
.chapter .eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: #bac6c1; margin-top: 28px; }
.chapter .line { width: 38px; height: 1px; background: var(--line-c); margin: 15px 0 24px; }
.chapter h1, .chapter h2 { font: 400 clamp(58px, 6.4vw, 105px)/0.9 Georgia, "Times New Roman", serif; letter-spacing: -0.055em; margin: 0 0 25px; }
.chapter h2 { font-size: clamp(50px, 5.6vw, 88px); }
.chapter p { font-size: 17px; line-height: 1.55; color: #d2d9d5; max-width: 520px; margin: 0; }
.actions-top { margin: 0 0 22px; }
.actions { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.white { display: inline-flex; background: #f6f4ee; color: #12201d; border-radius: 999px; padding: 15px 22px; font-size: 12px; font-weight: 750; letter-spacing: 0.02em; transition: transform 0.25s; }
.white:hover { transform: translateY(-2px); }
.ghost { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 14px 18px; font-size: 12px; color: rgba(255,255,255,0.9); transition: background 0.25s; }
.ghost:hover { background: rgba(255,255,255,0.08); }
.metric { position: absolute; z-index: 5; right: 5vw; bottom: 6vh; text-align: right; }
.metric b { font: 400 50px Georgia, serif; color: white; display: block; letter-spacing: -0.03em; }
.metric span { display: block; font-size: 10px; letter-spacing: 0.18em; color: #d1d8d4; margin-top: 4px; }

.chapter.problem .media { inset: 0; left: 0; background: linear-gradient(90deg, #162321, #718087); }
.chapter.problem .media img { object-position: 62% center; }
.chapter.solution .media img { object-position: 50% 42%; }
.chapter.result .media img { object-position: center; filter: saturate(0.75) contrast(1.05); transform: scale(1.35); }
.chapter.care .media img { object-position: 70% 38%; filter: saturate(0.55) contrast(1.1) brightness(0.8); }

.progress { position: fixed; z-index: 60; right: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.progress i { width: 4px; height: 28px; border-radius: 9px; background: rgba(0,0,0,0.15); box-shadow: 0 0 0 1px rgba(255,255,255,0.4); transition: background 0.3s; cursor: pointer; }
.progress i.on { background: var(--copper); }

/* ==== SECTION "BELOW" (services + contact + footer) ==== */
.below { width: min(1180px, 92vw); margin: auto; padding: 100px 0 60px; }
.below-eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper); font-weight: 600; margin-bottom: 22px; }
.below h2 { font: 400 clamp(44px, 5vw, 74px)/1 Georgia, serif; letter-spacing: -0.04em; margin: 0 0 42px; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: white; border-radius: 24px; padding: 30px; min-height: 260px; transition: transform 0.35s, box-shadow 0.35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(0,0,0,0.08); }
.card .num { font-size: 11px; letter-spacing: 0.14em; color: var(--copper); font-weight: 600; }
.card b { font: 400 26px Georgia, serif; display: block; margin: 14px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; flex: 1; font-size: 14px; }
.card-arrow { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

/* ==== STATS BAR ==== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 90px 0 20px; align-items: end; }
.stat { border-top: 1px solid rgba(0,0,0,0.15); padding-top: 20px; }
.stat b { font: 400 clamp(36px, 4vw, 54px) Georgia, serif; letter-spacing: -0.03em; line-height: 1; display: block; color: var(--dark); }
.stat span { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; font-weight: 600; }
/* ==== PARTNERS MARQUEE ==== */
.partners { padding: 60px 0 40px; border-top: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); margin: 40px 0; }
.partners-head { text-align: center; margin-bottom: 24px; }
.partners-head .below-eyebrow { display: block; margin-bottom: 8px; }
.partners-head h3 { font: 400 clamp(22px, 2.4vw, 28px) Georgia, serif; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.track { display: flex; gap: 0; width: max-content; animation: scrollL 45s linear infinite; }
.marquee-wrap:hover .track { animation-play-state: paused; }
@keyframes scrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.p-slot { flex-shrink: 0; width: 210px; height: 100px; display: flex; align-items: center; justify-content: center; padding: 8px; opacity: 0.75; transition: opacity 0.3s, transform 0.3s; }
.p-slot:hover { opacity: 1; transform: scale(1.05); }
.p-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-slot--lg { width: 250px; }
.p-slot--lg img { transform: scale(1.3); }

/* ==== CONTACT SECTION ==== */
.contact-block { background: var(--dark); color: white; border-radius: 28px; padding: 60px; margin: 40px 0 20px; }
.contact-block h3 { font: 400 clamp(36px, 4.2vw, 58px) Georgia, serif; margin: 0 0 22px; letter-spacing: -0.03em; line-height: 1.05; max-width: 700px; }
.contact-block .lead { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.7; max-width: 560px; margin: 0 0 34px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 30px; }
.contact-info h5 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 22px 0 6px; font-weight: 600; }
.contact-info h5:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: white; font-size: 16px; margin: 0; }
.contact-info a:hover { color: var(--copper); }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill-alt { padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); font-size: 12px; font-weight: 600; color: white; transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.pill-alt:hover { background: rgba(255,255,255,0.16); }
.pill-alt.tg { background: #229ED9; border-color: #229ED9; }
.pill-alt.viber { background: #7360F2; border-color: #7360F2; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; color: white; font-family: inherit; font-size: 14px; margin-bottom: 10px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form button { width: 100%; padding: 16px; border-radius: 999px; background: white; color: var(--dark); border: 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.2s; }
.contact-form button:hover { transform: translateY(-2px); }
.form-status { margin-top: 10px; padding: 10px; text-align: center; font-size: 13px; border-radius: 8px; display: none; }
.form-status.success { background: rgba(80,200,120,0.15); color: #a8e5c3; display: block; }

/* ==== FOOTER ==== */
.footer { padding: 50px 0 30px; color: var(--muted); font-size: 12px; border-top: 1px solid rgba(0,0,0,0.08); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand { font-family: Georgia, serif; font-size: 18px; color: var(--ink); font-weight: 400; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer h5 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--ink); margin: 0 0 14px; font-weight: 700; }
.footer a { display: block; padding: 4px 0; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ==== REVEAL ==== */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1), filter 0.8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ==== LANG VISIBILITY ==== */
[data-uk], [data-ru] { display: none; }
.lang-uk [data-uk], .lang-ru [data-ru] { display: inline; }
.lang-uk .lang-block[data-uk], .lang-ru .lang-block[data-ru] { display: block; }

/* ==== MOBILE MENU OVERLAY ==== */
.mmenu { display: none; position: fixed; inset: 0; background: var(--cream); z-index: 999; padding: 90px 32px 32px; }
.mmenu.open { display: block; }
.mmenu-close { position: absolute; top: 22px; right: 26px; background: transparent; border: 0; color: var(--ink); font-size: 34px; cursor: pointer; }
.mmenu a { display: block; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.1); font-family: Georgia, serif; font-size: 22px; color: var(--ink); }

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  html { scroll-behavior: auto; }
  .top { height: 62px; padding: 0 18px; }
  .links { display: none; }
  .lang { display: none; }
  .menu-btn { display: flex; }
  .wordmark-main { font-size: 20px; }
  .brand span:not(.wordmark-main) { font-size: 11px; }
  .brand small { display: none; }
  .topbtn { padding: 10px 14px; font-size: 11px; }
  .story { padding: 62px 0 0; }
  .chapter { border-radius: 0; height: calc(100svh - 62px); min-height: 600px; margin: 0; }
  .chapter::after { border-radius: 0; }
  .chapter .media, .chapter.problem .media { inset: 0; left: 0; }
  .chapter .shade { background: linear-gradient(180deg, rgba(8,19,17,0.06) 0%, rgba(8,19,17,0.12) 35%, rgba(8,19,17,0.94) 73%, #0d1917 100%); }
  .chapter .copy { left: 20px; right: 20px; top: auto; bottom: max(38px, env(safe-area-inset-bottom)); transform: none; max-width: none; }
  .chapter h1, .chapter h2 { font-size: clamp(44px, 12vw, 62px); margin-bottom: 14px; }
  .chapter p { font-size: 14px; max-width: 94%; }
  .chapter .eyebrow { margin-top: 12px; }
  .chapter .line { margin: 10px 0 15px; }
  .actions { margin-top: 18px; }
  .ghost { display: none; }
  .metric { display: none; }
  .chapter.problem .media img { object-position: 72% center; }
  .chapter.solution .media img { object-position: 70% center; }
  .chapter.result .media img { transform: scale(1.25); object-position: 65% center; }
  .chapter.care .media img { object-position: 62% 35%; }
  .progress { display: none; }
  .below { padding: 60px 20px; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-block { padding: 36px 24px; border-radius: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .p-slot { width: 150px; height: 80px; }
  .p-slot--lg { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  .chapter .media img { transform: scale(1) !important; }
  .track { animation: none; }
}
@media (max-width: 760px) { .chapter .copy { left: 6vw; right: 6vw; top: 28px; transform: none; max-width: none; } .chapter .actions-top { margin-bottom: 16px; } .chapter .eyebrow { margin-top: 12px; } }

/* Content anchored to the bottom of both hero images */
.chapter .copy { top: auto !important; bottom: clamp(42px, 7vh, 82px) !important; transform: none !important; }
@media (max-width: 900px) {
  .chapter .copy { top: auto !important; bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px)) !important; }
}
@media (max-width: 760px) {
  .chapter .copy { top: auto !important; bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px)) !important; }
}

/* ==== MOBILE OPTIMIZATIONS (комплексна адаптація) ==== */

/* Prevent horizontal scroll globally */
html, body { max-width: 100vw; overflow-x: hidden; }

/* iOS: prevent input zoom (font-size ≥ 16px) */
input, select, textarea { font-size: 16px !important; -webkit-appearance: none; }

/* Touch tap targets */
@media (hover: none) and (pointer: coarse) {
  .topbtn, .white, .ghost, .pill-alt, .cta, .lang button, .card-arrow, .footer a { min-height: 44px; }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .mmenu a { padding: 20px 0; font-size: 20px; }
  .progress i { width: 8px; height: 32px; }
  .links a, .footer a { padding: 8px 0; }
}

/* Wordmark shrink on mobile */
@media (max-width: 900px) {
  .wordmark-main { font-size: 18px !important; letter-spacing: -0.04em; }
  .brand { gap: 8px; }
  .brand span:not(.wordmark-main) { display: none; }
}

/* iPhone / small phone screens */
@media (max-width: 640px) {
  .top { height: 58px; padding: 0 14px; }
  .story { padding: 58px 0 0; }
  .chapter { height: calc(100svh - 58px); min-height: 560px; }
  .chapter .copy { left: 18px !important; right: 18px !important; padding-bottom: env(safe-area-inset-bottom); }
  .chapter h1, .chapter h2 { font-size: clamp(36px, 10.5vw, 52px); line-height: 0.98; margin-bottom: 12px; }
  .chapter p { font-size: 13.5px; line-height: 1.5; }
  .chapter .eyebrow { font-size: 10px; letter-spacing: 0.24em; margin-top: 10px; }
  .chapter .index { font-size: 10px; letter-spacing: 0.2em; }
  .chapter .line { width: 30px; margin: 8px 0 12px; }

  .actions { gap: 10px; margin-top: 14px; }
  .white { width: 100%; justify-content: center; padding: 14px 18px; font-size: 12px; }

  .below { padding: 48px 16px 40px !important; }
  .below h2 { font-size: clamp(28px, 7vw, 40px) !important; margin-bottom: 22px; }
  .below-eyebrow { font-size: 10px; margin-bottom: 14px; }

  .cards { gap: 12px; }
  .card { padding: 22px; border-radius: 18px; min-height: auto; }
  .card b { font-size: 22px; margin: 12px 0 8px; }
  .card p { font-size: 13.5px; margin-bottom: 14px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 20px 14px; margin: 60px 0 30px; }
  .stat b { font-size: 32px; }
  .stat span { font-size: 9px; letter-spacing: 0.16em; margin-top: 8px; }

  .contact-block { padding: 30px 20px !important; border-radius: 16px !important; margin: 30px 0 20px !important; }
  .contact-block h3 { font-size: clamp(26px, 7vw, 36px); }
  .contact-block .lead { font-size: 14px; }
  .contact-btns { gap: 8px; }
  .pill-alt { padding: 12px 16px; font-size: 12px; }
  .contact-form input, .contact-form textarea { padding: 13px 15px; margin-bottom: 8px; }
  .contact-form button { padding: 15px; font-size: 13px; }

  .footer { padding: 40px 0 24px; }
  .footer-brand { font-size: 17px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; }

  /* Partners marquee */
  .p-slot { width: 130px !important; height: 70px !important; padding: 4px; }
  .p-slot--lg { width: 160px !important; }
  .partners { padding: 40px 0 24px !important; margin: 24px 0 !important; }
  .partners-head h3 { font-size: 20px; padding: 0 20px; }

  /* Fix background gradient on mobile — trim harsh contrast */
  .chapter .shade { background: linear-gradient(180deg, rgba(8,19,17,0.1) 0%, rgba(8,19,17,0.35) 40%, rgba(8,19,17,0.92) 78%, #0d1917 100%); }
}

/* Extra small (iPhone SE / older Android) */
@media (max-width: 380px) {
  .top { padding: 0 12px; }
  .wordmark-main { font-size: 16px !important; }
  .topbtn { padding: 8px 12px; font-size: 10px; }
  .chapter h1, .chapter h2 { font-size: clamp(30px, 9vw, 42px) !important; }
  .chapter p { font-size: 13px; }
  .below { padding: 40px 14px 30px !important; }
  .card { padding: 18px; }
  .card b { font-size: 20px; }
  .stats { grid-template-columns: 1fr; }
  }

/* Landscape phone (низька висота) */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .chapter { min-height: 500px; }
  .chapter h1, .chapter h2 { font-size: clamp(28px, 5vw, 42px); }
  .chapter .copy { bottom: 20px !important; }
  .chapter p { font-size: 13px; max-width: 65%; }
}

/* ==== TIGHTER SPACING + SMOOTH SCROLL ==== */

/* Smoother scroll behavior globally */
html { scroll-behavior: auto; scroll-padding-top: 76px; }
body { overscroll-behavior-y: auto; }

/* Reduce gaps between chapters */
.chapter { margin-bottom: 0 !important; }

/* Reduce story container padding */
.story { padding: 76px 12px 0 !important; }

/* Reduce below section padding */
.below { padding: 70px 0 40px !important; }
.below h2 { margin: 0 0 32px !important; }

/* Reduce stat spacing */
.stats { margin: 60px 0 20px !important; gap: 24px !important; }

/* Reduce partner section padding */
.partners { padding: 40px 0 30px !important; margin: 24px 0 !important; }
.partners-head { margin-bottom: 20px !important; }

/* Reduce contact block spacing */
.contact-block { margin: 30px 0 20px !important; padding: 44px 40px !important; }
.contact-block h3 { margin: 0 0 18px !important; }
.contact-block .lead { margin: 0 0 26px !important; }
.contact-grid { gap: 40px !important; margin-top: 24px !important; }

/* Reduce footer top spacing */
.footer { margin-top: 24px !important; padding: 40px 0 24px !important; }
.footer-grid { margin-bottom: 24px !important; }

@media (max-width: 900px) {
  html { scroll-padding-top: 62px; }
  .story { padding: 62px 8px 0 !important; }
  .below { padding: 48px 20px 30px !important; }
  .stats { margin: 40px 0 16px !important; gap: 16px !important; }
  .contact-block { margin: 24px 0 16px !important; padding: 30px 22px !important; }
  .contact-grid { gap: 28px !important; margin-top: 20px !important; }
  .partners { margin: 20px 0 !important; padding: 28px 0 20px !important; }
  .footer { margin-top: 16px !important; padding: 30px 0 20px !important; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 58px; }
  .story { padding: 58px 6px 0 !important; }
  .below { padding: 36px 16px 24px !important; }
  .stats { margin: 30px 0 12px !important; gap: 14px !important; }
  .contact-block { margin: 20px 0 12px !important; padding: 26px 18px !important; }
  .contact-grid { gap: 24px !important; margin-top: 18px !important; }
  .partners { margin: 16px 0 !important; padding: 24px 0 18px !important; }
  .footer { margin-top: 12px !important; padding: 28px 0 18px !important; }
  .below h2 { margin: 0 0 20px !important; }
}

/* Reduce blur on mobile top nav for smoother scroll (backdrop-filter is heavy) */
@media (max-width: 900px) {
  .top { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(242,239,231,0.92); }
}

/* ==== MOBILE = SAME STYLE AS DESKTOP (fullscreen cinematic cover) ==== */
@media (max-width: 900px) {
  /* Всі глави заповнюють екран як на десктопі */
  .chapter .media,
  .chapter.problem .media,
  .chapter.solution .media,
  .chapter.care .media { inset: 0 !important; left: 0 !important; }

  .chapter .media img,
  .chapter.problem .media img,
  .chapter.solution .media img,
  .chapter.care .media img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    background: transparent !important;
    transform: scale(1.04) !important;
    animation: heroKen 24s ease-in-out infinite alternate !important;
  }

  /* Object-position: показати саме те, що важливо */
  .chapter.problem .media img { object-position: 62% 38% !important; }  /* серце ураження */
  .chapter.solution .media img { object-position: 50% 42% !important; }  /* імплант */
  .chapter.care .media img { object-position: 65% 30% !important; }  /* обличчя лікаря */

  /* Градієнт як на десктопі: темний ліворуч/знизу, прозорий на фото */
  .chapter .shade,
  .chapter.problem .shade,
  .chapter.solution .shade,
  .chapter.care .shade {
    background: linear-gradient(180deg,
      rgba(8,19,17,0.15) 0%,
      rgba(8,19,17,0.35) 40%,
      rgba(8,19,17,0.85) 78%,
      rgba(13,25,23,0.98) 100%) !important;
  }

  /* Текст поверх темної нижньої частини — як на десктопі */
  .chapter .copy,
  .chapter.problem .copy,
  .chapter.solution .copy,
  .chapter.care .copy {
    top: auto !important;
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 22px)) !important;
    left: 22px !important;
    right: 22px !important;
    max-width: none;
  }
}

@keyframes heroKen {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1.5%,-1.2%,0); }
}


/* ==== PULLQUOTE (motto) ==== */
.pullquote {
  max-width: 900px;
  margin: 70px auto 30px;
  padding: 40px 0 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  font: 400 clamp(30px, 3.8vw, 52px)/1.15 Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-align: center;
}
.pullquote-mark {
  color: var(--copper);
  font-style: normal;
}
@media (max-width: 900px) {
  .pullquote { margin: 40px auto 20px; padding: 26px 0 0; font-size: clamp(24px, 5.5vw, 38px); }
}
@media (max-width: 640px) {
  .pullquote { margin: 26px auto 14px; padding: 22px 0 0; font-size: clamp(22px, 6.5vw, 30px); text-align: left; padding-left: 4px; }
}

