/* ==========================================================================
   CSS Variables & Custom Properties
   ========================================================================== */

:root {
  /* === Цвета === */
  --bg-main: #0d0d0d;
  --bg-secondary: #1b1c22;
  --bg-header: linear-gradient(180deg, #16171b, #1c1e24);
  --bg-footer: #16171b;
  --bg-post: rgba(82, 22, 22, .349);
  --bg-post-blur: rgba(169, 59, 59, .18);
  --bg-dropdown: #1a1c21;
  --bg-accordion: #16171b;
  --bg-mobile-menu: #004148;
  
  --color-heading: #ffffff;
  --color-text: #939393;
  --color-text-secondary: #929292;
  --color-text-light: #e6e5e6;
  --color-text-footer: #dddddf;
  --color-accent: #f4d366;
  --color-error: #850101;
  --color-success: #00d09b;
  --color-warning: #ca6d00;
  --color-border: #27292e;
  --color-border-secondary: #2d313b;
  --color-border-table: #00694e;
  --color-border-post: #521616;
  --color-special: #723c0a;
  
  /* === Градиенты === */
  --gradient-banner-text: linear-gradient(180deg, #ffead2 45%, #eda82f 64%);
  --gradient-button-green: -webkit-linear-gradient(270deg, #7ed54f 33%, #005407 83%);
  --gradient-auth-button: linear-gradient(180deg, hsla(0,0%,100%,.12) 48%, hsla(0,0%,100%,0) 0), 
                          linear-gradient(180deg, #ffc786, #c79258 35%, #723c0a 80%) padding-box, 
                          linear-gradient(180deg, #ffead2, #a36022) border-box;
  --gradient-toc: linear-gradient(180deg, #16171b, #1c1e24);
  
  /* === Размеры и отступы === */
  --radius: 14px;
  --radius-small: 5px;
  --radius-medium: 8px;
  --radius-large: 24px;
  --radius-xl: 2em;
  
  --gap: 24px;
  --gap-small: 8px;
  --gap-medium: 1em;
  --gap-large: 2em;
  --gap-xl: 4em;
  
  --padding-small: 4px;
  --padding-medium: 1em;
  --padding-large: 2em;
  --padding-xl: 6vw 9vw;
  
  --margin-section: 4em 15vw;
  --margin-mobile: 4em 10vw;
  --margin-blog: 0 5vw;
  
  /* === Тени === */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-post: 0 0 9px rgba(47, 5, 5, .522);
  --shadow-button: 0 2px 0 #000;
  --shadow-auth: 0 1px 0 0 #000;
  --shadow-header: 0 8px 7px 0 rgba(0, 0, 0, .33);
  --shadow-cta: 0 6px 18px rgba(244, 211, 102, 0.25);
  
  /* === Высоты === */
  --height-header: 68px;
  --height-button: 58px;
  --height-auth: 36px;
  --height-accordion: 48px;
  
  /* === Ширины === */
  --width-logo: 103px;
  --width-toc: 240px;
  --width-container: 1440px;
  --width-card: min(720px, 100%);
  
  /* === Шрифты === */
  --font-main: WorkSans, sans-serif;
  --font-heading: "BreeSerif", sans-serif;
  --font-special: Roadstore, sans-serif;
  --font-accent: Flathead-Round, sans-serif;
  --font-faq: Oswald, sans-serif;
  
  /* === Размеры шрифтов === */
  --font-size-xs: clamp(10px, 1.2vw, 12px);
  --font-size-sm: clamp(11px, 1.5vw, 14px);
  --font-size-base: clamp(16px, 2vw, 18px);
  --font-size-lg: clamp(17px, 2.5vw, 21px);
  --font-size-xl: clamp(20px, 4vw, 27px);
  --font-size-2xl: clamp(32px, 6vw, 50px);
  --font-size-3xl: clamp(36px, 6vw, 50px);
  
  --font-size-h1: clamp(1.75rem, 3.5vw, 2.5rem);
  --font-size-h2: clamp(1.5rem, 3vw, 2.125rem);
  --font-size-h3: clamp(1.25rem, 2.5vw, 1.875rem);
  --font-size-h4: clamp(1.125rem, 2vw, 1.625rem);
  
  /* === Переходы === */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-accordion: max-height 0.3s linear;
  
  /* === Z-index === */
  --z-dropdown: 1;
  --z-mobile: 5;
  --z-header: 998;
  --z-mask: 1;
  
  /* === Прозрачности === */
  --opacity-overlay: rgba(0, 0, 0, .8);
  --opacity-blur: rgba(169, 59, 59, .18);
  --opacity-post-bg: rgba(82, 22, 22, .349);
  --opacity-table-header: rgba(152, 255, 218, .212);
  --opacity-toc-hover: rgba(128, 255, 223, 0.1);
}

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {font-display:swap;
  font-family: Roadstore;
  font-style: auto;
  font-weight: auto;
  src: url(/wp-content/uploads/fonts/Roadstore_374318399636adc4.woff2) format("woff2"),
       url(/wp-content/themes/wp-webpack-br2/assets/MyCustomFont.woff) format("woff");
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
  margin: 0 !important;
  height: 100%;
  background: var(--bg-main);
}

body {
  background: var(--bg-main);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  height: 100%;
}

body section {
  display: block;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: var(--font-size-h1);
  color: var(--color-heading);
  line-height: 1.5em;
  margin: 0;
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--color-heading);
  line-height: 1.5em;
  margin: 0;
  text-align: left;
  text-shadow: 0 .75px .75px var(--color-special);
}

h3 {
  font-size: var(--font-size-h3);
  color: var(--color-heading);
  line-height: 1.5em;
  text-align: left;
}

h4 {
  font-size: var(--font-size-h4);
  color: var(--color-heading);
  line-height: 1.5em;
  text-align: left;
}

blockquote {
  margin: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--color-heading);
  text-decoration: none;
}

a:active {
  color: var(--color-error);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  align-items: center;
  background: var(--bg-header);
  border-bottom: 1px solid var(--color-border);
  column-gap: var(--gap-small);
  display: flex;
  flex-direction: row;
  height: var(--height-header);
  justify-content: space-between;
  max-width: -webkit-fill-available;
  padding: 0 !important;
  row-gap: 12px;
  width: 100%;
}

.header-container {
  align-items: center;
  display: flex;
  gap: var(--gap-medium);
  justify-content: space-between;
  margin: 0 4vw;
  padding-block: var(--padding-small);
  width: 100%;
}

.site-logo {
  max-width: var(--width-logo);
}

.site-logo span {
  color: var(--color-heading);
  font-size: var(--font-size-base);
}

/* Main Navigation */
.main-navigation {
  align-items: center;
  display: flex;
  gap: var(--gap-small);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0 10px;
  width: max-content;
}

.main-navigation a {
  color: var(--color-heading);
  font-size: var(--font-size-lg);
  text-decoration: none;
}

.main-menu {
  display: flex;
  flex-direction: row;
  gap: var(--gap-medium);
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Language Dropdown */
.but-version-lang {
  margin-right: 3em;
}

.current-lang {
  padding: 1px;
}

.lang-dropdown li {
  list-style: none;
  margin: 0;
}

ul.lang-dropdown {
  background: var(--bg-dropdown);
  border-radius: var(--radius-small);
  padding: 1px 5px;
  position: absolute;
  z-index: var(--z-dropdown);
}

/* Authorization Button */
button.authorization {
  background: var(--gradient-auth-button);
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: var(--shadow-auth);
  color: var(--color-text-light);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  min-height: var(--height-auth);
  min-width: var(--height-auth);
  padding: 0 14px;
  text-transform: uppercase;
}

/* Mobile Menu */
.burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  height: fit-content;
  justify-content: space-around;
  width: fit-content;
}

.burger-menu div {
  background-color: var(--color-heading);
  height: 3px;
  width: 25px;
}

.home .burger-menu div {
  background-color: hsla(0, 0%, 100%, .96);
}

.mobile-menu {
  display: none;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.mobile-menu li {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 10px 0;
  text-align: center;
}

.home .mobile-menu li a {
  color: #fafafb !important;
}

svg.svg-burger {
  fill: #ffab49;
  font-size: var(--font-size-3xl);
  height: 1em;
  line-height: 1;
  text-align: center;
}

/* ==========================================================================
   Banner Section
   ========================================================================== */

section.banner {
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner-container {
  display: block;
  overflow: hidden;
  padding: var(--padding-xl);
  position: relative;
}

.banner-container:after {
  animation: none;
  background: var(--bg-main);
  content: "";
  height: 60px;
  inset: auto 0 -2px;
  -webkit-mask-image: url(/wp-content/uploads/2025/03/banner-mask.svg);
  mask-image: url(/wp-content/uploads/2025/03/banner-mask.svg);
  mask-position: bottom;
  mask-repeat: no-repeat;
  pointer-events: none;
  position: absolute;
  transform: none;
  z-index: var(--z-mask);
}

.banner .info-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .6em;
  max-width: 17em;
  padding: 30px;
  text-align: center;
}

.banner .mini-text-banner {
  color: var(--color-text-light);
  font-family: var(--font-accent);
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 500;
  line-height: 19.2px;
  text-transform: uppercase;
}

.banner .main-text-banner span {
  background: var(--gradient-banner-text);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline;
  font-family: var(--font-special);
  font-size: var(--font-size-2xl);
  font-weight: 500;
  letter-spacing: .03em;
  line-height: normal;
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
}

.banner .button {
  align-items: center;
  background-image: var(--gradient-button-green);
  border-color: #c7f8b9 #7cc672 #49a441;
  border-style: solid;
  border-width: 1px;
  box-shadow: var(--shadow-button);
  display: flex;
  justify-content: center;
  min-height: var(--height-button);
  min-width: 220px;
  padding: .1em .6em;
  position: relative;
  width: fit-content;
}

.banner .button a {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: clamp(12px, 2.8vw, 22px);
  font-weight: 400;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 4px 5px rgba(0, 0, 0, .55);
  text-transform: uppercase;
}

/* Banner Decorative Elements */
.banner .decor-element {
  animation: _ngcontent-ng-c2381371881_show-hole .4s cubic-bezier(.7, -.3, .3, 2.2s) 1.3 forwards;
  -webkit-animation: _ngcontent-ng-c2381371881_show-hole .4s cubic-bezier(.7, -.3, .3, 2.2s) 1.3 forwards;
  background: url(/wp-content/uploads/2025/03/decore_element.webp) no-repeat 0 0;
  background-size: cover;
  height: 14px;
  position: absolute;
  scale: 1;
  width: 14px;
  will-change: scale;
  z-index: 0;
}

.banner .decor-element.el-1 {
  --stb-bullet-delay: 2.2s;
  inset-block-start: 8px;
  inset-inline-start: 33px;
}

.banner .decor-element.el-2 {
  --stb-bullet-delay: 2.2s;
  inset-block-start: 18px;
  inset-inline-start: 13px;
}

.banner .decor-element.el-3 {
  --stb-bullet-delay: 2.2s;
  inset-block-start: 34px;
  inset-inline-start: 42px;
}

.banner .decor-element.el-4 {
  --stb-bullet-delay: 2.2s;
  inset-block-start: 11px;
  inset-inline-start: 189px;
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */

section.main {
  align-items: center;
  display: flex;
  margin: var(--margin-section);
}

.single section.main {
  margin: var(--margin-blog) 5vh;
}

.main .title {
  display: flex;
}

.info_block .img {
  display: flex;
  justify-content: center;
}

.home .blurred-background {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: auto;
}

.home .blurred-background .left {
  display: flex;
  flex-direction: column;
  gap: var(--gap-medium);
}

.left.one {
  display: flex;
  flex-direction: column;
}

.blurred-background .description a {
  background: var(--color-border-post);
  border: 1px solid rgba(85, 40, 40, .671);
  border-radius: .6em;
  box-shadow: var(--shadow-post);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  padding: .3em 1em;
}

.blog .blurred-background {
  margin: var(--gap-large) 0 var(--gap-medium);
}

.single-post .blurred-background {
  margin: var(--gap-xl) 0 var(--gap-medium);
}

.blog header {
  position: relative;
}

.show {
  display: block;
}

/* ==========================================================================
   Offers Section
   ========================================================================== */

.offers-block {
  margin: var(--margin-section);
  /* Резервируем минимальную высоту для блока */
  min-height: 400px; /* Приблизительная высота ряда карточек */
}

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

/* Скелетон контейнера офферов */
.offers-block .offers {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: space-between;
  width: 100%;
  /* Фиксированная минимальная высота сетки */
  min-height: 350px;
  /* Анимация появления содержимого */
  opacity: 0;
  animation: fadeIn 0.3s ease-in 0.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Плейсхолдеры при загрузке - если PHP еще не вывел контент */
.offers-block .offers:empty {
  position: relative;
}

.offers-block .offers:empty::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    var(--bg-secondary) 25%, 
    rgba(255, 255, 255, 0.05) 50%, 
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-medium);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Карточка оффера с фиксированными размерами */
.offer {
  display: flex;
  flex-direction: column;
  background: var(--opacity-post-bg);
  border: 1px solid var(--color-border-post);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-post);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  /* ВАЖНО: Фиксированная высота карточки */
  height: 280px;
  /* Анимация появления каждой карточки */
  opacity: 0;
  transform: translateY(10px);
  animation: cardAppear 0.4s ease-out forwards;
}

.offer:nth-child(1) { animation-delay: 0.1s; }
.offer:nth-child(2) { animation-delay: 0.15s; }
.offer:nth-child(3) { animation-delay: 0.2s; }
.offer:nth-child(4) { animation-delay: 0.25s; }
.offer:nth-child(5) { animation-delay: 0.3s; }

@keyframes cardAppear {
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.offer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-post), 0 4px 20px rgba(47, 5, 5, 0.3);
}

.offer > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Контейнер изображения - строго фиксированная высота */
.offer .img {
  position: relative;
  width: 100%;
  height: 180px; /* Фиксированная высота вместо aspect-ratio */
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border-secondary);
  flex-shrink: 0; /* Не сжимается */
}

.offer .img picture,
.offer .img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.offer:hover .img img {
  transform: scale(1.05);
}

/* Заголовок с фиксированной высотой */
.offer .title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--padding-medium);
  background: var(--bg-secondary);
  height: 100px; /* Фиксированная высота области заголовка */
  min-height: 100px;
}

.offer .title button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  transition: color var(--transition-fast);
}

