@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700&family=Russo+One&display=swap");

:root {
  --bg-dark: #0c090b;
  --bg-alt: #0d1a45;
  --text-main: #e4e9eb;
  --text-muted: #99a1af;
  --accent: #4db4ff;
  --border-soft: rgba(255, 255, 255, 0.1);
  --card-dark: rgba(0, 0, 0, 0.65);
  --scrollbar-track: #161a22;
  --scrollbar-thumb: rgba(77, 180, 255, 0.4);
  --scrollbar-thumb-hover: #4db4ff;

  /*
   * Единый hero с видео/фоном.
   * Эталон вёрстки: main.certificates-page .cert-hero > .cert-hero-media
   * (например 320×560px: высота = min(560px, 88vh) у секции hero на мобильных).
   */
  --hero-md-min-height: min(720px, 92vh);
  --hero-md-padding: 48px 0 64px;
  --hero-md-inner-pad-block: 64px;
  --hero-sm-min-height: min(560px, 88vh);
  --hero-sm-padding: 32px 0 48px;
  --hero-sm-inner-pad-block: 40px;

  /*
   * Главная на широком десктопе: ниже min-height, чтобы секция превью (showcase-strip)
   * попадала в экран без лишней прокрутки (раньше было наследование 862px от .hero).
   */
  --hero-home-xl-min-height: min(640px, 76vh);

  /* Высота фиксированной шапки: .header-inner min-height + border */
  --site-header-h: 89px;
}

@media (max-width: 1080px) {
  :root {
    --site-header-h: 73px;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scroll-padding-top: var(--site-header-h);
}

html::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid var(--border-soft);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 3px solid var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: var(--site-header-h);
  font-family: Inter, Arial, sans-serif;
  color: var(--text-main);
  background: #06070b;
  line-height: 1.5;
  min-width: 320px;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.full-bleed {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Слоты include: без отдельного бокса, чтобы шапка встала в общий поток grid/flex родителя */
[data-include] {
  display: contents;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 9, 11, 0.9);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.brand-logo img {
  width: 67.2px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  justify-content: center;
}

.site-nav a {
  color: #767f88;
  font-weight: 600;
}

.site-nav-left {
  justify-content: flex-end;
}

.site-nav-right {
  justify-content: flex-start;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text-main);
}

.lang-switch {
  border: 0;
  background: transparent;
  color: #767f88;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav .lang-switch:hover {
  color: var(--text-main);
}

/* Иконка корзины в шапке — только на странице магазина */
.cart-link {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: 0 -4px 0 0;
  color: #767f88;
  line-height: 0;
  transition: color 0.15s ease;
}

body[data-page="shop"] .cart-link {
  display: inline-flex;
}

.cart-link:hover,
body[data-page="shop"] .site-nav a.cart-link.is-active {
  color: var(--text-main);
}

.site-nav-mobile a[data-nav="cart"] {
  display: none;
}

body[data-page="shop"] .site-nav-mobile a[data-nav="cart"] {
  display: block;
}

.cart-link-icon {
  display: block;
}

.profile-btn {
  width: 13px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: flex-end;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-btn span {
  display: block;
  width: 13px;
  height: 11px;
  background: var(--accent);
  border-radius: 20px 20px 0 0;
  position: absolute;
  left: 0;
  bottom: 0;
}

.profile-btn span::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
  top: -8px;
  left: 2.5px;
}

/* Компонент мобильного меню: разметка в components/mobile-menu.html */
.mobile-menu {
  display: contents;
}

.menu-toggle {
  display: none;
}

.site-nav-mobile {
  display: none;
}

.site-nav-mobile a {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #e4e9eb;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav-mobile a {
  text-decoration: none;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 8px;
}

.site-nav-mobile a.is-active {
  color: var(--accent);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.hero {
  position: relative;
  background: #060b13;
  min-height: 862px;
  padding: 80px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero::before,
.infrastructure::before,
.map-section::before,
.cta::before,
.news-section::before,
.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(228, 233, 235, 0.3) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.hero .container,
.section .container {
  position: relative;
  z-index: 1;
}

/* Контейнер фона/видео как у .cert-hero-media — на всю площадь hero */
.hero-media,
.tandem-hero-media,
.cert-hero-media,
.aff-hero-media,
.sport-hero-media,
.shop-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-video,
.tandem-hero-video,
.cert-hero-video,
.aff-hero-video,
.sport-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  padding-top: 56px;
  padding-bottom: 56px;
  background: #00000080;
}

.hero .container {
  max-width: 1100px;
}

.hero-decor {
  position: absolute;
  top: 192px;
  width: 270px;
  height: 136px;
  pointer-events: none;
}

.hero-decor-left {
  left: -165px;
  background: url("assets/Main/25.webp") center/contain no-repeat;
  opacity: 1;
}

.hero-decor-right {
  right: -165px;
  background: url("assets/Main/90.webp") center/contain no-repeat;
  opacity: 1;
}

.overline {
  display: inline-block;
  margin: 0 0 18px;
  color: #008bd2;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 14px;
  font-family: Montserrat, Arial, sans-serif;
  font-style: italic;
}

.hero .overline {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  text-align: center;
  color: #4db4ff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.4px;
  line-height: 1.4285714286;
  text-transform: uppercase;
}

.hero h1 {
  text-transform: uppercase;
}

.hero-title-accent {
  color: #4db4ff;
}

h1,
h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1;
}

h1 {
  font-size: clamp(54px, 9vw, 96px);
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
  max-width: 1163px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.0416666667;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-family: "Russo One", Montserrat, Arial, sans-serif;
  line-height: 1.09;
  text-align: center;
}

.cta h2,
.news-heading h2,
.section.alt h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
}

.news-heading h2 {
  text-transform: uppercase;
}

.cta h2 {
  padding-top: 60px;
  padding-bottom: 60px;
  text-transform: uppercase;
}

.lead {
  max-width: 768px;
  color: #fff;
  margin: 40px auto 40px;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
}

body[data-page="home"] .hero .lead {
  font-size: 16px;
  line-height: 22px;
}

.hero .btn-row {
  margin-bottom: 40px;
}

.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 0;
}

.btn {
  min-height: 50px;
  height: 50px;
  padding: 0 32px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  font-weight: 700;
  font-family: Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-width: 1px;
  min-height: 50px;
  padding: 0 34px;
  width: 333.9px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:focus:not(:focus-visible) {
  outline: none;
}

.cta .btn-primary {
  width: min(493px, 100%);
  max-width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  width: 386px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--accent);
  border-color: #fff;
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-outline:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-outline,
  .btn-primary {
    transition: none;
  }
}

.kpi {
  background: transparent;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1559px, calc(100% - 8px));
}

.stat {
  padding: 32px 0 32px 32px;
  border-right: 1px solid #99a1af;
  text-align: left;
  background: transparent;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 40px;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 0.9;
  margin-bottom: 20px;
}

/* «365 дней»: на десктопе в одну строку с пробелом; ≤1024px — «365» / «дней» */
.kpi-stat-days-word::before {
  content: "\0020";
}

@media (max-width: 1024px) {
  .kpi-grid .stat:nth-child(3) .kpi-stat-days-word {
    display: block;
  }

  .kpi-grid .stat:nth-child(3) .kpi-stat-days-word::before {
    content: none;
  }
}

/* Только подпись под KPI, не span внутри strong (иначе «365»/«дней» становятся 14px) */
.stat > span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
}

.kpi-grid .stat:last-child {
  border-right: none;
}

.showcase-strip {
  background: #fff;
  overflow: hidden;
  min-height: 211px;
}

.showcase-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.video-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.video-thumb:hover::after,
.video-thumb.is-active::after {
  border-color: var(--accent);
}

