:root {
  --orange: #E94E1B;
  --orange-dark: #c83f10;
  --bg: #F2F2F2;
  --card: #FFFFFF;
  --text: #1f1f1f;
  --muted: #7a7a7a;
  --border: #e5e5e5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.app {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .app { max-width: 1100px; background: #fff; }
}

.page-header {
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  min-height: 96px;
}
.page-header .back {
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
}
.page-header .back:hover { background: #fff3ec; }
.brand-mini {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-mini-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 700px) { .brand-mini-logo { height: 75px; } }
.page-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.page-header .home-btn {
  margin-left: auto;
  color: var(--orange);
  font-size: 22px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kaspersky-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: 0 0 auto;
  opacity: 1;
  user-select: none;
}
.kaspersky-badge svg { flex: 0 0 auto; }
.kaspersky-badge-logo {
  height: 13px;
  width: auto;
  object-fit: contain;
  display: block;
}
.kaspersky-badge-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #000;
  white-space: nowrap;
}
.kaspersky-badge-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #000;
  white-space: nowrap;
}
.landing-header .kaspersky-badge { margin-left: auto; }
/* Legacy alias — старые шаблоны могут ссылаться на .header */
.header { background: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.header h1 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; flex: 1; text-transform: uppercase; }

.content {
  padding: 12px;
  flex: 1;
}
.content.no-pad { padding: 0; }

.region-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.region-card .pin {
  color: var(--orange);
  font-size: 22px;
}
.region-card .region-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.region-card .region-city {
  font-size: 13px;
  color: var(--muted);
}
.region-card .region-illustration {
  margin-left: auto;
  font-size: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 380px) {
  .grid { gap: 8px; }
}
@media (min-width: 700px) {
  .grid.grid-3x3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .grid:not(.grid-3x3) { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.placeholder-tile {
  border: 2px dashed var(--orange);
  background: #fff7f3;
}
.placeholder-tile .label { color: var(--orange); font-weight: 700; }
.placeholder-logo {
  background: #fff !important;
  color: var(--orange) !important;
  border: 2px solid var(--orange);
  font-size: 28px !important;
}

/* Landing */
.hero {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 14px;
}
.hero h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
}
.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  text-transform: uppercase;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-weight: 900;
}
.link-secondary {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  text-decoration: underline;
  font-size: 14px;
}

