:root {
  --font-body: Manrope, Arial, sans-serif;
  --font-display: Manrope, Arial, sans-serif;
  --bg: #f6fbff;
  --fg: #071f55;
  --muted: #5e7193;
  --blue: #004fc4;
  --blue-2: #0076ff;
  --ice: #eaf6ff;
  --card: rgba(255,255,255,.86);
  --line: rgba(0,72,170,.16);
  --shadow: 0 28px 80px rgba(0,66,160,.18);
  --radius: 28px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.98), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(92,169,255,.28), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--bg) 45%, #eef8ff 100%);
  overflow-x: hidden;
}
a { color: inherit; }
.noise, .painted-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.noise {
  opacity: .3;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(0,92,190,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.painted-bg {
  background:
    radial-gradient(circle at 50% -12%, rgba(0,104,255,.2), transparent 28%),
    radial-gradient(circle at 2% 50%, rgba(255,255,255,.8), transparent 18%);
}
.announce, .nav, .footer, .footer-bottom {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto;
}
.announce {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 34px rgba(0,66,160,.1);
  backdrop-/* filter removed (os-144) */
  font-size: 13px;
}
.announce a { font-weight: 800; color: var(--blue); text-decoration: none; }
.announce-close { border: 0; background: transparent; color: var(--fg); font-size: 18px; cursor: pointer; }
.nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  backdrop-/* filter removed (os-144) */
}
.nav-logo, .nav-cta, .btn, .plan-cta {
  text-decoration: none;
  font-weight: 900;
}
.nav-logo { display: flex; gap: 9px; align-items: center; color: var(--blue); font-size: 20px; }
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(145deg, #0091ff, #002f90);
  box-shadow: inset 0 2px 5px rgba(255,255,255,.65), 0 10px 22px rgba(0,79,196,.32);
}
.nav-links, .footer-links, .plan-features, .feature-list { list-style: none; padding: 0; margin: 0; }
.nav-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lang-pill, .theme-toggle, .jinju-toggle, .wa-link {
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--fg) !important;
}
.lang-pill { position: relative; }
.lang-pill button, .theme-toggle, .jinju-toggle { padding: 12px 14px; min-width: 44px; min-height: 44px; cursor: pointer; font: 800 13px var(--font-body); }
/* flag emojis render as inline-block so vertical-align:middle works inside
   the .nav-tools row, and so they keep consistent 18px width per char */
.lang-pill button[data-lang-pill],
.lang-pill button[data-lang-code] {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
/* theme toggle is square 36x36 with centered icon */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.theme-toggle #theme-icon { font-size: 18px; line-height: 1; }
/* jinju toggle: same square shape */
.jinju-toggle {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.lang-menu { display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.lang-pill:hover .lang-menu { display: grid; gap: 4px; }
/* highlighted active lang in menu */
.lang-pill button[data-lang-code].active { background: var(--card) !important; }
.nav-cta, .btn-primary, .plan-cta, .hero-play-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #1087ff 0%, #004fc4 56%, #002b87 100%);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.65), 0 18px 38px rgba(0,76,190,.32);
}
.btn { min-height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 8px; }
.hero, .section, .browse-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto;
}
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(225,244,255,.8));
  box-shadow: var(--shadow);
}
.hero-video { position: absolute; inset: 0; opacity: .28; }
.hero-video video, .hero-video img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner, .shop-grid, .match-grid, .jobs-grid, .pricing-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 5vw, 60px);
  align-items: center;
}
.hero-inner { min-height: 760px; padding: clamp(24px, 6vw, 76px); }
.hero-eyebrow, .chapter-tag, .plan-badge {
  width: fit-content;
  border: 1px solid rgba(0,79,196,.2);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 7px 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; color: var(--fg); }