.showcase-track img {
  width: 100%;
  height: 211px;
  object-fit: cover;
  display: block;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section.alt {
  background: linear-gradient(180deg, #10263f, #090f19);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 54px;
  align-items: start;
}

.infrastructure {
  overflow: hidden;
  background-color: #0d1520;
  background-image:
    linear-gradient(180deg, rgba(6, 11, 19, 0.52) 0%, rgba(6, 11, 19, 0.72) 100%),
    url("assets/Main/Comfort.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.infrastructure .lead {
  max-width: 681px;
  font-size: 16px;
  line-height: 22px;
}

.infrastructure .overline {
  text-transform: uppercase;
  display: block;
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.infrastructure .container {
  max-width: 1616px;
}

.infrastructure h2 {
  max-width: 906px;
  margin-left: auto;
  margin-right: auto;
  font-family: Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0px;
  line-height: 1.2;
}

.infra-heading-accent {
  color: #4db4ff;
  letter-spacing: normal;
}

.infra-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.infra-card {
  min-height: 204px;
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px;
}

.infra-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: 0.72px;
  font-weight: 600;
}

.infra-icon {
  width: auto;
  max-width: 96px;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(77, 180, 255, 0.75)) drop-shadow(0 0 18px rgba(77, 180, 255, 0.5));
}

.feature-list {
  display: none;
}

.map-box,
.placeholder-card {
  border: 1px solid var(--border-soft);
  background: linear-gradient(140deg, #12233f, #08111e);
  border-radius: 10px;
}

.map-box {
  min-height: 904px;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  overscroll-behavior: contain;
}

.map-top-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 11, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.map-top-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.map-nav-icon {
  width: 184px;
  height: 96px;
  display: block;
  transition: filter 0.2s ease;
}

.map-nav-icon path {
  fill: #e4e9eb;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.map-top-overlay:hover .map-nav-icon path {
  fill: #4db4ff;
  stroke: #4db4ff;
  stroke-width: 0.6;
}

.map-top-overlay:hover .map-nav-icon {
  filter: drop-shadow(0 0 8px rgba(77, 180, 255, 0.75)) drop-shadow(0 0 18px rgba(77, 180, 255, 0.5));
}

.map-overlay-hint {
  margin: 0;
  padding-top: 40px;
  padding-bottom: 40px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.35px;
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 904px;
  border: 0;
  display: block;
}

.map-section-heading {
  text-transform: uppercase;
  letter-spacing: 0px;
  margin: 0;
  max-width: min(90vw, 720px);
  padding: 120px 16px;
  line-height: 1.08;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.map-section-heading-accent {
  color: #4db4ff;
  letter-spacing: 0px;
}

.map-section .container {
  max-width: 1904px;
}

.section.map-section {
  padding-top: 0;
  padding-bottom: 0;
}

.cta {
  overflow: hidden;
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(180deg, rgba(6, 11, 19, 0.52) 0%, rgba(6, 11, 19, 0.72) 100%),
    url("assets/Main/Adventure.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  text-align: center;
  padding-top: 128px;
  padding-bottom: 128px;
  min-height: 569px;
  display: flex;
  align-items: center;
}

.cta .container {
  max-width: 1216px;
}

.news-heading {
  background: #0d1a45;
  min-height: 233px;
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
}

.news-heading .overline {
  color: #008bd2;
  display: block;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.news-section {
  background: linear-gradient(180deg, #008bd2, #26224d);
  padding-top: 0;
  padding-bottom: 0;
}

.news-grid {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  gap: 0;
}

.news-grid > .card {
  flex: 1 1 clamp(260px, 33.333%, 100%);
  min-width: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.news-grid .card::before,
.team-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
  z-index: 0;
}

.card-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #27496f, #0b1725);
}

.news-grid .card-image--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Оверлей над фото (иначе картинка перекрывает ::before), чуть сильнее снизу — под текст */
.news-grid .card::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
  z-index: 1;
}

.news-grid .card-image {
  z-index: 0;
}

.card-content {
  padding: 0;
  position: relative;
  z-index: 1;
}

.meta {
  color: var(--accent);
  font-size: 16px;
  margin: 0 0 8px;
}

.date {
  color: #4db4ff;
  font-size: 16px;
  margin: 0 0 14px;
}

.card h3 {
  margin: 0 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.12;
}

.card p {
  margin: 0 0 16px;
}

.card a {
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  width: fit-content;
}

.news-grid .card {
  min-height: 598px;
  padding: 32px clamp(24px, 3.2vw, 60px) 40px;
  justify-content: flex-start;
}

.news-grid .card-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: min(515px, 100%);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
}

.news-grid .date {
  margin: 0;
  color: #4db4ff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1111111111;
}

.news-divider {
  flex: 1;
  height: 1px;
  background: #ffffff33;
}

.news-grid .card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.news-excerpt {
  margin: 0;
  color: #e4e9eb;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.news-grid .card .news-link {
  width: fit-content;
  color: #4db4ff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  border-bottom: none;
}

.news-grid .card .news-link:hover {
  color: #4db4ff;
  text-decoration: underline;
}

.team-grid .card {
  min-height: 394px;
  padding: 32px 40px 40px;
}

.team-intro {
  padding-bottom: 80px;
}

.section.alt.team-intro {
  background: #0d1a45;
}

.section.alt.team-cards {
  background: #0d1a45;
}

.team-intro .container {
  max-width: 1616px;
}

.team-intro .overline {
  display: block;
  width: 100%;
  text-align: center;
}

.team-intro h2 {
  text-transform: uppercase;
}

.team-cards {
  padding-top: 0;
  padding-bottom: 0;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 40px;
  justify-content: center;
}

.chip {
  border: 1px solid transparent;
  color: var(--text-main);
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 18px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.7px;
  box-shadow: 0 4px 5px -4px rgba(81, 120, 186, 0.2), 0 10px 13px -3px rgba(81, 120, 186, 0.2);
}

.chip:first-child {
  background: var(--accent);
  color: #000;
}

.site-footer {
  font-family: Montserrat, Arial, sans-serif;
  background: var(--bg-dark);
  border-top: 1px solid #ffffff1a;
  margin-left: 16px;
  margin-right: 16px;
  min-height: 265px;
  padding: 56px 0;
  display: flex;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  min-height: 170px;
  max-width: 1246px;
  margin: 0 auto;
}

.footer-logo {
  width: 180px;
  margin-bottom: 16px;
}

.site-footer .footer-about p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 24px;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 18px;
}

.placeholder-main {
  min-height: 60vh;
  padding: 90px 0;
}

.component-error {
  color: #ff8a8a;
  font-size: 14px;
}

/* ========== Главная (index): адаптив до мобильной версии; отдельный mobile-макет — позже ========== */

/* Главная: на xl-дисплеях компактнее hero, чтобы ряд превью-видео был виден без скролла */
@media (min-width: 1201px) {
  body[data-page="home"] .hero {
    min-height: var(--hero-home-xl-min-height);
    padding: 64px 0 0;
  }

  body[data-page="home"] .hero-decor {
    top: clamp(100px, 12vh, 168px);
  }
}

@media (max-width: 1200px) {
  body[data-page="home"] .hero {
    min-height: var(--hero-md-min-height);
    padding: var(--hero-md-padding);
  }

  body[data-page="home"] .section:not(.map-section):not(.news-section) {
    padding: 72px 0;
  }

  body[data-page="home"] .map-section-heading {
    padding: 72px 16px 40px;
  }

  body[data-page="home"] .map-top-overlay {
    justify-content: center;
    text-align: center;
  }

  body[data-page="home"] .map-overlay-hint {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="home"] .team-intro,
  body[data-page="aff"] .team-intro,
  body[data-page="shop"] .shop-catalog .team-intro {
    padding-bottom: 2px;
  }

  body[data-page="home"] .news-heading {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body[data-page="home"] .cta {
    padding-top: 88px;
    padding-bottom: 88px;
    min-height: 0;
  }

  body[data-page="home"] .cta h2 {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body[data-page="home"] .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body[data-page="home"] .kpi-grid .stat:nth-child(2n) {
    border-right: none;
  }

  body[data-page="home"] .kpi-grid .stat:nth-child(-n + 2) {
    border-bottom: 1px solid #99a1af;
  }
}

@media (max-width: 1024px) {
  body[data-page="home"] .stat {
    padding: 28px 20px;
  }

  body[data-page="home"] .stat strong {
    font-size: clamp(28px, 6vw, 40px);
  }

  body[data-page="home"] .showcase-strip {
    min-height: 0;
  }

  body[data-page="home"] .showcase-track img {
    height: min(211px, 28vw);
    min-height: 140px;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .container {
    width: min(1280px, calc(100% - 24px));
  }

  body[data-page="home"] .infrastructure h2 {
    font-size: clamp(28px, 5.5vw, 48px);
  }

  body[data-page="home"] .infrastructure .lead {
    font-size: 16px;
    line-height: 22px;
  }

  body[data-page="home"] .infra-card {
    min-height: 0;
    padding: 28px 20px;
  }

  body[data-page="home"] .map-section-heading {
    padding: 48px 16px 32px;
  }

  body[data-page="home"] .map-nav-icon {
    width: min(184px, 48vw);
    height: auto;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .hero .overline {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 0 8px;
    line-height: 1.35;
  }

  body[data-page="home"] h1 {
    font-size: clamp(36px, 11vw, 54px);
    max-width: 100%;
    padding: 0 8px;
  }

  body[data-page="home"] .lead {
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  body[data-page="home"] .section:not(.map-section):not(.news-section) {
    padding: 56px 0;
  }

  body[data-page="home"] .news-grid .card {
    min-height: 0;
    padding: 28px 20px 36px;
  }

  body[data-page="home"] .news-grid .card h3 {
    font-size: clamp(20px, 4.8vw, 24px);
  }

  body[data-page="home"] .news-excerpt {
    font-size: 14px;
  }

  body[data-page="home"] .team-intro h2,
  body[data-page="aff"] .team-intro h2,
  body[data-page="shop"] .shop-catalog .team-intro h2 {
    font-size: clamp(28px, 6vw, 40px);
  }

  body[data-page="home"] .team-filters,
  body[data-page="aff"] .team-filters,
  body[data-page="shop"] .shop-catalog .team-filters {
    gap: 8px 10px;
    margin: 12px 0 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
  }

  body[data-page="home"] .team-intro .team-filters .chip,
  body[data-page="aff"] .team-intro .team-filters .chip,
  body[data-page="shop"] .shop-catalog .team-intro .team-filters .chip {
    font-size: clamp(11px, 2.9vw, 13px);
    padding: 6px 10px;
    letter-spacing: 0.35px;
  }

  /* Team: шапка — колонка; карточки — горизонтальный слайдер (scroll-snap), не длинная простыня */
  body[data-page="home"] .team-intro,
  body[data-page="aff"] .team-intro,
  body[data-page="shop"] .shop-catalog .team-intro {
    padding-top: 56px;
    padding-bottom: 24px;
  }

  body[data-page="home"] .team-intro .container,
  body[data-page="aff"] .team-intro .container,
  body[data-page="shop"] .shop-catalog .team-intro .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  body[data-page="home"] .team-intro .overline,
  body[data-page="home"] .team-intro h2,
  body[data-page="aff"] .team-intro .overline,
  body[data-page="aff"] .team-intro h2,
  body[data-page="shop"] .shop-catalog .team-intro .overline,
  body[data-page="shop"] .shop-catalog .team-intro h2 {
    margin: 0;
  }

  body[data-page="home"] .team-filters,
  body[data-page="aff"] .team-filters,
  body[data-page="shop"] .shop-catalog .team-filters {
    margin-top: 0;
    margin-bottom: 0;
    justify-content: center;
  }

  body[data-page="home"] .section.team-cards,
  body[data-page="aff"] .section.team-cards {
    padding-top: 2px;
    padding-bottom: 0px;
  }

  body[data-page="home"] .aff-faculty-gallery-scroll,
  body[data-page="aff"] .aff-faculty-gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="home"] .team-cards .team-grid.aff-faculty-gallery,
  body[data-page="aff"] .team-cards .team-grid.aff-faculty-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  body[data-page="home"] .team-cards .team-grid.aff-faculty-gallery .card,
  body[data-page="aff"] .team-cards .team-grid.aff-faculty-gallery .card {
    flex: 0 0 min(317px, calc(100vw - 48px));
    width: min(317px, calc(100vw - 48px));
    max-width: 317px;
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
  }

  @media (prefers-reduced-motion: reduce) {
    body[data-page="home"] .aff-faculty-gallery-scroll,
    body[data-page="aff"] .aff-faculty-gallery-scroll {
      scroll-snap-type: none;
    }
  }

  body[data-page="home"] .cta h2 {
    font-size: clamp(26px, 6vw, 36px);
    padding-top: 32px;
    padding-bottom: 32px;
  }

  body[data-page="home"] .news-heading h2 {
    font-size: clamp(28px, 6vw, 40px);
  }

  body[data-page="home"] .full-bleed {
    width: 100%;
  }

  /* KPI: сетка 2×2 вместо одной колонки */
  body[data-page="home"] .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body[data-page="home"] .kpi-grid .stat {
    border-right: 1px solid #99a1af;
    border-bottom: 1px solid #99a1af;
  }

  body[data-page="home"] .kpi-grid .stat:nth-child(2n) {
    border-right: none;
  }

  body[data-page="home"] .kpi-grid .stat:nth-child(3),
  body[data-page="home"] .kpi-grid .stat:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  body[data-page="home"] .hero {
    padding-top: 32px;
  }

  body[data-page="home"] h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  body[data-page="home"] .btn {
    min-height: 48px;
    font-size: 13px;
    padding: 0 20px;
  }

  body[data-page="home"] .stat {
    padding: 22px 16px;
  }

  body[data-page="home"] .stat strong {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 12px;
  }

  body[data-page="home"] .showcase-track img {
    height: 120px;
    min-height: 100px;
  }

  body[data-page="home"] .infra-card h3 {
    font-size: 16px;
  }

  body[data-page="home"] .map-section-heading {
    padding: 32px 12px 40px;
  }

  body[data-page="home"] .map-nav-icon {
    width: min(160px, 70vw);
  }

  body[data-page="home"] .map-overlay-hint {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tandem-page .tandem-hero-inner h1 {
    font-size: clamp(28px, 11vw, 38px);
  }

  .tandem-page .tandem-lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .tandem-page .tandem-steps h2,
  .tandem-page .tandem-gear h2,
  .tandem-page .tandem-infrastructure h2 {
    font-size: clamp(22px, 6.5vw, 30px);
  }

  .tandem-page .tandem-steps .tandem-step-expanded {
    padding: 0 16px;
  }

  .tandem-page .tandem-gear .tandem-step-card {
    min-height: 320px;
  }

  .tandem-page .tandem-card {
    padding: 20px 16px 40px;
  }

  .tandem-page .tandem-card .tandem-price {
    font-size: 26px !important;
  }

  .cert-hero-inner h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  .certificates-page .cert-hero-inner h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .certificates-page .cert-hero-inner .cert-hero-title-light,
  .certificates-page .cert-hero-inner .cert-hero-title-accent {
    font-size: clamp(30px, 10vw, 42px);
  }

  .cert-lead {
    font-size: 16px;
    line-height: 22px;
  }

  .certificates-page .cert-offers .tandem-card {
    padding: 20px 16px 40px;
  }

  .aff-page .aff-hero-title {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  .aff-page .lead.aff-lead {
    font-size: 16px;
    line-height: 22px;
  }

  .sport-page .sport-hero-inner h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  .sport-page .sport-hero-inner .sport-hero-title-light {
    font-size: clamp(30px, 10vw, 42px);
  }

  .sport-page .sport-hero-inner .lead.sport-lead {
    font-size: 16px;
    line-height: 22px;
  }

  .cert-faq-box {
    padding: 18px 16px;
  }

  .cert-delivery.section,
  .cert-faq.section {
    padding: 40px 0;
  }

  .cert-delivery-box h2,
  .cert-faq-box h2 {
    font-size: 24px;
  }

  .cert-faq-trigger {
    font-size: 16px;
    min-height: 56px;
  }

  .cert-faq-icon {
    font-size: 16px;
  }
}

.tandem-page {
  background: #0b111a;
}

.tandem-hero {
  position: relative;
  overflow: hidden;
  min-height: 862px;
  padding: 80px 0;
  background: #091423;
  border-bottom: 1px solid #ffffff0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tandem-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.62)),
    radial-gradient(
      circle at 50% 10%,
      rgba(17, 54, 93, 0.42),
      rgba(9, 20, 35, 0.72) 62%
    );
}

.tandem-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: clamp(24px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tandem-overline {
  color: #4db4ff;
  text-transform: none;
  font-style: normal;
  text-align: center;
  width: 100%;
}

.tandem-hero .tandem-overline {
  text-transform: uppercase;
  font-style: italic;
}

.tandem-hero-inner h1 {
  text-transform: uppercase;
}

.tandem-hero-title-accent {
  color: #4db4ff;
}

.tandem-lead {
  max-width: 768px;
  margin: 40px auto;
  color: #e4e9eb;
  line-height: 22px;
  font-family: Montserrat, Arial, sans-serif;
}

.tandem-offers {
  padding: 0;
}

.tandem-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 1905px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Тандем-страница: контентные сетки и контейнеры во всю ширину экрана */
.tandem-page .tandem-cards-grid,
.tandem-page .tandem-steps-grid,
.tandem-page .tandem-gear-grid,
.tandem-page .tandem-infra-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.tandem-card {
  min-height: 864px;
  min-width: 0;
  width: 100%;
  padding: 33.65px;
  padding-top: 20px;
  padding-bottom: 40px;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 8.75px -6px rgba(0, 0, 0, 0.1), 0 20px 21.875px -5px rgba(0, 0, 0, 0.1);
}

.tandem-card.featured {
  border-color: #4db4ff;
}

.tandem-page .tandem-offers .tandem-card:nth-child(1) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Tandem.webp") center / cover no-repeat;
}

.tandem-page .tandem-offers .tandem-card.featured {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Video.webp") center / cover no-repeat;
}

.tandem-page .tandem-offers .tandem-card:nth-child(3) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Znakomstvo.webp") center / cover no-repeat;
}

.tandem-card h3 {
  margin: 0 0 20px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 25.2px;
  line-height: 1.33;
  text-transform: uppercase;
}

.tandem-card h3.offer-title {
  font-size: 28px;
  line-height: 34px;
}

.tandem-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.333;
}

.offer-desc {
  padding-top: 10px;
  padding-bottom: 25px;
  margin-bottom: 48px;
}

.tandem-page .tandem-offers .offer-desc,
.cert-offers .offer-desc {
  min-height: 7.625rem;
}

.tandem-page .tandem-offers .tandem-card .tandem-price {
  color: var(--accent);
}

.tandem-page .tandem-offers .tandem-card .tandem-price span {
  color: #7cc8ff;
}

.tandem-card .tandem-price {
  display: flex;
  align-items: flex-end;
  gap: 4.2px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1 !important;
  padding-bottom: 40px;
  margin-bottom: 32px;
}

.tandem-card .tandem-price span {
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  color: #767f88;
  font-weight: 400;
  line-height: 1.1666666667;
}

.tandem-badge {
  width: fit-content;
  border-radius: 0;
  background: #ff8145;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12.6px;
  font-weight: 700;
  letter-spacing: 0.63px;
  line-height: 1.3333;
  padding: 4.2px 12.6px;
  min-height: 25px;
  text-transform: uppercase;
}

.tandem-card p.tandem-badge:not(.is-empty) {
  margin-top: 15px;
  margin-bottom: 15px;
}

.tandem-badge.is-empty {
  opacity: 0;
}

.tandem-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.tandem-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.tandem-card li::before {
  content: "";
  width: 16.8px;
  height: 16.8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16.8 16.8'%3E%3Cpath d='M3.2 8.8l3.1 3.2 7.3-7.3' fill='none' stroke='%234db4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16.8px 16.8px;
  flex: 0 0 16.8px;
}

.tandem-card .btn {
  margin-top: 40px;
  width: 100%;
  min-width: 0;
}

.offer-btn-standard {
  max-width: 409px;
  align-self: center;
}

.offer-btn-featured {
  max-width: 421px;
  align-self: center;
}

.tandem-steps,
.tandem-gear,
.tandem-infrastructure {
  background: #0d1a45;
  border-top: 1px solid #ffffff0d;
}

.tandem-steps.section,
.tandem-gear.section {
  padding: 80px 0 0;
}

.tandem-steps.section {
  background:
    linear-gradient(rgba(12, 26, 69, 0.86), rgba(12, 26, 69, 0.86)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 14px
    ),
    #0d1a45;
}

.tandem-infrastructure.section {
  padding: 0;
  background: #101e4b;
}

.certificates-page .cert-infra.tandem-infrastructure.section {
  padding-right: 0;
}

.tandem-steps .container,
.tandem-gear .container,
.tandem-infrastructure .container {
  max-width: 1904px;
}

.tandem-page .tandem-steps .container,
.tandem-page .tandem-gear .container,
.tandem-page .tandem-infrastructure .container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Сертификаты: те же full-width правила для тарифов и инфры */
.certificates-page .cert-offers .tandem-cards-grid,
.certificates-page .cert-infra .tandem-infra-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.certificates-page .cert-infra .container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* AFF: растянуть офферы и программу на всю ширину экрана */
.aff-page .aff-offers .tandem-cards-grid,
.aff-page .aff-program-inner,
.aff-page .aff-program-row {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.aff-page .aff-program-rows {
  align-items: stretch;
}

.aff-page .aff-program-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

/* Спорт: офферы на всю ширину экрана */
.sport-page .sport-offers .tandem-cards-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.tandem-steps .container {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.tandem-gear .container {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.tandem-infrastructure .container {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 100px;
}

.tandem-steps h2,
.tandem-gear h2,
.tandem-infrastructure h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.tandem-steps h2 {
  text-align: center;
}

.tandem-infrastructure h2 {
  text-align: center;
}

.tandem-page .tandem-steps h2,
.tandem-page .tandem-gear h2,
.tandem-page .tandem-infrastructure h2 {
  text-transform: uppercase;
}

.tandem-steps-subtitle {
  margin: 10px auto 0;
  text-align: center;
  color: #9fb2d7;
  font-size: 14px;
  line-height: 1.25;
  max-width: 620px;
}

.tandem-infra-overline {
  margin: 0 0 12px;
  font-style: italic;
}

.cert-infra.tandem-infrastructure .tandem-infra-overline,
.cert-infra.tandem-infrastructure .container > h2 {
  text-transform: uppercase;
}

.certificates-page .cert-infra.tandem-infrastructure .container > h2 {
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.08;
}

.cert-infra .tandem-step-card h3 {
  text-transform: uppercase;
  font-size: 24px;
  line-height: 24px;
}

.cert-infra .tandem-step-card p {
  font-size: 16px;
  line-height: 22px;
}

.tandem-infra-subtitle {
  margin-top: 12px;
}

.certificates-page .cert-infra .tandem-steps-subtitle.tandem-infra-subtitle {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.tandem-steps-grid {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #ffffff1a;
  border-bottom: 1px solid #ffffff1a;
}

.tandem-step-card {
  min-height: 950px;
  border: 1px solid #ffffff1a;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tandem-steps .tandem-step-card {
  min-height: 950px;
  border: none;
  background: transparent;
  padding: 0;
  display: block;
}

.tandem-steps .tandem-step-card + .tandem-step-card {
  border-left: 1px solid #ffffff1a;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:nth-child(1) {
  background: url("assets/Tandem/1.webp") center / cover no-repeat;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:nth-child(2) {
  background: url("assets/Tandem/2.webp") center / cover no-repeat;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:nth-child(3) {
  background: url("assets/Tandem/3.webp") center / cover no-repeat;
}

.tandem-steps .tandem-steps-grid .tandem-step-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.tandem-steps .tandem-steps-grid .tandem-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: background-color 300ms ease-out;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:hover::before,
.tandem-steps .tandem-steps-grid .tandem-step-card:focus-within::before {
  background: rgba(0, 0, 0, 0.7);
}

.tandem-steps .tandem-steps-grid .tandem-step-card:focus-visible {
  box-shadow: inset 0 0 0 2px #4db4ff;
}

.tandem-step-card-inner {
  position: relative;
  z-index: 1;
  min-height: 950px;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.tandem-page .tandem-steps .tandem-step-card:first-child .tandem-step-card-inner {
  margin-top: 40px;
  margin-bottom: 40px;
}

.tandem-step-idle {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 100px 48px 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

.tandem-step-idle__index {
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-end;
  width: 100%;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 128px;
  line-height: 1;
  color: #4db4ff;
  text-align: right;
}

.tandem-step-idle__title {
  margin: 0;
  align-self: flex-start;
  max-width: 22ch;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  color: #fff;
}

.tandem-step-expanded {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 100px 48px 100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 110px;
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:hover .tandem-step-expanded,
.tandem-steps .tandem-steps-grid .tandem-step-card:focus-within .tandem-step-expanded {
  opacity: 1;
  pointer-events: auto;
}

.tandem-steps .tandem-steps-grid .tandem-step-card:hover .tandem-step-idle,
.tandem-steps .tandem-steps-grid .tandem-step-card:focus-within .tandem-step-idle {
  opacity: 0;
}

.tandem-step-expanded__head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.tandem-step-expanded__head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  color: #fff;
}

.tandem-step-expanded__index {
  flex: 0 0 auto;
  width: 56px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 36px;
  color: #4db4ff;
  text-align: right;
}

.tandem-step-expanded__text {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #d1d5dc;
}

.tandem-steps .tandem-steps-grid .tandem-step-expanded__text {
  color: #d1d5dc;
  line-height: 22px;
  font-size: 16px;
}

.tandem-step-expanded__text + .tandem-step-expanded__text {
  margin-top: 0;
}

.tandem-step-expanded > .tandem-step-expanded__text:last-of-type {
  padding-bottom: 40px;
}

.tandem-page .tandem-steps .tandem-step-expanded__text + .tandem-step-expanded__text {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tandem-steps .tandem-steps-grid .tandem-step-card::before,
  .tandem-step-idle,
  .tandem-step-expanded {
    transition-duration: 0.01ms;
  }
}

.tandem-step-card h3 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1;
  font-family: Montserrat, Arial, sans-serif;
}

.tandem-steps .tandem-steps-grid .tandem-step-expanded__head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  color: #fff;
}

.tandem-step-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.tandem-steps .tandem-step-header {
  margin-bottom: 18px;
}

.tandem-step-header h3 {
  margin: 0;
  padding-right: 20px;
}

.tandem-steps .tandem-step-header h3 {
  font-size: 40px;
}

.tandem-step-card p {
  margin: 0;
  color: #d1d5dc;
  font-size: 18px;
  line-height: 1.5556;
}

.tandem-gear .tandem-step-card p {
  font-size: 16px;
  line-height: 22px;
}

.tandem-steps .tandem-step-card p {
  color: #eef3ffcc;
}

.tandem-steps .tandem-steps-grid .tandem-step-idle__index {
  font-size: 128px;
  line-height: 1;
  color: #4db4ff;
}

.tandem-steps .tandem-steps-grid .tandem-step-idle__title {
  font-size: 30px;
  line-height: 36px;
  color: #fff;
}

.tandem-step-index {
  color: #4db4ff !important;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px !important;
  font-weight: 700;
  line-height: 0.75 !important;
  margin-bottom: 8px !important;
}

.tandem-gear-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.tandem-gear .tandem-step-card {
  min-height: 729px;
  justify-content: flex-end;
}

.tandem-gear .tandem-step-card h3 {
  font-size: 24px;
}

.tandem-page .tandem-gear .tandem-gear-grid .tandem-step-card:nth-child(1) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/S soboy.webp") center / cover no-repeat;
}

.tandem-page .tandem-gear .tandem-gear-grid .tandem-step-card:nth-child(2) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Vidadim.webp") center / cover no-repeat;
}

.tandem-page .tandem-gear .tandem-gear-grid .tandem-step-card:nth-child(3) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Pogoda.webp") center / cover no-repeat;
}

.tandem-accent {
  color: #4db4ff;
}

.tandem-gear .tandem-step-card p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tandem-gear .tandem-step-card p a:hover {
  color: #7cc8ff;
}

.tandem-gear .tandem-step-card p a[href^="tel:"] {
  white-space: nowrap;
}

.tandem-infra-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.tandem-infrastructure .tandem-step-card {
  min-height: 453px;
  justify-content: flex-end;
}

.tandem-infrastructure .tandem-step-card p {
  line-height: 1.5556;
  margin-bottom: 0;
}

.tandem-infrastructure .tandem-step-card .btn {
  margin-top: 20px;
  width: 100%;
}

.tandem-page .tandem-infrastructure .tandem-step-card h3 {
  text-transform: uppercase;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(1) h3 {
  font-size: 24px;
  line-height: 24px;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(4) p {
  font-size: 16px;
  line-height: 22px;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(1) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Hotel.webp") center / cover no-repeat;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(2) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Rest.webp") center / cover no-repeat;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(3) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Moto.webp") center / cover no-repeat;
}

.tandem-page .tandem-infrastructure .tandem-infra-grid .tandem-step-card:nth-child(4) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Tandem/Flight.webp") center / cover no-repeat;
}

.certificates-page {
  background: #0b111a;
}

/* Как .tandem-hero: видео на весь блок; контент по вертикали по центру секции */
.cert-hero {
  position: relative;
  overflow: hidden;
  min-height: 862px;
  padding: 80px 0;
  background: #091423;
  border-bottom: 1px solid #ffffff0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cert-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.62)),
    radial-gradient(
      circle at 50% 10%,
      rgba(17, 54, 93, 0.42),
      rgba(9, 20, 35, 0.72) 62%
    );
}

.cert-delivery::before,
.cert-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(228, 233, 235, 0.3) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.cert-hero-inner,
.cert-delivery-box,
.cert-faq-box {
  position: relative;
  z-index: 1;
}

.cert-hero-inner {
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: clamp(24px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cert-overline {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
  color: #4db4ff;
  text-transform: uppercase;
  font-style: italic;
}

.cert-hero-inner .cert-overline {
  display: block;
  margin: 0 0 28px;
  letter-spacing: 1.4px;
  line-height: 1.4285714286;
  font-size: 14px;
}

.cert-hero-inner h1 {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
}

.cert-hero-inner .cert-hero-title-light {
  color: #fff;
  display: block;
  line-height: 1.0416666667;
  font-size: clamp(54px, 9vw, 96px);
}

.cert-hero-inner .cert-hero-title-accent {
  display: block;
  color: var(--accent);
  margin-top: 0;
  line-height: 1.0416666667;
  font-size: clamp(54px, 9vw, 96px);
}

.cert-hero-inner .cert-lead {
  margin: 40px auto 40px;
  max-width: 768px;
  font-size: 16px;
  line-height: 22px;
}

/* 22px межстрочный; !important перебивает ошибочный inline `line-height: 22` (без единицы = множитель ×22). */
.certificates-page .cert-hero-inner p.lead.cert-lead {
  line-height: 22px !important;
}

.cert-lead {
  margin: 40px auto;
  font-size: 16px;
  line-height: 22px;
}

.cert-btn-row {
  margin-bottom: 80px;
}

.cert-offers .tandem-card:nth-child(1) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sertificates/Tandem.webp") center / cover no-repeat;
}

.cert-offers .tandem-card.featured {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sertificates/Video.webp") center / cover no-repeat;
}

.cert-offers .tandem-card:nth-child(3) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sertificates/Znakomstvo.webp") center / cover no-repeat;
}

.cert-offers .tandem-card .tandem-price {
  color: var(--accent);
}

.cert-offers .tandem-card .tandem-price span {
  color: #7cc8ff;
}

.cert-infra .tandem-infra-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(1),
.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(2) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0a0e14;
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(1)::before,
.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transform-origin: center center;
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(1)::before {
  background-image: url("assets/Sertificates/Hotel.webp");
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(2)::before {
  background-image: url("assets/Sertificates/Rest.webp");
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(1)::after,
.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(1) > *,
.cert-infra .tandem-infra-grid .tandem-step-card:nth-child(2) > * {
  position: relative;
  z-index: 2;
}

.aff-page {
  background: #0b111a;
}

.aff-hero {
  position: relative;
  padding: 80px 0;
  min-height: 862px;
  background: #121212;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.aff-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.aff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(228, 233, 235, 0.3) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.aff-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: clamp(24px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.aff-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 1.0416666667;
  white-space: normal;
}

.aff-hero-title .aff-hero-title-kurs {
  text-transform: uppercase;
}

.aff-hero-title .aff-hero-title-aff {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .tandem-hero-video,
  .aff-hero-video,
  .cert-hero-video,
  .sport-hero-video {
    display: none;
  }
}

.aff-overline {
  width: 100%;
  margin: 0 0 28px;
  text-align: center;
  color: #4db4ff;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 1.4px;
  line-height: 1.4285714286;
  font-size: 14px;
}

.lead.aff-lead {
  margin: 40px auto;
  font-size: 16px;
  line-height: 22px;
  padding-left: 16px;
  padding-right: 16px;
}

.aff-hero-btns {
  margin-bottom: 0;
  padding-bottom: 40px;
}

.aff-offers .tandem-card:nth-child(1) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/AFF/Znakomstvo.webp") center / cover no-repeat;
}

.aff-offers .tandem-card:nth-child(2) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/AFF/Full course.webp") center / cover no-repeat;
}

.aff-offers .tandem-card:nth-child(3) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/AFF/Control.webp") center / cover no-repeat;
}

.aff-offers .tandem-card .tandem-price {
  color: var(--accent);
}

.aff-offers .tandem-card .tandem-price span {
  color: #7cc8ff;
}

.sport-offers .tandem-card .tandem-price {
  color: var(--accent);
}

.sport-offers .tandem-card .tandem-price span {
  color: #7cc8ff;
}

.tandem-card .tandem-price.aff-tandem-price-sm {
  font-size: 30px !important;
}

.sport-page {
  background: #0b111a;
}

.sport-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  min-height: 862px;
  background: #0b111a;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
}

.sport-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.72));
}

.sport-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(228, 233, 235, 0.3) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.sport-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: clamp(24px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sport-overline {
  width: 100%;
  margin: 0 0 28px;
  text-align: center;
  color: #4db4ff;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 1.4px;
  line-height: 1.4285714286;
  font-size: 14px;
}

.sport-hero-inner .sport-overline {
  text-transform: uppercase;
  font-style: italic;
}

.sport-hero-inner h1 {
  margin: 0;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  max-width: 1163px;
  margin-left: auto;
  margin-right: auto;
}

.sport-hero-inner .sport-hero-title-light {
  color: #fff;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 1.0416666667;
}

.sport-hero-inner .sport-lead {
  margin: 40px auto 40px;
  max-width: 768px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.sport-offers .tandem-card:nth-child(1) {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sportsmenam/Control.webp") center / cover no-repeat;
}

.sport-offers .tandem-card.featured {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sportsmenam/Spot-podyom.webp") center / cover no-repeat;
}

.sport-offers .tandem-card.sport-card-alt {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sportsmenam/Arenda.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.16);
}

.sport-infra {
  background: #0d1a45;
  border-top: 1px solid #ffffff0d;
  border-bottom: 1px solid #ffffff0d;
}

.sport-infra-inner {
  max-width: 1904px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 500px;
}

.sport-infra-copy {
  padding: 40px min(120px, 6vw);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.sport-infra-copy h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #e4e9eb;
  text-align: left;
  text-transform: uppercase;
}

.sport-infra-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sport-infra-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #e4e9eb;
}

.sport-infra-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: #4db4ff;
}

.sport-infra-media {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(13, 26, 69, 0.42), rgba(9, 15, 25, 0.58)),
    url("assets/Sportsmenam/Infrastructure.webp") center / cover no-repeat;
}

.sport-events {
  position: relative;
  padding: 96px 0 80px;
  border-top: 1px solid #ffffff0d;
  background:
    linear-gradient(to bottom, rgba(6, 10, 18, 0.78), rgba(8, 14, 24, 0.9)),
    url("assets/Sportsmenam/Calendar.webp") center / cover no-repeat;
  overflow: hidden;
}

.sport-events::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(228, 233, 235, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.sport-events-inner {
  position: relative;
  z-index: 1;
  max-width: 1279px;
  margin-inline: auto;
}

.sport-events-head {
  text-align: center;
  margin-bottom: 60px;
}

.sport-events-deco {
  margin: 0 0 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.4px;
  color: #4db4ff;
}

.sport-events-head h2 {
  margin: 0 0 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #e4e9eb;
  text-align: center;
  text-transform: uppercase;
}

.sport-events-sub {
  max-width: 672px;
  margin: 16px auto 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.56;
  color: #e4e9eb;
  text-align: center;
}

.sport-events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.sport-events-soon {
  margin: 0;
  padding: 48px calc((100% - min(1279px, calc(100% - 32px))) / 2);
  box-sizing: border-box;
  border: 1px solid #ffffff0d;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(7px);
  font-family: Montserrat;
  font-size: 16px;
  line-height: 22px;
  color: rgba(228, 233, 235, 0.88);
  text-align: center;
}

.sport-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding-block: 24px;
  padding-inline: calc((100% - min(1279px, calc(100% - 32px))) / 2);
  border: 1px solid #ffffff0d;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(7px);
}

.sport-event-row-accent {
  background: rgba(0, 0, 0, 0.6);
}

.sport-event-main {
  flex: 1 1 280px;
  min-width: 0;
}

.sport-event-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sport-event-date {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.33;
  color: #4db4ff;
}

.sport-event-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffffff0d;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.14;
  color: #e4e9eb;
}

.sport-event-title {
  margin: 0 0 4px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.17;
  color: #e4e9eb;
}

.sport-event-place {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.11;
  color: #e4e9eb;
}

.sport-event-btn {
  flex: 0 0 auto;
  width: 220px;
  min-width: 0;
}

/* Риггерские услуги (макет Pencil: «Rigger») */
.sport-rigger {
  position: relative;
  padding: 56px 0 80px;
  border-top: 1px solid #ffffff0d;
  background:
    linear-gradient(to bottom, rgba(6, 10, 18, 0.78), rgba(8, 14, 24, 0.88)),
    url("assets/Sportsmenam/Rigger.webp") center / cover no-repeat;
  overflow: hidden;
}

.sport-rigger-inner {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 409px) minmax(0, 1fr);
  align-items: start;
  gap: 40px 60px;
}

.sport-rigger-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sport-rigger-overline {
  margin: 0;
  width: 100%;
  text-align: left;
  color: rgba(77, 180, 255, 1);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sport-rigger-copy h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #e4e9eb;
  text-align: left;
  text-transform: uppercase;
}

.sport-rigger-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 845px;
  justify-self: end;
}