.offer .title button:hover {
  color: var(--color-accent);
}

.offer .title p {
  color: var(--color-text-secondary);
  font-family: var(--font-main);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: fit-content;
}

/* Адаптивные размеры с сохранением фиксированных высот */
@media (max-width: 1110px) {
  .offers-block .offers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 864px) {
  .offers-block .offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .offer {
    height: 260px;
  }
  
  .offer .img {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .offers-block {
    min-height: 600px; /* Больше места для двух рядов */
  }
  
  .offers-block .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-height: 550px;
  }
  
  .offer {
    height: 240px;
  }
  
  .offer .img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .offers-block {
    margin: var(--gap-large) 5vw;
    min-height: 800px;
  }
  
  .offers-block .offers {
    min-height: 750px;
  }
}

@media (max-width: 400px) {
  .offers-block .offers {
    grid-template-columns: 1fr;
    min-height: 1200px; /* Одна колонка = больше высоты */
  }
}


/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog section.blog {
  margin: var(--margin-blog);
}

.home section.blog {
  margin: var(--margin-blog);
}

.blog p {
  text-align: center;
}

.blog h2 {
  color: var(--color-heading);
}

.blog .container#post-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column-gap: var(--gap-large);
  grid-row-gap: var(--gap-large);
}

.post-item {
  align-items: center;
  background: var(--opacity-post-bg);
  border: 1px solid var(--color-border-post);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-post);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--padding-medium);
  text-align: center;
}

