/* =====================================================================
   Отелло — CPA landing. Otello-matching, premium, mobile-first.
   Palette: Otello lime #7FE740 + dark green #003A00 + clean paper white.
   ===================================================================== */

:root {
  /* Brand (from Otello logo SVG) */
  --green: #7FE740;
  --green-600: #5fc81c;
  --green-700: #4aa814;
  --forest: #003A00;        /* Otello dark green */
  --forest-2: #06260f;

  /* Neutrals */
  --ink: #14150F;
  --ink-2: #565a4d;
  --ink-3: #878c7e;
  --paper: #ffffff;
  --paper-2: #f5f7f1;       /* very light warm-green tint */
  --paper-3: #eef1e8;
  --line: #e6e9df;
  --line-2: #d8dcd0;

  /* Type */
  --font-sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", Arial, sans-serif;

  /* Fluid type scale (modular) */
  --fs-hero: clamp(2.3rem, 6.4vw, 4.6rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 2.85rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead: clamp(1.06rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;

  /* Spacing (8pt scale) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* Radius */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(20,21,15,.04), 0 2px 8px rgba(20,21,15,.05);
  --sh-2: 0 2px 6px rgba(20,21,15,.05), 0 12px 32px rgba(20,21,15,.08);
  --sh-3: 0 8px 24px rgba(20,21,15,.10), 0 24px 60px rgba(20,21,15,.14);
  --sh-green: 0 8px 24px rgba(95,200,28,.32);

  /* Motion */
  --ease: cubic-bezier(.16,1,.3,1);   /* ease-out-expo */
  --dur: .6s;

  --container: 1180px;
  --header-h: 66px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h3 { letter-spacing: -.01em; }
p { margin: 0; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--green-700); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }
.hide-mobile { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; letter-spacing: -.01em;
  line-height: 1; cursor: pointer; border: 0; border-radius: var(--r-pill);
  padding: 15px 26px; background: var(--bg); color: var(--ink);
  text-align: center; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, opacity .18s;
  box-shadow: var(--sh-green); white-space: nowrap;
}
.btn:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(95,200,28,.42); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #0c1603; }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 10px 18px; font-size: .94rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--sh-1); }
.header-inner { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand { color: var(--forest); display: inline-flex; }
.brand-logo { height: 30px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-inline: auto; }
.site-nav a { font-size: .97rem; font-weight: 600; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .15s; }
.site-nav a::after { content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--green-700); transition: width .25s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.site-header .btn--sm { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-img--mob { display: none; }
.hero-scrim { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.22) 34%, rgba(0,0,0,.32) 60%, rgba(0,0,0,.74) 100%),
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.16) 52%, rgba(0,0,0,0) 100%),
    rgba(0,0,0,.22); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(96px, 16vh, 150px) clamp(56px, 9vh, 92px); max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(6,24,8,.45); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(127,231,64,.3); }
.hero-title { font-size: var(--fs-hero); line-height: 1.04; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub { margin-top: 20px; font-size: var(--fs-lead); font-weight: 500; color: rgba(255,255,255,.94); max-width: 620px; text-shadow: 0 1px 18px rgba(0,0,0,.22); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-trust li { display: inline-flex; align-items: center; white-space: nowrap; }
.hero-trust li::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--green); margin-right: 10px; }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.trustbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 20px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .96rem; color: var(--ink-2); white-space: nowrap; }
.trust-item .ti { width: 22px; height: 22px; fill: var(--green-700); flex: none; }
.trust-pay { margin-left: auto; font-size: .9rem; color: var(--ink-3); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.eyebrow--light { color: var(--green); }
.section-title { font-size: var(--fs-h2); }
.section-lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-2); }

/* ---------- Bento benefits (4-col, gap-free) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento-card {
  grid-column: span 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.bento-card--lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px;
  background: linear-gradient(160deg, #0a3009 0%, #003a00 60%, #05280c 100%); color: #fff; border-color: transparent; }
.bento-card--lg:hover { box-shadow: var(--sh-3); }
.bento-card--lg h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.bento-card--lg p { color: rgba(255,255,255,.85); margin-top: 10px; font-size: 1.05rem; }
.bento-card h3 { font-size: var(--fs-h3); }
.bento-card p { margin-top: 10px; color: var(--ink-2); }
.ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: var(--paper-3); color: var(--green-700); margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: currentColor; }
.bento-card--lg .ico { background: rgba(127,231,64,.18); color: var(--green); }
.ico--halva { background: rgba(127,231,64,.16); color: var(--green-700); }

/* Illustration on the big "Рассрочка" bento card */
.lg-art { position: absolute; top: 18px; right: -12px; width: 60%; max-width: 250px; transform: rotate(7deg); filter: drop-shadow(0 18px 30px rgba(0,0,0,.42)); pointer-events: none; }
.lg-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 1000px) { .lg-art { position: static; width: 132px; max-width: none; transform: rotate(-3deg); margin-bottom: 2px; } }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dest-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.dest-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.dest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.dest-card:hover .dest-media img { transform: scale(1.06); }
.dest-tag { position: absolute; top: 12px; left: 12px; font-size: .76rem; font-weight: 700; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--forest); backdrop-filter: blur(4px); box-shadow: var(--sh-1); }
.dest-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.dest-body h3 { font-size: 1.3rem; }
.dest-body p { margin-top: 8px; color: var(--ink-2); font-size: .96rem; flex: 1; }
.dest-go { margin-top: 14px; font-weight: 700; color: var(--green-700); font-size: .95rem; transition: gap .2s; }
.dest-card:hover .dest-go { color: var(--green-600); }
.dest-card:hover .dest-go::after { transform: translateX(3px); }
.dest-go::after { content: ""; }