.sport-rigger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 40px;
  border: 1px solid #ffffff0d;
  font-family: Montserrat, Arial, sans-serif;
}

.sport-rigger-row-alt {
  background: rgba(0, 0, 0, 0.2);
}

.sport-rigger-service {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #cfd7d7;
}

.sport-rigger-price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.11;
  color: #fff;
  flex-shrink: 0;
  text-align: right;
}

.shop-page {
  background: #0b111a;
}

/* Hero: слой медиа как у .cert-hero-media (фото + затемнение + сетка) */
.shop-hero {
  position: relative;
  padding: 80px 16px 0;
  min-height: 862px;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
  background: #091423;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shop-hero-media {
  background: url("assets/Market/Main.webp") center / cover no-repeat;
}

.shop-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(228, 233, 235, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.shop-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0.72), rgba(8, 14, 24, 0.88));
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(768px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 0 clamp(40px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.shop-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.shop-hero-overline {
  margin: 0;
  width: 100%;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4286;
  color: #4db4ff;
  text-align: center;
  text-transform: uppercase;
}

.shop-hero-inner h1 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(42px, 9.5vw, 96px);
  font-weight: 800;
  line-height: 1.0417;
  color: #e4e9eb;
  text-align: center;
  text-transform: uppercase;
}

.shop-lead {
  margin: 0;
  width: 100%;
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: #e4e9eb;
  text-align: center;
}

/* Каталог (Pencil HOme3): padding 50, 312.5, 0, 312.5 при ширине 190 */
.shop-catalog {
  --shop-pad-x: max(16px, calc((100% - 1279px) / 2));
  position: relative;
  padding: 50px 0 80px;
  border-top: 1px solid #ffffff0d;
  overflow-x: clip;
  background:
    linear-gradient(rgba(12, 9, 11, 0.88), rgba(12, 9, 11, 0.92)),
    radial-gradient(circle at 50% 0%, #1a3555, #0b111a 55%);
}

.shop-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(228, 233, 235, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.shop-catalog-glow {
  position: absolute;
  top: 1px;
  right: max(0px, calc(50% - 640px));
  width: min(635px, 45vw);
  height: min(2807px, 140vh);
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 20%, rgba(81, 120, 186, 0.55), transparent 55%);
  filter: blur(105px);
  opacity: 0.09;
}

.shop-catalog-rail {
  position: relative;
  z-index: 1;
  padding-left: var(--shop-pad-x);
  padding-right: var(--shop-pad-x);
}

/* Как блок «Команда» на главной: team-intro + overline + h2 + team-filters + .chip */
.shop-catalog .team-intro.shop-catalog-intro {
  padding-bottom: 60px;
}

.shop-catalog .team-intro .overline {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  text-align: center;
  color: #4db4ff;
  font-style: normal;
  letter-spacing: 0.06em;
}

.shop-catalog .team-intro h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: #e4e9eb;
  text-align: center;
  text-transform: uppercase;
}

/* Сетка: 4×466 + 3×8 = 1888, по 8px до краёв макета 1904 */
.shop-grid-shell {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 max(8px, calc((100vw - 1888px) / 2));
  box-sizing: border-box;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 466px));
  gap: 8px;
  justify-content: center;
  width: 100%;
  max-width: 1888px;
  margin: 0 auto;
}

