/* ===== Дизайн-система сайта ГСО =====
   Композиция и стиль компонентов повторяют sberbankins.ru (требование ТЗ):
   белый фон, крупные скругления, pill-кнопки, плитки продуктов, чипсы категорий.
   Палитра — цвета логотипа ГСО: голубой #34b5e2 + бирюзовый #0bb7a2. */

:root {
  /* Бренд ГСО (цвета логотипа). Основной — бирюзовый, вторичный — голубой. */
  --brand: #0bb7a2;
  --brand-dark: #089180;
  --brand-deep: #067264;
  --brand-soft: #dff5f1;      /* светлая подложка бренда */
  --brand-2: #34b5e2;         /* голубой из логотипа */
  --brand-2-dark: #1e9ecf;
  --link: #0a9384;            /* ссылки: чуть темнее бренда ради читаемости */
  --grad-brand: linear-gradient(135deg, #34b5e2 0%, #0bb7a2 100%);
  --grad-brand-dark: linear-gradient(135deg, #1e9ecf 0%, #089180 100%);
  --accent: #e63946;          /* красный: страховой случай */
  --accent-dark: #c62d3a;

  --ink: #1f1f22;             /* почти чёрный текст, как у Сбера */
  --ink-soft: #6b7075;        /* вторичный текст */
  --bg: #ffffff;
  --bg-soft: #f4f6f8;         /* светло-серые секции и чипсы */
  --bg-tile: #ffffff;
  --line: #e8ebee;

  --r-lg: 24px;               /* крупные скругления карточек */
  --r-md: 16px;
  --r-pill: 100px;
  --shadow: 0 4px 20px rgba(31, 31, 34, 0.06);
  --shadow-hover: 0 10px 32px rgba(31, 31, 34, 0.12);
}

html { font-size: 16px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
@media (max-width: 767px) { h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand-deep); }

.container { max-width: 1270px; }

/* ===== Кнопки: pill, как у Сбера; основная — фирменный градиент логотипа ===== */
.btn { border-radius: var(--r-pill); font-weight: 600; padding: 0.6rem 1.5rem; cursor: pointer; }
.btn-lg { padding: 0.8rem 2rem; }
.btn-sm { padding: 0.35rem 1rem; }
.btn-primary { background: var(--grad-brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--grad-brand-dark); border-color: var(--brand-dark); }
.btn-accent { background: var(--grad-brand); border-color: var(--brand); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--grad-brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-claim { background: var(--accent); border-color: var(--accent); color: #fff; white-space: nowrap; }
.btn-claim:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-primary { color: var(--brand-dark); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-outline-secondary { border-color: var(--line); color: var(--ink); }
.btn-outline-secondary:hover { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.btn-ghost { background: var(--bg-soft); border: none; color: var(--ink); }
.btn-ghost:hover { background: #e9edf1; color: var(--ink); }

/* ===== Шапка: один белый ряд + серая полоса категорий (как sberbankins.ru) ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; padding-bottom: 0.8rem; }
.hdr { display: flex; align-items: center; gap: 1.6rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-logo-mark { display: none; height: 30px; width: auto; }
.brand-name-mobile { display: none; font-size: 1.15rem; font-weight: 800; color: var(--brand-2); letter-spacing: 0.04em; }

.hdr-tabs { display: flex; align-items: center; gap: 1.4rem; flex-grow: 1; }
.hdr-tab { position: relative; color: var(--ink); font-weight: 500; padding: 0.4rem 0; white-space: nowrap; }
.hdr-tab:hover { color: var(--brand-dark); }
.hdr-tab.active { font-weight: 700; }
.hdr-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--grad-brand); border-radius: 2px;
}
.hdr-tabs .dropdown-toggle::after { vertical-align: 0.12em; }
.dropdown-menu { border-radius: var(--r-md); border-color: var(--line); box-shadow: var(--shadow-hover); padding: 0.5rem; }
.dropdown-item { border-radius: 10px; padding: 0.45rem 0.9rem; font-weight: 500; }
.dropdown-item:hover { background: var(--bg-soft); }

.hdr-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.hdr-phone { color: var(--ink); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.hdr-phone:hover { color: var(--brand-dark); }
.hdr-lk { color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.hdr-search, .hdr-burger, .hdr-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: none;
  background: var(--bg-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.hdr-search:hover, .hdr-burger:hover, .hdr-icon:hover { background: #e9edf1; color: var(--ink); }
.hdr-burger, .hdr-icon { display: none; }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-btn {
  background: var(--bg-soft); color: var(--ink-soft); border: none;
  border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; cursor: pointer;
}
.lang-btn.active { background: var(--ink); color: #fff; }

/* Серая полоса категорий с пилюлями действий */
.catbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #ececee; border-radius: 18px; padding: 0.55rem 1.4rem;
}
.catbar-links { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.catbar-links::-webkit-scrollbar { display: none; }
.catbar-links a { color: var(--ink); font-weight: 500; white-space: nowrap; padding: 0.35rem 0; }
.catbar-links a:hover { color: var(--brand-dark); }
.catbar-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.catbar-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; color: var(--ink); border-radius: var(--r-pill);
  padding: 0.45rem 1.1rem; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(31, 31, 34, 0.08);
}
.catbar-pill:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.pill-icon { color: var(--brand); display: flex; }
.pill-icon--claim { color: var(--accent); }

/* Мобильное меню (offcanvas) */
.mobile-menu { width: min(84vw, 340px); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); padding: 1rem 1.2rem; }
.mobile-menu .offcanvas-body { display: flex; flex-direction: column; padding: 0.6rem 1.2rem 1.5rem; }
.mm-link { display: block; padding: 0.75rem 0.2rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mm-link:hover { color: var(--brand-dark); }
.mm-link--accent { color: var(--accent); }
.mm-link--accent:hover { color: var(--accent-dark); }
.mm-group { color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 1.1rem 0.2rem 0.2rem; }
.mm-phone { display: block; font-weight: 800; font-size: 1.25rem; color: var(--ink); margin-top: 1.2rem; }
.mm-phone:hover { color: var(--brand-dark); }
.mm-phone-note { color: var(--ink-soft); font-size: 0.8rem; }
.mm-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }

/* Плавающая кнопка поддержки (справа снизу, как у Сбера) */
.support-fab {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(8, 145, 128, 0.4);
  transition: transform 0.15s;
}
.support-fab:hover { transform: scale(1.06); color: #fff; }

/* ===== Герой-баннер: высокий, иллюстрация справа, стрелки снизу справа, точки сверху справа ===== */
.banner-section { padding: 0.6rem 0 0.4rem; }
.banner { border-radius: 32px; overflow: hidden; position: relative; }
.banner-slide {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: 440px; padding: 3.2rem 4rem;
  background: linear-gradient(115deg, #e6f6fb 0%, #d2eef8 55%, #ddf6f1 100%);
  color: var(--ink);
}
.banner-slide--alt { background: linear-gradient(115deg, #dff7f2 0%, #c9f0e7 60%, #def7f0 100%); }
.banner-slide--warm { background: linear-gradient(115deg, #fdf3e3 0%, #f8e8cd 60%, #fbf0dc 100%); }
.banner-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; max-width: 620px; }
.banner-badge {
  background: rgba(8, 145, 128, 0.12); color: var(--brand-deep);
  border-radius: var(--r-pill); padding: 0.2rem 0.9rem; font-size: 0.78rem; font-weight: 700;
}
.banner-slide h2 { color: var(--ink); font-size: 2.6rem; margin: 0; letter-spacing: -0.02em; }
.banner-slide p { color: #3d4650; margin: 0; font-size: 1.12rem; }
.banner-slide .btn { margin-top: 1.4rem; background: var(--grad-brand); color: #fff; border: none; padding: 0.8rem 2.2rem; }
.banner-slide .btn:hover { background: var(--grad-brand-dark); }
.banner-art {
  flex-shrink: 0; width: 340px; max-width: 36%;
  display: flex; align-items: center; justify-content: center;
}
.banner-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(10, 140, 150, 0.2)); }
.banner .carousel-indicators {
  top: 2rem; right: 2.6rem; left: auto; bottom: auto; margin: 0; justify-content: flex-end;
}
.banner .carousel-indicators button { width: 8px; height: 8px; border-radius: 50%; background: rgba(31, 31, 34, 0.22); border: none; }
.banner .carousel-indicators button.active { width: 22px; border-radius: 5px; background: var(--brand); }
.banner-arrows { position: absolute; right: 2.6rem; bottom: 2.2rem; display: flex; gap: 0.7rem; z-index: 5; }
.banner-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(31, 31, 34, 0.14); cursor: pointer;
}
.banner-arrow:hover { color: var(--brand-dark); }

/* ===== Лента статей-сторис под баннером ===== */
.stories { display: flex; gap: 1.6rem; overflow-x: auto; padding: 0.4rem 0.2rem 0.8rem; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-card { display: flex; flex-direction: column; gap: 0.6rem; width: 138px; flex-shrink: 0; color: var(--ink); text-align: center; }
.story-card:hover { color: var(--ink); }
.story-visual {
  width: 138px; height: 138px; border-radius: 26px;
  background: linear-gradient(150deg, #f2fafb 0%, #e3f1f4 100%);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.story-card:hover .story-visual { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.story-visual svg { width: 82%; height: auto; }
.story-caption { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }

/* ===== Плитки продуктов («Популярные программы страхования») ===== */
/* Только вертикальные отступы: класс вешается и на .container,
   шорткат padding: X 0 обнулил бы его боковые отступы Bootstrap. */
.section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.section-tight { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.section-link { font-weight: 600; white-space: nowrap; }

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip {
  background: var(--bg-soft); color: var(--ink); border-radius: var(--r-pill);
  padding: 0.45rem 1.2rem; font-weight: 600; font-size: 0.92rem;
}
.chip:hover { background: #e9edf1; color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tile-grid { grid-template-columns: 1fr; } }

/* Плитки-иллюстрации, как «Популярные программы» Сбера: большая картинка + название */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1.2rem; }
@media (max-width: 991px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
.program-card { display: flex; flex-direction: column; gap: 1rem; color: var(--ink); }
.program-card:hover { color: var(--ink); }
.program-visual {
  aspect-ratio: 1 / 0.92; border-radius: 28px;
  background: linear-gradient(150deg, #f2fafb 0%, #e3f1f4 100%);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.program-card:hover .program-visual { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.program-visual svg { width: 74%; height: auto; }
.program-name { text-align: center; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.program-visual--all { color: var(--brand-dark); }
.program-visual--all svg { width: 40%; }

.product-tile {
  display: flex; flex-direction: column; gap: 0.35rem; position: relative;
  background: var(--bg-tile); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; min-height: 196px; color: var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }

/* Цветные иконки-бейджи на плитках (аналог 3D-иконок Сбера) */
.tile-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.7rem;
}
.badge-auto { background: #dff2fa; color: #0f7fae; }
.badge-property { background: #dcf6f1; color: #0b8a79; }
.badge-health { background: #fdeaea; color: #c73b47; }
.badge-travel { background: #fdf3e3; color: #b97f1d; }
.badge-other { background: #eef0fb; color: #4a56c4; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.tile-title { font-weight: 700; font-size: 1.02rem; }
.tile-sub { color: var(--ink-soft); font-size: 0.85rem; flex-grow: 1; }
.tile-price { font-weight: 700; font-size: 0.95rem; color: var(--brand-dark); }
.tile-kind { position: absolute; top: 1.1rem; right: 1.2rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.kind-mandatory { color: var(--accent); }
.kind-voluntary { color: #0b8a79; }
.tile-all {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-soft); border: none; font-weight: 700; color: var(--ink);
}
.tile-all:hover { background: #e9edf1; }

/* ===== Быстрые действия / ЛК-полоса ===== */
.quick-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .quick-strip { grid-template-columns: repeat(2, 1fr); } }
.quick-card {
  display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.3rem;
  color: var(--ink); font-weight: 600; transition: box-shadow 0.15s;
}
.quick-card:hover { box-shadow: var(--shadow-hover); color: var(--ink); }

/* ===== «Клиенты выбирают ГСО»: две карточки — QR и личный кабинет (как у Сбера) ===== */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 991px) { .duo-grid { grid-template-columns: 1fr; } }
.duo-card {
  display: flex; align-items: center; gap: 1.6rem;
  border-radius: var(--r-lg); padding: 1.8rem 2rem; min-height: 190px;
  background: linear-gradient(115deg, #ffffff 30%, #e2f5f8 100%);
  border: 1px solid var(--line);
}
.duo-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.duo-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; max-width: 320px; }
.duo-qr { background: #fff; border-radius: var(--r-md); padding: 0.7rem; box-shadow: var(--shadow); flex-shrink: 0; text-align: center; }
.duo-qr img { width: 118px; height: 118px; display: block; }
.duo-qr-caption { font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.35rem; }
.duo-card .btn { margin-top: 1rem; }
.duo-art { flex-shrink: 0; width: 160px; margin-left: auto; }
.duo-art svg { width: 100%; height: auto; }

/* ===== Преимущества: три больших градиентных квадрата (как у Сбера) =====
   Иллюстрация — в потоке (flex), а не поверх текста: наезды исключены. */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 991px) { .adv-grid { grid-template-columns: 1fr; } }
.adv-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  border-radius: 28px; padding: 2rem; min-height: 320px; overflow: hidden;
  background: linear-gradient(135deg, #e2f5fa 0%, #cdedf6 100%); color: var(--ink);
}
.adv-card--alt { background: linear-gradient(135deg, #dcf5ef 0%, #c6eee2 100%); }
.adv-card--warm { background: linear-gradient(135deg, #fdf3e3 0%, #f8e8cd 100%); }
.adv-huge { font-size: 4.6rem; font-weight: 800; color: var(--brand-dark); line-height: 1; letter-spacing: -0.03em; }
.adv-title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.adv-note { font-weight: 600; font-size: 1.02rem; max-width: 260px; }
.adv-note-muted { color: var(--ink-soft); font-size: 0.88rem; }
.adv-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.adv-bottom--end { justify-content: flex-end; }
.adv-bottom .adv-note-muted { max-width: 260px; }
.adv-art { width: 150px; flex-shrink: 0; opacity: 0.95; }
.adv-art svg { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(10, 140, 150, 0.18)); }
.adv-art--center { align-self: center; width: 170px; margin-top: 1rem; }

/* ===== Новости: лента, как у Сбера ===== */
.news-row {
  display: flex; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); align-items: baseline;
}
.news-row:hover .news-row-title { color: var(--brand-dark); }
.news-row-date { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; min-width: 92px; }
.news-row-title { font-weight: 600; }
.news-row-summary { color: var(--ink-soft); font-size: 0.9rem; display: block; margin-top: 0.15rem; font-weight: 400; }

/* Карточки новостей на внутренних страницах */
.news-card {
  display: flex; flex-direction: column; gap: 0.4rem; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem; color: var(--ink); transition: box-shadow 0.15s;
}
.news-card:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.news-date { color: var(--ink-soft); font-size: 0.82rem; }
.news-title { font-weight: 700; }
.news-summary { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== Заголовки страниц: белые, чёрный текст (стиль Сбера) ===== */
.page-head { background: var(--bg-soft); padding: 2.4rem 0 1.8rem; }
.page-head h1 { margin: 0; }
.page-head .page-sub { color: var(--ink-soft); margin: 0.6rem 0 0; max-width: 680px; }
.page-head-claim { background: #fdecee; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 0.6rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--ink); }
.tab-links { display: flex; gap: 0.5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.tab-link { background: #fff; color: var(--ink); border-radius: var(--r-pill); padding: 0.4rem 1.2rem; font-size: 0.92rem; font-weight: 600; border: 1px solid var(--line); }
.tab-link.active, .tab-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--ink-soft); margin-top: 0.6rem; }
.article-body { max-width: 800px; }
.content-body p { margin-bottom: 1rem; }
/* Контент из CMS (Html.Raw): картинки и таблицы редактора не должны ломать мобильную вёрстку */
.content-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.content-body table { display: block; overflow-x: auto; max-width: 100%; }
.lead { font-size: 1.12rem; font-weight: 500; }

/* ===== Категории и карточки продуктов на внутренних страницах ===== */
.category-block { margin-bottom: 2.4rem; }
.category-title { margin-bottom: 1.2rem; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; height: 100%; display: flex; flex-direction: column; transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.card-visual {
  height: 118px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #f2fafb 0%, #e3f1f4 100%);
  border-radius: var(--r-md); margin-bottom: 0.9rem; padding: 0.6rem;
}
.card-visual svg { height: 100%; width: auto; }
.product-kind { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.product-kind-inline { display: inline-block; margin-top: 0.6rem; font-weight: 700; font-size: 0.82rem; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-pill); padding: 0.2rem 0.9rem; }
.product-name { margin-bottom: 0.5rem; }
.product-desc { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.product-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ===== Акции ===== */
.promo-card { background: #fff8e6; border: 1px solid #f0dfa8; border-radius: var(--r-lg); padding: 1.4rem; height: 100%; }
.promo-meta { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== Филиалы ===== */
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; height: 100%; transition: box-shadow 0.15s; }
.branch-card:hover { box-shadow: var(--shadow-hover); }
.branch-head { border-color: var(--brand); border-width: 2px; }
.branch-badge { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-size: 0.72rem; font-weight: 700; border-radius: var(--r-pill); padding: 0.15rem 0.7rem; margin-bottom: 0.5rem; }
.branch-region { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 0.4rem; }
.branch-info { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.branch-hours { color: var(--ink-soft); font-size: 0.85rem; }
.branch-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.9rem; font-size: 0.9rem; height: 100%; }
.region-filter { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.1rem; flex-wrap: wrap; }
.region-filter label { color: var(--ink-soft); font-weight: 600; }
.filter-select { max-width: 320px; border-radius: var(--r-pill); }

/* ===== Документы ===== */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item {
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.8rem 1.1rem; margin-bottom: 0.5rem;
}
.doc-item a { font-weight: 600; flex-grow: 1; color: var(--ink); }
.doc-item a:hover { color: var(--brand-dark); }
.doc-size { color: var(--ink-soft); font-size: 0.82rem; white-space: nowrap; }

/* ===== FAQ ===== */
.faq-accordion .accordion-item { border-radius: var(--r-md) !important; overflow: hidden; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.faq-accordion .accordion-button { font-weight: 600; color: var(--ink); font-size: 1rem; background: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--bg-soft); color: var(--ink); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--line); }

/* ===== Формы ===== */
.stack-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.form-label { font-weight: 600; margin-bottom: 0.25rem; }
.form-control, .form-select { border-radius: 12px; padding: 0.6rem 0.9rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(11, 183, 162, 0.15); }
.consent-label { font-size: 0.88rem; color: var(--ink-soft); }
.sidebar-card { background: var(--bg-soft); border-radius: var(--r-lg); padding: 1.5rem; }
.sidebar-warning { border-left: 4px solid var(--accent); }
.sidebar-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.75rem; }
.steps-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.hotline-inline { margin-top: 1rem; font-weight: 600; }
.hotline-phone { font-size: 1.6rem; font-weight: 800; }
.hotline-phone a { color: var(--ink); }
.success-box { text-align: center; max-width: 560px; margin: 3rem auto; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 3rem 2rem; }
.success-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.success-icon--danger { background: #fdecee; color: var(--accent-dark); }
.auth-box { max-width: 440px; margin: 2rem auto; }
.auth-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 1rem; text-align: center; }

/* ===== Проверка сертификата ===== */
.verify-form { display: flex; gap: 0.6rem; max-width: 480px; margin-bottom: 1.5rem; }
.verify-form .form-control { border-radius: var(--r-pill); }
.verify-result { border-radius: var(--r-lg); padding: 1.6rem; max-width: 560px; border: 1px solid; }
.verify-valid { background: #ecfdf3; border-color: #9fd8b4; }
.verify-invalid { background: #fdecee; border-color: #efb2ba; }
.verify-status { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.verify-valid .verify-status { color: #15803d; }
.verify-invalid .verify-status { color: var(--accent-dark); }
.verify-details { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.2rem; margin: 0; }
.verify-details dt { color: var(--ink-soft); font-weight: 500; }
.verify-details dd { margin: 0; font-weight: 600; }

/* ===== Калькулятор стоимости на странице продукта ===== */
.calc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; margin-bottom: 2rem; scroll-margin-top: 120px;
}
.calc-title { margin-bottom: 1.2rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
@media (max-width: 575px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-field--check { display: flex; align-items: flex-end; padding-bottom: 0.4rem; }
.calc-hint { color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.25rem; }
.field-error { color: var(--accent-dark); font-size: 0.82rem; margin-top: 0.25rem; font-weight: 600; }
.calc-result {
  margin-top: 1.5rem; border-radius: var(--r-md); padding: 1.4rem 1.6rem;
  background: var(--brand-soft);
}
.calc-result-label { color: var(--ink-soft); font-size: 0.9rem; }
.calc-price { font-size: 2.2rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -0.02em; margin: 0.15rem 0 0.8rem; }
.calc-breakdown {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem;
  font-size: 0.88rem; margin: 0 0 1rem; max-width: 460px;
}
.calc-breakdown dt { color: var(--ink-soft); font-weight: 500; }
.calc-breakdown dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.calc-note { color: var(--ink-soft); font-size: 0.8rem; margin: 0.9rem 0 0; }

/* ===== Тарифы ===== */
.tariff-table th { background: var(--bg-soft); }
.tariff-price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

/* ===== CTA-полоса ===== */
.cta-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 2rem 2.4rem;
}
.cta-strip p { color: var(--ink-soft); margin: 0; max-width: 560px; }

/* ===== Новости: чипсы + три белых карточки + «Показать все» (как у Сбера) ===== */
.news-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 991px) { .news-trio { grid-template-columns: 1fr; } }
.news-mini {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; border-radius: var(--r-md); padding: 1.2rem 1.4rem;
  color: var(--ink); border: 1px solid var(--line); transition: box-shadow 0.15s;
}
.news-mini:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.news-mini-date { color: var(--ink-soft); font-size: 0.8rem; }
.news-mini-title { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.show-all { display: block; text-align: center; font-weight: 600; margin-top: 1.6rem; }

/* ===== «Делимся важным»: карточки с большой картинкой и белой подписью ===== */
.imp-scroller { display: flex; gap: 1.4rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: none; }
.imp-scroller::-webkit-scrollbar { display: none; }
.imp-card {
  position: relative; flex-shrink: 0; width: 300px; height: 310px;
  border-radius: 26px; overflow: hidden; color: var(--ink);
  background: linear-gradient(150deg, #e2f5fa 0%, #cdedf6 100%);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 1.6rem;
}
.imp-card:nth-child(3n+2) { background: linear-gradient(150deg, #dcf5ef 0%, #c6eee2 100%); }
.imp-card:nth-child(3n) { background: linear-gradient(150deg, #fdf3e3 0%, #f8e8cd 100%); }
.imp-card svg { width: 55%; height: auto; }
.imp-caption {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  background: #fff; border-radius: 16px; padding: 0.9rem 1rem;
  box-shadow: 0 4px 14px rgba(31, 31, 34, 0.1);
}
.imp-caption-title { font-weight: 700; font-size: 0.92rem; line-height: 1.35; display: block; }
.imp-caption-date { color: var(--ink-soft); font-size: 0.78rem; margin-top: 0.3rem; display: block; }
.imp-card:hover { color: var(--ink); }
.imp-card:hover .imp-caption { box-shadow: var(--shadow-hover); }

/* ===== Подвал: контакты в 4 колонки, ссылки, юридический блок (как у Сбера) ===== */
.site-footer { background: #fff; color: var(--ink); padding: 3rem 0 1.4rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.footer-contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: 2rem; }
@media (max-width: 991px) { .footer-contacts-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-phone-label { color: var(--ink); font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
.footer-phone { font-size: 1.3rem; font-weight: 800; color: var(--ink); display: block; }
.footer-phone:hover { color: var(--brand-dark); }
.footer-note { color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.35rem; display: block; }
.footer-schedule { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.6; }
.footer-helper-btn { margin-top: 0.9rem; }
.footer-title { color: var(--ink); font-weight: 700; margin-bottom: 0.9rem; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { color: var(--link); font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.4rem;
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;
  font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6;
}
@media (max-width: 767px) { .footer-legal { grid-template-columns: 1fr; } }
.footer-legal a { color: var(--link); text-decoration: underline; }
.footer-a11y { display: flex; justify-content: center; padding: 1.6rem 0 0.4rem; }
.footer-a11y button {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.7rem 1.6rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.footer-a11y button:hover { background: var(--bg-soft); }

/* ===== Перетаскивание лент курсором + боковые стрелки (как у Сбера) ===== */
.drag-scroll { cursor: grab; }
.drag-scroll.dragging { cursor: grabbing; user-select: none; }
.drag-scroll.dragging a { pointer-events: none; }
.banner--draggable { cursor: grab; }
.banner--draggable.dragging { cursor: grabbing; }

.scroller-host { position: relative; }
.scroller-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 31, 34, 0.16); z-index: 6;
  transition: opacity 0.18s, color 0.15s, box-shadow 0.15s;
}
.scroller-nav:hover { color: var(--brand-dark); box-shadow: var(--shadow-hover); }
.scroller-nav--prev { left: -8px; }
.scroller-nav--next { right: -8px; }
.scroller-nav.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .scroller-nav { display: none; } }

/* ===== Цветной «геройский» блок страницы продукта (вместо серого заголовка) ===== */
.product-hero { overflow: hidden; }
.product-hero__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.4rem 0; min-height: 250px;
}
.product-hero__copy { max-width: 640px; }
.product-hero__copy h1 { margin: 0.5rem 0 0.7rem; }
.product-hero__sub { color: #3d4650; font-size: 1.1rem; margin: 0.9rem 0 1.3rem; max-width: 560px; }
.product-hero__art { width: 260px; flex-shrink: 0; display: flex; justify-content: center; }
.product-hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 14px 20px rgba(10, 140, 150, 0.18)); }
.product-hero .breadcrumbs a { color: var(--ink-soft); }
.product-hero .breadcrumbs span { color: var(--ink); }
.product-hero--auto     { background: linear-gradient(115deg, #e6f6fb 0%, #d2eef8 60%, #ddf6f1 100%); }
.product-hero--property { background: linear-gradient(115deg, #dff7f2 0%, #c9f0e7 60%, #def7f0 100%); }
.product-hero--health   { background: linear-gradient(115deg, #fdeef0 0%, #fbdfe4 60%, #fdeef0 100%); }
.product-hero--travel   { background: linear-gradient(115deg, #fdf3e3 0%, #f8e8cd 60%, #fbf0dc 100%); }
.product-hero--other    { background: linear-gradient(115deg, #e6f6fb 0%, #d5efe9 100%); }

/* Единая ховер-полировка карточек (лёгкий подъём) */
.product-card:hover, .news-card:hover, .branch-card:hover, .quick-card:hover { transform: translateY(-2px); }
.product-card, .news-card, .branch-card, .quick-card { transition: box-shadow 0.15s, transform 0.15s; }

/* ===== Мобильная вёрстка (по образцу мобильного sberbankins.ru) ===== */
@media (max-width: 1199px) {
  .hdr { gap: 1.1rem; }
  .hdr-tabs { gap: 1rem; }
  .brand-logo { height: 30px; }
  .hdr-phone { font-size: 0.98rem; }
}

@media (max-width: 991px) {
  /* Шапка: бургер + эмблема + круглые иконки (телефон, кабинет, поиск) */
  .hdr { flex-wrap: nowrap; gap: 0.6rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .hdr-tabs, .hdr .hdr-phone, .hdr .hdr-lk, .hdr .lang-switch { display: none; }
  .hdr-burger, .hdr-icon { display: flex; }
  .brand-logo { display: none; }
  .brand-logo-mark { display: block; }
  .brand-name-mobile { display: inline; }
  .hdr-right { gap: 0.5rem; }
  .site-header { padding-bottom: 0.6rem; }

  /* Полоса категорий: одна прокручиваемая строка */
  .catbar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: 14px; padding: 0.5rem 1rem; }
  .catbar::-webkit-scrollbar { display: none; }
  .catbar-links { flex-shrink: 0; gap: 1.1rem; overflow: visible; }

  /* Баннер: иллюстрация меньше и прижата вниз, но остаётся видимой */
  .banner { border-radius: 24px; }
  .banner-slide { padding: 2.2rem 2rem; min-height: 380px; gap: 1rem; }
  .banner-slide h2 { font-size: 2rem; }
  /* align-self: center — внизу справа стоят стрелки карусели, к низу не прижимаем */
  .banner-art { width: 200px; max-width: 32%; align-self: center; }

  .duo-art { width: 130px; }
  .adv-card { min-height: 260px; }
  .product-hero__art { width: 190px; }
}

@media (max-width: 767px) {
  .section { padding-top: 1.9rem; padding-bottom: 1.9rem; }
  .section-tight { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .page-head { padding: 1.6rem 0 1.3rem; }
  .banner-arrows { display: none; }
  .banner .carousel-indicators { top: 1.2rem; right: 1.2rem; }
  .banner-slide { padding: 1.8rem 1.5rem; min-height: 340px; }
  .banner-slide h2 { font-size: 1.8rem; }
  .cta-strip { padding: 1.5rem 1.4rem; }
  .site-footer { padding: 2.2rem 0 1.2rem; margin-top: 2rem; }
  /* Запас снизу, чтобы плавающая кнопка поддержки не ложилась на кнопку «Версия для слабовидящих» */
  .footer-a11y { padding-bottom: 4.5rem; }
  /* Широкие таблицы прокручиваются, а не ломают страницу */
  .tariff-table { display: block; overflow-x: auto; }
}

@media (max-width: 575px) {
  .banner-section { padding: 0.4rem 0 0.2rem; }
  .banner { border-radius: 20px; }
  .banner-slide { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 1.6rem 1.3rem 1.1rem; min-height: 0; gap: 0.4rem; }
  .banner-slide h2 { font-size: 1.45rem; }
  .banner-slide p { font-size: 0.98rem; }
  .banner-slide .btn { margin-top: 1rem; padding: 0.65rem 1.7rem; }
  .banner-art { display: flex; width: 150px; max-width: 46%; align-self: flex-end; margin-top: -0.6rem; }

  .stories { gap: 1rem; }
  .story-card { width: 112px; }
  .story-visual { width: 112px; height: 112px; border-radius: 20px; }

  .program-grid { gap: 1.2rem 0.8rem; }
  .program-visual { border-radius: 22px; padding: 1rem; }
  .program-name { font-size: 0.95rem; }

  .quick-strip { grid-template-columns: 1fr; }

  .duo-card { flex-wrap: wrap; padding: 1.4rem; gap: 1.1rem; }
  .duo-art { display: none; }

  .adv-card { min-height: 230px; padding: 1.5rem; }
  .adv-huge { font-size: 3.4rem; }
  .adv-title { font-size: 1.25rem; }
  .adv-art { width: 120px; }
  .adv-art--center { width: 140px; }

  .imp-card { width: 260px; height: 285px; }

  .product-hero__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.6rem 0; min-height: 0; }
  .product-hero__art { display: none; }

  .footer-contacts-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .verify-form { flex-wrap: wrap; }
  .support-fab { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
}

/* ===== Версия для слабовидящих ===== */
body.a11y { font-size: 1.25rem; }
body.a11y a { text-decoration: underline; }
body.a11y .banner-art, body.a11y .adv-art, body.a11y .duo-art { display: none; }
body.a11y .program-visual svg, body.a11y .story-visual svg, body.a11y .imp-card > svg { filter: grayscale(1); }
body.a11y .banner-slide, body.a11y .adv-card, body.a11y .imp-card, body.a11y .duo-card { background: #f2f2f2; }

/* ===== Печать пресс-релизов (ТЗ) ===== */
@media print {
  .site-header, .site-footer, .btn-print, .breadcrumbs, .btn { display: none !important; }
  .page-head { background: none; padding: 0; }
  body { background: #fff; }
}
