/* =====================================
   GLOBAL STYLES — Reset & Typography
   ===================================== */

:root {
  /* Base palette — cold, light, elegant */
  --site-bg-darkest: #dfe5eb;   /* фон страниц и элементов */
  --site-bg-dark: #e8edf2;      /* основной светлый фон */
  --site-bg-light: #f3f6f9;     /* ещё светлее для блоков */
  --site-border: #ccd3db;       /* нейтральная граница */
  --site-text: #1b2430;         /* основной тёмно-серый текст */

  /* Accent — холодный голубой */
  --site-accent: #007ce8;
  --site-accent-light: #47a9ff;
  --site-accent-hover: #69b9ff;

  /* Radius, spacing & font */
  --site-radius: 10px;
  --site-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --site-line-height: 1.65;
  --site-transition: 0.25s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- HTML / Body --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: #f6f8fa; /* светлый фон по умолчанию */
  color: #1c2735; /* базовый холодный текст */
  font-family: var(--site-font);
  font-size: 1rem;
  line-height: var(--site-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 88px; /* компенсация под фиксированный хедер */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #0b1f33;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

p, li, td, th {
  color: #2a3544;
  font-weight: 400;
}

a {
  color: var(--site-accent);
  text-decoration: none;
  transition: color var(--site-transition), opacity var(--site-transition);
}

a:hover {
  color: var(--site-accent-hover);
  opacity: 0.9;
}

/* =====================================
   LAYOUT & CONTAINERS
   ===================================== */

/* Контейнеры — ограничивают контент, но не фон */
.container {
  width: 100%;
  margin-inline: auto;
}

/* Секции — во всю ширину, с базовыми отступами */
.section {
  width: 100%;
  border-bottom: 1px solid var(--site-border);
  background: transparent;
}

/* =====================================
   MEDIA QUERIES
   ===================================== */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  h1 {
    font-size: 1.8rem;
  }
}

/* =====================================
   HEADER — premium, scalable, adaptive
   ===================================== */

body {
  padding-top: 88px; /* компенсация под фиксированный хедер */
}

/* --- Main wrapper --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0b0e12 90%, #0a0c10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* --- Inner structure --- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  min-height: 68px;
}

/* --- Logo --- */
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,145,255,0.25));
  transition: filter 0.3s ease;
}
.header-logo img:hover {
  filter: drop-shadow(0 0 8px rgba(0,145,255,0.45));
}

/* =====================================
   NAVIGATION — calm & elegant desktop style
   ===================================== */

.nav-desktop {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: #cfd5dc;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 10px 6px;
  transition: color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
  opacity: 0.9;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--site-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
  opacity: 1;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- active state (optional) --- */
.nav-link.active {
  color: #fff;
}
.nav-link.active::after {
  width: 100%;
}

/* =====================================
   ACTIONS (buttons / lang / login)
   ===================================== */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* =====================================
   BUTTONS — small, clean, minimal
   ===================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
  user-select: none;
}

/* --- Primary --- */
.btn-primary {
  background: var(--site-accent);
  color: #fff;
  border: 1px solid var(--site-accent);
}
.btn-primary:hover {
  background: var(--site-accent-light);
  border-color: var(--site-accent-light);
  color: white;
}
.btn-primary:active {
  background: #0076d6;
  border-color: #0076d6;
}

/* --- Ghost --- */
.btn-ghost {
  background: transparent;
  color: #e6ebf0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover {
  border-color: var(--site-accent);
  color: #fff;
}
.btn-ghost:active {
  background: rgba(0,145,255,0.1);
}

/* --- Outline --- */
.btn-outline {
  background: transparent;
  border: 1px solid var(--site-accent);
  color: var(--site-accent-light);
}
.btn-outline:hover {
  background: var(--site-accent);
  color: #fff;
}

/* --- Disabled --- */
.btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* --- Optional small size variant --- */
.btn-sm {
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: 5px;
}



/* =====================================
   BURGER — compact minimalistic icon
   ===================================== */