.post-item h3 {
  margin: 0;
}

a.blog-read-more {
  background-color: var(--color-border-post);
  border-radius: var(--gap-medium);
  box-shadow: var(--shadow-post);
  color: var(--color-heading);
  cursor: pointer;
  font-size: clamp(14px, 1.8vw, 18px);
  padding: 1.5vh 3.5vw;
}

.blog button {
  margin-top: var(--gap-xl);
}

/* Single Post Styles */
.single h2 {
  margin-top: var(--gap-medium);
}

.post-excerpt {
  border-bottom: 1px solid #511;
  border-top: 1px solid #511;
  margin: 18px 0;
}

section.post.post-blok {
  backdrop-filter: blur(9px);
  background: var(--opacity-blur);
  border-radius: var(--gap-medium);
  -webkit-border-radius: var(--gap-medium);
  -moz-border-radius: var(--gap-medium);
  -ms-border-radius: var(--gap-medium);
  -o-border-radius: var(--gap-medium);
  box-shadow: var(--shadow-post);
  margin: var(--margin-blog);
  padding: var(--padding-medium);
}

/* Post Navigation */
.post-navigation {
  border-radius: var(--gap-medium);
  display: flex;
  gap: var(--gap-medium);
  justify-content: space-between;
}

section.navigation_post {
  background: var(--opacity-blur);
  border-radius: var(--gap-medium);
  box-shadow: var(--shadow-post);
  margin: 3em 5vw 0;
  padding: var(--padding-medium);
}

