:root {
  --olive: #46492a;
  --olive-soft: #8f9362;
  --brown: #8a653c;
  --cream: #fbf7f0;
  --beige: #f4e8dc;
  --rose: #f7efe9;
  --text: #242215;
  --muted: #706a57;
  --border: #e5dbce;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(70, 73, 42, 0.12);
  --body-bg: linear-gradient(180deg, rgba(247, 239, 233, 0.75), rgba(251, 247, 240, 0) 460px), var(--cream);
  --grid-line: rgba(229, 219, 206, 0.36);
  --grid-line-soft: rgba(229, 219, 206, 0.22);
  --header-bg: rgba(244, 232, 220, 0.92);
  --card-bg: rgba(255, 253, 249, 0.78);
  --ghost-bg: rgba(255, 253, 249, 0.6);
  --button-shadow: 0 12px 28px rgba(70, 73, 42, 0.14);
  --book-shadow: 0 24px 60px rgba(36, 34, 21, 0.2);
  --card-shadow: 0 12px 30px rgba(70, 73, 42, 0.07);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --olive: #d4d8a7;
  --olive-soft: #aeb476;
  --brown: #e6b980;
  --cream: #161914;
  --beige: #252a1f;
  --rose: #2c261f;
  --text: #f4efe4;
  --muted: #c9c0ae;
  --border: #434935;
  --white: #1d2119;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --body-bg: linear-gradient(180deg, rgba(50, 42, 34, 0.68), rgba(22, 25, 20, 0) 460px), var(--cream);
  --grid-line: rgba(212, 216, 167, 0.12);
  --grid-line-soft: rgba(230, 185, 128, 0.08);
  --header-bg: rgba(18, 20, 16, 0.9);
  --card-bg: rgba(29, 33, 25, 0.86);
  --ghost-bg: rgba(29, 33, 25, 0.68);
  --button-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --book-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-family: "Noto Sans Georgian", "Noto Serif Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 180ms ease, color 180ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, #000, transparent 76%);
}

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

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

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(143, 147, 98, 0.5);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: 74px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(229, 219, 206, 0.76);
  border-radius: 8px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(70, 73, 42, 0.1);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  overflow: hidden;
  border-radius: 8px;
  transition: background 180ms ease;
}

.brand:hover {
  background: var(--ghost-bg);
}

.brand img {
  height: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  object-fit: contain;
}

.brand-mark {
  width: 86px;
}

.brand-text {
  width: 112px;
}

footer img {
  max-width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  object-fit: contain;
}

.primary-nav {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--ghost-bg);
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
footer a:hover {
  color: var(--olive);
}

.primary-nav a:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--olive);
  border-radius: 8px;
  color: var(--olive);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow);
}

.button.primary,
.button.small {
  color: var(--white);
  background: var(--olive);
}

.button.ghost {
  border-color: var(--border);
  background: var(--ghost-bg);
}

.button.small {
  min-height: 42px;
  white-space: nowrap;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--olive);
  background: var(--ghost-bg);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--olive);
  transform: translateY(-1px);
  box-shadow: var(--button-shadow);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-35deg) scale(0.7);
}

:root[data-theme="dark"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(35deg) scale(0.7);
}

:root[data-theme="dark"] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle {
  display: none;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 160ms ease, transform 160ms ease;
}

.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 64px;
  align-items: center;
  min-height: calc(100svh - 82px);
  padding-top: 46px;
}