.burger {
  position: relative;      /* 🟢 фиксируем бургер в своём контексте */
  z-index: 2001;           /* 🟢 поднимаем выше .mobile-menu */
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171b21;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.burger:hover {
  background: #1d2127;
  border-color: rgba(255, 255, 255, 0.25);
}

.burger:focus-visible {
  outline: 2px solid var(--site-accent-light);
  outline-offset: 2px;
}

.burger-box {
  position: relative;
  width: 20px;
  height: 16px;
}

.burger-line,
.burger-line::before,
.burger-line::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  content: "";
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-line {
  top: 50%;
  transform: translateY(-50%);
}
.burger-line::before { top: -6px; }
.burger-line::after { top: 6px; }

/* --- при открытом меню (состояние крестика) --- */
.burger[aria-expanded="true"] {
  background: var(--site-accent);
  border-color: var(--site-accent);
  transform: rotate(90deg); /* лёгкий эффект */
}

.burger[aria-expanded="true"] .burger-line {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line::before {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger-line::after {
  transform: rotate(-90deg);
}

.burger[aria-expanded="true"] .burger-line,
.burger[aria-expanded="true"] .burger-line::before,
.burger[aria-expanded="true"] .burger-line::after {
  background: #fff;
}

/* =====================================
   MOBILE MENU — full height dropdown
   ===================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: #0d1015;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  z-index: 999;
  padding-top: 80px;
}

.mobile-menu.is-open {
  transform: translateY(0);
  border-top: 1px solid var(--site-border);
}

.mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.mobile-link {
  display: block;
  background: #171b21;
  border: 1px solid #252a31;
  color: var(--site-text);
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.mobile-link:hover {
  background: #1d2229;
  border-color: var(--site-accent);
  color: #fff;
}

.mobile-actions {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: var(--site-bg-dark);
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--site-border);
}

/* =====================================
   RESPONSIVE BEHAVIOR
   ===================================== */
@media (min-width: 1080px) {
  .burger, .mobile-menu { display: none; }
}

@media (max-width: 1079px) {
  .nav-desktop { display: none; }
  .header-inner { padding-inline: 20px; }
}


/* =====================================
   BUTTONS — cold & confident
   ===================================== */

.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--site-accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,145,255,0.3);
}
.btn-primary:hover {
  background: var(--site-accent-light);
  box-shadow: 0 4px 14px rgba(0,145,255,0.45);
}

.btn-ghost {
  background: #1c2128;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
}

/* =====================================
   MOBILE MENU — elegant dark contrast style
   ===================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 100vh;
  background: linear-gradient(180deg, #0c1016 0%, #121820 100%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 999;
  padding-top: 70px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.mobile-menu.is-open {
  transform: translateY(0);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Сетка навигации --- */
.mobile-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 22px 18px;
}

/* --- Ссылки --- */
.mobile-link {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.mobile-link:hover {
  background: rgba(0, 136, 255, 0.15);
  border-color: rgba(0, 136, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Нижний блок с кнопками --- */
.mobile-actions {
  padding: 18px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #121820 0%, #0b0e13 100%);
  position: sticky;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
}

.mobile-actions .btn {
  border-radius: 8px;
  font-size: 0.9rem;
}

/* --- Adaptive visibility --- */
@media (min-width: 1024px) {
  .burger,
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }
  .header-inner {
    padding-inline: 16px;
  }
}



/* =====================================
   HERO SECTION — elegant light gradient banner
   ===================================== */

.page-hero-simple {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: clamp(90px, 12vw, 140px) 20px clamp(70px, 10vw, 120px);
  border-bottom: 1px solid #dbe3ec;
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #eef3f9 45%,
    #e5edf5 100%
  );
  background-blend-mode: soft-light;
  box-shadow: 0 3px 12px rgba(0, 40, 90, 0.05);
}

/* --- soft blue halo with layered depth --- */
.page-hero-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 140, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(80, 160, 255, 0.08) 0%, transparent 70%),
    radial-gradient(circle at 15% 80%, rgba(0, 100, 255, 0.05) 0%, transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}