.navigation_post a {
  color: var(--color-heading);
  font-size: clamp(16px, 2.2vw, 20px);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

section.faq {
  margin: var(--margin-section);
}

section.faq .accordion {
  display: flex;
  flex-direction: column;
}

.faq .container_flex {
  margin-top: var(--gap-large);
}

.faq button.accordion-header {
  background-color: var(--bg-accordion);
  border: 1px solid var(--color-border-secondary);
  border-radius: 6px;
  color: #e0fff7;
  cursor: pointer;
  font-family: var(--font-faq);
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  min-height: var(--height-accordion);
  text-align: left;
  width: 100%;
}

.accordion-item {
  margin: .5em 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-accordion);
  -webkit-transition: var(--transition-accordion);
  -moz-transition: var(--transition-accordion);
  -ms-transition: var(--transition-accordion);
  -o-transition: var(--transition-accordion);
}

.accordion-content.active {
  max-height: max-content !important;
}

.faq .accordion-content li,
.faq .accordion-content li::marker,
.faq .accordion-content span {
  color: var(--color-text);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.outer-wrapper {
  display: flex;
  align-items: flex-start;
  max-width: var(--width-container);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
}

.inner-wrapper {
  flex: 1;
  width: 100%;
}

.table-of-contents {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  background: var(--gradient-toc);
  padding: 20px;
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-medium);
  width: var(--width-toc);
  margin-right: 25px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  box-shadow: var(--shadow-post);
}