.hero-copy {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--olive);
  background: rgba(255, 253, 249, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.badge.muted {
  color: var(--brown);
  background: var(--rose);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 6.3vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.lead {
  max-width: 640px;
  color: var(--text);
  font-size: 21px;
}

.note {
  max-width: 620px;
  padding-left: 18px;
  border-left: 2px solid var(--olive-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.book-stage {
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--white), var(--beige));
  box-shadow: var(--shadow);
}

.book-stage img {
  width: min(100%, 410px);
  border-radius: 8px;
  box-shadow: var(--book-shadow);
}

.compact {
  padding-top: 42px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card,
.product-panel,
.order-form,
.future-item,
.social-panel,
details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.mini-card {
  min-height: 230px;
  padding: 24px;
}

.leaf {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: var(--olive);
  background: var(--beige);
  font-size: 24px;
}

.benefit-icon svg,
.time-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.preview,
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.75fr);
  gap: 60px;
  align-items: center;
}

.sample-frame {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.sample-frame img {
  border-radius: 8px;
}

.inside {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 auto 28px;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 58px;
  padding: 17px 18px 17px 48px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--text);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 18px;
  color: var(--olive);
  content: "✓";
}

.disclaimer {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
}

.future {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 30px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
  background: var(--beige);
}

.future h2 {
  margin-top: 16px;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  max-width: 620px;
  margin-top: 24px;
}

.notify-form label {
  min-width: 0;
}

.notify-form .form-message {
  grid-column: 1 / -1;
}

.notify-form button {
  margin-top: 29px;
  justify-self: end;
}

.future-list {
  display: grid;
  gap: 12px;
}

.future-item {
  padding: 18px;
}

.future-item strong,
.future-item span {
  display: block;
}

.future-item span {
  margin-top: 8px;
  color: var(--muted);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.product-panel,
.order-form {
  padding: 24px;
}

.product-panel img {
  display: block;
  width: min(220px, 100%);
  margin: 0 auto 20px;
  border-radius: 8px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

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

dd {
  margin: 0;
  color: var(--olive);
  font-weight: 800;
}

.total-line {
  padding: 14px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.order-form {
  display: grid;
  gap: 18px;
}

.order-fields {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--olive) 50%),
    linear-gradient(135deg, var(--olive) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 21px,
    calc(100% - 16px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 42px;
}

input:hover,
select:hover {
  border-color: rgba(70, 73, 42, 0.48);
}

em,
.standalone-error {
  min-height: 18px;
  color: #8b2f21;
  font-size: 13px;
  font-style: normal;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.order-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--beige);
}

.order-total span {
  color: var(--muted);
}

.order-total strong {
  color: var(--olive);
  font-size: 30px;
}

.order-total small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
}

.form-message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  white-space: pre-line;
}

.form-message.success {
  color: #2f4b24;
  background: #eaf1df;
}

.form-message.error {
  color: #7a281c;
  background: #f7dfd7;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.policy-block {
  min-width: 0;
}

.policy-payment {
  grid-column: 1 / -1;
}

.policy-block p {
  margin: 0;
}

.text-columns p + p {
  margin-top: 0;
}

.text-columns h3 {
  margin: 0 0 8px;
}

@media (max-width: 720px) {
  .text-columns {
    grid-template-columns: 1fr;
  }
}

.social-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px;
  background: var(--olive);
  text-align: center;
}

.social-panel h3,
.social-panel p {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 253, 249, 0.35);
  border-radius: 8px;
  color: var(--white);
}

.social-panel .social-links .social-icon {
  color: #fffdf9;
}

.social-panel .social-links .social-icon svg.brand-icon path {
  fill: #fffdf9;
}

.social-links .social-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.social-links .social-icon svg.brand-icon {
  color: inherit;
  fill: currentColor;
  stroke: none;
}

.social-links .social-icon svg.brand-icon path {
  color: inherit;
  fill: currentColor;
  stroke: none;
}

.social-links .social-icon:hover {
  background: rgba(255, 253, 249, 0.08);
  border-color: var(--white);
}

footer a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 253, 249, 0.35);
  border-radius: 8px;
  color: var(--white);
}

.legal-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
}

summary {
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer [data-footer-username] {
  color: #706a57;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer a {
  border-color: var(--border);
  color: var(--muted);
}

footer .social-icon {
  border: 1px solid var(--border);
  width: 60px;
  height: 60px;
  color: #242215;
}

footer .social-icon svg {
  width: 34px;
  height: 34px;
}

footer .social-icon svg.brand-icon path {
  fill: #242215;
}

footer .social-icon:hover {
  border-color: var(--olive);
  background: rgba(70, 73, 42, 0.06);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    max-height: 0;
    padding: 0 5px;
    margin-top: -8px;
    overflow: hidden;
    border-width: 0;
    opacity: 0;
    order: 3;
    pointer-events: none;
    visibility: hidden;
    transition: max-height 220ms ease, opacity 180ms ease, margin 180ms ease, padding 180ms ease;
  }

  .site-header.is-menu-open .primary-nav {
    max-height: 240px;
    padding: 6px;
    margin-top: 2px;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .primary-nav a {
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    background: transparent;
    text-align: center;
    white-space: normal;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero,
  .preview,
  .about,
  .order-layout,
  .future {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notify-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: min(100% - 16px, 1160px);
    padding: 8px;
    min-height: auto;
  }

  .brand {
    gap: 8px;
    padding: 3px;
  }

  .brand-mark {
    width: 58px;
  }

  .brand-text {
    width: 98px;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .primary-nav {
    grid-template-columns: 1fr;
    font-size: 13px;
  }

  .button.small {
    display: none;
  }

  .section {
    width: min(100% - 24px, 1160px);
    padding: 58px 0;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .book-stage,
  .future,
  .product-panel,
  .order-form,
  .social-panel {
    padding: 18px;
  }

  .benefit-grid,
  .check-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: auto;
  }

  .order-total {
    grid-template-columns: 1fr;
  }
}
