/* Palette and typography: evening indigo, warm paper, saffron. */
:root {
  color-scheme: dark light;
  --night: #14122b;
  --night-soft: #1d1a3a;
  --paper: #f6efe2;
  --card: #fffaf0;
  --ink: #292538;
  --muted: #635a67;
  --saffron: #e8a33d;
  --carmine: #9b402d;
  --line: #d5c8b6;
  --night-line: #625873;
  --serif: "Cormorant Garamond", "PT Serif", Georgia, serif;
  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
}

/* Foundation and accessible interactions. */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 1rem / 1.7 var(--sans);
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a, button, input, summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}
.parchment :focus-visible {
  outline-color: var(--carmine);
}
button, input {
  font: inherit;
}
button, summary {
  cursor: pointer;
}
svg, img {
  max-width: 100%;
}
h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.7vw, 4.5rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.005em;
}
h3 {
  font-size: 1.5rem;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
}
.narrow {
  max-width: 760px;
}
.section {
  padding-block: clamp(52px, 7vw, 88px);
}
.parchment {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.eyebrow {
  margin-bottom: 16px;
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.parchment .eyebrow {
  color: var(--carmine);
}
.section-intro {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.08rem;
}
.small {
  font-size: 0.9rem;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--saffron);
  color: var(--night);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}
.button:hover {
  background: #f1b65d;
}
.button-small {
  min-height: 44px;
  padding: 9px 16px;
}
.button-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--night-line);
}
.button-outline:hover {
  background: var(--night-soft);
}
.button-muted {
  background: #e5dac7;
  color: var(--ink);
}

/* Header stays fully navigable without JavaScript on small screens. */
.test-banner {
  padding: 8px 20px;
  background: #f6cc83;
  color: var(--night);
  text-align: center;
  font-size: 0.85rem;
}
.site-header {
  border-bottom: 1px solid var(--night-line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 16px 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 1.8rem / 1.2 var(--serif);
  text-decoration: none;
}
.brand > span {
  color: var(--saffron);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  font-size: 0.85rem;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  order: 3;
  width: 100%;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  text-decoration: none;
}

/* Landing: hero, features and steps. */
.hero {
  padding-block: 52px 40px;
  background: radial-gradient(ellipse at 85% 20%, #30294b, var(--night) 70%);
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.lead {
  max-width: 650px;
  color: #e3dacd;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 28px 18px;
}
.hero-note, .hero-illustration p {
  color: #d4c7b7;
  font-size: 0.85rem;
}
.hero-illustration {
  text-align: center;
}
.hero-art {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(232, 163, 61, .18));
  fill: none;
  stroke: var(--saffron);
  stroke-width: 1.3;
}
.hero-illustration p {
  margin-top: 12px;
}
.cards {
  display: grid;
  gap: 18px;
}
.card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card-symbol {
  display: block;
  margin-bottom: 12px;
  color: var(--carmine);
  font-size: 1.8rem;
  line-height: 1;
}
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-card > p {
  color: var(--muted);
}
.feature-card .question-example {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--carmine);
  font-size: 0.92rem;
}
.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  margin-block: 30px;
  list-style: none;
}
.steps li {
  border-top: 1px solid var(--night-line);
  padding-top: 20px;
}
.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--saffron);
  font: 1.7rem var(--serif);
}
.steps p {
  color: #ded3c6;
}
.highlight {
  padding: 20px;
  border-left: 3px solid var(--saffron);
  background: var(--night-soft);
  color: var(--saffron);
}