.table-of-contents h2 {
  color: var(--color-special);
  margin-bottom: 16px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 .75px .75px var(--color-special);
}

.table-of-contents ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: var(--gap-small);
}

.table-of-contents .toc-subitem {
  margin-left: 16px;
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  margin-bottom: 4px;
}

.table-of-contents a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-medium);
  display: block;
  padding: var(--padding-small) var(--gap-small);
  border-radius: var(--padding-small);
}

.table-of-contents a:hover {
  color: #af753f;
  background: var(--opacity-toc-hover);
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  border-collapse: collapse;
  width: fit-content !important;
}

td {
  border: 1px solid var(--color-border-table);
}

table tr:first-child td {
  background: var(--opacity-table-header);
}

/* ==========================================================================
   Payment Systems
   ========================================================================== */

.payment-systems {
  align-items: center;
  color: #c39f82;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-large);
}

.payment-systems img {
  max-width: 108px;
}

.payments-more {
  width: 78px !important;
}

.payments-more span {
  color: var(--color-warning);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--bg-footer);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  color: var(--color-text-secondary);
}

footer a {
  color: var(--color-text-footer);
}

footer .main {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--gap-medium);
  margin: 0 15vw;
  padding: var(--gap-large) 0;
  text-align: center;
}

footer .ct-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