h1 { font-size: clamp(3.4rem, 8vw, 7.8rem); line-height: .88; }
h2 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; }
p { color: var(--muted); }
.hero-sub, .section-sub, .sub { font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.6; max-width: 760px; }
.hero-ctas, .footer-links, .plan-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.card-stack { position: relative; min-height: 520px; }
.float-card, .carousel-card, .spotlight-card, .event-card, .job-card, .plan, .quote-card, .shop-mockup, .linkedin-card, .browse-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-/* filter removed (os-144) */
}
.float-card { position: absolute; width: min(310px, 80%); padding: 14px; }
.float-card.c1 { left: 0; top: 24px; }
.float-card.c2 { right: 12px; top: 145px; }
.float-card.c3 { left: 56px; bottom: 18px; }
.float-card-img, .spotlight-card-img, .event-card-img, .shop-mockup-img, .quote-card-avatar {
  min-height: 150px;
  background-size: cover !important;
  background-position: center !important;
  /* filter removed 2026-07-11 — saturated warm photos looked blue/cyan; os-144 */
}
img.float-card-img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 18px; }
.float-card-title, .plan-name { font-weight: 900; margin-top: 12px; color: var(--fg); }
.float-card-sub, .float-card-tag { color: var(--muted); font-size: 13px; }
.section { padding: clamp(54px, 8vw, 104px) 0; }
.section-inner { display: grid; gap: 24px; }
.carousel-grid, .spotlight, .events-strip, .feature-list, .pricing-grid, .quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.carousel-card, .plan, .quote-card { padding: 24px; }
.num, .icon, .check, .job-card-tag { color: var(--blue); font-weight: 900; }
.feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-list li { display: flex; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.62); border: 1px solid var(--line); }
.match-bubbles { min-height: 330px; position: relative; }
.bubble { position: absolute; padding: 16px 18px; border-radius: 999px; background: linear-gradient(180deg,#fff,#dff1ff); box-shadow: var(--shadow); font-weight: 900; }
.b1 { left: 6%; top: 8%; } .b2 { right: 10%; top: 20%; } .b3 { left: 26%; top: 44%; } .b4 { left: 4%; bottom: 10%; } .b5 { right: 8%; bottom: 14%; }
.spotlight-card, .event-card { text-decoration: none; color: inherit; display: grid; }
.spotlight-crown, .event-card-badge { position: absolute; margin: 12px; z-index: 2; color: #fff; background: linear-gradient(180deg,#1087ff,#004fc4); border-radius: 999px; padding: 6px 10px; font-weight: 900; font-size: 12px; }
.spotlight-card-body, .event-card-body { padding: 18px; }
.event-card-img { min-height: 210px; }
.job-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 16px; margin-bottom: 12px; }
.job-card-avatar { width: 54px; height: 54px; border-radius: 18px; box-shadow: inset 0 2px 5px rgba(255,255,255,.65); }
.plan.featured, .plan-featured { outline: 2px solid rgba(0,118,255,.36); transform: translateY(-8px); }
.plan-price { font-size: 34px; color: var(--blue); font-weight: 900; }
.plan-features { display: grid; gap: 10px; margin: 18px 0; color: var(--muted); }
.browse-shell { padding: clamp(48px, 8vw, 96px) 0; }
.filter-bar, .event-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip, select, input, textarea {
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--fg) !important;
}
.filter-chip { padding: 10px 14px; cursor: pointer; }
.filter-chip.active { background: var(--blue) !important; color: #fff !important; }
.browse-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }

/* dmitrii-nav-fix 2026-07-11: flag pills + theme icons */
.lang-pill button { font-size: 16px !important; line-height: 1; padding: 9px 10px !important; }
.lang-pill button[data-lang-pill] { font-size: 18px !important; }
.lang-pill .lang-menu button[data-lang-code] { font-size: 14px !important; line-height: 1.2; }
.theme-toggle { padding: 9px 12px !important; font-size: 16px !important; line-height: 1; min-width: 40px; }
.theme-toggle .theme-icon-light { display: none; }
.theme-toggle .theme-icon-dark { display: inline; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }

/* === os-147 HIKIMI quick wins === */
.card, .browse-card, .event-card, .spotlight-card, .shop-mockup, .pricing-card {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover, .browse-card:hover, .event-card:hover, .spotlight-card:hover, .shop-mockup:hover, .pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0,66,160,.22);
}
@media (max-width: 768px) {
  .nav { grid-template-columns: auto auto; gap: 10px; padding: 10px; }
  .nav-links { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
  .nav-tools { flex-wrap: wrap; gap: 6px; }
  .hero { min-height: 540px; padding: 0 12px; }
  .hero h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.1; }
  .hero h1 span { display: inline-block; }
  .section { padding: clamp(36px, 6vw, 64px) 0; }
  .section-inner { gap: 14px; }
  .carousel-grid, .spotlight, .events-strip, .feature-list, .pricing-grid, .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .event-card-img { min-height: 160px; }
  .float-card { display: none; }
  .announce { font-size: 12px; padding: 8px 12px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media print {
  body { background: white !important; color: black !important; }
  .nav, .announce, .hero-video, .float-card, .footer-bottom, .plan-badge, .spotlight-crown, .event-card-badge { display: none !important; }
  .hero, .section { padding: 12px 0; border: none; }
  a { color: black !important; text-decoration: underline; }
}

/* === os-148 theme-toggle wired up (Dmitrii 2026-07-11) === */
:root {
  --bg: #ffffff;
  --fg: #071f55;
  --hero-h1: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.92);
  --card-bg: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 72, 170, 0.16);
}
[data-theme="dark"] {
  --bg: #0b1530;
  --fg: #f5f9ff;
  --hero-h1: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(20, 35, 70, 0.86);
  --border: rgba(150, 200, 255, 0.18);
}
body { background: var(--bg); color: var(--fg); }
.hero h1, .hero h1 span, .hero h2, .hero .chapter-tag {
  color: var(--hero-h1) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  font-weight: 900;
}
.hero .hero-sub, .hero .hero-eyebrow {
  color: var(--hero-sub) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.card, .browse-card, .event-card, .spotlight-card, .pricing-card, .shop-mockup {
  background: var(--card-bg);
  border-color: var(--border);
}
[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #050a1a 0%, #0b1530 45%, #050a1a 100%);
}
[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(20, 35, 70, 0.85), rgba(5, 10, 26, 0.85)),
    url("/assets/videos/hero-collage.webp") center/cover !important;
}
.hero {
  background:
    linear-gradient(135deg, rgba(7, 31, 85, 0.55), rgba(0, 47, 144, 0.55)),
    url("/assets/videos/hero-collage.webp") center/cover !important;
}
[data-theme="dark"] .nav,
[data-theme="dark"] .announce {
  background: rgba(15, 25, 50, 0.86) !important;
  color: var(--fg) !important;
}

