@font-face {
  font-family: "Neue";
  src: url("fonts/HelveticaNeueCyr-Roman.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Neue";
  src: url("fonts/HelveticaNeueCyr-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Neue";
  src: url("fonts/HelveticaNeueCyr-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Neue";
  src: url("fonts/HelveticaNeueCyr-Black.ttf") format("truetype");
  font-weight: 900;
}

:root {
  --deep-blue: #0D0B68;
  --berry-purple: #7D71FF;
  --cloud-white: #EDEFFF;
  --green: #00C95E;
  --lilac: #BA61FF;
  --orange: #FF872E;
  --blue: #5F94FF;
  --magenta: #FF45E3;
  --ink: #10102b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Neue", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--deep-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(13,11,104,.25);
  transition: transform .15s ease, background .15s ease;
}
.back-link:hover { background: var(--berry-purple); transform: translateY(-1px); }

.hero, .bank-hero {
  background: var(--deep-blue);
  color: var(--cloud-white);
  padding: 96px 24px 64px;
  position: relative;
  overflow: hidden;
}
.bank-hero { padding: 96px 24px 48px; }
.hero-inner { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }
.brand-masthead + .hero-inner { padding-right: 210px; }
.hero-inner-flex { display: flex; align-items: center; gap: 28px; }
.hero-logo {
  width: 88px; height: 88px; border-radius: 22px; background: #fff;
  padding: 14px; object-fit: contain; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-logo-provider { width: 96px; height: 96px; }
.brand-masthead {
  position: absolute;
  top: 48px;
  right: 56px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  pointer-events: none;
}
/* На главной "tutu" должно быть на уровне первой строки h1 ("Тревел-сервисы") */
.hero .brand-masthead {
  top: 141px;
}
.brand-logo {
  display: flex;
  align-items: baseline;
  font-size: 102px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  opacity: .16;
}
.brand-logo-a {
  color: #f5f6ff;
  text-shadow:
    1px 1px 0 rgba(9,7,64,.55),
    2px 2px 0 rgba(9,7,64,.45),
    3px 3px 0 rgba(9,7,64,.35),
    4px 4px 2px rgba(9,7,64,.25),
    5px 6px 14px rgba(0,0,0,.45);
}
.brand-logo-b {
  display: inline-block;
  color: var(--berry-purple);
  font-style: italic;
  transform: skewX(-9deg);
  margin-left: 1px;
  text-shadow:
    1px 1px 0 rgba(9,7,64,.5),
    2px 2px 0 rgba(9,7,64,.4),
    3px 3px 0 rgba(9,7,64,.3),
    4px 4px 3px rgba(9,7,64,.2),
    6px 7px 16px rgba(0,0,0,.5);
}
.brand-dept {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(237,239,255,.85);
  max-width: 340px;
  line-height: 1.25;
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #10102b;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 16px;
}
.bank-hero h1 { font-size: 44px; margin: 0 0 10px; font-weight: 900; }
.hero .accent { color: var(--berry-purple); }
.hero-sub { font-size: 19px; opacity: .85; max-width: 640px; margin: 0 0 8px; }
.entry-url {
  display: inline-block;
  margin-top: 12px;
  color: var(--berry-purple);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(125,113,255,.4);
}
.entry-url:hover { color: #fff; border-color: #fff; }
.entry-url-none { color: rgba(237,239,255,.5); border: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 56px 24px 40px; }
.wrap-wide { max-width: 1360px; }
.section { margin-bottom: 56px; }
.section-title { font-size: 28px; font-weight: 900; margin: 0 0 6px; }
.section-sub { color: #555; margin: 0 0 24px; font-size: 15px; }

.category-group { margin-bottom: 36px; }
.category-group:last-child { margin-bottom: 0; }
.category-title {
  font-size: 20px; font-weight: 900; color: var(--deep-blue);
  margin: 0 0 12px; padding-left: 2px;
}

.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid #e6e6f5; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 1180px; font-size: 14px; }
table.matrix th {
  background: var(--deep-blue);
  color: var(--cloud-white);
  font-weight: 700;
  text-align: center;
  padding: 16px 10px;
  position: sticky;
  top: 0;
}
table.matrix th.company-head, table.matrix td.company-cell { text-align: left; }
table.matrix td.company-cell {
  padding: 12px 16px;
  font-weight: 700;
  background: #fafaff;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
table.matrix td.company-cell a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
table.matrix td.company-cell a:hover { color: var(--berry-purple); }
.company-cell-text { display: flex; flex-direction: column; gap: 2px; }
.row-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #eee; padding: 3px; flex-shrink: 0; }
.company-type { font-size: 11px; font-weight: 500; color: #999; }
table.matrix td.cell {
  text-align: center;
  border-bottom: 1px solid #eee;
  border-left: 1px solid #f0f0f8;
  padding: 10px 8px;
  min-width: 110px;
}
.mk { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 900; font-size: 12px; flex-shrink: 0; }
.mk-plus { background: var(--green); color: #fff; }
.mk-redirect { background: var(--blue); color: #fff; }
.mk-minus { background: #eee; color: #bbb; }
.cell-marker { display: inline-flex; margin-bottom: 4px; }

.cell-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--ink); border-radius: 10px;
  padding: 4px; margin: -4px; transition: background .15s ease;
}
.cell-link:hover { background: var(--cloud-white); }
td.cell:not(:has(.cell-link)) { cursor: default; }

/* Мультипровайдерная ячейка: несколько партнёров под одним маркером */
.cell-chip-row {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.cell-link-chip {
  display: inline-flex; text-decoration: none; color: var(--ink);
  border-radius: 10px; padding: 3px; margin: -3px; transition: background .15s ease;
}
.cell-link-chip:hover { background: var(--cloud-white); }
.cell-link-chip:hover .provider-chip { border-color: var(--berry-purple); box-shadow: 0 2px 8px rgba(125,113,255,.25); }
.cell-link-chip .chip-logo-lg { pointer-events: none; }

.provider-chip {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid #e6e6f5; border-radius: 999px;
  padding: 4px 10px 4px 4px; font-size: 12px; font-weight: 700;
  max-width: 130px; transition: border-color .15s ease, box-shadow .15s ease;
}
.cell-link:hover .provider-chip { border-color: var(--berry-purple); box-shadow: 0 2px 8px rgba(125,113,255,.25); }
.chip-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; flex-shrink: 0; background: #fafaff; }
.chip-logo-placeholder { background: var(--cloud-white); }
.chip-logo-lg { width: 30px; height: 30px; border: 1px solid #eee; }
.chip-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cloud-white); color: var(--deep-blue);
  font-size: 11px; font-weight: 900; border: 1px solid #e6e6f5;
}
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.cell .provider-chip { display: flex; margin: 0 auto; pointer-events: none; }
figcaption .provider-chip { vertical-align: middle; margin-left: 4px; }
.cell-detail { font-size: 12px; color: #888; margin-top: 4px; }
table.bank-products .provider-chip { max-width: none; }
table.bank-products .chip-name { white-space: normal; }

.used-in { margin: 24px 0 32px; }
.used-in-title { font-size: 32px; font-weight: 900; margin: 0 0 16px; }
.used-in-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.used-in-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cloud-white); border-radius: 999px;
  padding: 8px 18px 8px 8px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease;
}
.used-in-item:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,11,104,.15); }
.used-in-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #eee; padding: 3px; }

.legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: #555; }

.audience-section { margin-bottom: 40px; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.stat-card {
  background: var(--cloud-white); border-radius: 16px; padding: 24px 26px;
  border: 1px solid #e6e6f5;
}
.stat-value { font-size: 44px; font-weight: 900; color: var(--deep-blue); line-height: 1.05; letter-spacing: -.01em; }
.stat-value-empty { font-size: 26px; color: #aaa; font-weight: 700; }
.stat-label { font-size: 15px; font-weight: 700; color: #555; margin-top: 4px; }
.stat-source { font-size: 12px; color: #999; margin-top: 10px; line-height: 1.5; }
.stat-card-empty { background: #fafafa; border-style: dashed; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

.concl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.concl-card { background: var(--cloud-white); border-radius: 16px; padding: 22px; }
.concl-num { color: var(--berry-purple); font-weight: 900; font-size: 22px; margin-bottom: 8px; }
.concl-card h3 { font-size: 17px; margin: 0 0 8px; }
.concl-card p { font-size: 14px; color: #444; margin: 0; line-height: 1.5; }

table.bank-products { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
table.bank-products th { text-align: left; color: #888; font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 8px 12px; border-bottom: 2px solid #eee; }
table.bank-products td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
table.bank-products td.cell { width: 50px; text-align: center; }
.note { color: #666; font-size: 14px; line-height: 1.6; background: #fafaff; padding: 16px 18px; border-radius: 12px; }

.wl-table { margin-top: 16px; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.wl-table thead th { background: var(--cloud-white); color: var(--deep-blue); }
.wl-table td:first-child { width: 190px; font-weight: 700; color: #888; vertical-align: top; }
.wl-table td { font-size: 13px; line-height: 1.6; }

.notice { padding: 16px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; }
.notice-blocked { background: #fff1ee; color: #a3341c; border: 1px solid #ffd8cc; }
.notice-login { background: #f1eeff; color: var(--deep-blue); border: 1px solid #ddd6ff; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 24px; }
.shot-card { margin: 0; border: 1px solid #eee; border-radius: 14px; overflow: hidden; background: #fafaff; }
.shot-card img { width: 100%; display: block; border-bottom: 1px solid #eee; transition: opacity .15s ease; }
.shot-card img:hover { opacity: .88; }
.shot-card figcaption { padding: 10px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.shot-caveat { margin: 0 14px 12px; font-size: 12px; color: #888; }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(13,11,104,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 80vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

.site-footer { text-align: center; color: #999; font-size: 13px; padding: 32px 24px 60px; }

@media (max-width: 900px) {
  .brand-masthead { transform: scale(.6); transform-origin: top right; }
  .brand-masthead + .hero-inner { padding-right: 140px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .bank-hero h1 { font-size: 30px; }
  .wrap { padding: 40px 16px; }
  .brand-masthead { transform: scale(.42); top: 24px; right: 8px; }
  .brand-masthead + .hero-inner { padding-right: 75px; }
}