footer p {
  font-size: clamp(12px, 1.5vw, 16px) !important;
}

footer p span {
  display: grid;
  font-size: var(--font-size-xs);
  justify-items: center;
  line-height: 1;
  grid-gap: 5px;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.container.not-found {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gap);
  background: var(--bg-main);
}

.not-found__card {
  width: var(--width-card);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  text-align: center;
}

.not-found__title {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.not-found__text {
  margin: 0 0 var(--gap);
  color: var(--color-text);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
}

.not-found__cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--bg-main);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-cta);
}

.not-found__cta:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.not-found__cta:active {
  transform: translateY(0);
  filter: brightness(0.92);
}

.not-found__cta:focus-visible {
  outline: 3px solid #ffffff33;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #00000040, var(--shadow-cta);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.no-bullets {
  list-style: none;
}

.active-block,
.mobile-menu.active {
  align-items: center;
  background: var(--opacity-overlay);
  display: flex;
  justify-content: center;
  position: absolute;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes scroll {
  0% { transform: translateX(0); }
  to { transform: translateX(650px); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Large screens */
@media (min-width: 560px) {
  td {
    padding: 0 var(--gap-medium);
  }
}

/* Desktop and tablet adjustments */
@media (max-width: 1750px) {
  .banner .info-block {
    max-width: 24em;
  }
}

@media (max-width: 1670px) {
  .current-lang {
    padding: 1px var(--padding-small);
  }
}

@media (max-width: 1300px) {
  .blog .container#post-container {
    grid-column-gap: var(--gap-large);
    grid-row-gap: 3em;
  }
}

@media (max-width: 1130px) {
  .blog .container#post-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: var(--gap-large);
    grid-row-gap: var(--gap-large);
  }
}

@media (max-width: 1110px) {
  .offers-block .offers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .custom-image.image1:before {
    left: -7em;
    max-width: 29em;
    top: 14em;
  }
  
  .banner-container {
    padding: 6vw 1vw;
  }
  
  .banner .info-block {
    max-width: 38em;
  }
  
  .custom-image.image2:before {
    right: -6em;
    width: 31em;
  }
}

@media (max-width: 997px) {
  .info.info-section-9 .info_block.info-block-9-3,
  .info.info-section-9 .info_block.info-block-9-4,
  .info.info-section-9 .info_block.info-block-9-5 {
    min-width: fit-content;
  }
}

@media (max-width: 986px) {
  .blog .container#post-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: var(--gap-large);
    grid-row-gap: var(--gap-large);
  }
}

/* Table of Contents responsive */
@media (max-width: 900px) {
  .outer-wrapper {
    flex-direction: column;
    padding: 0 var(--gap-small);
  }
  
  .table-of-contents {
    width: 100%;
    margin: 0 0 20px 0;
    border-radius: var(--radius-medium);
    position: static;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  }
  
  .inner-wrapper {
    width: 100%;
  }
}

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

@media (max-width: 787px) {
  .banner .button {
    min-height: 68px;
  }
  
  .banner .info-block {
    gap: 17px;
    max-width: 615px;
  }
}

