:root{
  --panama-red: #D81E2C;
  --panama-blue:#0B4DB3;
  --white: #ffffff;

  --bg: #07111a;
  --bg2:#0b1a2a;
  --stroke: rgba(255,255,255,.16);
  --stroke2: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.72);

  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --shadow2: 0 10px 28px rgba(0,0,0,.22);
  --radius: 18px;
  --max: 1140px;

  --ring: 0 0 0 4px rgba(11,77,179,.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 16% -10%, rgba(11,77,179,.30), transparent 58%),
    radial-gradient(980px 560px at 92% 0%, rgba(216,30,44,.22), transparent 60%),
    radial-gradient(860px 520px at 50% 115%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  line-height: 1.45;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button, input, select { font: inherit; }
::selection{ background: rgba(216,30,44,.25); }

.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .20;
  mix-blend-mode: overlay;
}

/* NAV */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 26, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke2);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  user-select: none;
}
.brand-mark{
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--panama-blue) 0 50%, var(--panama-red) 50% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-links a:hover{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.nav-links .nav-cta{
  color: rgba(255,255,255,.95);
  border-color: rgba(216,30,44,.45);
  background: rgba(216,30,44,.12);
}

/* Burger */
.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.burger:focus{ outline:none; box-shadow: var(--ring), 0 10px 24px rgba(0,0,0,.16); }
.burger-lines{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  margin: 0 auto;
  position: relative;
  border-radius: 999px;
}
.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.burger-lines::before{ top: -6px; }
.burger-lines::after{ top: 6px; }

/* Mobile menu drawer */
.mobile-menu{
  position: fixed;
  top: 64px;
  right: 12px;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,17,26,.92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  padding: 10px;
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 80;
}
.mobile-menu-inner{
  display:grid;
  gap: 6px;
}
.mobile-menu-inner a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
}
.mobile-menu-inner a:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 70;
}

/* Open state */
body.menu-open .mobile-menu{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
body.menu-open .menu-overlay{
  opacity: 1;
  pointer-events: auto;
}
body.menu-open .burger-lines{
  background: transparent;
}
body.menu-open .burger-lines::before{
  top: 0;
  transform: rotate(45deg);
}
body.menu-open .burger-lines::after{
  top: 0;
  transform: rotate(-45deg);
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.12); }
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: var(--ring), 0 10px 24px rgba(0,0,0,.18); }
.btn-primary{ border-color: rgba(216,30,44,.65); background: rgba(216,30,44,.18); }
.btn-secondary{ border-color: rgba(11,77,179,.65); background: rgba(11,77,179,.18); }
.btn-wide{ width: 100%; margin-top: 12px; }

/* TYPO */
h1,h2,h3{ margin: 0 0 12px; }
h1{
  font-size: clamp(32px, 4.1vw, 54px);
  letter-spacing: -0.8px;
  line-height: 1.05;
}
.section-title{ font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.2px; }
.section-sub{ margin: 0 0 16px; color: var(--muted); max-width: 82ch; }
.micro{ margin-top: 10px; color: var(--muted); font-size: 13px; }
.micro-pad{ padding:12px 14px; margin:0; }

section{ padding: 64px 0; }
#compare, #services, #contacts{
  background: radial-gradient(900px 420px at 30% 0%, rgba(255,255,255,.04), transparent 65%);
}

/* HERO */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--stroke2);
}
.hero-media{ position:absolute; inset:0; background:#000; }
.hero-media-el{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:0;
  transition: opacity 900ms ease;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.05);
}
.hero-media-el.active{ opacity: 1; }