.shop-card {
  margin: 0;
  min-width: 0;
}

.shop-card-hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 845px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ffffff1a;
  background: #0c090b;
  overflow: hidden;
}

.shop-card-hit:focus-visible {
  outline: 2px solid #4db4ff;
  outline-offset: 2px;
}

.shop-card-media {
  flex: 3 1 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.38) 100%),
    repeating-conic-gradient(rgb(46 46 46) 0% 25%, rgb(34 34 34) 0% 50%) 50% / 10px 10px;
}

.shop-card-panel {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 34px 36px 36px;
  text-align: left;
  background: rgb(0 0 0 / 0.431);
}

.shop-card-copy {
  flex: 0 0 auto;
}

.shop-card-title {
  margin: 0 0 10px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(26px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.shop-card-meta {
  margin: -2px 0 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #33cfff;
}

.shop-card-desc {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}

.shop-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 44px;
}

.shop-card-price {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1667;
  color: #fff;
}

.shop-card-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  padding: 3.5px 0 4.5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.251);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #33cfff;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.shop-card-cart:hover,
.shop-card-cart:focus-visible {
  background: rgba(51, 207, 255, 0.22);
  color: #fff;
  outline: none;
}

@media (max-width: 1919px) {
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-card-hit {
    min-height: 0;
    aspect-ratio: 466 / 845;
  }
}

@media (max-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-catalog .team-intro h2 {
    font-size: clamp(28px, 5vw, 40px);
  }

  .shop-card-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .shop-card-desc {
    font-size: 14px;
  }

  .shop-card-buy {
    padding-top: 36px;
  }
}

/* ——— Корзина (магазин + ЛК: тёмный фон, #05203e карточки, акцент) ——— */
.cart-page {
  background: #0b111a;
}

.cart-hero {
  position: relative;
  padding: 48px 16px 56px;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
}

.cart-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 10, 18, 0.92), rgba(8, 14, 24, 0.97)),
    radial-gradient(circle at 50% 0%, #1a3555, #0b111a 58%);
  opacity: 1;
}