/* --- optional highlight stripe for subtle depth --- */
.page-hero-simple::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* --- Content wrapper --- */
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

/* --- Title --- */
.page-hero-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: #08233e;
  letter-spacing: 0.25px;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* --- Subtitle --- */
.page-hero-content p {
  font-size: 0.98rem;
  color: #415061;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 30px;
}

/* --- Button --- */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 35px;
  margin-top: 10px;
  background: linear-gradient(180deg, #0091ff 0%, #007ae0 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.25s ease;
}

.hero-btn:hover {
  background: linear-gradient(180deg, #0071ff 0%, #009ae5 100%);
  color: white;
}

.hero-btn:active {
  background: linear-gradient(180deg, #0571ff 0%, #009ae5 100%);
  color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .page-hero-simple {
    padding: 70px 16px 60px;
  }

  .page-hero-content h1 {
    font-size: 1.6rem;
  }

  .page-hero-content p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .hero-btn {
    font-size: 0.85rem;
    padding: 5px 30px;
    margin-top: 5px;
  }
}


/* =====================================
   ARTICLE BODY — refined, readable, elegant
   ===================================== */

/* =====================================
   ARTICLE BODY — light & elegant
   ===================================== */

.article-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  color: #1a222d;
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.1px;
  background-color: transparent;
}

/* =====================================
   ARTICLE BODY — refined typographic style
   ===================================== */

/* --- Base --- */
.article-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 0px;
  color: #1b2331;
  font-size: 1.06rem;
  line-height: 1.8;
  letter-spacing: 0.1px;
}

/* --- Headings --- */
.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: var(--site-font);
  line-height: 1.3;
  margin-top: 60px;
  margin-bottom: 22px;
  font-weight: 700;
  color: #0c1a2c;
  text-wrap: balance;
}

/* Главный заголовок — широкая типографика, минимализм */
.article-body h1 {
  font-size: clamp(2rem, 4.8vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  color: #08203a;
  letter-spacing: 0.2px;
  line-height: 1.25;
  border-bottom: 2px solid rgba(0, 122, 255, 0.2);
  padding-bottom: 14px;
}

/* Второй уровень — чистая вертикальная полоса и спокойный цвет */
.article-body h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #132b47;
  padding-left: 14px;
  border-left: 3px solid rgba(0, 122, 255, 0.5);
  background: linear-gradient(90deg, rgba(0,136,255,0.05), transparent);
  border-radius: 2px;
}

/* Третий уровень — акцентная линия над заголовком, без капса */
.article-body h3 {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1c3b5d;
  margin-top: 44px;
  padding-top: 10px;
  letter-spacing: 0.3px;
}
.article-body h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--site-accent);
  border-radius: 2px;
}

/* --- Paragraphs & Text --- */
.article-body p {
  margin-bottom: 20px;
  color: #2a3648;
}
      
.article-body img {
  max-height: 400px;
}

.article-body strong {
  color: #0b223d;
  font-weight: 700;
}

.article-body a {
  color: var(--site-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,136,255,0.15);
  transition: all 0.25s ease;
}
.article-body a:hover {
  color: var(--site-accent-hover);
  border-color: var(--site-accent-hover);
}

/* --- Lists --- */
.article-body ul,
.article-body ol {
  margin: 24px 0 32px 28px;
  padding: 0;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: #2e3b4f;
}

.article-body ul li::marker {
  color: var(--site-accent);
}

.article-body ol li::marker {
  color: var(--site-accent-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
    padding: 36px 18px 60px;
  }

  .article-body h1 {
    font-size: 1.8rem;
    padding-bottom: 10px;
  }

  .article-body h2 {
    font-size: 1.35rem;
    padding-left: 10px;
  }

  .article-body h3 {
    font-size: 1rem;
  }
}


/* =====================================
   ARTICLE BODY — modern light tables
   ===================================== */

