﻿:root {
  --bg: #0b0f12;
  --bg-2: #111821;
  --panel: #141b24;
  --panel-2: #1b2330;
  --accent: #5aa993;
  --accent-2: #5b8cff;
  --text: #e7edf3;
  --muted: #9aa6b2;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-texture {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(50, 213, 131, 0.12), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(91, 140, 255, 0.12), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  z-index: -2;
}

.bg-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.25;
  z-index: -1;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  z-index: 10;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
      120deg,
      rgba(90, 169, 147, 0.35),
      rgba(91, 140, 255, 0.28)
    ),
    rgba(11, 15, 18, 0.65);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(45px) saturate(190%);
  -webkit-backdrop-filter: blur(45px) saturate(190%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  justify-content: space-between;
  border-radius: 999px;
  background: rgba(11, 15, 18, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 36px;
}

.nav {
  flex: 0 1 auto;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-backdrop {
  display: none;
}

.mobile-drawer {
  display: none;
}

.hamburger {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.hamburger img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-summary {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
}

.nav-dropdown[open] .nav-summary {
  color: var(--text);
  border-color: rgba(50, 213, 131, 0.4);
  background: rgba(50, 213, 131, 0.1);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.98);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-menu img {
  filter: brightness(0) invert(1);
  width: 42px;
  height: 42px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
  font-size: 13px;
}

.chip img {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  width: fit-content;
  font-size: 16px;
}

.badge img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(50, 213, 131, 0.5);
}

.chip.active {
  background: rgba(50, 213, 131, 0.15);
  border-color: rgba(50, 213, 131, 0.6);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
}

.lang-link img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.lang-link.active {
  color: var(--text);
}

.lang-link.active img {
  box-shadow: 0 0 0 2px rgba(90, 169, 147, 0.6);
  transform: scale(1.12);
}

main {
  padding: 150px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  animation: fadeUp 0.6s ease;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  color: var(--text);
  width: fit-content;
  font-size: 13px;
}

.hero .badge img {
  width: 28px;
  height: 28px;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
  font-family: "Sora", sans-serif;
}

.intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-intro {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: rgba(12, 16, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  width: fit-content;
  max-width: 680px;
}

.type-select {
  width: 100%;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    100% 0;
  background-size: 6px 6px, 6px 6px, 44px 100%;
  background-repeat: no-repeat;
  padding-right: 54px;
}

.hero-subtitle {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.hero-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.calc-header h2 {
  margin: 0;
  font-size: 22px;
}

.unit-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  background: var(--panel-2);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}

.seg-btn.active {
  background: rgba(50, 213, 131, 0.18);
  color: var(--text);
}

.calc-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 13, 17, 0.9);
  color: var(--text);
  font-size: 15px;
}

select {
  appearance: none;
}

.primary {
  position: relative;
  background: rgba(12, 16, 22, 0.95);
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 1;
  pointer-events: none;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.primary:active {
  transform: translateY(0);
}

.primary span {
  display: inline-block;
  transform: translateY(-1px);
  position: relative;
  z-index: 1;
}

.btn-label {
  letter-spacing: 0.01em;
  font-size: 15px;
  font-weight: inherit;
}

.btn-icon {
  font-size: 18px;
  transform: translateY(-1px);
}

.progress {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(91, 140, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-icon {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.progress-bar {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 1.2s ease forwards;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(50, 213, 131, 0.4);
  background: rgba(50, 213, 131, 0.08);
}

.preview {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.preview.is-result {
  border-color: rgba(90, 169, 147, 0.6);
  background: rgba(90, 169, 147, 0.12);
}

.preview-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-size {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0;
}

.preview-note {
  color: var(--muted);
  font-size: 12px;
}

.result-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-size {
  font-size: 34px;
  font-weight: 700;
  margin: 6px 0;
}

.result-note {
  color: var(--muted);
  font-size: 13px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 36px;
}

.table-section {
  margin-top: 40px;
  animation: fadeUp 0.6s ease;
}

.table-empty-note {
  margin: 10px 0 0;
}

.table-wrap {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
}

.table-group {
  display: none;
}

.table-group.active {
  display: block;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.size-table thead th {
  background: rgba(90, 169, 147, 0.12);
  color: var(--text);
  font-weight: 700;
}

.size-table tbody tr {
  transition: background 0.2s ease;
}

.size-table tbody tr:hover td {
  background: rgba(90, 169, 147, 0.22);
}

.size-table tbody tr.highlight:hover td {
  background: rgba(90, 169, 147, 0.28);
}

.size-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.size-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.1);
}

.size-table tbody tr.highlight {
  background: rgba(50, 213, 131, 0.12);
}

.size-pill {
  font-weight: 600;
  font-size: 15px;
}

.guides {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.guide {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.guide h3 {
  margin-top: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide h4 {
  margin: 16px 0 10px;
  font-size: 16px;
}

.guide ol {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  counter-reset: step;
}

.guide ol li {
  position: relative;
  padding: 12px 12px 12px 46px;
  margin: 10px 0;
  background: rgba(12, 16, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.55;
}

.guide ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(90, 169, 147, 0.6), rgba(91, 140, 255, 0.6));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.guide p {
  color: var(--muted);
  margin: 10px 0;
}

.guide pre {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.6);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.seo,
.faq {
  margin-top: 36px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.seo-h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.seo-h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--text);
}

.seo-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}
.seo-block {
  background: rgba(12, 16, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.seo .seo-block {
  margin-bottom: 14px;
}
.seo .seo-block:last-child {
  margin-bottom: 0;
}
.seo-card-body .seo-block {
  margin-bottom: 12px;
}
.seo-card-body .seo-block:last-child {
  margin-bottom: 0;
}
.seo-list.seo-block {
  padding-left: 22px;
}

.seo-grid {
  column-count: 2;
  column-gap: 18px;
}

.seo-card {
  background: linear-gradient(135deg, rgba(18, 24, 32, 0.9), rgba(12, 16, 22, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(90, 169, 147, 0.6);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  width: 100%;
  min-width: 0;
  display: inline-block;
  margin: 0 0 18px;
  break-inside: avoid;
}

.seo-card--wide {
  column-span: all;
  width: 100%;
}

.seo-card-body p {
  margin: 0 0 14px;
}

.seo-card-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .seo-grid {
    column-count: 1;
  }
}

.seo-card p {
  margin: 0;
}

.seo-table {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.7);
  max-width: 100%;
}

.seo-card-body .seo-table:first-child {
  margin-top: 0;
}

.seo-card-body .seo-table:last-child {
  margin-bottom: 0;
}

.seo-table table {
  width: 100%;
  border-collapse: collapse;
}

.seo-table th,
.seo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none;
}

.intro-mobile {
  display: none;
}

@keyframes load {
  to {
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  main {
    padding-top: 104px;
  }

  .site-header {
    top: 8px;
    left: 50%;
    width: calc(100% - 16px);
    border-radius: 20px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
  }

  .header-actions {
    display: contents;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    white-space: nowrap;
    font-size: 12px;
  }

  .hamburger {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 14, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 9;
  }

  .mobile-backdrop.open {
    display: block;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 360px);
    background: rgba(11, 15, 18, 0.96);
    border-left: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .drawer-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .drawer-close {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }

  .mobile-drawer .nav-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    background: rgba(12, 16, 22, 0.6);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-drawer .nav-menu .chip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px 8px;
  }

  .mobile-drawer .nav-menu .chip span {
    font-size: 12px;
    line-height: 1.2;
  }

  .drawer-section {
    display: grid;
    gap: 8px;
  }

  .drawer-title-row {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .calc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .guides {
    grid-template-columns: 1fr;
  }

  .intro-desktop {
    display: none;
  }

  .intro-mobile {
    display: block;
    margin-top: 24px;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 92px;
  }
  .site-header {
    border-radius: 16px;
  }

  .brand img {
    height: 26px;
  }

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

  .nav-summary {
    width: 100%;
    text-align: center;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu {
    position: static;
    min-width: auto;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 6px;
  }

  .size-table th,
  .size-table td {
    padding: 12px 12px;
    font-size: 14px;
  }

  .size-table {
    table-layout: fixed;
  }

  .size-table--wide {
    min-width: 760px;
  }

  .seo-table th,
  .seo-table td {
    padding: 10px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .seo-table table {
    min-width: 560px;
  }

  .seo-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.not-found {
  background: var(--bg);
}

.center {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.not-found-card {
  max-width: 520px;
  width: 100%;
  padding: 32px;
  border-radius: 20px;
  background: rgba(12, 16, 22, 0.8);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.not-found-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(90, 169, 147, 0.15);
  border: 1px solid rgba(90, 169, 147, 0.5);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.not-found-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 30px;
  margin-top: 20px;
  display: block;
  background: rgba(8, 16, 22, 0.6);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 0 20px;
}

.legal-content h1 {
  margin-bottom: 12px;
}

.legal-content h2 {
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-links a:hover {
  color: var(--accent);
}


/* Custom cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  background: #0f1720;
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.cookie-banner__text {
  margin: 0 0 8px;
  color: #e9f1f8;
  max-width: 680px;
  line-height: 1.55;
}

.cookie-banner__link {
  color: #9db7ff;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1b2633;
  color: #f7fbff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn--primary {
  background: #8ef0d6;
  color: #071018;
  border-color: transparent;
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 14, 0.65);
}

.cookie-modal__panel {
  position: relative;
  max-width: 640px;
  margin: 10vh auto 0;
  background: #0f1720;
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #f7fbff;
  font-size: 22px;
  cursor: pointer;
}

.cookie-modal__sections {
  display: grid;
  gap: 16px;
  margin: 16px 0 20px;
}

.cookie-modal__section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.cookie-modal__section-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-modal__section-desc {
  margin: 0;
  color: #e9f1f8;
  line-height: 1.45;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  background: #1b2633;
  border-radius: 999px;
  position: relative;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #f7fbff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked {
  background: #8ef0d6;
  border-color: transparent;
}

.cookie-switch input:checked::after {
  transform: translateX(20px);
  background: #071018;
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shortcuts {
  margin-top: 40px;
}

.shortcut-group {
  margin-top: 18px;
}

.shortcut-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shortcut-group__head h4 {
  margin: 0;
  font-size: 18px;
}

.shortcut-group__head p {
  margin: 4px 0 0;
}

.shortcut-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.shortcut-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(90, 169, 147, 0.16), rgba(91, 140, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: var(--text);
  min-height: 96px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.shortcut-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(12, 16, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shortcut-card__icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.shortcut-card__text span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shortcut-card__text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 169, 147, 0.5);
  background: linear-gradient(135deg, rgba(90, 169, 147, 0.24), rgba(91, 140, 255, 0.2));
}

.table-title {
  margin: 18px 0 8px;
  font-size: 16px;
}