.cart-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(rgba(228, 233, 235, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.cart-hero-inner {
  position: relative;
  z-index: 1;
  width: min(768px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cart-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-breadcrumb a {
  color: rgba(228, 233, 235, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cart-breadcrumb a:hover {
  color: var(--accent);
}

.cart-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
}

.cart-breadcrumb-current {
  color: #d4e3ff;
}

.cart-hero-overline {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4286;
  color: #4db4ff;
  text-transform: uppercase;
}

.cart-hero-inner h1 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: #e4e9eb;
  text-transform: uppercase;
}

.cart-hero-lead {
  margin: 0;
  max-width: 520px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(228, 233, 235, 0.75);
}

.cart-main {
  padding: 48px 0 96px;
}

.cart-main-inner {
  width: min(1265px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: start;
}

.cart-items-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cart-items-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-items-title {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e3ff;
}

.cart-items-count {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto minmax(96px, 120px);
  grid-template-areas: "media body actions line";
  gap: 20px 24px;
  align-items: start;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-row-media {
  grid-area: media;
  width: 88px;
  height: 88px;
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2)),
    repeating-conic-gradient(rgb(46 46 46) 0% 25%, rgb(34 34 34) 0% 50%) 50% / 8px 8px;
  background-position: center;
  background-size: cover, 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-row-body {
  grid-area: body;
  min-width: 0;
}

.cart-row-title {
  margin: 0 0 6px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #d4e3ff;
}

.cart-row-title a {
  color: inherit;
  text-decoration: none;
}

.cart-row-title a:hover {
  color: var(--accent);
}

.cart-row-variant {
  margin: 0 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  color: rgba(255, 255, 255, 0.45);
}

.cart-row-unit {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.cart-row-unit-value {
  font-weight: 600;
  color: rgba(228, 233, 235, 0.85);
}

.cart-row-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.cart-qty-btn {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #e4e9eb;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cart-qty-btn:hover {
  background: rgba(77, 180, 255, 0.12);
}

.cart-qty-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cart-qty-value {
  min-width: 36px;
  padding: 0 4px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.cart-row-remove {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cart-row-remove:hover {
  color: #ff6b6b;
}

.cart-row-line {
  grid-area: line;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: right;
  justify-self: end;
  align-self: start;
}

.cart-empty {
  margin: 0;
  padding: 40px 24px;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: rgba(228, 233, 235, 0.7);
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(5, 32, 62, 0.5);
}

.cart-empty a {
  color: var(--accent);
}

.cart-promo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 2px;
  background: rgba(5, 32, 62, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-promo label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(228, 233, 235, 0.68);
}

.cart-promo-row {
  display: flex;
  gap: 10px;
}

.cart-promo-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.cart-promo-message {
  min-height: 18px;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  color: rgba(228, 233, 235, 0.68);
}

.bank-test-card {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bank-test-card h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #e4e9eb;
}

.bank-test-note,
.bank-test-codes {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(228, 233, 235, 0.72);
}

.bank-test-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-cert-transfer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.account-cert-transfer button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(77, 180, 255, 0.36);
  border-radius: 4px;
  background: rgba(77, 180, 255, 0.16);
  color: #e4e9eb;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.account-cert-transfer button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-cert-transfer-msg {
  min-height: 18px;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  color: rgba(228, 233, 235, 0.68);
}

.cart-summary {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 28px 32px;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-summary-title {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e3ff;
}

.cart-summary-lines {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  color: rgba(228, 233, 235, 0.75);
}

.cart-summary-row dt {
  margin: 0;
  font-weight: 500;
}

.cart-summary-row dd {
  margin: 0;
  font-weight: 700;
  color: #e4e9eb;
}

.cart-summary-row--muted dd {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-total-label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cart-summary-total-value {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.cart-checkout-status {
  margin: 10px 0 0;
  color: rgba(232, 239, 242, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.cart-back-link {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: rgba(77, 180, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cart-back-link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "media body"
      "actions actions"
      "line line";
    gap: 16px;
  }

  .cart-row-media {
    width: 72px;
    height: 72px;
  }

  .cart-row-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .cart-row-line {
    text-align: left;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .cart-main {
    padding: 32px 0 64px;
  }

  .cart-row {
    padding: 20px 16px;
  }

  .cart-hero {
    padding: 36px 16px 40px;
  }

  .cart-promo-row {
    flex-direction: column;
  }
}

/* ——— Страница товара магазина ——— */
.product-page {
  min-height: 100vh;
  background: #0b111a;
}

.product-hero {
  position: relative;
  padding: 48px 16px 56px;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.product-hero-inner h1 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  color: #e4e9eb;
  text-transform: uppercase;
}

.product-main {
  padding: 48px 0 96px;
}

.product-main-inner {
  width: min(1265px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.product-media {
  min-height: 560px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.38) 100%),
    repeating-conic-gradient(rgb(46 46 46) 0% 25%, rgb(34 34 34) 0% 50%) 50% / 10px 10px;
  background-size: cover, 10px 10px;
  background-position: center;
  overflow: hidden;
}

.product-media-placeholder {
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-kickers span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(77, 180, 255, 0.12);
  border: 1px solid rgba(77, 180, 255, 0.28);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #8dd0ff;
}

.product-info h2 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: #e4e9eb;
}

.product-price {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.product-stock {
  margin: -12px 0 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(228, 233, 235, 0.58);
}

.product-description {
  margin: 4px 0 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(228, 233, 235, 0.82);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.product-action {
  min-height: 52px;
  padding-inline: 24px;
}

.product-cart-control {
  display: flex;
  min-width: 220px;
}

.product-cart-control .product-action {
  width: 100%;
  justify-content: center;
}

.product-qty {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 52px minmax(64px, 1fr) 52px;
  align-items: center;
  border-radius: 4px;
  border: 1px solid rgba(77, 180, 255, 0.36);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.product-qty-btn {
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(77, 180, 255, 0.12);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #e4e9eb;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-qty-btn:hover {
  background: rgba(77, 180, 255, 0.24);
  color: #fff;
}

.product-qty-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.product-qty-value {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #fff;
}

.product-back {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(77, 180, 255, 0.9);
  text-decoration: none;
}

.product-back:hover {
  color: var(--accent);
}

.product-empty {
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(5, 32, 62, 0.5);
  text-align: center;
}

.product-empty p {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: rgba(228, 233, 235, 0.72);
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 36px 16px 40px;
  }

  .product-main {
    padding: 32px 0 64px;
  }

  .product-media {
    min-height: 340px;
  }

  .product-info {
    padding: 24px 18px;
  }

  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-action {
    width: 100%;
    justify-content: center;
  }

  .product-cart-control {
    width: 100%;
  }
}

/* ——— Корзина сертификатов (cart-sertificate) ——— */
body[data-page="cart-sertificate"] .cart-breadcrumb {
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  font-weight: 500;
  font-family: Inter, Arial, sans-serif;
}

body[data-page="cart-sertificate"] .cart-hero-inner h1 {
  text-transform: none;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
}

.cart-row--certificate {
  grid-template-columns: 56px minmax(0, 1fr) auto minmax(96px, 120px);
}

.cart-row-media--certificate {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(77, 180, 255, 0.12), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(77, 180, 255, 0.2);
}

.cart-row-media-icon {
  font-size: 22px;
  line-height: 1;
}

.csc-summary .cart-summary-title {
  margin-bottom: 4px;
}

.csc-summary-grand {
  margin: 0 0 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.csc-summary .cart-checkout-btn {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cart-row--certificate {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "media body"
      "actions actions"
      "line line";
  }
}

/* ——— Подтверждение заказа (order-confirm) ——— */
.order-confirm-page {
  background: #0b111a;
}

.oc-hero {
  position: relative;
  padding: 48px 16px 40px;
  border-bottom: 1px solid #ffffff0d;
  overflow: hidden;
}

.oc-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 10, 18, 0.92), rgba(8, 14, 24, 0.97)),
    radial-gradient(circle at 50% 0%, #1a3555, #0b111a 58%);
}

.oc-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(rgba(228, 233, 235, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.oc-hero-inner {
  position: relative;
  z-index: 1;
  width: min(768px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.oc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.oc-breadcrumb a {
  color: rgba(228, 233, 235, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.oc-breadcrumb a:hover {
  color: var(--accent);
}

.oc-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.28);
}

.oc-breadcrumb-current {
  color: #d4e3ff;
}

.oc-hero-overline {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.oc-hero-inner h1 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: #e4e9eb;
  text-transform: uppercase;
}

.oc-hero-lead {
  margin: 0;
  max-width: 520px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(228, 233, 235, 0.75);
}

.oc-progress {
  padding: 20px 16px 24px;
  border-bottom: 1px solid #ffffff0d;
  background: rgba(5, 32, 62, 0.35);
}

.oc-progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 560px;
  margin: 0 auto;
}

.oc-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.oc-progress-step.is-done,
.oc-progress-step.is-active {
  opacity: 1;
}

.oc-progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #e4e9eb;
}

.oc-progress-step.is-done .oc-progress-num {
  border-color: var(--accent);
  background: rgba(77, 180, 255, 0.12);
  color: var(--accent);
}

.oc-progress-step.is-active .oc-progress-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #0b111a;
}

.oc-progress-label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 233, 235, 0.65);
}

.oc-progress-step.is-active .oc-progress-label {
  color: #d4e3ff;
}

.oc-progress-line {
  flex: 1;
  min-width: 24px;
  max-width: 80px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.oc-progress-line.is-done {
  background: linear-gradient(90deg, var(--accent), rgba(77, 180, 255, 0.35));
}

.oc-main {
  padding: 48px 0 96px;
}

.oc-main-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.oc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: start;
}

.oc-form-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.oc-selected-product {
  padding: 24px 28px;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-product-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(77, 180, 255, 0.12);
  border: 1px solid rgba(77, 180, 255, 0.25);
}

.oc-selected-product[data-cert-glyph="1"] .oc-product-badge::before {
  content: "✓";
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-right: 6px;
  color: var(--accent);
}

.oc-product-name {
  margin: 0 0 10px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #d4e3ff;
}

.oc-product-desc {
  margin: 0 0 16px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(228, 233, 235, 0.72);
}

.oc-product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.oc-selected-product .oc-product-qty {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oc-product-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px 20px;
}

.oc-product-qty-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

.oc-selected-product .oc-qty-btn {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.oc-selected-product .oc-qty-value {
  min-width: 32px;
  padding: 0 4px;
  font-size: 14px;
}

.oc-gift-inline {
  flex-shrink: 0;
  max-width: min(260px, 100%);
  padding-bottom: 2px;
  margin-left: auto;
}

.oc-gift-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(228, 233, 235, 0.88);
}

.oc-gift-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.oc-gift-check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

.oc-gift-check-input:focus-visible + .oc-gift-check-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oc-gift-check-input:checked + .oc-gift-check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.oc-gift-check-input:checked + .oc-gift-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #0b111a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.oc-gift-check-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .oc-product-qty-row {
    flex-direction: column;
    align-items: stretch;
  }

  .oc-gift-inline {
    max-width: none;
    padding-bottom: 0;
    margin-left: 0;
  }
}

.oc-product-price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.oc-product-per {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.oc-form {
  padding: 28px 28px 32px;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-form-title {
  margin: 0 0 20px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e3ff;
}

.oc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.oc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oc-field--full {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.oc-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(228, 233, 235, 0.85);
}

.oc-label-optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.oc-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #e4e9eb;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.oc-input::placeholder {
  color: rgba(228, 233, 235, 0.35);
}

.oc-input:hover {
  border-color: rgba(77, 180, 255, 0.35);
}

.oc-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(77, 180, 255, 0.2);
}

.oc-input.is-invalid {
  border-color: #ff6b6b;
}

.oc-field-error {
  min-height: 1.2em;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  color: #ff8a80;
}

.oc-textarea {
  min-height: 88px;
  resize: vertical;
}

.oc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.oc-qty-btn {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #e4e9eb;
  cursor: pointer;
  transition: background 0.15s ease;
}

.oc-qty-btn:hover {
  background: rgba(77, 180, 255, 0.12);
}

.oc-qty-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.oc-qty-value {
  min-width: 40px;
  padding: 0 6px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.oc-gift-toggle {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oc-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: rgba(228, 233, 235, 0.9);
}

.oc-toggle-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.oc-toggle-switch {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.2s ease;
}

.oc-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.oc-toggle-check:focus-visible + .oc-toggle-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oc-toggle-check:checked + .oc-toggle-switch {
  background: rgba(77, 180, 255, 0.35);
  border-color: var(--accent);
}

.oc-toggle-check:checked + .oc-toggle-switch::after {
  transform: translateX(20px);
}

.oc-gift-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* `display: flex` выше перебивает стандартное скрытие по [hidden] — без этого блок подарка остаётся видимым */
.oc-gift-fields[hidden],
.oc-gift-branch[hidden] {
  display: none !important;
}

.oc-gift-format {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.oc-gift-format-legend {
  float: left;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(228, 233, 235, 0.85);
}

.oc-gift-format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  clear: both;
}

.oc-gift-format-card {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.oc-gift-format-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.oc-gift-format-card-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.oc-gift-format-card input:focus-visible + .oc-gift-format-card-inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oc-gift-format-card input:checked + .oc-gift-format-card-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(77, 180, 255, 0.28);
}

.oc-gift-format-title {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #e4e9eb;
}

.oc-gift-format-desc {
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(228, 233, 235, 0.55);
}

.oc-gift-branch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-gift-branch-hint {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(228, 233, 235, 0.5);
}

.oc-gift-electronic-hint {
  margin: 0;
  max-width: 42rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(228, 233, 235, 0.72);
}

.oc-gift-recipient-slot {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oc-gift-recipient-slot:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.oc-gift-recipient-title {
  margin: 0 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 227, 255, 0.85);
}

.oc-field--gift-message {
  margin-top: 24px;
}

.oc-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(228, 233, 235, 0.85);
}

.oc-agree input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.oc-agree-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.oc-agree input:focus-visible + .oc-agree-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oc-agree input:checked + .oc-agree-box {
  background: var(--accent);
  border-color: var(--accent);
}

.oc-agree input:checked + .oc-agree-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #0b111a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.oc-agree.is-invalid .oc-agree-box {
  border-color: #ff6b6b;
}

.oc-agree a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oc-agree a:hover {
  color: #fff;
}

.oc-summary {
  position: sticky;
  top: calc(var(--site-header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 32px;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-summary-title {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e3ff;
}

.oc-summary-card {
  padding: 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-summary-card-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#oc-summary[data-cert-glyph="1"] .oc-summary-card-badge::before {
  content: "✓";
  text-transform: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-right: 5px;
  color: var(--accent);
}

.oc-summary-card-name {
  margin: 0 0 6px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e4e9eb;
}

.oc-summary-card-detail {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.oc-summary-lines {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-summary-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  color: rgba(228, 233, 235, 0.75);
}

.oc-summary-row dt {
  margin: 0;
  font-weight: 500;
}

.oc-summary-row dd {
  margin: 0;
  font-weight: 700;
  color: #e4e9eb;
}

.oc-summary-row--muted dd {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.oc-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oc-summary-total-label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.oc-summary-total-value {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.oc-submit-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.oc-summary-note {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(228, 233, 235, 0.55);
  text-align: center;
}

.oc-back-link {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: rgba(77, 180, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}

.oc-back-link:hover {
  color: var(--accent);
}

.oc-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(6px);
}

.oc-success-overlay[hidden] {
  display: none !important;
}

.oc-success-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 28px 40px;
  border-radius: 4px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.oc-success-icon {
  margin-bottom: 16px;
}

.oc-success-title {
  margin: 0 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #e4e9eb;
}

.oc-success-text {
  margin: 0 0 16px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(228, 233, 235, 0.78);
}

.oc-success-order {
  margin: 0 0 24px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: rgba(228, 233, 235, 0.85);
}

.oc-success-order strong {
  color: var(--accent);
  font-weight: 700;
}

.oc-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.oc-success-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.oc-success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e9eb;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.oc-success-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.oc-success-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .oc-layout {
    grid-template-columns: 1fr;
  }

  .oc-summary {
    position: static;
  }

  .oc-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .oc-hero {
    padding: 36px 16px 32px;
  }

  .oc-main {
    padding: 32px 0 64px;
  }

  .oc-form,
  .oc-selected-product {
    padding: 20px 18px 24px;
  }
}

.contacts-page {
  background: #0b111a;
}

/* Герой: карта на всю ширину; панель — плашка поверх справа (десктоп) */
.contacts-hero {
  position: relative;
  overflow: hidden;
}

.contacts-hero-split {
  position: relative;
  display: block;
  width: 100%;
  min-height: 862px;
  margin: 0 auto;
}

.contacts-hero-map {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 862px;
  height: 862px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%),
    repeating-conic-gradient(#5c5c5cdc 0% 25%, #4a4a4adc 0% 50%) 50% / 14px 14px;
}

.contacts-map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

/* Яндекс.Карты: убрать промо («Как добраться», «На такси», API), копирайт и логотип */
.contacts-map-embed [class*="copyrights-pane"],
.contacts-map-embed [class*="map-copyrights-promo"],
.contacts-map-embed [class*="gotoymaps"],
.contacts-map-embed [class*="gototaxi"],
.contacts-map-embed [class*="copyright__wrap"],
.contacts-map-embed [class*="copyright__logo"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/*
 * Яндекс.Карты: зум. Invert на спрайте даёт серые квадраты — спрайт отключаем,
 * +/− и полоска бегунка рисуются в ::before (flex только на псевдо, не на ymaps).
 */
.contacts-map-embed [class*="-zoom"] [class*="float-button"] {
  background: rgba(5, 13, 22, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

.contacts-map-embed [class*="-zoom"] [class*="float-button-icon"] {
  filter: none !important;
  opacity: 1;
}

.contacts-map-embed [class*="zoom__plus"] [class*="float-button-icon"],
.contacts-map-embed [class*="zoom__minus"] [class*="float-button-icon"] {
  background: transparent !important;
  background-image: none !important;
}

.contacts-map-embed [class*="zoom__plus"] [class*="float-button-icon"]::before {
  content: "+";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 1;
}

.contacts-map-embed [class*="zoom__minus"] [class*="float-button-icon"]::before {
  content: "\2212";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 1;
}

.contacts-map-embed [class*="zoom__runner"] [class*="float-button-icon"],
.contacts-map-embed [class*="float-button-icon_icon_runner"] {
  filter: none !important;
  background: transparent !important;
  background-image: none !important;
}

.contacts-map-embed [class*="zoom__runner"] [class*="float-button-icon"]::before,
.contacts-map-embed [class*="float-button-icon_icon_runner"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  z-index: 1;
}

.contacts-map-embed [class*="-zoom"] [class*="zoom__scale"],
.contacts-map-embed [class*="-zoom"] [class*="zoom__runner"] {
  background: rgba(5, 13, 22, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.contacts-hero-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 60px;
  box-sizing: border-box;
  background: rgba(34, 34, 34, 0.92);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}

.contacts-hero-panel-inner {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.contacts-hero-panel-inner h1 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #e4e9eb;
}

.contacts-hero-lead {
  margin: 0;
  max-width: 36ch;
  padding: 0 41px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4db4ff;
}

.contacts-hero-address {
  margin: 0;
  max-width: 44ch;
  padding: 0 7px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #e4e9eb;
}

.contacts-route-btn {
  width: 100%;
  max-width: 333.9px;
  margin-top: 4px;
  text-decoration: none;
}

/* Три колонки на фоне #0d1a45, контент по центру карточки */
.contacts-details {
  padding: 0 0 80px;
  background: #0d1a45;
}

.contacts-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1905px;
  margin: 0 auto;
}

.contacts-card {
  margin: 0;
  min-height: 456px;
  padding: 50px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  background: #0d1a45;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 8.75px -6px rgb(0 0 0 / 0.1),
    0 20px 21.875px -5px rgb(0 0 0 / 0.1);
}

.contacts-card:last-child {
  border-right: none;
}

.contacts-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4db4ff;
  color: #fff;
}

.contacts-card-icon svg {
  display: block;
}

.contacts-card-title {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
  color: #e4e9eb;
}

.contacts-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.167;
  text-align: center;
}

.contacts-card-list a {
  color: #4db4ff;
  text-decoration: none;
}

.contacts-card-list a:hover {
  text-decoration: underline;
}

.contacts-card-list--plain {
  color: #4db4ff;
  font-size: 16px;
}

.contacts-card-list--phones {
  align-items: stretch;
  width: 100%;
  max-width: 22rem;
  font-size: 16px;
}

.contacts-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: start;
  width: 100%;
}

.contacts-phone-label {
  text-align: left;
  justify-self: start;
  color: rgba(228, 233, 235, 0.92);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  padding-top: 0.05em;
}

.contacts-phone-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35em;
  text-align: right;
}

.contacts-phone-values a {
  font-size: 16px;
}

.contacts-phone-row > .contacts-phone-value {
  justify-self: end;
  text-align: right;
  font-size: 16px;
}

.contacts-phone-row > .contacts-hours-value {
  justify-self: end;
  text-align: right;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  padding-top: 0.05em;
  color: #4db4ff;
}

.contacts-opening-hours-section {
  padding: 56px 0 80px;
  min-height: 50vh;
}

.contacts-opening-hours-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.contacts-opening-hours-back {
  margin: 0 0 1rem;
  text-align: left;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}

.contacts-opening-hours-back a {
  color: #4db4ff;
  text-decoration: none;
}

.contacts-opening-hours-back a:hover {
  text-decoration: underline;
}

.contacts-opening-hours-title {
  margin: 0 0 0.75rem;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #e4e9eb;
  text-align: left;
}

.contacts-opening-hours-lead {
  margin: 0 0 1.75rem;
  max-width: 52rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(228, 233, 235, 0.88);
  text-align: left;
}

.contacts-hours-table-wrap {
  overflow-x: auto;
}

.contacts-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: #e4e9eb;
  text-align: left;
}

.contacts-hours-table th,
.contacts-hours-table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  vertical-align: top;
}

.contacts-hours-table thead th {
  font-weight: 600;
  background: rgba(77, 180, 255, 0.12);
}

.contacts-hours-table__body {
  white-space: pre-wrap;
}

.contacts-opening-hours-foot,
.contacts-opening-hours-error {
  margin: 1rem 0 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.contacts-opening-hours-foot {
  color: rgba(228, 233, 235, 0.75);
}

.contacts-opening-hours-error {
  color: #ffb4a8;
}

@media (max-width: 1100px) {
  .contacts-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: none;
  }

  .contacts-hero-map {
    width: 100%;
    min-height: 260px;
    height: 320px;
  }

  .contacts-map-embed {
    min-height: 260px;
  }

  .contacts-hero-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    box-shadow: none;
    background: #222222;
    padding: 44px 32px 52px;
  }

  .contacts-details-grid {
    grid-template-columns: 1fr;
  }

  .contacts-card {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .contacts-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .contacts-hero-panel {
    padding: 36px 20px 44px;
  }

  .contacts-hero-lead {
    padding: 0 16px;
    font-size: 14px;
  }

  .contacts-details {
    padding-bottom: 48px;
  }

  /* Яндекс.Карты: скрыть ± зума на мобилке (pinch / двойной тап сохраняются) */
  .contacts-map-embed [class*="controls-pane"] [class*="-zoom"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.aff-program {
  background: #0d1a45;
  padding: 80px 0 0;
}

.aff-program-inner {
  width: 100%;
  max-width: 1904px;
  margin: 0 auto;
  padding: 0;
}

.aff-program-heading {
  margin: 0 0 60px;
  text-align: center;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.aff-program-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.aff-program-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 950px));
  gap: 0;
  justify-content: center;
  max-width: 1900px;
  margin-inline: auto;
  width: 100%;
}

.aff-program-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 534px;
  padding: 60px;
  border: 1px solid #ffffff0d;
  border-radius: 0;
  background: #121212;
  box-shadow:
    0 1px 1.75px -1px rgba(0, 0, 0, 0.1),
    0 1px 2.625px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.aff-program-card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.aff-program-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.aff-program-card:hover .aff-program-card-video {
  opacity: 1;
}

.aff-program-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.aff-program-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  isolation: isolate;
}

.aff-program-card:hover .aff-program-card-head h3 {
  color: #f4f7f9;
}

.aff-program-card:hover .aff-program-desc,
.aff-program-card:hover .aff-program-copy,
.aff-program-card:hover .aff-program-copy-lead,
.aff-program-card:hover .aff-program-license-list {
  color: rgba(244, 247, 249, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .aff-program-card-video {
    display: none;
  }

  .aff-program-card:hover .aff-program-card-video {
    opacity: 0;
  }
}

.aff-program-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.aff-program-card-head h3 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: #e4e9eb;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.aff-program-price {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #4db4ff;
  text-align: right;
  white-space: nowrap;
}

.aff-program-price-note {
  color: #6a8caf;
  font-weight: 700;
}

.aff-program-desc {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 22px;
  color: #e4e9eb;
  transition: color 0.35s ease;
}

.aff-program-copy {
  max-width: 640px;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #e4e9eb;
  transition: color 0.35s ease;
}

.aff-program-copy > p {
  margin: 0 0 1em;
}

.aff-program-copy-lead {
  margin-bottom: 0.65em;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.aff-program-license-list {
  transition: color 0.35s ease;
  margin: 0;
  padding-left: 1.5em;
  list-style-position: outside;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.aff-program-license-list li {
  margin: 0 0 0.35em;
  padding-left: 0.15em;
}

.aff-program-license-list li:last-child {
  margin-bottom: 0;
}

.team-intro .team-filters {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  margin-left: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 0;
  padding-right: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 16px;
  overflow-x: visible;
}

.team-intro .team-filters .chip {
  font-size: clamp(12px, 2.85vw, 15px);
  letter-spacing: 0.45px;
  padding: 6px 11px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.team-intro .team-filters .chip:first-child {
  background: transparent;
  color: var(--text-main);
}

.team-intro .team-filters .chip.is-active {
  background: var(--accent);
  color: #000;
}

.aff-faculty-empty {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
}

.aff-faculty-cards {
  padding-bottom: 0;
  background: linear-gradient(180deg, #10263f, #090f19);
}

.aff-faculty-gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.aff-faculty-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.team-cards .team-grid.aff-faculty-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
}

.team-cards .team-grid.aff-faculty-gallery .card {
  flex: 0 0 auto;
  width: min(280px, 85vw);
  min-width: 240px;
  max-width: 320px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.team-grid.aff-faculty-gallery .card .card-content {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transform: translateY(1.75rem);
}

.team-grid.aff-faculty-gallery h3.team-instructor-name {
  box-sizing: border-box;
  margin: 0 0 12px;
  width: 100%;
  min-width: 0;
  font-size: 20px;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.12;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: calc(3 * 1.12em);
}

.team-grid.aff-faculty-gallery .team-instructor-name__line {
  display: block;
  line-height: 1.12;
  min-height: 1.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-cards .team-grid .card-content p {
  font-size: 16px;
}

.team-grid.aff-faculty-gallery h3.team-instructor-name + p {
  text-transform: uppercase;
}

.team-cards .team-grid .card-image--photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Команда (AFF / главная): затемнение поверх фото + текст чуть ниже */
.team-cards .team-grid.aff-faculty-gallery .card::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.58) 42%,
    rgba(0, 0, 0, 0.86) 100%
  );
  z-index: 1;
}

.team-cards .team-grid.aff-faculty-gallery .card-image {
  z-index: 0;
}

.cert-delivery.section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.68) 50%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    url("assets/Sertificates/Dostavka.webp") center / cover no-repeat;
  border-top: 1px solid #ffffff0d;
}

.cert-delivery.section .cert-delivery-box {
  z-index: 2;
}

.cert-delivery-box {
  max-width: 1132px;
  padding: 0;
  background: transparent;
  border: 0;
}

.cert-delivery-box h2 {
  margin-bottom: 32px;
  color: rgba(77, 180, 255, 1);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.cert-delivery-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.cert-delivery-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid #ffffff1a;
}

.cert-delivery-item:first-child {
  border-top: 0;
}

.cert-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(77, 180, 255, 1);
  color: rgba(0, 0, 0, 1);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.cert-delivery-item h3 {
  margin: 0 0 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cert-delivery-item p {
  margin: 0;
  color: #99a1af;
  font-size: 18px;
  line-height: 22px;
}

.cert-faq.section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    url("assets/Sertificates/FAQ.webp") center / cover no-repeat;
  border-top: 1px solid #ffffff0d;
}

.cert-faq.section .cert-faq-box {
  z-index: 2;
}

.cert-faq-box {
  max-width: 1132px;
  padding: 40px;
  background: #171717a1;
  border: 1px solid #ffffff1a;
}

.cert-faq-box h2 {
  margin: 0 0 32px;
  color: #4db4ff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.cert-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-faq-item {
  border-top: 1px solid #ffffff1a;
}

.cert-faq-item:first-child {
  border-top: 0;
}

.cert-faq-trigger {
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  text-align: left;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.25s ease;
}

.cert-faq-trigger:hover {
  color: #e8eef5;
}

.cert-faq-icon {
  color: #c4c4c4;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  flex: 0 0 auto;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-faq-item.is-open .cert-faq-icon {
  transform: rotate(180deg);
}

.cert-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-faq-item.is-open .cert-faq-panel {
  grid-template-rows: 1fr;
}

.cert-faq-panel-inner {
  overflow: hidden;
  min-height: 0;
  max-width: 70%;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-faq-item.is-open .cert-faq-panel-inner {
  opacity: 1;
  transform: translateY(0);
}

.cert-faq-panel p {
  margin: 0;
  padding-bottom: 20px;
  color: #99a1af;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .cert-faq-trigger {
    transition: none;
  }

  .cert-faq-icon {
    transition: none;
  }

  .cert-faq-panel {
    transition: none;
  }

  .cert-faq-panel-inner {
    transition: none;
  }

  .cert-faq-item.is-open .cert-faq-panel-inner {
    opacity: 1;
    transform: none;
  }

  .cert-faq-item:not(.is-open) .cert-faq-panel-inner {
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "burger logo tools";
    grid-template-rows: minmax(56px, auto);
    align-items: center;
    gap: 12px 22px;
    position: relative;
    min-height: 72px;
  }

  .site-nav-left {
    display: none;
  }

  .site-nav-mobile-hide {
    display: none !important;
  }

  .brand-logo {
    grid-area: logo;
    justify-self: center;
    display: flex;
    justify-content: center;
  }

  .site-nav-right {
    grid-area: tools;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
  }

  .menu-toggle {
    grid-area: burger;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    color: var(--accent);
    border-color: rgba(77, 180, 255, 0.45);
    outline: none;
  }

  .menu-toggle-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
    height: 14px;
    flex-shrink: 0;
  }

  .menu-toggle-line {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav-mobile {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #10131af2;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 28px;
    gap: 0;
    box-sizing: border-box;
  }

  .site-nav-mobile.is-open {
    display: flex;
  }

  .site-nav-mobile a {
    font-size: clamp(15px, 4vw, 17px);
    padding: 12px 14px;
  }

  .team-grid:not(.aff-faculty-gallery) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infra-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Нечётное число превью в 2 колонках: последняя строка без пустой половины */
  .showcase-track .video-thumb:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .news-grid .card-content {
    width: 100%;
  }

  .hero-decor {
    display: none;
  }

  .team-cards {
    padding-bottom: 40px;
  }

  .tandem-cards-grid,
  .tandem-steps-grid,
  .tandem-gear-grid {
    grid-template-columns: 1fr;
  }

  .tandem-steps-grid {
    margin-top: 40px;
  }

  .tandem-steps .tandem-step-card {
    min-height: 0;
  }

  .tandem-step-card-inner {
    min-height: 360px;
  }

  .tandem-step-idle {
    display: none;
  }

  .tandem-step-expanded {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    gap: 24px;
    min-height: 0;
    padding: 48px 24px 40px;
    opacity: 1;
    pointer-events: auto;
  }

  .tandem-steps .tandem-steps-grid .tandem-step-card::before {
    background: rgba(0, 0, 0, 0.65);
  }

  .tandem-steps .tandem-steps-grid .tandem-step-card:hover::before,
  .tandem-steps .tandem-steps-grid .tandem-step-card:focus-within::before {
    background: rgba(0, 0, 0, 0.65);
  }

  .tandem-steps .tandem-step-card + .tandem-step-card {
    border-left: none;
    border-top: 1px solid #ffffff1a;
  }

  .tandem-steps .tandem-step-header h3 {
    font-size: 32px;
  }

  .tandem-steps .tandem-steps-grid .tandem-step-expanded__head h3 {
    font-size: 28px;
    line-height: 34px;
  }

  .tandem-step-expanded__index {
    font-size: 40px;
    line-height: 34px;
  }

  .tandem-infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aff-program-row {
    grid-template-columns: 1fr;
  }

  .aff-program-card {
    min-height: auto;
    padding: 40px 28px;
  }

  .aff-program-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .aff-program-price {
    text-align: left;
  }

  .cert-faq-box {
    padding: 28px;
  }

  .cert-delivery-box {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sport-infra-inner {
    grid-template-columns: 1fr;
  }

  .sport-infra-copy {
    padding: 40px 28px;
  }

  .sport-infra-media {
    min-height: 220px;
  }

  .sport-rigger-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sport-rigger-table {
    justify-self: stretch;
    max-width: none;
  }

  .sport-rigger-copy h2 {
    font-size: 36px;
  }

  .sport-rigger-row {
    padding: 10px 0;
  }

  .sport-event-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sport-event-btn {
    width: 100%;
  }

  .sport-events-head h2 {
    font-size: 36px;
  }

  /* Страница «Тандем»: hero, тарифы, блоки */
  .tandem-page .tandem-hero {
    min-height: var(--hero-md-min-height);
    padding: var(--hero-md-padding);
  }

  .tandem-page .tandem-hero-inner {
    padding-top: var(--hero-md-inner-pad-block);
    padding-bottom: var(--hero-md-inner-pad-block);
  }

  .tandem-page .tandem-hero-inner h1 {
    font-size: clamp(38px, 7.5vw, 60px);
    line-height: 1.06;
    text-align: center;
  }

  .sport-page .sport-hero-inner h1 {
    font-size: clamp(54px, 9vw, 96px);
    line-height: 1.0416666667;
    text-align: center;
  }

  .sport-page .sport-hero-inner .sport-hero-title-light {
    font-size: clamp(54px, 9vw, 96px);
  }

  .tandem-page .tandem-lead {
    margin: 28px auto 0;
    padding: 0 12px;
    font-size: 17px;
    line-height: 22px;
  }

  .tandem-page .tandem-offers .offer-desc {
    min-height: 0;
  }

  .tandem-page .tandem-card {
    min-height: 0;
  }

  .tandem-page .tandem-steps h2 {
    font-size: clamp(28px, 5vw, 42px);
    padding-inline: 12px;
    line-height: 34px;
  }

  .tandem-page .tandem-gear h2,
  .tandem-page .tandem-infrastructure h2 {
    font-size: clamp(28px, 5vw, 42px);
    padding-inline: 12px;
  }

  .tandem-page .tandem-steps-subtitle {
    padding-inline: 16px;
  }

  .tandem-page .tandem-steps .container {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .tandem-page .tandem-gear .container {
    padding-inline: 0;
    box-sizing: border-box;
  }

  .tandem-page .tandem-steps .tandem-step-card:nth-child(2) .tandem-step-card-inner {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  /* Сетка тарифов до краёв экрана (без горизонтальных 16px у full-bleed) */
  .tandem-page .tandem-offers .full-bleed.tandem-cards-grid {
    padding-inline: 0;
    box-sizing: border-box;
  }

  .tandem-page .tandem-gear .tandem-step-card {
    min-height: min(520px, 72vh);
  }

  .tandem-page .tandem-infrastructure .container {
    padding-top: 56px;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .tandem-page .tandem-infrastructure .tandem-step-card {
    min-height: 0;
  }

  /* Страница «Сертификаты» */
  .certificates-page .cert-hero {
    min-height: var(--hero-md-min-height);
    padding: var(--hero-md-padding);
  }

  .certificates-page .cert-hero-inner {
    padding-inline: 12px;
    padding-block: clamp(20px, 4vh, 48px);
    box-sizing: border-box;
  }

  .certificates-page .cert-hero-inner h1 {
    font-size: clamp(54px, 9vw, 96px);
    line-height: 1.0416666667;
  }

  .certificates-page .cert-hero-inner .cert-hero-title-light,
  .certificates-page .cert-hero-inner .cert-hero-title-accent {
    font-size: clamp(54px, 9vw, 96px);
  }

  .certificates-page .cert-hero-inner .cert-hero-title-accent {
    margin-top: 0.06em;
  }

  .certificates-page .cert-lead {
    margin: 28px auto 0;
    padding: 0 12px;
    font-size: 16px;
    line-height: 22px;
  }

  .certificates-page .cert-offers .full-bleed.tandem-cards-grid {
    padding-inline: 0;
    box-sizing: border-box;
  }

  .certificates-page .cert-offers .offer-desc {
    min-height: 0;
  }

  .certificates-page .cert-offers .tandem-card {
    min-height: 0;
  }

  .certificates-page .cert-infra .container {
    padding-inline: 0;
    box-sizing: border-box;
  }

  .certificates-page .cert-infra .container > h2 {
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .certificates-page .cert-infra .tandem-step-card {
    min-height: 0;
  }

  /* Hero с видео/фоном: AFF, Спорт — как тандем/сертификаты */
  .aff-hero,
  .sport-hero {
    min-height: var(--hero-md-min-height);
    padding: var(--hero-md-padding);
  }

  .aff-hero-inner {
    padding-top: var(--hero-md-inner-pad-block);
    padding-bottom: var(--hero-md-inner-pad-block);
  }

  .sport-hero-inner {
    padding-top: var(--hero-md-inner-pad-block);
    padding-bottom: var(--hero-md-inner-pad-block);
  }

  .shop-hero {
    min-height: var(--hero-md-min-height);
    padding: 48px 16px 64px;
  }

  .shop-hero-inner {
    padding-top: var(--hero-md-inner-pad-block);
    padding-bottom: var(--hero-md-inner-pad-block);
  }
}

/* ЛК — планшет: герой, вкладки, сетки без горизонтального клэша */
@media (max-width: 1024px) {
  .account-hero {
    min-height: 0;
    height: auto;
    padding: 112px 0 72px;
  }

  .account-hero-inner {
    align-items: stretch;
  }

  .account-hero-profile {
    flex: none;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .account-hero-meta {
    justify-content: center;
  }

  .account-hero-logout-wrap,
  .account-hero-logout-inner {
    width: 100%;
    min-height: 0;
    justify-content: center;
  }

  .account-hero-stats {
    flex: none;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .account-hero-stat {
    flex: 0 1 200px;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 132px;
  }

  .account-workspace-inner {
    padding: 0 0 72px;
  }

  .account-tablist {
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 56px;
    max-width: none;
    min-height: 48px;
    padding-bottom: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .account-tablist [role="tab"] {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .account-overview-mock,
  .account-cert-mock {
    gap: 56px;
  }

  .account-materials-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 8px;
    min-height: 0;
    width: 100%;
  }

  .account-materials-module {
    min-width: 0;
    width: auto;
    min-height: 200px;
    padding: 36px 28px;
  }

  .account-materials-dual {
    flex-direction: column;
  }

  .account-materials-panel {
    flex: 1 1 100%;
    min-width: 0;
  }

  .account-shop-orders-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-shop-recent {
    max-width: 100%;
  }

  .account-cert-grid {
    flex-direction: column;
  }

  .account-cert-card {
    flex-wrap: wrap;
    min-width: 0;
  }

  .account-progress-copy {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .showcase-track,
  .team-grid:not(.aff-faculty-gallery),
  .kpi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-grid > .card {
    flex: 1 1 100%;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #99a1af;
  }

  .kpi-grid .stat:last-child {
    border-bottom: none;
  }

  .map-box {
    min-height: min(620px, 85vh);
  }

  .map-embed {
    min-height: min(620px, 85vh);
  }

  .map-top-overlay {
    padding: 12px;
  }

  .map-nav-icon {
    width: 184px;
    height: 96px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
  }

  .btn-row.aff-hero-btns {
    padding-bottom: 0;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 100%;
  }

  .cta .btn-primary {
    width: 100%;
  }

  /* Единый hero (мобильные): главная, тандем, сертификаты, AFF, спорт, магазин */
  body[data-page="home"] .hero,
  .tandem-page .tandem-hero,
  .cert-hero,
  .aff-hero,
  .sport-hero,
  .shop-hero {
    min-height: var(--hero-sm-min-height);
    padding: var(--hero-sm-padding);
  }

  .shop-hero {
    padding: 32px 16px 48px;
  }

  .aff-page .aff-hero {
    min-height: min(725px, 92vh);
  }

  .sport-page .sport-hero {
    min-height: min(725px, 92vh);
  }

  .news-heading,
  .cta,
  .site-footer {
    min-height: auto;
  }

  .tandem-card {
    min-height: auto;
    padding: 20px 24px 40px;
  }

  .tandem-step-card {
    min-height: auto;
    padding: 40px 24px 40px;
  }

  .tandem-steps .tandem-step-card {
    padding: 0;
  }

  .tandem-steps .tandem-step-expanded {
    padding: 0 20px;
  }

  .offer-btn-standard,
  .offer-btn-featured {
    width: 100%;
    max-width: none;
  }

  .tandem-steps.section {
    padding: 48px 0 0;
  }

  .tandem-gear.section {
    padding: 48px 0 0;
  }

  .tandem-infrastructure.section {
    padding: 48px 0;
  }

  .tandem-page .tandem-infrastructure.section {
    padding: 56px 0;
  }

  .tandem-infra-grid {
    grid-template-columns: 1fr;
  }

  .cert-infra .tandem-infra-grid {
    grid-template-columns: 1fr;
  }

  .tandem-page .tandem-hero-inner {
    padding-top: var(--hero-sm-inner-pad-block);
    padding-bottom: var(--hero-sm-inner-pad-block);
  }

  .cert-hero-inner {
    padding-block: clamp(16px, 3vh, 36px);
  }

  .certificates-page .cert-hero-inner {
    padding-block: clamp(16px, 3vh, 36px);
  }

  .certificates-page .cert-hero {
    min-height: 725px;
  }

  .certificates-page .cert-hero-media {
    height: 725px;
  }

  .tandem-page .tandem-hero {
    min-height: 725px;
  }

  .tandem-page .tandem-hero-media {
    height: 725px;
  }

  .tandem-page .tandem-hero-inner h1 {
    font-size: clamp(32px, 9.5vw, 48px);
  }

  .tandem-page .tandem-lead {
    font-size: 16px;
    margin-top: 20px;
    line-height: 22px;
  }

  .tandem-page .tandem-card h3 {
    font-size: clamp(17px, 4.2vw, 22px);
  }

  .tandem-page .tandem-card h3.offer-title {
    font-size: 28px;
    line-height: 34px;
  }

  .tandem-page .tandem-card .tandem-price {
    font-size: 28px !important;
    padding-bottom: 28px;
    margin-bottom: 24px;
  }

  .tandem-page .tandem-card li {
    font-size: 16px;
  }

  .tandem-page .tandem-gear .tandem-step-card {
    min-height: 400px;
  }

  .tandem-page .tandem-infrastructure .container {
    padding-top: 0;
    padding-inline: 0;
    padding-bottom: 8px;
  }

  .tandem-page .tandem-steps.section {
    padding-top: 56px;
  }

  .tandem-page .tandem-gear.section {
    padding-top: 40px;
  }

  .cert-hero-inner h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.0416666667;
  }

  .certificates-page .cert-hero-inner h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .certificates-page .cert-hero-inner .cert-hero-title-light,
  .certificates-page .cert-hero-inner .cert-hero-title-accent {
    font-size: clamp(36px, 11vw, 54px);
  }

  .certificates-page .cert-hero-inner .cert-overline {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 0 8px;
    line-height: 1.35;
  }

  .cert-lead {
    font-size: 16px;
    line-height: 22px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .sport-page .sport-hero-inner h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.0416666667;
  }

  .sport-page .sport-hero-inner .sport-hero-title-light {
    font-size: clamp(36px, 11vw, 54px);
  }

  .sport-page .sport-overline {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 0 8px;
    line-height: 1.35;
  }

  .sport-page .sport-hero-inner .lead.sport-lead {
    font-size: 16px;
    line-height: 22px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .aff-hero-inner,
  .sport-hero-inner,
  .shop-hero-inner {
    padding-top: var(--hero-sm-inner-pad-block);
    padding-bottom: var(--hero-sm-inner-pad-block);
  }

  .aff-page .aff-hero-title {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.0416666667;
  }

  .aff-page .aff-overline {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 0 8px;
    line-height: 1.35;
  }

  .aff-page .lead.aff-lead {
    font-size: 16px;
    line-height: 22px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .shop-catalog {
    --shop-pad-x: 20px;
    padding: 40px 0 48px;
  }

  .shop-grid-shell {
    padding: 0 16px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-card-hit {
    aspect-ratio: auto;
    min-height: auto;
    overflow: visible;
  }

  .shop-card-media {
    flex: 0 0 auto;
    min-height: 220px;
  }

  .shop-card-panel {
    flex: 0 0 auto;
    min-height: auto;
    padding: 24px 24px 28px;
  }

  .shop-card-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .shop-card-desc {
    font-size: 14px;
  }

  .shop-card-buy {
    padding-top: 24px;
  }

  .sport-events {
    padding: 48px 20px 56px;
  }

  .sport-events-head h2 {
    font-size: 28px;
  }

  .aff-program {
    padding: 48px 0 0;
  }

  .aff-program-heading {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .aff-program-card-head h3 {
    font-size: 28px;
  }

  .aff-program-price {
    font-size: 28px;
  }

  .cert-btn-row {
    margin-bottom: 40px;
  }

  .cert-delivery.section,
  .cert-faq.section {
    padding: 48px 0;
  }

  .cert-delivery-box {
    padding: 0;
  }

  .cert-faq-box {
    padding: 24px;
  }

  .cert-delivery-box h2,
  .cert-faq-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .cert-delivery-item {
    gap: 14px;
    padding: 18px 0;
  }

  .cert-delivery-item p {
    font-size: 16px;
  }

  .cert-faq-trigger {
    min-height: 60px;
    font-size: 18px;
    padding: 14px 0;
  }

  .cert-faq-icon {
    font-size: 18px;
  }

  .cert-faq-panel p {
    font-size: 16px;
  }

  .account-hero {
    height: auto;
    min-height: 0;
    padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 72px));
    padding-bottom: 72px;
  }

  .account-hero-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .account-hero-avatar {
    width: 128px;
    height: 126px;
  }

  .account-hero-profile {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .account-hero-meta {
    justify-content: center;
  }

  .account-hero-logout-wrap,
  .account-hero-logout-inner {
    width: 100%;
    justify-content: center;
  }

  .account-hero-stats {
    flex: none;
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .account-hero-stat {
    flex: 0 1 200px;
    min-width: 0;
    max-width: none;
    width: auto;
    height: auto;
    min-height: 140px;
  }

  .account-hero-name {
    font-size: 26px;
  }

  .account-tablist {
    flex-wrap: nowrap;
    align-items: flex-end;
    min-height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    margin-bottom: 48px;
    max-width: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .account-tablist [role="tab"] {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .account-workspace-inner {
    padding: 0 0 64px;
    width: 100%;
    max-width: none;
  }

  .account-overview-mock {
    gap: 48px;
  }

  .account-progress-head {
    align-items: flex-start;
  }

  .account-panel-title {
    font-size: 18px;
  }

  .account-history-panel {
    padding: 24px 20px;
  }

  .account-history-table th,
  .account-history-table td {
    padding-right: 24px;
    padding-left: 0;
  }

  .account-history-table th:last-child,
  .account-history-table td:last-child {
    padding-left: 16px;
  }

  .account-history-btn {
    padding: 10px 20px;
    font-size: 11px;
  }

  .account-history-table {
    min-width: 560px;
  }

  .account-history-mobile {
    display: block;
  }

  .account-history-table-wrap {
    display: none;
  }

  .account-history-title {
    margin-bottom: 16px;
  }

  .account-cert-mock {
    gap: 48px;
  }

  .account-cert-activate-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .account-cert-activate-title {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .account-cert-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .account-cert-input {
    width: 100%;
  }

  .account-cert-submit {
    min-width: 0;
    width: 100%;
  }

  .account-cert-card {
    flex-wrap: wrap;
    padding: 24px 20px;
  }

  .account-cert-card-aside {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .account-materials-mock {
    gap: 24px;
  }

  .account-materials-theory-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .account-materials-theory-copy {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .account-materials-theory-title {
    text-align: center;
  }

  .account-materials-theory-sub {
    text-align: center;
  }

  .account-materials-download-all {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .account-materials-modules {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-materials-module {
    min-height: 180px;
    padding: 32px 24px;
  }

  .account-shop-orders-heading {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .account-shop-orders-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .account-shop-orders-divider {
    display: none;
  }

  /* ЛК — заказы в магазине: таблица → карточки (без горизонтального скролла) */
  /* На всю ширину экрана: выходим из полей .container (calc(100% − 32px)) без 100vw */
  body[data-page="account"] .account-shop-orders {
    gap: 24px;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  body[data-page="account"] .account-shop-orders-split {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    min-width: 0;
    width: 100%;
  }

  body[data-page="account"] .account-shop-table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
  }

  body[data-page="account"] .account-shop-table {
    display: block;
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    border-spacing: 0;
    box-sizing: border-box;
  }

  body[data-page="account"] .account-shop-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body[data-page="account"] .account-shop-table tbody {
    display: block;
  }

  body[data-page="account"] .account-shop-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border-radius: 2px;
    max-width: 100%;
  }

  body[data-page="account"] .account-shop-table tbody tr:last-child {
    margin-bottom: 0;
  }

  body[data-page="account"] .account-shop-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    min-width: 0;
    box-sizing: border-box;
    margin-left: 16px;
    margin-right: 16px;
    padding: 12px 14px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-page="account"] .account-shop-table tbody td > * {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
  }

  body[data-page="account"] .account-shop-table tbody td:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px 2px 0 0;
  }

  body[data-page="account"] .account-shop-table tbody td:last-child {
    border-radius: 0 0 2px 2px;
  }

  body[data-page="account"] .account-shop-table tbody td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    max-width: 42%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
    padding-top: 2px;
  }

  body[data-page="account"] .account-shop-table tbody td:not([data-label])::before {
    content: none;
  }

  body[data-page="account"] .account-shop-table tbody .account-shop-table-sum {
    text-align: right;
    font-size: 16px !important;
  }

  body[data-page="account"] .account-shop-recent-top {
    padding-left: 0;
    padding-right: 0;
  }

  body[data-page="account"] .account-shop-recent-label-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  body[data-page="account"] .account-shop-recent-id,
  body[data-page="account"] .account-shop-recent-date {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 16px;
    margin-right: 16px;
  }

  body[data-page="account"] .account-shop-recent-lines,
  body[data-page="account"] .account-shop-recent-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  body[data-page="account"] .account-shop-recent-lines {
    margin-left: 16px;
    margin-right: 16px;
  }

  .account-shop-recent-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body[data-page="account"] .account-shop-detail-btn {
    align-self: stretch;
    text-align: center;
    padding: 12px 8px 10px;
    min-height: 44px;
    box-sizing: border-box;
    border-bottom-width: 2px;
  }
}

/* ——— Личный кабинет ——— */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-page {
  min-height: 60vh;
  background: #06070b;
}

/* ЛК герой — цвета как в макете Pencil (TUZPY / BjePh) */
.account-hero {
  box-sizing: border-box;
  min-height: 424px;
  height: auto;
  padding: 50px 0 50px;
  display: block;
  overflow: visible;
  background-color: #00132c;
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.55)),
    linear-gradient(180deg, rgba(0, 19, 44, 0.35) 0%, rgba(0, 19, 44, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-hero-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: min(1265px, 100%);
  margin: 0 auto;
  min-height: 0;
}

.account-hero-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 0;
  margin-left: 16px;
  margin-right: 16px;
}

@media (min-width: 1025px) {
  .account-hero-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .account-hero-name {
    text-align: left;
  }
}

.account-hero-avatar {
  flex-shrink: 0;
  width: 174px;
  height: 172px;
  box-sizing: border-box;
  border: 2px solid #4db4ff;
  background-color: rgba(26, 29, 34, 0.85);
  background-size: cover;
  background-position: center;
}

.account-hero-profile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 260px;
  width: 324px;
  max-width: 100%;
  min-width: 0;
}

.account-hero-name {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.account-hero-email {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3333;
  color: #99a1af;
}

.account-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 3.5px;
}

.account-hero-rank {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.111;
  color: var(--accent);
}

.account-hero-meta-sep {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-hero-jumps {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.111;
  color: #99a1af;
}

.account-hero-logout-wrap {
  width: 100px;
  min-height: 60px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.account-hero-logout-inner {
  width: 100px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.account-hero-logout {
  box-sizing: border-box;
  width: 100px;
  height: 28px;
  padding: 0 16px;
  margin: 0;
  border: none;
  border-radius: 40px;
  background: #fff;
  color: #fb2c36;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.333333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-hero-logout:hover {
  filter: brightness(0.97);
}

.account-hero-logout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex: none;
  width: 100%;
  margin-left: 0;
  min-width: 0;
}

.account-hero-stat {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 1 200px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 140px;
  height: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1019607843);
  text-align: center;
}

@media (min-width: 769px) {
  .account-hero-stats {
    justify-content: flex-end;
    flex: 1 1 280px;
    width: auto;
    margin-left: auto;
  }

  .account-hero-stat {
    flex: 0 1 170px;
    width: 170px;
    max-width: 100%;
  }
}

.account-hero-stat-value {
  font-family: "Russo One", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.account-hero-stat-label {
  margin-top: 0;
  padding: 0 11.92px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #6a7282;
}

.account-workspace {
  background-color: #00132c;
}

.account-workspace-inner {
  width: min(1265px, 100%);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.account-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  max-width: 1216px;
  margin: 25px 0 80px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-tablist [role="tab"] {
  margin: 0 0 -1px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #c4c4c4;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.account-tablist [role="tab"]:hover {
  color: var(--text-main);
}

.account-tablist [role="tab"][aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

.account-tabpanel {
  animation: account-fade 0.2s ease;
}

@keyframes account-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.account-overview-mock {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1265px;
}

.account-progress-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 20px 16px;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid transparent;
  box-sizing: border-box;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

@media (min-width: 769px) {
  .account-progress-card {
    gap: 20px;
    min-height: 240px;
    padding: 32px 40px;
  }
}

.account-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.account-progress-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-progress-sub {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.account-progress-percent {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
  flex-shrink: 0;
}

.account-progress-track {
  position: relative;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.account-progress-track .account-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.account-achievements-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-achievements-heading {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-achievements-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 0;
  width: 100%;
  gap: 1px;
}

.account-achievement-cell {
  flex: 1 1 calc(50% - 1px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  box-sizing: border-box;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid transparent;
  text-align: center;
}

@media (min-width: 769px) {
  .account-achievements-row {
    flex-wrap: nowrap;
    min-height: 300px;
    gap: 0;
  }

  .account-achievement-cell {
    flex: 1 1 0;
    padding: 24px 16px;
  }
}

.account-achievement-cell--shadow {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.account-achievement-cell--bordered {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.account-achievement-icon {
  font-family: Inter, sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.111;
  color: #e4e9eb;
}

.account-achievement-label {
  margin: 0;
  max-width: 242px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4286;
  color: #fff;
}

.account-achievement-cell--locked {
  opacity: 0.38;
  filter: grayscale(0.88);
}

.account-achievement-cell--unlocked {
  opacity: 1;
  filter: none;
}

.account-panel-card {
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px 32px;
}

.account-panel-card--wide {
  max-width: 100%;
}

.account-panel-title {
  margin: 0 0 8px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.account-panel-lead {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
}

.account-panel-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.account-history-panel {
  max-width: 1265px;
  padding: 40px;
  box-sizing: border-box;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-history-title {
  margin: 0 0 44px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-history-mobile-hint {
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #99a1af;
}

.account-history-mobile-choose {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.account-history-select-label {
  display: block;
  margin: 0 0 10px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #d4e3ff;
}

.account-history-detail-heading {
  margin: 0 0 14px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.account-history-select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 12px 40px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2399a1af' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.account-history-mobile-choose .account-history-select {
  margin-bottom: 0;
}

.account-history-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-history-mobile-detail {
  padding: 18px 16px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-history-mobile-dl {
  margin: 0;
  padding: 0;
}

.account-history-mobile-dl-row {
  display: grid;
  grid-template-columns: minmax(0, 110px) 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-history-mobile-dl-row:last-of-type {
  border-bottom: none;
}

.account-history-mobile-dl dt {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99a1af;
}

.account-history-mobile-dl dd {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.account-history-video-caption {
  margin: 0 0 10px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99a1af;
}

.account-history-mobile-video {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-history-mobile-video-inner {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  .account-history-mobile {
    display: none;
  }
}

.account-history-table-wrap {
  overflow-x: auto;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.account-history-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.account-history-table th {
  text-align: left;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
  padding: 0 80px 0 0;
  vertical-align: top;
}

.account-history-table th:last-child {
  padding-right: 0;
  padding-left: 280px;
}

.account-history-table td {
  padding: 30px 80px 0 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #fff;
  vertical-align: top;
}

.account-history-table td:last-child {
  padding-right: 0;
  padding-left: 280px;
}

.account-history-table tbody tr:first-child td {
  padding-top: 30px;
}

.account-history-btn {
  box-sizing: border-box;
  min-width: 103px;
  padding: 11.5px 32px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 2;
  cursor: pointer;
  text-align: center;
}

.account-history-btn:hover {
  background: rgba(77, 180, 255, 0.12);
}

.account-history-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.account-tag--ok {
  background: rgba(77, 180, 255, 0.15);
  color: var(--accent);
}

.account-tag--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.account-cert-mock {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1265px;
}

.account-cert-activate-card {
  box-sizing: border-box;
  min-height: 240px;
  padding: 40px;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-cert-activate-title {
  margin: 0 0 40px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-cert-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.account-cert-input {
  box-sizing: border-box;
  width: 415px;
  max-width: 100%;
  height: 50px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background: #181517;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
}

.account-cert-input::placeholder {
  color: #99a1af;
}

.account-cert-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-cert-submit {
  box-sizing: border-box;
  min-width: 289px;
  height: 50px;
  padding: 14px 34px;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14.7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4286;
  cursor: pointer;
}

.account-cert-submit:hover {
  filter: brightness(1.06);
}

.account-cert-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.account-cert-owned-title {
  margin: 0 0 20px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

.account-cert-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 300px;
  min-width: min(100%, 280px);
  padding: 40px;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-cert-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 61px;
  min-height: 81px;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 0.5;
  color: #99a1af;
}

.account-cert-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.account-cert-card-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.account-cert-card-title--demi {
  font-weight: 600;
}

.account-cert-card-code {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-cert-card-aside {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  align-items: flex-start;
}

.account-cert-badge {
  display: inline-block;
  padding: 10px;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
}

.account-cert-badge--active {
  background: rgba(0, 201, 83, 0.2);
  color: #00e55f;
}

.account-cert-badge--used {
  background: rgba(201, 0, 0, 0.2);
  color: #e50000;
}

.account-cert-card-exp {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-materials-mock {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1265px;
}

.account-materials-theory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
}

.account-materials-theory-title {
  margin: 0;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-materials-theory-sub {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-materials-download-all {
  box-sizing: border-box;
  min-width: 200px;
  width: 318px;
  max-width: 100%;
  height: 48px;
  padding: 11.5px 32px 12.5px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4286;
  text-transform: uppercase;
  cursor: pointer;
}

.account-materials-download-all:hover {
  background: rgba(77, 180, 255, 0.12);
}

.account-materials-download-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-materials-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: 100%;
  min-height: 240px;
  align-items: stretch;
  box-sizing: border-box;
}

.account-materials-module {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1 1 calc(25% - 1px);
  min-width: min(200px, 100%);
  min-height: 220px;
  padding: 40px 20px;
  margin: 0;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-materials-module-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.account-materials-module-label {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-materials-module-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.account-materials-module-meta {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4286;
  color: #99a1af;
}

.account-materials-module-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  padding: 10px;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.account-materials-module-status--empty {
  visibility: hidden;
}

.account-materials-module-lock {
  font-size: 24px;
  line-height: 0.833;
}

.account-materials-dual {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: 100%;
}

.account-materials-panel {
  box-sizing: border-box;
  flex: 1 1 calc(50% - 1px);
  min-width: min(100%, 300px);
  padding: 40px;
  background: rgba(49, 43, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-materials-panel-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.account-materials-panel-head--checklist {
  align-items: center;
}

.account-materials-weather-icon {
  flex-shrink: 0;
  width: 68px;
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 0.778;
  color: #fff;
  text-align: center;
}

.account-materials-checklist-icon {
  flex-shrink: 0;
  width: 68px;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.account-materials-panel-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.account-materials-weather-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.account-materials-weather-list > li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.account-materials-weather-list > li + li {
  margin-top: 36px;
}

.account-materials-temp {
  flex-shrink: 0;
  width: 68px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--accent);
}

.account-materials-weather-desc {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #99a1af;
}

.account-materials-checklist-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.account-materials-checklist-list > li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.account-materials-checklist-list > li + li {
  margin-top: 10px;
}

.account-materials-checklist-dash {
  flex-shrink: 0;
  width: 68px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--accent);
  text-align: center;
}

.account-materials-checklist-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #99a1af;
}

/* ЛК — заказы в магазине (макет Pencil «Заказы в магазине») */
.account-shop-orders {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1265px;
}

.account-shop-orders-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.account-shop-orders-heading {
  margin: 0;
  flex: 0 1 auto;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e3ff;
}

.account-shop-orders-divider {
  flex: 1 1 80px;
  height: 1px;
  min-width: 32px;
  background: rgba(255, 255, 255, 0.1);
}

.account-shop-orders-all {
  flex-shrink: 0;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: opacity 0.15s ease;
}

.account-shop-orders-all:hover {
  opacity: 0.85;
}

.account-shop-orders-split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.account-shop-recent {
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  background: #05203e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.account-shop-recent-top {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-shop-recent-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-shop-recent-kicker {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.account-shop-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  background: rgba(149, 204, 255, 0.1);
}

.account-shop-recent-id {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.56;
  color: #d4e3ff;
}

.account-shop-recent-date {
  margin: 4px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  color: rgba(255, 255, 255, 0.4);
}

.account-shop-recent-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.account-shop-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.account-shop-line-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-shop-line-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-shop-line-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.02em;
  color: #d4e3ff;
}

.account-shop-line-sub {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.account-shop-recent-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.account-shop-recent-total {
  margin: 0;
}

.account-shop-recent-total-value {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.56;
  color: #fff;
}

.account-shop-detail-btn {
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(149, 204, 255, 0.3);
  background: none;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.account-shop-detail-btn:hover {
  opacity: 0.9;
  border-bottom-color: var(--accent);
}

.account-shop-detail-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.account-shop-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account-shop-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-family: Montserrat, sans-serif;
}

.account-shop-table thead tr {
  height: 31px;
}

.account-shop-table th {
  padding: 8px 16px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(255, 255, 255, 0.3);
  vertical-align: bottom;
}

.account-shop-table-th-sum {
  text-align: right;
}

.account-shop-table tbody td {
  padding: 18px 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  color: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-shop-table tbody td:first-child {
  border-radius: 2px 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #d4e3ff;
}

.account-shop-order-id,
.account-shop-order-items {
  display: block;
}

.account-shop-order-items {
  margin-top: 4px;
  max-width: 340px;
  color: rgba(232, 239, 242, 0.62);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.account-shop-table tbody td:last-child {
  border-radius: 0 2px 2px 0;
}

.account-shop-table-sum {
  text-align: right;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #d4e3ff !important;
}

.account-shop-table-row--muted {
  opacity: 0.7;
}

.account-shop-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

.account-shop-status--accent {
  color: var(--accent);
}

/* ЛК мобильный вид — макет Pencil (TUZPY): фон #00132c, полоса вкладок, типографика */
@media (max-width: 768px) {
  body[data-page="account"] {
    overflow-x: clip;
  }

  /* Чтобы grid/flex не раздували ширину и не резались у body overflow-x: clip */
  body[data-page="account"] .account-page,
  body[data-page="account"] .account-workspace,
  body[data-page="account"] .account-workspace-inner {
    min-width: 0;
  }

  /* Без 100vw/calc(50%−50vw) — из‑за scrollbar даёт сдвиг влево (−5px) и «прилипание» */
  body[data-page="account"] .account-tablist {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 25px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 48px;
    min-height: 56px;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    scroll-padding-inline: 20px;
  }

  body[data-page="account"] .account-tablist [role="tab"] {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0 14px;
    border-bottom-width: 3px;
    color: rgba(255, 255, 255, 0.45);
  }

  body[data-page="account"] .account-tablist [role="tab"]:hover {
    color: rgba(255, 255, 255, 0.78);
  }

  body[data-page="account"] .account-tablist [role="tab"][aria-selected="true"] {
    color: #fff;
    border-bottom-color: var(--accent);
  }

  body[data-page="account"] .account-progress-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body[data-page="account"] .account-progress-track {
    height: 6px;
  }

  body[data-page="account"] .account-progress-title {
    color: #d4e3ff;
    font-weight: 700;
  }

  body[data-page="account"] .account-progress-percent {
    color: var(--accent);
  }

  body[data-page="account"] .account-achievements-heading {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4e3ff;
  }

  body[data-page="account"] .account-achievement-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
  }

  body[data-page="account"] .account-hero-stat {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(149, 204, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  }

  body[data-page="account"] .account-hero-avatar {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
    border-color: rgba(149, 204, 255, 0.35);
  }
}

/* ЛК — очень узкие экраны */
@media (max-width: 480px) {
  .account-hero-avatar {
    width: 168px;
    height: 166px;
  }

  .account-hero-name {
    font-size: 22px;
  }

  .account-hero-email,
  .account-hero-rank,
  .account-hero-jumps {
    font-size: 16px;
  }

  .account-hero-stat {
    min-height: 120px;
    padding: 12px;
  }

  .account-hero-stat-value {
    font-size: 26px;
  }

  .account-hero-stat-label {
    font-size: 15px;
  }

  body[data-page="account"] .account-workspace-inner {
    padding: 0 0 40px;
  }

  body[data-page="account"] .account-tablist {
    gap: 16px;
    margin-bottom: 32px;
  }

  .account-achievements-row {
    gap: 8px;
  }

  .account-achievement-cell {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 140px;
    padding: 16px 10px;
  }

  .account-achievement-icon {
    font-size: 28px;
  }

  .account-achievements-heading,
  .account-progress-title {
    font-size: 18px;
  }

  .account-shop-orders-heading {
    font-size: 14px;
    line-height: 1.35;
  }
}

/* ——— Вход в ЛК (модалка в шапке) ——— */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  cursor: pointer;
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: linear-gradient(165deg, #121a28 0%, #0c1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  color: #e8edf5;
  font-family: Montserrat, Arial, sans-serif;
}

.auth-modal__dialog h2 {
  font-family: Montserrat, Arial, sans-serif;
}

.auth-modal__dialog button,
.auth-modal__dialog input,
.auth-modal__dialog select,
.auth-modal__dialog textarea {
  font-family: inherit;
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-modal__title {
  margin: 0 32px 16px 0;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal__tab {
  flex: 1;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-modal__tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.auth-modal__tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-modal__tab:focus-visible {
  outline: 2px solid rgba(120, 170, 255, 0.85);
  outline-offset: 2px;
}

.auth-modal__panel {
  min-height: 0;
}

.auth-modal__oauth {
  margin-bottom: 16px;
}

.auth-modal__oauth[hidden] {
  display: none;
}

.auth-modal__btn-yandex {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #fc3f1d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.auth-modal__btn-yandex:hover {
  filter: brightness(1.06);
}

.auth-modal__btn-yandex:active {
  transform: scale(0.99);
}

.auth-modal__btn-yandex:focus-visible {
  outline: 2px solid rgba(255, 220, 120, 0.95);
  outline-offset: 2px;
}

.auth-modal__btn-yandex-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fff;
  color: #fc3f1d;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.auth-modal__lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.45;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal__label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.auth-modal__input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1rem;
}

.auth-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-modal__submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.auth-modal__link-btn {
  margin-top: 4px;
  align-self: center;
  padding: 10px 8px;
  border: none;
  background: none;
  color: rgba(180, 210, 255, 0.95);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-modal__link-btn:hover {
  color: #fff;
}

.auth-modal__msg {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #7ee0a8;
}

.auth-modal__msg--error {
  color: #ffb4a8;
}

.shop-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}