.features {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; }
.feature-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.feature-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.feature-text { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cta-bottom { text-align: center; padding: 8px 0 18px; }

/* ============ LANDING ============ */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 10px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-logo { height: 55px; width: auto; display: block; }
@media (min-width: 700px) { .brand-logo { height: 75px; } }
.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--orange);
  white-space: nowrap;
}
@media (min-width: 700px) { .brand-title { font-size: 30px; } }
@media (max-width: 380px) { .brand-title { font-size: 22px; } }
.top-nav {
  display: flex;
  gap: 2px;
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (min-width: 700px) { .top-nav { font-size: 14px; gap: 4px; } }
.top-nav a {
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.top-nav a:hover { background: #fff3ec; color: var(--orange); }

/* ============ HERO HEADLINE (варианты: ?h=1..5&s=1..4) ============ */
.landing-cover.has-overlay { position: relative; height: 300px; overflow: hidden; }
.landing-cover.has-overlay .landing-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
@media (min-width: 700px) {
  .landing-cover.has-overlay { height: 380px; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0) 28%, rgba(20, 16, 14, .78) 100%);
  padding: 24px 16px 20px;
}
.landing-cover.s2 .hero-overlay {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(24, 18, 15, .55);
}
.hero-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 800;
  max-width: 680px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-sub {
  margin: 0;
  color: rgba(255, 255, 255, .93);
  font-size: 14px;
  line-height: 1.45;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.hero-accent { color: #FF914C; }
.hero-title--words {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: .5px;
  margin: 0;
}
@media (min-width: 700px) {
  .hero-overlay { padding: 36px 32px 30px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-title--words { font-size: 46px; }
}

/* s=3 — оранжевый баннер над фото */
.hero-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #ff7a3d 100%);
  padding: 26px 16px 24px;
  text-align: center;
}
.hero-banner .hero-title { margin: 0 auto 8px; text-shadow: none; }
.hero-banner .hero-sub { margin: 0 auto; text-shadow: none; }
.hero-banner .hero-accent { color: #FFE3B0; }
@media (min-width: 700px) { .hero-banner { padding: 36px 32px 32px; } }

/* s=5 — сплит: текст слева, фото справа */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: #fff;
  padding: 26px 16px 10px;
  align-items: center;
}
@media (min-width: 850px) {
  .hero-split { grid-template-columns: 1.1fr 1fr; gap: 38px; padding: 42px 32px 18px; }
}
.hero-split .hero-title {
  color: var(--text);
  text-shadow: none;
  border-left: 5px solid var(--orange);
  padding-left: 14px;
}
.hero-split .hero-sub { color: var(--muted); text-shadow: none; padding-left: 19px; }
.hero-split .hero-accent { color: var(--orange); }
.hero-split__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(233, 78, 27, .16);
}

/* s=6 — стеклянная карточка поверх фото */
.landing-cover.s6 .hero-overlay {
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .28));
  padding: 20px 16px;
}
.landing-cover.s6 .hero-text {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 620px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.landing-cover.s6 .hero-title { color: var(--text); text-shadow: none; font-size: 21px; }
.landing-cover.s6 .hero-sub { color: #555; text-shadow: none; }
.landing-cover.s6 .hero-accent { color: var(--orange); }
@media (min-width: 700px) { .landing-cover.s6 .hero-title { font-size: 29px; } }

/* s=7 — тёмный премиум-баннер над фото */
.hero-banner--dark { background: linear-gradient(135deg, #211d1a 0%, #3c2f26 100%); }
.hero-banner--dark .hero-accent { color: #FF914C; }

/* s=8 — чип-бейдж + крупный центр на белом, над фото */
.hero-badge-top { background: #fff; padding: 30px 16px 10px; text-align: center; }
.hero-chip {
  display: inline-block;
  background: #FFE9DF;
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-badge-top .hero-title { color: var(--text); text-shadow: none; margin: 0 auto 8px; font-size: 26px; }
.hero-badge-top .hero-sub { color: var(--muted); text-shadow: none; margin: 0 auto; }
.hero-badge-top .hero-accent { color: var(--orange); }
@media (min-width: 700px) {
  .hero-badge-top { padding: 40px 32px 14px; }
  .hero-badge-top .hero-title { font-size: 38px; }
}

/* s=9 — оранжевая полоса вплотную под фото */
.hero-strip { background: var(--orange); padding: 18px 16px 20px; }
.hero-strip .hero-title { color: #fff; text-shadow: none; margin: 0 0 6px; font-size: 22px; }
.hero-strip .hero-sub { color: rgba(255, 255, 255, .92); text-shadow: none; }
.hero-strip .hero-accent { color: #FFE3B0; }
@media (min-width: 700px) {
  .hero-strip { padding: 24px 32px 26px; }
  .hero-strip .hero-title { font-size: 30px; }
}

/* s=10 — акцент маркером (оранжевая плашка внутри заголовка), над фото */
.hero-marker { background: #fff; padding: 30px 16px 8px; text-align: center; }
.hero-marker .hero-title { color: var(--text); text-shadow: none; margin: 0 auto 10px; font-size: 27px; line-height: 1.3; }
.hero-marker .hero-accent {
  background: var(--orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-marker .hero-sub { color: var(--muted); text-shadow: none; margin: 0 auto; }
@media (min-width: 700px) {
  .hero-marker { padding: 40px 32px 10px; }
  .hero-marker .hero-title { font-size: 38px; }
}

/* s=4 — белый блок между фото и услугами */
.hero-below {
  background: #fff;
  padding: 26px 16px 4px;
  text-align: center;
}
.hero-below .hero-title { color: var(--text); text-shadow: none; margin: 0 auto 8px; }
.hero-below .hero-sub { color: var(--muted); text-shadow: none; margin: 0 auto; }
.hero-below .hero-accent { color: var(--orange); }
@media (min-width: 700px) { .hero-below { padding: 34px 32px 6px; } }

.landing-cover { background: #fff; }
.landing-cover-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.services-section {
  background: #fff;
  padding: 22px 16px 24px;
}
@media (min-width: 700px) { .services-section { padding: 28px 32px 32px; } }
.section-heading {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}
@media (min-width: 700px) { .section-heading { font-size: 28px; margin: 0 0 12px; } }
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 640px;
}
@media (min-width: 700px) { .section-lead { font-size: 15px; margin-bottom: 26px; } }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 18px 10px;
  min-height: 130px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  transition: background .12s, color .12s, transform .08s, box-shadow .12s;
  cursor: pointer;
}
.service-tile:hover {
  background: #fff7f3;
  border-color: var(--orange-dark);
  box-shadow: 0 6px 18px rgba(233, 78, 27, .22);
}
.service-tile:active { transform: scale(.97); }
.service-tile__ico {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}
@media (min-width: 700px) { .service-tile__ico { width: 110px; height: 110px; } }
.service-tile__name { font-size: 14px; line-height: 1.25; }
@media (min-width: 700px) { .service-tile__name { font-size: 15px; } }

/* legacy block (старый landing-hero не используется) */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 22px 16px 8px;
  background: #fff;
}
@media (min-width: 850px) {
  .landing-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 42px;
    padding: 48px 32px 24px;
    align-items: center;
  }
}
.landing-hero__text { min-width: 0; }
.landing-hero__text h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.18;
  color: var(--text);
  font-weight: 800;
}
@media (min-width: 850px) { .landing-hero__text h1 { font-size: 36px; } }
.landing-hero__text .lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (min-width: 850px) { .landing-hero__text .lead { font-size: 16px; } }
.landing-hero__img {
  order: -1;
  text-align: center;
}
@media (min-width: 850px) { .landing-hero__img { order: 0; } }
.landing-hero__img img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(233, 78, 27, .18);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 500px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  transition: border-color .12s, transform .08s, box-shadow .12s, color .12s;
  cursor: pointer;
}
.service-item:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 4px 14px rgba(233, 78, 27, .14);
}
.service-item:active { transform: scale(.98); }
.service-arrow {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  margin: 8px auto 6px;
  max-width: 540px;
  user-select: none;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
}
.agreement-row .agreement-text { line-height: 1.4; }
.agreement-row.blink input {
  animation: checkboxPulse 2.6s ease-out infinite;
  border-radius: 4px;
}
@keyframes checkboxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(233, 78, 27, .35); }
  70%  { box-shadow: 0 0 0 7px rgba(233, 78, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 78, 27, 0); }
}
.agreement-row input {
  margin: 0;
  width: 22px; height: 22px;
  flex: 0 0 22px;
  accent-color: var(--orange);
  cursor: pointer;
}
.agreement-row a { color: var(--orange); text-decoration: underline; }
.agreement-hint {
  background: #fff3ec;
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 8px;
}

.landing-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 16px;
  background: #fff;
}
@media (min-width: 600px) {
  .landing-buttons { grid-template-columns: 1fr 1fr; padding: 22px 32px; }
}
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.btn-secondary:hover { background: var(--orange); color: #fff; }

.landing-contacts {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 22px 16px 28px;
}
@media (min-width: 800px) { .landing-contacts { padding: 32px; } }
.landing-contacts h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--text);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (min-width: 800px) { .contacts-grid { grid-template-columns: repeat(4, 1fr); } }
.contacts-wide { grid-column: 1 / -1; }
.contacts-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.contacts-value { font-size: 14px; font-weight: 600; word-break: break-word; line-height: 1.4; }
.contacts-value a { color: var(--orange); }

/* ============ SERVICE SELECT (2 колонки) ============ */
.select-hint {
  background: var(--card);
  border-left: 3px solid var(--orange);
  padding: 10px 14px;
  margin: 0 0 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 18px; align-items: start; }
}
.col {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 0;
}
@media (min-width: 700px) { .col { padding: 14px; } }
.col-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.region-list.compact { max-height: 34vh; overflow: auto; }
@media (min-width: 800px) { .region-list.compact { max-height: 60vh; } }
.region-search {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
}
.region-search:focus { border-color: var(--orange); }
.region-empty {
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.region-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.region-btn:hover { background: #fff7f3; }
.region-btn.selected { background: #fff3ec; color: var(--orange); font-weight: 700; }
.region-btn .chev { color: #c0c0c0; font-size: 16px; }
.region-btn.selected .chev { color: var(--orange); }

.selected-region {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
}
.selected-region.chosen { background: #fff3ec; color: var(--orange); font-weight: 700; }
.selected-region.needs-region {
  background: #fff3ec;
  color: var(--orange);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--orange);
  animation: needsRegionPulse .45s ease;
}
@keyframes needsRegionPulse {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.pay-email { margin-bottom: 14px; }
.pay-email__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pay-email__input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
}
.pay-email__input:focus { border-color: var(--orange); }
.pay-email__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pay-email__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #d32f2f;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 700px) { .bank-grid { gap: 12px; } }
.bank-card { margin: 0; display: flex; }
.bank-card__btn {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  min-height: 110px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .12s, box-shadow .12s, transform .08s;
}
.bank-card__btn:hover:not(:disabled) {
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(233, 78, 27, .14);
}
.bank-card__btn:active:not(:disabled) { transform: scale(.97); }
.bank-card__btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.bank-card.locked { cursor: pointer; }
.bank-card__logo {
  width: 48px; height: 48px;
  max-width: 100%;
  object-fit: contain;
  display: inline-flex; align-items: center; justify-content: center;
}
.bank-card__name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
@media (min-width: 700px) {
  .bank-card__logo { width: 56px; height: 56px; }
  .bank-card__name { font-size: 12px; }
}

.bank-card.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 12px 6px;
  border: 2px dashed var(--orange);
  border-radius: 12px;
  background: #fff7f3;
  text-align: center;
  width: 100%;
}
.bank-card.placeholder .placeholder-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 800;
}
.bank-card.placeholder .bank-card__name {
  color: var(--orange);
}

/* ============ Pay modal (затычка) ============ */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pay-modal[hidden] { display: none; }
.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.pay-modal__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px 22px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: payModalIn .18s ease-out;
}
@keyframes payModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pay-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px;
}
.pay-modal__close:hover { color: var(--text); }
.pay-modal__price {
  font-size: 42px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.pay-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.pay-modal__sub {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.pay-modal__methods {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.pay-modal__confirm {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}
.pay-modal__cancel {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
}
.pay-modal__cancel:hover { color: var(--text); }

/* ============ PAY WIDGET ============ */
.landing-header--compact { padding-bottom: 6px; }

.pay-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px 40px;
}
.pay-page__back {
  display: inline-block;
  margin: 4px 0 14px;
  color: var(--orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.pay-page__back:hover { color: var(--orange-dark); text-decoration: underline; }

.pay-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #f0e2da;
  padding: 22px 22px 18px;
}
.pay-card__head { text-align: center; margin-bottom: 14px; }
.pay-card__badge {
  display: inline-block;
  background: #FFE9DF;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pay-card__price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.pay-card__amount {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.pay-card__currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}
.pay-card__sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pay-methods {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #FAFAFA;
  border-radius: 10px;
  border: 1px solid #eee;
}
.pay-methods li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
}
.pay-methods__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.pay-widget-mount {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 6px;
}
#payment-form { min-height: 340px; }

/* email form before widget */
.pay-email-form {
  background: #FAFAFA;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.pay-email-form__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pay-email-form__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.pay-email-form__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,78,27,0.12);
}
.pay-email-form__hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--muted);
}
.pay-email-form__error {
  margin: 6px 2px 0;
  font-size: 13px;
  color: #c62828;
  font-weight: 600;
}
.pay-email-form__btn {
  margin-top: 14px;
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
}
.pay-email-form__btn:hover { background: var(--orange-dark); }
.pay-email-form__btn:disabled { opacity: .6; cursor: progress; }

/* email inline (рядом с виджетом, на одной странице) */
.pay-email-row {
  margin: 14px 0 0;
}
.pay-email-row--optional .pay-email-row__label {
  display: flex; align-items: center; gap: 8px;
}
.pay-email-row__optional-tag {
  background: #f0f0f0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: lowercase;
  letter-spacing: 0;
}
.pay-email-row__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pay-email-row__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.pay-email-row__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,78,27,0.12);
}
.pay-email-row__hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--muted);
}
.pay-email-row__error {
  margin: 6px 2px 0;
  font-size: 13px;
  color: #c62828;
  font-weight: 600;
}