/* ---------- Promo ---------- */
.promo-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; align-items: stretch;
  background: linear-gradient(135deg, #06260f 0%, #003a00 55%, #0a3009 100%);
  border-radius: var(--r-xl); overflow: hidden; color: #fff; box-shadow: var(--sh-3);
  position: relative;
}
.promo-card::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 120% at 88% 12%, rgba(127,231,64,.20) 0%, rgba(127,231,64,0) 46%); pointer-events:none; }
.promo-text { padding: clamp(32px, 5vw, 56px); }
.promo-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.promo-lead { margin-top: 16px; color: rgba(255,255,255,.86); font-size: 1.05rem; max-width: 540px; }
.promo-list { margin-top: 20px; display: grid; gap: 10px; }
.promo-list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.9); }
.promo-list li::before { content:""; position:absolute; left:0; top:7px; width:18px; height:18px; border-radius:50%; background: var(--green) center/12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23003A00' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E"); }
.promo-text .btn { margin-top: 28px; }
.promo-code-box {
  margin: clamp(20px, 3vw, 28px); align-self: center; justify-self: stretch;
  background: rgba(255,255,255,.08); border: 1.5px dashed rgba(127,231,64,.55); border-radius: var(--r-lg);
  padding: 28px 26px; text-align: center; backdrop-filter: blur(6px);
}
.promo-code-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 700; }
.promo-code-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.promo-code {
  flex: 1; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800; letter-spacing: .06em; background: rgba(0,0,0,.22); padding: 14px 12px; border-radius: 12px; color: var(--green);
  border: 1px solid rgba(127,231,64,.25); user-select: all;
}
.copy-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; justify-content: center; width: 56px; flex: none;
  background: var(--green); color: #0c1603; border: 0; border-radius: 12px; padding: 12px 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .68rem; transition: background .15s, transform .15s; }
.copy-btn svg { width: 20px; height: 20px; fill: currentColor; }
.copy-btn:hover { background: var(--green-600); transform: translateY(-1px); }
.copy-btn.is-copied { background: var(--forest); color: var(--green); }
.promo-code-hint { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Mid-page CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green);
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-2); }
.cta-band-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band-text p { margin-top: 8px; color: var(--ink-2); max-width: 620px; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; } .cta-band .btn { width: 100%; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; position: relative; box-shadow: var(--sh-1); }
.step-num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--green); color: var(--forest); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin: 0; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--ink-2); font-size: .92rem; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-600)); color: var(--forest); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content:"+"; font-size: 1.6rem; font-weight: 400; color: var(--green-700); transition: transform .2s; flex: none; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.finalcta { background: linear-gradient(135deg, #06260f 0%, #003a00 60%, #0a3009 100%); color: #fff; position: relative; overflow: hidden; }
.finalcta::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 130% at 12% 20%, rgba(127,231,64,.16), rgba(127,231,64,0) 50%); }
.finalcta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: clamp(56px, 8vw, 96px); flex-wrap: wrap; }
.finalcta-text h2 { font-size: var(--fs-h2); }
.finalcta-text p { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; }
.finalcta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.finalcta-trust { color: rgba(255,255,255,.6); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: 0 56px; }
.footer-brand { max-width: 360px; }
.footer-brand .brand-logo { height: 32px; color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .94rem; line-height: 1.6; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: .96rem; font-weight: 600; transition: color .15s; }
.footer-nav a:hover { color: var(--green); }
.footer-legal { padding-block: 24px 28px; display: grid; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-legal-row a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-row a:hover { color: var(--green); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform .35s var(--ease); }
.mobile-cta.is-visible { transform: translateY(0); }
body { /* spacer handled by section padding on mobile */ }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .dest-card:hover .dest-media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card { grid-column: span 1; }
  .bento-card--lg { grid-column: span 2; grid-row: auto; min-height: 200px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-code-box { order: -1; margin-bottom: 0; }
  .finalcta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .trust-pay { width: 100%; margin-left: 0; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento-card, .bento-card--lg, .bento-card--accent { grid-column: span 1; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dest-body p { font-size: .9rem; }
  .steps { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .hero-img--desk { display: none; }
  .hero-img--mob { display: block; }
  .hero { min-height: clamp(540px, 92vh, 760px); }
  .hide-mobile { display: none; }
  .site-header .btn--sm { display: none; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; } /* room for sticky CTA */
  .section { padding-block: clamp(48px, 11vw, 72px); }
}
@media (max-width: 460px) {
  .dest-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .promo-code-row { flex-direction: column; align-items: stretch; }
  .copy-btn { width: 100%; flex-direction: row; gap: 8px; padding: 12px; }
}