/* Packages, delivery and native FAQ disclosures. */
.tariff-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-block: 32px 24px;
}
.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 52px;
}
.tariff-card.popular {
  border: 2px solid var(--carmine);
}
.popular-label {
  position: absolute;
  top: 0;
  left: 20px;
  padding: 5px 12px;
  background: var(--carmine);
  color: white;
  border-radius: 0 0 6px 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tariff-card .price {
  margin-block: 12px;
  color: var(--carmine);
  font: 500 2.8rem / 1.2 var(--serif);
}
.price span {
  font-size: 1.7rem;
}
.tariff-energy {
  font-weight: 700;
}
.unit-price {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.tariff-card .button {
  margin-top: auto;
}
.payment-notice {
  margin-block: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.delivery-grid {
  display: grid;
  gap: 32px;
}
.delivery-note {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night-soft);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 20px 4px;
  font-weight: 600;
  line-height: 1.5;
}
summary::marker {
  color: var(--carmine);
}
details[open] summary {
  color: var(--carmine);
}
details p {
  padding: 0 4px 22px;
  color: var(--muted);
}
.disclaimer {
  border-top: 1px solid var(--night-line);
}
.age-mark {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--saffron);
  border-radius: 4px;
  color: var(--saffron);
}

/* Footer and seller details are shared by every public page. */
.site-footer {
  padding-block: 48px;
  background: #100f24;
  color: #e9dfd0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 36px;
}
.footer-grid > * {
  min-width: 0;
}
.site-footer h2 {
  font: 700 1rem var(--sans);
}
.site-footer .brand {
  margin-bottom: 16px;
}
.footer-links {
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin-block: 10px;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.payment-badges span {
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.8rem;
}
.details {
  display: grid;
  gap: 4px 20px;
  margin-block: 20px;
}
.details dt {
  font-weight: 600;
}
.details dd {
  min-width: 0;
  margin: 0 0 12px;
}
.site-footer .details {
  grid-template-columns: 1fr;
  gap: 2px;
}
.site-footer .details dt {
  color: #c8bba9;
  font-size: 0.8rem;
}

/* Legal documents: readable line length, contents and contained tables. */
.document {
  max-width: 860px;
}
.document h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.document h2 {
  margin-top: 1.6em;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.document p {
  line-height: 1.85;
}
.document section {
  scroll-margin-top: 24px;
}
.edition {
  color: var(--muted);
  font-size: 0.9rem;
}
.notice {
  padding: 16px 20px;
  border-left: 4px solid var(--carmine);
  background: #efe1d1;
}
.toc {
  padding: 24px;
  margin-block: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.toc ol {
  padding-left: 24px;
  margin-bottom: 0;
}
.toc li {
  padding-block: 5px;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
caption {
  padding-bottom: 12px;
  text-align: left;
  font-weight: 700;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
thead {
  background: #eadfcf;
}

/* Auth and test checkout. */
.auth-card {
  max-width: 540px;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.auth-card h1 {
  font-size: 2.6rem;
}
.auth-card form {
  display: grid;
  gap: 18px;
}
.auth-card label:not(.checkbox) {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.auth-card input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8d816f;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkbox input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--carmine);
}
.form-error {
  color: #8b281b;
  font-weight: 700;
}
.auth-card form + p {
  margin-top: 24px;
}
.telegram-login {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.telegram-login iframe {
  max-width: 100%;
}
.mock-warning {
  background: #7b301e;
  color: white;
  padding: 16px;
  border-radius: 4px;
  font-weight: 700;
}

/* Enhance the mobile layout as space becomes available. */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .details {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
  .hero-art {
    width: 180px;
  }
}
@media (min-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    padding-block: 20px;
  }
  .site-header nav {
    order: initial;
    width: auto;
    gap: 24px;
  }
  .site-header nav a {
    font-size: 0.95rem;
  }
  .hero {
    padding-block: 88px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 48px;
  }
  .hero-art {
    width: 300px;
  }
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .delivery-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 64px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
@media print {
  body, .parchment {
    background: white;
    color: black;
  }
  .site-header, .site-footer, .test-banner, .skip-link {
    display: none;
  }
  .section {
    padding-block: 0;
  }
  .container {
    width: 100%;
  }
  .document h2 {
    break-after: avoid;
  }
}

/* Georgian system fonts and long words retain the same responsive layout. */
:lang(ka) {
  --sans: "Noto Sans Georgian", "BPG Arial", "Sylfaen", "Segoe UI", Arial, sans-serif;
  --serif: "Noto Sans Georgian", "BPG Arial", "Sylfaen", Georgia, serif;
}
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-switch[aria-current="page"] {
  color: var(--saffron);
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.header-actions {
  flex-wrap: wrap;
  min-width: 0;
}
@media (min-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }
}

/* Tables: words never break mid-number; a wide table scrolls inside its wrapper instead of squeezing. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { overflow-wrap: normal; word-break: normal; min-width: 30rem; }
.table-wrap th, .table-wrap td { overflow-wrap: normal; hyphens: manual; }
.table-wrap td:not(:first-child), .table-wrap th:not(:first-child) { white-space: nowrap; }