/* overlay поверх виджета пока email не введён */
.pay-widget-mount { position: relative; min-height: 200px; }
.pay-widget-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  z-index: 2;
}
.pay-widget-overlay[hidden] { display: none; }
.pay-widget-overlay__icon { font-size: 32px; }
.pay-widget-overlay__text { font-size: 14px; color: var(--muted); max-width: 260px; }

.pay-card__status {
  margin: 16px 0 4px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--orange);
  background: #FFF3EC;
  border: 2px solid var(--orange);
  border-radius: 12px;
  text-align: center;
  letter-spacing: .2px;
  animation: pay-status-pulse 1.2s ease-in-out infinite;
}
@keyframes pay-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 78, 27, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(233, 78, 27, 0); }
}
.pay-card__status[hidden] { display: none; }

.pay-card__check-btn {
  display: none !important;
  margin: 14px auto 4px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(233,78,27,0.25);
}
.pay-card__check-btn:hover { background: var(--orange-dark); }
.pay-card__check-btn:disabled { opacity: .7; cursor: progress; }
.pay-card__check-btn[hidden] { display: none; }

/* Баннер: «у вас есть оплаченный доступ, нажмите чтобы перейти на банк» */
.paid-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #FFF1E7 0%, #FFE3D0 100%);
  border: 2px solid var(--orange);
  border-radius: 14px;
  margin: 10px 14px 0;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(233,78,27,0.18);
  transition: transform .12s, box-shadow .12s;
}
.paid-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233,78,27,0.25);
}
.paid-banner__check {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.paid-banner__body { flex: 1; min-width: 0; line-height: 1.3; }
.paid-banner__title {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
}
.paid-banner__sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.paid-banner__sub [data-paid-countdown] {
  color: var(--orange);
  font-weight: 700;
}
.paid-banner__arrow {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
}
@media (max-width: 480px) {
  .paid-banner { margin: 8px 10px 0; padding: 10px 12px; gap: 10px; }
  .paid-banner__title { font-size: 14px; }
  .paid-banner__sub { font-size: 12px; }
}

.pay-card__secure {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #eee;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.pay-card__lock { margin-right: 4px; }

@media (max-width: 480px) {
  .pay-page { padding: 8px 12px 32px; }
  .pay-card { padding: 18px 16px 14px; border-radius: 12px; }
  .pay-card__amount { font-size: 36px; }
}

/* ============ PAYMENT INFO ============ */
.info-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 14px;
}
.info-card h2 { margin: 0 0 12px; color: var(--orange); font-size: 20px; }
.info-card h3 { margin: 18px 0 8px; font-size: 16px; }
.info-card .ordered { padding-left: 22px; line-height: 1.6; }
.info-card .ordered li { margin-bottom: 6px; font-size: 15px; }
.info-card .plain-list { list-style: none; padding: 0; margin: 8px 0 0; }
.info-card .plain-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}
.info-card .plain-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.info-card .btn-primary { margin-top: 16px; }