.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 36px 0;
  font-size: 0.95rem;
  background: #f9fbfd;
  border: 1px solid #d6dee7;
  border-radius: var(--site-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* --- Table Head --- */
.article-body thead {
  background: linear-gradient(180deg, #e9eff5 0%, #dde6ee 100%);
}

.article-body th {
  padding: 14px 18px;
  text-align: left;
  color: #0f1926;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #cfd7e0;
  white-space: nowrap;
}

/* --- Table Body --- */
.article-body td {
  padding: 12px 18px;
  color: #1a2533;
  border-bottom: 1px solid #e4e9ef;
  transition: background 0.25s ease;
}

/* --- Alternating Rows --- */
.article-body tr:nth-child(even) {
  background: #f2f6fa;
}

/* --- Hover Row --- */
.article-body tr:hover td {
  background: rgba(0, 120, 255, 0.05);
}

/* --- Rounded corners --- */
.article-body table tr:first-child th:first-child {
  border-top-left-radius: var(--site-radius);
}
.article-body table tr:first-child th:last-child {
  border-top-right-radius: var(--site-radius);
}
.article-body table tr:last-child td:first-child {
  border-bottom-left-radius: var(--site-radius);
}
.article-body table tr:last-child td:last-child {
  border-bottom-right-radius: var(--site-radius);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 8px;
  }
  .article-body th,
  .article-body td {
    padding: 10px 14px;
    font-size: 14px;
  }
}


/* --- Quotes --- */
.article-body blockquote {
  background: #f3f6f9;
  border-left: 4px solid var(--site-accent);
  margin: 28px 0;
  padding: 18px 22px;
  font-style: italic;
  color: #2a3544;
  border-radius: var(--site-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Images & Figures --- */
.article-body img {
  display: block;
  margin: 32px auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-body figure {
  text-align: center;
  margin: 36px 0;
}
.article-body figcaption {
  color: #6b7a8b;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
    padding: 36px 16px 60px;
  }

  .article-body h1 {
    font-size: 1.8rem;
  }

  .article-body h2 {
    font-size: 1.4rem;
    padding-left: 10px;
  }

  .article-body h3 {
    font-size: 1rem;
  }
}

/* =====================================
   FAQ SECTION — clean & minimal Q&A
   ===================================== */

.faq-list {
  max-width: 860px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

.faq-list h2 {
  text-align: center;
  color: #f0f5fa;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #2fa4ff, #73c7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Item --- */
.faq-item {
  background: #14181e;
  border-radius: var(--site-radius);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(0, 145, 255, 0.3);
}

/* --- Summary --- */
.faq-item summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: #e6ebf0;
  padding: 18px 48px 18px 20px;
  background: #171c22;
  border-radius: var(--site-radius);
  transition: background 0.3s ease, color 0.3s ease;
  list-style: none;
  user-select: none;
}

.faq-item summary:hover {
  background: #1b2128;
  color: #fff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Icon (+ / -) --- */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--site-accent);
  font-weight: 800;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
  opacity: 0.9;
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--site-accent-light);
  transform: translateY(-50%) rotate(180deg);
}

/* --- Content --- */
.faq-content {
  padding: 0 20px 18px;
  font-size: 15.5px;
  color: #cfd6de;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .faq-item summary { padding: 14px 40px 14px 16px; font-size: 15px; }
  .faq-content { font-size: 15px; }
}

/* =====================================
   AUTHOR CARD — elegant author block
   ===================================== */

.author-card {
  max-width: 860px;
  margin: 80px auto 100px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #13171d;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--site-radius);
  color: #d0d7de;
  transition: border-color 0.3s ease;
}

.author-card:hover {
  border-color: rgba(0,145,255,0.3);
}

.author-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--site-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,145,255,0.35);
}

.author-info { flex: 1; }

.author-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.author-bio {
  font-size: 15px;
  line-height: 1.6;
  color: #c4ccd5;
  margin-bottom: 8px;
}

.author-info a {
  color: var(--site-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}
.author-info a:hover {
  color: var(--site-accent-light);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 22px;
  }
  .author-photo { width: 78px; height: 78px; }
  .author-name { font-size: 1.05rem; }
  .author-bio { font-size: 14px; }
}


/* =====================================
   FOOTER — clean & structured
   ===================================== */

.footer {
  background: #0a0c10;
  padding: 60px 20px;
  color: #9ba3ad;
  border-top: 1px solid #1f242c;
  position: relative;
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer h5 {
  color: #eaf3ff;
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li { margin-bottom: 8px; }

.footer-list a {
  color: #b7bec7;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-list a:hover {
  color: var(--site-accent-light);
}

.footer p {
  margin-top: 12px;
  font-size: 14px;
  color: #808890;
}

/* =====================================
   FLOATING CTA — modern fixed referral button
   ===================================== */

.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, #0091ff 0%, #007ae0 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 35px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(0, 136, 255, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* --- Hover / Active states --- */
.floating-cta:hover {
  background: var(--site-accent-hover);
  box-shadow: 0 8px 20px rgba(0, 136, 255, 0.4);
  color: #fff;
}

.floating-cta:active {
  background: var(--site-accent-light);
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.25);
  color: #fff;
}

/* --- Subtle fade-in animation --- */
@keyframes fadeInCta {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.floating-cta {
  animation: fadeInCta 0.6s ease 0.2s both;
}

/* --- Responsive (Mobile / Tablet) --- */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 18px;
    padding: 7px 25px;
    font-size: 0.75rem;
    border-radius: 36px;
    box-shadow: 0 5px 14px rgba(0, 136, 255, 0.3);
  }
}

/* =====================================
   BASE FORM STYLES — contact / feedback
   ===================================== */

form {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: #101419;
  border: 1px solid #1f242c;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  color: #e2e8f0;
  font-size: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cfd6de;
  line-height: 1.3;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #2a3038;
  border-radius: 8px;
  background: #0a0d11;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--site-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,145,255,0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"] {
  accent-color: var(--site-accent);
  margin-right: 6px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.form-field {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-actions {
  margin-top: 22px;
  text-align: center;
}

.form-actions .button {
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 10px;
  background: var(--site-accent);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.form-actions .button:hover {
  background: var(--site-accent-light);
  box-shadow: 0 3px 10px rgba(0,145,255,0.4);
}

.text-muted {
  margin-top: 10px;
  font-size: 13px;
  color: #99a2ac;
  line-height: 1.4;
}

label a {
  color: var(--site-accent-light);
  text-decoration: underline;
}
label a:hover { color: #8fd6ff; }

@media (max-width: 600px) {
  form { padding: 18px; }
  .form-row { flex-direction: column; gap: 12px; }
  .form-field { margin-bottom: 12px; }
}

/* =====================================
   TOC — Table of contents
   ===================================== */

#toc {
  background: #12171d;
  border: 1px solid #22272f;
  border-radius: 12px;
  padding: 20px 26px;
  margin: 40px auto;
  max-width: 760px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 26px;
}

#toc li { margin-bottom: 10px; }

#toc a {
  color: #cfd6de;
  text-decoration: none;
  position: relative;
  padding-left: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
}

#toc a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--site-accent);
  font-weight: 700;
  transition: transform 0.25s ease;
}

#toc a:hover {
  color: var(--site-accent-light);
  transform: translateX(2px);
}
#toc a:hover::before { transform: translateX(4px); }

@media (max-width: 768px) {
  #toc { padding: 16px 18px; }
  #toc ul { columns: 1; }
  #toc a { display: inline-block; font-size: 15px; }
}

/* =====================================
   SCROLLBAR & SELECTION
   ===================================== */

::selection {
  background: var(--site-accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0c0f13;
}
::-webkit-scrollbar-thumb {
  background: #2a2e36;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--site-accent);
}

/* =====================================
   SOFT PAGE ANIMATION
   ===================================== */

.main-content,
.header,
.footer {
  animation: fadePage 0.6s ease;
}
@keyframes fadePage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Smooth transitions for all clickable elements */
a, button, summary {
  transition: all 0.25s ease;
}

