/* ===== СБРОС / БАЗА ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: radial-gradient(circle at top, #180015 0%, #0b000a 60%, #080008 100%);
  color: #f7f7f7;
  line-height: 1.6;
}

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

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

.container-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ХЕДЕР ===== */
header {
  background: rgba(8, 0, 8, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 104, 0.15);
}

header .container-grid {
  padding: 14px 20px 10px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

/* слева: бургер + Kent */
.toggle-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

#menu-toggle {
  display: none;
}

.nav-button-container {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

/* полоски бургера */
.nav-button-container .nav-button,
.nav-button-container .nav-button::before,
.nav-button-container .nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: .25s;
}

.nav-button-container .nav-button {
  top: 50%;
  transform: translateY(-50%);
}

.nav-button-container .nav-button::before {
  top: -7px;
}

.nav-button-container .nav-button::after {
  top: 7px;
}

/* выпадающее меню */
.hamburger-menu {
  position: absolute;
  top: 46px;
  left: 0;
  background: rgba(10, 0, 6, 0.95);
  border: 1px solid rgba(255, 0, 104, 0.35);
  border-radius: 14px;
  padding: 14px 16px 12px;
  min-width: 200px;
  display: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, .35);
  z-index: 50;
}

.hamburger-menu li {
  list-style: none;
  margin-bottom: 8px;
}

.hamburger-menu li:last-child {
  margin-bottom: 0;
}

.hamburger-menu a {
  color: #fff;
  font-size: 14px;
  display: block;
}

.hamburger-menu a:hover {
  color: #ff98bf;
}

/* показать меню при чекнутом инпуте */
#menu-toggle:checked ~ .hamburger-menu {
  display: block;
}

/* анимация бургера */
#menu-toggle:checked + .nav-button-container .nav-button {
  background: transparent;
}
#menu-toggle:checked + .nav-button-container .nav-button::before {
  top: 0;
  transform: rotate(45deg);
}
#menu-toggle:checked + .nav-button-container .nav-button::after {
  top: 0;
  transform: rotate(-45deg);
}

/* кнопка "скачать" */
.header__downl .link {
  background: linear-gradient(135deg, #ff4f9f, #ffbb5a);
  color: #fff;
  padding: 7px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 5px 20px rgba(255, 0, 104, 0.35);
}

/* вход / регистрация */
.header_auth-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header_auth-links a {
  color: #ff98bf;
  font-size: 14px;
}
.header_auth-links a:hover {
  color: #fff;
}

/* ===== БАННЕР ===== */
.banner {
  max-width: 1200px;
  margin: 26px auto 25px;
  padding: 20px 26px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 0, 104, .32), rgba(6, 0, 5, 0.8));
  border: 1px solid rgba(255, 0, 104, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(255, 0, 104, 0.15);
}

.banner_img {
  flex: 1 1 58%;
  min-height: 95px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
}

.promo {
  flex: 0 0 auto;
  text-align: right;
}

.text_top-chunk {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.text_middle-part {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.text_bottom-part {
  margin-top: 4px;
  font-size: 14px;
}

/* ===== БЛОК ЗЕРКАЛА ===== */
.zerkalo-wrapper {
  max-width: 1200px;
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 0, 104, 0.25);
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(255, 0, 104, 0.22), rgba(9, 0, 6, 0.85));
  box-shadow: 0 12px 36px rgba(255, 0, 104, 0.16);
}

.zerkalo-wrapper .top-chunk {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 18px 8px;
  border-bottom: 1px solid rgba(255, 0, 104, 0.08);
}

.circle-wrapper {
  display: flex;
  gap: 6px;
}

.circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.url-bar {
  font-size: 14px;
  color: #fff;
}

.zerkalo-wrapper .bottom-part {
  padding: 16px 18px 12px;
}

.zerkalo-wrapper .bottom-part p {
  margin-bottom: 6px;
}

.zerkalo-wrapper .bottom-part .link {
  background: linear-gradient(135deg, #ff4f9f, #ffb954);
  border-radius: 999px;
  padding: 6px 16px;
  display: inline-block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
  box-shadow: 0 5px 20px rgba(255, 0, 104, 0.35);
}

/* маленькие кнопки R7/GAMA/CAT */
.btns {
  display: flex;
  gap: 9px;
  padding: 0 18px 16px;
}

.btns .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 14px 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btns .btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ===== КОНТЕНТНЫЕ БЛОКИ ===== */
main {
  margin-top: 28px;
  margin-bottom: 60px;
}

main .container-grid {
  display: block;
}

.textBlock,
.toc,
main section,
.main_table,
article .content section,
figure table {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 0, 104, 0.02) 100%);
  border: 1px solid rgba(255, 0, 104, 0.13);
  border-radius: 16px;
  padding: 25px 24px 22px;
  margin-bottom: 26px;
  box-shadow: 0 9px 28px rgba(0, 0, 0, .1);
  transition: transform .28s, box-shadow .28s;
}

.textBlock:hover,
.toc:hover,
main section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(255, 0, 104, 0.27);
}

h1 {
  font-size: 26px;
  background: linear-gradient(90deg, #ff0077, #ffaf2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

h2 {
  font-size: 22px;
  background: linear-gradient(90deg, #ff4f9f, #ffc857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-left: 4px solid #ff4f9f;
  padding-left: 10px;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

main p {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #f1f1f1;
}

/* ===== Оглавление ===== */
.toc .big {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.toc ul {
  list-style: none;
  padding-left: 10px;
}

.toc ul li {
  margin-bottom: 8px;
  position: relative;
}

.toc ul li::before {
  content: "›";
  color: #ff4f9f;
  position: absolute;
  left: -10px;
}

.toc ul li a {
  color: #ffb3da;
  font-size: 14px;
}

.toc ul li a:hover {
  color: #fff;
}

/* ===== Таблицы ===== */
.general-table,
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 0, 5, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(255, 0, 104, 0.1);
}

.general-table th,
main table th {
  background: linear-gradient(135deg, rgba(255, 0, 104, 0.8), rgba(255, 185, 84, 0.5));
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 15px;
}

.general-table td,
main table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 0, 104, 0.1);
  font-size: 14px;
}

.general-table tr:nth-child(even),
main table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.general-table tr:hover,
main table tr:hover {
  background: rgba(255, 0, 104, 0.05);
}

.general-table td:first-child,
main table td:first-child {
  color: #ffd6f3;
  font-weight: 500;
  width: 240px;
}

/* ===== СПИСКИ ===== */
main ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
main ul li::marker {
  color: #ff4f9f;
}
main ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

/* ===== ФУТЕР ===== */
footer {
  border-top: 1px solid rgba(255, 0, 104, 0.1);
  padding: 30px 20px 45px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}
footer ul {
  list-style: none;
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}
footer a {
  color: #ffe4f1;
  font-size: 12px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .header_auth-links {
    display: none;
  }
  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner_img {
    width: 100%;
  }
  main .container-grid {
    padding: 0 16px;
  }
  .zerkalo-wrapper {
    margin: 0 16px 26px;
  }
  .general-table,
  main table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .text_middle-part {
    font-size: 32px;
  }
  .toc,
  .textBlock,
  main section {
    padding: 20px 18px;
  }
}