/* Tablet and mobile */
@media (max-width: 768px) {
  .banner .button {
    min-height: 63px;
  }
  
  .home .blurred-background:after {
    height: 36vh;
    max-width: 33vw;
    right: 12%;
    top: 11em;
  }
  
  .header-container {
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-menu svg {
    fill: var(--color-success);
    height: 1em;
    width: 1em;
  }
  
  .mobile-menu.active {
    flex-direction: column;
    height: 100%;
    right: 0;
    top: 0;
    width: 100%;
    z-index: var(--z-mobile);
  }
  
  .custom-image.image1:before {
    left: -6em;
    max-width: 22em;
    top: 16em;
  }
  
  .custom-image.image2:before {
    right: -9em;
    width: 30em;
  }
}

@media (max-width: 673px) {
  .banner .info-block {
    max-width: 516px;
  }
  
  .banner .button {
    min-height: 55px;
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .blog .container#post-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: var(--gap-medium);
  }
  
  .current-lang {
    padding: 1px 9px;
  }
  
  footer .main {
    margin: 0 10vw;
  }
  
  .home section.info,
  section.faq,
  section.main,
  section.offers-block {
    margin: var(--margin-mobile);
  }
  
  header .burger-menu {
    display: block;
  }
  
  header .main-menu {
    display: none;
  }
  
  header {
    height: auto;
  }
  
  .header-container {
    flex-direction: column;
  }
  
  header .main-menu.active {
    background-color: var(--bg-mobile-menu);
    box-shadow: var(--shadow-header);
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-y: scroll;
    padding: 15px 4vw;
    position: absolute;
    top: 20%;
    width: 100%;
    z-index: var(--z-header);
  }
}

@media (max-width: 580px) {
  .banner .button:after,
  .banner .button:before {
    height: 35px;
    top: 12px;
    width: 35px;
  }
  
  .banner .button:before {
    left: -18px;
  }
  
  .banner .button:after {
    right: -18px;
  }
  
  .blog .container#post-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: var(--gap-medium);
  }
}

@media (max-width: 576px) {
  .banner .info-block {
    max-width: 100%;
    padding: 21px;
  }
}

@media (max-width: 540px) {
  wrapper .main span {
    line-height: 1.5em;
  }
}

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

@media (max-width: 480px) {
  .banner .button {
    min-height: 42px;
    min-width: 158px;
  }
  
  .banner .decor-element.el-1 {
    inset-block-start: 1px;
    inset-inline-start: 19px;
  }
  
  .banner .decor-element.el-2 {
    inset-block-start: 15px;
    inset-inline-start: 7px;
  }
  
  .banner .decor-element.el-3 {
    inset-block-start: 28px;
    inset-inline-start: 25px;
  }
  
  .banner .decor-element.el-4 {
    inset-block-start: 3px;
    inset-inline-start: 140px;
  }
  
  .banner .button:after,
  .banner .button:before {
    height: 25px;
    top: 2px;
    width: 25px;
  }
  
  .banner .button:before {
    left: -14px;
  }
  
  .banner .button:after {
    right: -14px;
  }
  
  section.offers-block {
    margin: var(--gap-large) 5vw;
  }
  
  .accordion-content.active {
    max-width: 100%;
  }
}

@media (max-width: 468px) {
  .blog .container#post-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: var(--gap-medium);
  }
  
  .offers-block .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  button.authorization {
    padding: 0 3px;
  }
  
  .but-version-lang {
    margin-right: 0;
  }
}

@media (max-width: 400px) {
  .banner .main-text-banner {
    font-size: 17px;
  }
}

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

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

@media (max-width: 640px) {
  .offers-block .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  
  .offer .img {
    aspect-ratio: 4 / 3; /* Более квадратное на мобилке */
  }
}

@media (max-width: 480px) {
  .offers-block {
    margin: var(--gap-large) 5vw;
  }
  
  .offers-block .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .offers-block .offers {
    grid-template-columns: 1fr;
  }
}