.tile {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 130px;
  justify-content: space-between;
  transition: transform .08s ease;
}
.tile:active { transform: scale(.98); }

.tile .logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
}
.tile .logo-fallback {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  border-radius: 50%;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--orange);
  font-size: 22px;
}
.tile .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.tile.rating-tile .label {
  color: var(--orange);
  font-weight: 700;
}

.banks-tagline {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  margin: 16px 4px 4px;
  line-height: 1.35;
}
.banks-tagline--top { margin: 2px 4px 16px; font-size: 17px; color: #000; }

/* Чекбоксы на странице оплаты (чек / согласие) */
.pay-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  margin: 0 0 14px;
  line-height: 1.4;
}
.pay-check-row input {
  margin: 1px 0 0;
  width: 20px; height: 20px;
  flex: 0 0 20px;
  accent-color: var(--orange);
  cursor: pointer;
}
.pay-check-row a { color: var(--orange); text-decoration: underline; }
.pay-email-wrap[hidden] { display: none; }

.full-tile {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.full-tile .ic {
  font-size: 28px;
  color: var(--muted);
}
.full-tile .title {
  font-weight: 700;
  color: var(--orange);
  font-size: 15px;
}
.full-tile .sub {
  font-size: 12px;
  color: var(--muted);
}

.footnote {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0 18px;
}
.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  padding: 18px 16px 6px;
  font-size: 13px;
  background: #fafafa;
  border-top: 1px solid var(--border);
}
.landing-footer-links a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.landing-footer-links a:hover { color: var(--orange-dark); }
.landing-footer-links .footer-sep { color: #c5c5c5; }

/* Bank page */
.bank-head {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bank-head img { max-height: 38px; max-width: 60%; object-fit: contain; }
.bank-head .home-link { margin-left: auto; color: var(--orange); font-size: 24px; }
.section-title { font-weight: 700; font-size: 16px; margin: 0 0 10px 2px; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.product-card .ico {
  width: 64px;
  height: 64px;
  background: #f6f1ec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 28px;
}
.product-card .name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  min-height: 40px;
}
.product-card form, .product-card .stub { margin-top: auto; }

.btn-go {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
}
.btn-go:hover { background: var(--orange-dark); }
.btn-go .arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}
.btn-disabled {
  background: #ccc;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  font-size: 13px;
  text-align: center;
}

/* Regions list */
.region-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.region-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.region-list li:last-child a { border-bottom: 0; }
.region-list li a .chev { color: #c0c0c0; font-size: 18px; }
.region-list li a:hover { background: #fafafa; }

/* Calculator */
.calc-form {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-form label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}
.calc-form button {
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
}
.calc-form button:hover { background: var(--orange-dark); }

.calc-result {
  margin-top: 14px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.calc-result .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.calc-result .row .v { font-weight: 700; }

/* Pay screens */
.pay-screen {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
  margin: 20px 0;
}
.pay-screen h2 { color: var(--orange); margin-top: 0; }
.pay-screen p { color: var(--muted); line-height: 1.5; }
.pay-screen .countdown { font-size: 28px; font-weight: 700; color: var(--orange); margin: 12px 0; }
.pay-screen .btn-go { display: inline-flex; width: auto; padding: 10px 18px; margin-top: 10px; }

/* Rating tiles same as product-grid */

.requisites {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.requisites h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--orange);
}
.requisites table { width: 100%; border-collapse: collapse; font-size: 14px; }
.requisites td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.requisites td:first-child {
  color: var(--muted);
  width: 45%;
  padding-right: 10px;
}
.requisites td:last-child { font-weight: 600; word-break: break-word; }
.requisites tr:last-child td { border-bottom: 0; }
.requisites a { color: var(--orange); text-decoration: underline; }

.footnote a {
  color: var(--orange);
  text-decoration: underline;
  margin-left: 6px;
}

/* ============ PWA install bar (плашка снизу, установка в 1 тап) ============ */
.pwa-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateY(115%);
  transition: transform .22s ease;
}
.pwa-bar--in { transform: translateY(0); }
.pwa-bar[hidden] { display: none; }
.pwa-bar__icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.pwa-bar__text { flex: 1; min-width: 0; line-height: 1.25; }
.pwa-bar__text b { display: block; font-size: 14px; color: var(--text); }
.pwa-bar__text span { display: block; font-size: 12px; color: var(--muted); }
.pwa-bar__install {
  flex: 0 0 auto;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.pwa-bar__install:hover { background: var(--orange-dark); }
.pwa-bar__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
@media (min-width: 560px) {
  .pwa-bar {
    left: auto; right: 16px; bottom: 16px;
    max-width: 420px;
    border-radius: 14px;
    border: 1px solid var(--border);
  }
}

/* ============ PWA install modal ============ */
.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 560px) { .pwa-modal { align-items: center; padding: 16px; } }
.pwa-modal[hidden] { display: none; }
.pwa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}
.pwa-modal__card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px 18px 0 0;
  padding: 26px 22px 18px;
  text-align: center;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
  animation: pwaUp .22s ease-out;
}
@media (min-width: 560px) {
  .pwa-modal__card { border-radius: 18px; animation: payModalIn .18s ease-out; }
}
@keyframes pwaUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.pwa-modal__close {
  position: absolute;
  top: 8px; right: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.pwa-modal__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  margin: 0 0 12px;
}
.pwa-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.pwa-modal__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.pwa-modal__steps {
  text-align: left;
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.pwa-modal__steps[hidden] { display: none; }
.pwa-ios-ico { font-size: 15px; }
.pwa-modal__install {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 78, 27, .25);
}
.pwa-modal__install:hover { background: var(--orange-dark); }
.pwa-modal__install[hidden] { display: none; }
.pwa-modal__later {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ============ АДАПТИВ: защита + крайние устройства ============ */
html { -webkit-text-size-adjust: 100%; }     /* не раздувать шрифт в альбомной на iOS */
img, svg { max-width: 100%; }                /* ни одна картинка не вылезает за экран */

/* Планшет-портрет (700–899px): занять всю ширину, белый фон — без серых полей по бокам */
@media (min-width: 700px) and (max-width: 899px) {
  .app { max-width: 100%; background: #fff; }
}

/* Большие планшеты / маленькие ноуты (900–1099px): чуть шире 720, но не во весь экран */
@media (min-width: 900px) and (max-width: 1099px) {
  .app { max-width: 960px; }
}

/* Маленькие телефоны (≤360px: iPhone SE, старые Android) — поджать, чтобы ничего не резалось */
@media (max-width: 360px) {
  .content { padding: 10px; }
  .page-header { min-height: 84px; padding: 10px; gap: 8px; }
  .brand-mini-logo { height: 46px; }
  .brand-logo { height: 46px; }
  .page-title { font-size: 12.5px; }
  .hero-title--words { font-size: 26px; }
  .grid.grid-3x3, .bank-grid { gap: 7px; }
  .tile { min-height: 116px; padding: 12px 6px 10px; }
  .tile .logo, .tile .logo-fallback { width: 48px; height: 48px; }
  .service-tile { min-height: 116px; padding: 14px 8px; }
  .service-tile__ico { width: 72px; height: 72px; }
  .pay-card__amount { font-size: 32px; }
}