/* design-signup-funnel v1.0.0 (Dmitrii 2026-07-14 mymitap.ru brief): the 6-part
   funnel anatomy for the home page #auth section. Hook → Problem → Solution
   → Social Proof → Scarcity → CTA. Inline styles live in the partial too;
   this block is the canonical styling referenced by .signup-funnel class. */
.signup-funnel { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 32px); text-align: center; }
.signup-funnel .chapter-tag { display: inline-block; padding: 6px 14px; border: 1px solid rgba(0,79,196,.2); border-radius: 999px; background: #fff; color: var(--blue, #0050c4); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.signup-funnel h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 700; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.signup-funnel .sub { font-size: clamp(15px, 2vw, 18px); opacity: .78; line-height: 1.5; margin: 0 auto 20px; max-width: 580px; }
.signup-funnel .solution { font-size: clamp(14px, 1.8vw, 16px); font-weight: 600; color: var(--blue, #0050c4); margin: 0 auto 24px; max-width: 580px; }
.signup-funnel .proof { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 28px; max-width: 640px; }
.signup-funnel .proof-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(0,79,196,.06); border: 1px solid rgba(0,79,196,.18); border-radius: 999px; font-size: 13px; font-weight: 500; color: #0a2e6e; }
.signup-funnel .proof-chip strong { color: #0a2e6e; font-weight: 700; }
.signup-funnel .scarcity { font-size: 14px; font-weight: 600; color: #b91c1c; background: rgba(185,28,28,.06); border: 1px solid rgba(185,28,28,.18); border-radius: 8px; padding: 12px 16px; margin: 0 auto 28px; max-width: 560px; line-height: 1.4; }
.signup-funnel .form-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px 24px; box-shadow: 0 12px 32px rgba(0,30,80,.06); }
.signup-funnel .form-field { margin-bottom: 14px; text-align: left; }
.signup-funnel .form-field label { display: block; font-size: 13px; font-weight: 600; color: #1a2e4a; margin-bottom: 6px; }
.signup-funnel .form-input { width: 100%; padding: 14px 16px; font-size: 15px; border: 2px solid #d1d5db; border-radius: 10px; box-sizing: border-box; transition: border-color .15s ease; }
.signup-funnel .form-input:focus { outline: none; border-color: var(--blue, #0050c4); }
.signup-funnel .form-cta { width: 100%; padding: 16px; font-size: 17px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#0050c4,#0a2e6e); border: none; border-radius: 10px; cursor: pointer; letter-spacing: .01em; transition: transform .12s ease, box-shadow .12s ease; }
.signup-funnel .form-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,80,196,.28); }
.signup-funnel .form-cta:active { transform: translateY(0); }
.signup-funnel .privacy { margin-top: 14px; font-size: 12px; opacity: .6; line-height: 1.4; }
[data-theme="dark"] .signup-funnel .form-card { background: #1a2540; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .signup-funnel .form-input { background: #0f1730; color: #fff; border-color: rgba(255,255,255,.16); }
[data-theme="dark"] .signup-funnel .form-field label { color: #cbd5e1; }
[data-theme="dark"] .signup-funnel .privacy { color: #94a3b8; }

/* cms-4 (Dmitrii 2026-07-14): horizontally align the pricing tier columns at the
   columns top. Override the generic 2-column rule with a 4-column desktop grid
   + flex layout on each .plan so the .plan-name / .plan-price / .plan-desc rows
   start on the same baseline across all 4 columns. Responsive: 2x2 on tablet,
   1-column stack on mobile. */
.pricing-grid--4col {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2vw, 28px) !important;
  align-items: stretch !important;
}
.pricing-grid--4col .plan {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}
.pricing-grid--4col .plan-name,
.pricing-grid--4col .plan-price,
.pricing-grid--4col .plan-desc {
  align-self: stretch !important;
  width: 100% !important;
}
.pricing-grid--4col .plan-name { min-height: 2.2em; }
.pricing-grid--4col .plan-price { min-height: 2.6em; }
.pricing-grid--4col .plan-desc { min-height: 3.6em; }
.pricing-grid--4col .plan-features {
  align-self: stretch !important;
  width: 100% !important;
  flex-grow: 1 !important;
}
.pricing-grid--4col .plan-cta { align-self: stretch !important; width: 100% !important; }
.pricing-grid--4col .plan-badge { min-height: 1.6em; display: inline-flex; align-items: center; }
@media (max-width: 1100px) {
  .pricing-grid--4col { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .pricing-grid--4col { grid-template-columns: 1fr !important; }
}