.hero-slide.s1{
  background:
    radial-gradient(900px 520px at 28% 16%, rgba(216,30,44,.52), transparent 62%),
    radial-gradient(980px 680px at 78% 20%, rgba(11,77,179,.40), transparent 64%),
    linear-gradient(180deg, #06101a 0%, #0b1a2a 100%);
}
.hero-slide.s2{
  background:
    radial-gradient(980px 640px at 20% 24%, rgba(255,255,255,.14), transparent 62%),
    radial-gradient(900px 540px at 80% 16%, rgba(11,77,179,.45), transparent 64%),
    radial-gradient(860px 520px at 68% 60%, rgba(216,30,44,.35), transparent 66%),
    linear-gradient(180deg, #06101a 0%, #0b1a2a 100%);
}
.hero-slide.s3{
  background:
    radial-gradient(980px 640px at 26% 18%, rgba(11,77,179,.45), transparent 62%),
    radial-gradient(980px 640px at 74% 18%, rgba(216,30,44,.45), transparent 62%),
    radial-gradient(720px 520px at 50% 80%, rgba(255,255,255,.10), transparent 66%),
    linear-gradient(180deg, #06101a 0%, #0b1a2a 100%);
}

.hero-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(980px 520px at 20% 18%, rgba(11,77,179,.20), transparent 60%),
    radial-gradient(920px 520px at 82% 18%, rgba(216,30,44,.18), transparent 60%),
    linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.22));
}
.hero-content{ position: relative; width: 100%; padding: 76px 0 48px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 26px;
  align-items: start;
}
.hero-kicker{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.flag-pill{
  width: 44px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(90deg, rgba(11,77,179,.85) 0 50%, rgba(216,30,44,.85) 50% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
}
.sub{ margin: 0 0 18px; color: rgba(255,255,255,.90); font-size: 16px; max-width: 56ch; }
.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.badge{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

/* PANEL */
.panel{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.panel-title{ font-weight: 700; margin-bottom: 8px; }
.panel-flag::before{
  content:"";
  position:absolute;
  inset:-80px -120px auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 40%, rgba(11,77,179,.22), transparent 55%),
    radial-gradient(circle at 65% 55%, rgba(216,30,44,.18), transparent 55%);
  opacity: .95;
}
.facts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.fact{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 12px;
  min-height: 84px;
}
.fact .t{ font-weight: 800; margin-bottom: 6px; }
.fact .d{ color: var(--muted); font-size: 13px; }
.panel-mini{
  position: relative;
  z-index: 1;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}
.panel-mini-title{ font-weight: 800; margin-bottom: 6px; }
.panel-mini-text{ color: var(--muted); font-size: 13px; }

/* ABOUT CARDS */
.cards{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 98px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.card .h{ font-weight: 800; margin-bottom: 6px; }
.card .p{ color: var(--muted); font-size: 13px; }

/* STORY */
.story-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.story-points{ margin-top: 16px; display:grid; gap: 12px; }
.sp{
  display:flex; gap: 10px; align-items:flex-start;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px;
}
.sp-dot{
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.sp-dot-blue{ background: rgba(11,77,179,.95); }
.sp-dot-red{ background: rgba(216,30,44,.95); }
.sp-dot-white{ background: rgba(255,255,255,.90); }
.sp-t{ font-weight: 800; margin-bottom: 2px; }
.sp-d{ color: var(--muted); font-size: 13px; }
.story-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.video-card{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
}
.video{ width: 100%; display: block; background: rgba(0,0,0,.25); min-height: 220px; }

/* REGIONS */
.gallery{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-item{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .14s ease, background .2s ease, border-color .2s ease;
}
.g-item:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.g-photo{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display:block;
  filter: saturate(1.06) contrast(1.03);
}
.g-body{ padding: 14px; }
.g-title{ font-weight: 900; margin-bottom: 6px; letter-spacing: -.2px; }
.g-text{ color: var(--muted); font-size: 13px; }

/* TABLE (improved) */
.table-wrap{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
}

/* horizontal scroll container */
.scroll-x{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll-x::-webkit-scrollbar{ height: 10px; }
.scroll-x::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.scroll-x::-webkit-scrollbar-track{
  background: rgba(0,0,0,.18);
}

/* main table */
.compare-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 1550px;
}

.compare-table th:first-child,
.compare-table td:first-child{ width: 190px; }

.compare-table th:not(:first-child),
.compare-table td:not(:first-child){ width: 150px; }

.compare-table th,
.compare-table td{
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.compare-table tr > *:last-child{ border-right: 0; }

.compare-table thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7,17,26,.92);
  backdrop-filter: blur(10px);
  text-align: left;
  font-weight: 800;
  font-size: 14px;

  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
}

.compare-table tbody tr:nth-child(odd){ background: rgba(255,255,255,.03); }
.compare-table tbody tr:hover{ background: rgba(255,255,255,.06); }

.compare-table th:first-child,
.compare-table td:first-child{
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(7,17,26,.78);
  backdrop-filter: blur(10px);
  font-weight: 800;
  box-shadow: 10px 0 18px rgba(0,0,0,.22);
}
.compare-table thead th:first-child{ z-index: 6; }

.highlight-col{
  background: linear-gradient(180deg, rgba(11,77,179,.18), rgba(216,30,44,.10));
  border-left: 1px solid rgba(255,255,255,.16);
  border-right: 1px solid rgba(255,255,255,.16);
}
.compare-table tbody tr:nth-child(odd) .highlight-col{
  background: linear-gradient(180deg, rgba(11,77,179,.22), rgba(216,30,44,.12));
}

.muted{
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.money{
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1px;
}

/* SURVEY (Опросник) */
.quiz{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.q-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.q-top-title{
  font-weight: 800;
  letter-spacing: .2px;
}
.progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  flex: 1;
  min-width: 160px;
}
.bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(216,30,44,.80), rgba(11,77,179,.72));
  transition: width .25s ease;
}
.q{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 14px;
}
.q h3{
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -.2px;
}
.opt{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.opt button{
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  transition: background .2s ease, border-color .2s ease, transform .08s ease, filter .2s ease;
}
.opt button:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  filter: saturate(1.05);
}
.opt button:active{ transform: translateY(1px); }
.opt button:focus{
  outline: none;
  box-shadow: var(--ring), 0 10px 24px rgba(0,0,0,.16);
}

.form{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.form-top{ margin-top: 0; }
.form .full{ grid-column: 1 / -1; }

label{ font-size: 12px; color: var(--muted); display:block; margin-bottom: 6px; }
input, select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
input::placeholder{ color: rgba(255,255,255,.45); }
input:focus, select:focus{
  box-shadow: var(--ring);
  border-color: rgba(11,77,179,.45);
  background: rgba(255,255,255,.10);
}

.form-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* DETAILS */
details{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
details + details{ margin-top: 10px; }
summary{ cursor: pointer; font-weight: 900; }
summary::marker{ color: var(--muted); }
.acc-body{ margin-top: 10px; color: var(--muted); font-size: 14px; }
.acc-body ul{ margin: 8px 0 0 18px; }
.acc-body li{ margin: 6px 0; }

/* CONTACTS */
.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  color: var(--muted);
}
.contact-badges{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 18px;
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.footer-note{ margin-top:6px; }

/* TOAST */
.toast{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,17,26,.92);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 260px;
  box-shadow: var(--shadow);
  display: none;
}
.toast strong{ color: rgba(255,255,255,.96); }

/* RESPONSIVE */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .facts{ grid-template-columns: 1fr 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .story-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  section{ padding: 54px 0; }
  .nav-links{ display: none; }
  .burger{ display: inline-flex; align-items:center; justify-content:center; }
  .facts{ grid-template-columns: 1fr; }
  .form{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .opt{ grid-template-columns: 1fr; }

  /* mobile hero tweaks */
  .hero{ min-height: 78vh; }
  .hero-content{ padding: 64px 0 42px; }
  .sub{ font-size: 15px; }

  /* table slightly narrower */
  .compare-table{ min-width: 1400px; }
  .compare-table th:first-child, .compare-table td:first-child{ width: 170px; }
  .compare-table th:not(:first-child), .compare-table td:not(:first-child){ width: 140px; }
}

@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
  .g-photo{ height: 190px; }
  .compare-table th, .compare-table td{ padding: 12px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-media-el{ transition: none; }
  .btn, .g-item, .menu-overlay, .mobile-menu, .bar{ transition: none; }
}