/* ლოგიკის ლაბორატორია — style.css */

:root {
  --ink: #17150F;
  --ink-soft: #4A463D;
  --muted: #77715F;
  --paper: #FAF8F3;
  --paper-2: #F2EEE4;
  --line: #E3DDCF;
  --night: #0B0B0C;
  --night-2: #151517;
  --gold: #C99A45;
  --gold-hi: #ECC56F;
  --gold-lo: #A57629;
  --gold-text: #8A6420;         /* ოქრო ღია ფონზე წასაკითხად */
  --gold-grad: linear-gradient(120deg, var(--gold-lo), var(--gold-hi) 55%, var(--gold));

  /* წიგნების ფერები */
  --book-1: #173C2D;
  --book-2: #182F68;
  --book-3: #63270E;
  --book-4: #5D1A2B;
  --book-5: #0E0E0E;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 16, 8, .25);
  --wrap: 1120px;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --sans: "Noto Sans Georgian", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 50px); }
h2 { font-size: clamp(25px, 4.2vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 154, 69, .25);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: #D8D3C6; text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); }
.nav .btn { padding: 9px 16px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(201, 154, 69, .25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 17px; }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: #1A1406; box-shadow: 0 6px 20px -8px rgba(201,154,69,.7); }
.btn-dark { background: var(--night); color: #fff; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-wa { background: #1F8A4C; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,154,69,.16), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(23,60,45,.45), transparent 60%),
    var(--night);
  color: #EDE9DF;
  padding: 56px 0 64px;
}
.hero::after { /* ნაზი ტექსტურა, როგორც ყდებზე */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 88px 0 96px; } }
.eyebrow { display: inline-block; font-size: 14px; color: var(--gold-hi); letter-spacing: .04em; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: #CFC9BB; max-width: 34em; }
.hero .btns { margin-top: 28px; }
.hero .btn-line { color: #EDE9DF; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .cover { width: min(300px, 70vw); transform: rotate(-3deg); }

/* ---------- book cover (CSS-ით დახატული, სანამ ფოტო არ გვაქვს) ---------- */
.cover {
  --c: var(--book-1);
  position: relative; aspect-ratio: 210 / 297; border-radius: 4px 10px 10px 4px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 100%, #fff 8%), color-mix(in srgb, var(--c) 80%, #000 40%));
  color: #fff; padding: 9% 9% 8%;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.65), inset 6px 0 10px -6px rgba(0,0,0,.5);
  font-family: var(--sans);
}
.cover img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cover .c-ll { width: 16%; }
.cover .c-sys { font-size: clamp(7px, 1.1vw, 10px); letter-spacing: .14em; opacity: .75; margin-top: 4%; }
.cover .c-title { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 4.2vw, 40px); letter-spacing: .06em; margin-top: 8%; line-height: 1; }
.cover .c-sub { font-size: clamp(8px, 1.2vw, 11px); letter-spacing: .1em; opacity: .8; margin-top: 3%; }
.cover .c-grid {
  margin: 9% auto 0; width: 62%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr);
  border: 2px solid rgba(255,255,255,.75); background: rgba(255,255,255,.05);
}
.cover .c-grid i { border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); font: 600 clamp(5px, .9vw, 9px)/1 var(--sans); display: grid; place-items: center; font-style: normal; }
.cover .c-grid i:nth-child(3n) { border-right-color: rgba(255,255,255,.7); }
.cover .c-grid i:nth-child(n+19):nth-child(-n+27), .cover .c-grid i:nth-child(n+46):nth-child(-n+54) { border-bottom-color: rgba(255,255,255,.7); }
.cover .c-level { margin-top: auto; font-family: var(--serif); font-size: clamp(14px, 2.4vw, 22px); font-weight: 600; }
.cover .c-book { font-size: clamp(7px, 1vw, 10px); letter-spacing: .14em; opacity: .7; }
.cover[data-book="5"] { border: 1.5px solid var(--gold); }
.cover[data-book="5"] .c-level, .cover[data-book="5"] .c-title { color: var(--gold-hi); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--night); color: #E7E2D6; }
.section.dark .muted { color: #A9A291; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker { display: block; font-size: 14px; color: var(--gold-text); letter-spacing: .04em; margin-bottom: 8px; font-weight: 600; }
.section.dark .kicker { color: var(--gold-hi); }
.rule { width: 48px; height: 3px; border-radius: 2px; background: var(--gold-grad); margin: 0 0 18px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* principles */
.grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--night); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--gold-hi); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* learning path */
.path { display: grid; gap: 14px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(5, 1fr); } }
.step {
  --c: var(--book-1);
  position: relative; border-radius: var(--radius); padding: 20px; color: #fff;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000));
  display: flex; flex-direction: column; gap: 6px; min-height: 150px;
  border: 1px solid rgba(255,255,255,.08);
}
.step .s-n { font-size: 13px; letter-spacing: .1em; opacity: .7; }
.step .s-level { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.step .s-ka { font-size: 15px; opacity: .85; }
.step .s-age { font-size: 13px; opacity: .65; }
.step .s-tag { margin-top: auto; align-self: flex-start; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); }
.step.is-on { box-shadow: 0 0 0 2px var(--gold), 0 18px 40px -16px rgba(0,0,0,.6); }
.step.is-on .s-tag { background: var(--gold-grad); color: #1A1406; font-weight: 600; text-decoration: none; }
.step.is-soon { opacity: .78; }
.step[data-book="5"] { border-color: rgba(201,154,69,.6); }
.step[data-book="5"] .s-level { color: var(--gold-hi); }
@media (min-width: 900px) {
  .path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: var(--gold-grad); opacity: .35; z-index: 0; }
  .step { z-index: 1; }
}

/* book block */
.book { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .book { grid-template-columns: 340px 1fr; gap: 56px; } }
.book .cover { width: min(320px, 78vw); margin: 0 auto; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; padding: 0; list-style: none; }
.facts li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.price b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price span { color: #1F7A45; font-weight: 600; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ECC56F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* free + videos */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pdf-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; gap: 18px; align-items: center; }
.pdf-card .pdf-ic { flex: none; width: 64px; height: 80px; border-radius: 6px; background: var(--book-1); color: #fff; display: grid; place-items: center; font: 700 13px var(--sans); letter-spacing: .06em; position: relative; }
.pdf-card .pdf-ic::after { content: ""; position: absolute; top: 0; right: 0; border: 9px solid; border-color: var(--paper) var(--paper) transparent transparent; }
.videos { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: rgba(0,0,0,.7); display: grid; place-items: center; }
.yt .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: 15px; margin-top: 8px; color: var(--ink-soft); }
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }
.section.dark .empty { border-color: rgba(255,255,255,.15); background: transparent; color: #A9A291; }

/* weekly */
.week-flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 22px 0; }
.week-flow div { text-align: center; padding: 12px 2px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.week-flow b { display: block; font-size: 13px; font-weight: 600; }
.week-flow small { font-size: 12px; opacity: .7; }
.week-flow .sun { border-color: var(--gold); background: rgba(201,154,69,.12); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 500 15px var(--sans); cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.tab[disabled] { opacity: .5; cursor: not-allowed; }
.tab small { opacity: .7; }
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.pack .p-n { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.pack .p-meta { font-size: 14px; color: var(--muted); }
.pack .btn { margin-top: 10px; padding: 10px 14px; font-size: 14px; }
.bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; background: var(--night); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; border: 1px solid rgba(201,154,69,.4); }
.bundle b { font-family: var(--serif); font-size: 22px; color: var(--gold-hi); }

/* about */
.about { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 220px 1fr; gap: 56px; } }
.about .mark { width: 140px; }
.about blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.motto { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 30px); line-height: 1.45; }
.motto em { font-style: normal; color: var(--gold-hi); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; }

/* forms */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px var(--sans); padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--gold); background: #FFFBF1; }
.choice input { margin-top: 5px; accent-color: var(--gold-lo); }
.choice small { display: block; color: var(--muted); font-size: 14px; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.summary { background: var(--paper-2); border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.summary b { font-family: var(--serif); font-size: 22px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.hidden { display: none !important; }
.order-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .order-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.order-side { background: var(--night); color: #E7E2D6; border-radius: var(--radius); padding: 24px; }
.order-side .cover { width: 140px; margin-bottom: 16px; }

/* page head (შიდა გვერდები) */
.page-head { background: var(--night); color: #EDE9DF; padding: 48px 0 44px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 300px at 90% 0%, rgba(201,154,69,.15), transparent 60%); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); }
.page-head p { color: #CFC9BB; max-width: 40em; margin: 0; }
.crumbs { font-size: 14px; color: #A9A291; margin-bottom: 10px; }
.crumbs a { color: #A9A291; }

.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery .ph { aspect-ratio: 3/4; border-radius: 10px; background: var(--paper-2); border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 10px; }
.gallery img { aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }

/* footer */
.site-footer { background: var(--night); color: #A9A291; padding: 48px 0 28px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font: 600 15px var(--sans); margin: 0 0 12px; }
.site-footer a { color: #CFC9BB; text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .motto-sm { font-family: var(--serif); color: #E7E2D6; margin-top: 12px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201,154,69,.45); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: #E7E2D6; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1F8A4C; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* fixes */
.field .choice { display: flex; }
.nav a.btn, .nav a.btn:hover { color: #1A1406; }
@media (max-width: 899px) { .step { min-height: 0; } .about .mark { width: 96px; } }
.hero-format { display: inline-block; font-size: 15px; color: #E7E2D6; border: 1px solid rgba(201,154,69,.45); border-radius: 999px; padding: 6px 14px; margin: 4px 0 0; }
.field .choice input { width: 18px; height: 18px; padding: 0; flex: none; }
.summary b { white-space: nowrap; }
.form-error { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.form-error a { color: inherit; font-weight: 600; }
