@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&family=Noto+Serif+Georgian:wght@500;700&display=swap');

:root {
    --bg: #140b17;
    --card: rgba(255,255,255,.06);
    --card-2: rgba(255,255,255,.1);
    --line: rgba(255,255,255,.15);
    --rose: #f22d52;
    --rose-2: #ff5c7a;
    --pink: #f49bb9;
    --ink: #ffffff;
    --muted: #cdb8c6;
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans Georgian', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 560px at 12% -8%, #4a1d3a 0%, transparent 60%),
        radial-gradient(900px 480px at 100% 6%, #2d1b4e 0%, transparent 55%),
        var(--bg);
    background-attachment: scroll;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Noto Serif Georgian', serif; line-height: 1.25; }
h2 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 10px; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section.block { padding: 64px 0; }
.lead { color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.eyebrow { color: var(--pink); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }

/* ღილაკები */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; text-decoration: none;
    font-family: inherit; font-weight: 700; font-size: 16px;
    padding: 14px 26px; border-radius: 30px; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 30px rgba(242,45,82,.35); }
.btn-primary:hover { background: var(--rose-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-soft { background: var(--card-2); color: #fff; border: 1px solid var(--line); }
.btn[hidden] { display: none; }

/* ნავიგაცია */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(20,11,23,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--rose); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* მთავარი */
.hero { padding: 54px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6.4vw, 58px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--rose-2); }
.hero p.hero-sub { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }

.phone {
    width: 300px; height: 600px; border-radius: 40px; border: 9px solid #08040a;
    background: #08040a; overflow: hidden; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12);
}
.phone iframe { width: 100%; height: 100%; border: 0; display: block; background: #1a0f1c; }
.phone-cap { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.hero-phone { display: flex; flex-direction: column; align-items: center; }

/* ნაბიჯები */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* კატალოგი */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 320px)); gap: 20px; }
.game {
    text-align: left; font-family: inherit; color: inherit; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; transition: .2s; position: relative; display: flex; flex-direction: column; gap: 8px;
}
.game:hover { transform: translateY(-3px); background: var(--card-2); }
.game.sel { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(242,45,82,.35); background: rgba(242,45,82,.1); }
.game .em { font-size: 38px; }
.game h3 { font-size: 20px; }
.game p { color: var(--muted); font-size: 14px; flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.tag.ready { background: rgba(120,230,170,.18); color: #8ff0bd; }
.tag.soon { background: rgba(255,255,255,.12); color: var(--muted); }
.tag.custom { background: rgba(244,155,185,.2); color: var(--pink); }

/* ფასები */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg { text-align: left; font-family: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; transition: .2s; }
.pkg:hover { background: var(--card-2); }
.pkg.sel { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(242,45,82,.35); }
.pkg .badge { position: absolute; top: -12px; right: 18px; background: var(--rose); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.pkg h3 { font-size: 21px; }
.pkg .price { font-size: 38px; font-weight: 700; margin: 8px 0 2px; }
.pkg .price small { font-size: 18px; font-weight: 500; color: var(--muted); }
.pkg .for { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pkg ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.pkg li::before { content: "✓"; color: #8ff0bd; font-weight: 700; margin-right: 8px; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* კონფიგურატორი */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.panel { display: grid; gap: 12px; }
details.grp { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
details.grp > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary::after { content: "+"; color: var(--pink); font-size: 22px; line-height: 1; }
details.grp[open] > summary::after { content: "–"; }
.grp-body { padding: 4px 18px 18px; display: grid; gap: 14px; }
.sub { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.sub:first-child { border-top: 0; padding-top: 0; }
.sub h4 { font-size: 14px; color: var(--pink); }

label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="tel"], input[type="date"], textarea, select {
    width: 100%; min-width: 0; font-family: inherit; font-size: 16px; color: #fff;
    background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    color-scheme: dark;
}
input:focus, textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
textarea { min-height: 84px; resize: vertical; }
input[type="file"] { font-size: 14px; color: var(--muted); }

.colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.colors label.f { grid-template-columns: 1fr auto; align-items: center; }
input[type="color"] { width: 48px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 2px; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; position: relative; }
.sw span { position: absolute; inset: 4px; border-radius: 50%; }
.sw.on { border-color: #fff; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--rose); }

.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; }
.row.one { grid-template-columns: 1fr 40px; }
.x { background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; border-radius: 12px; cursor: pointer; font-size: 18px; }
.x:hover { background: rgba(242,45,82,.3); }
.add { justify-self: start; }
.hint { color: var(--muted); font-size: 13px; }

.preview-col { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: center; }
.preview-col .phone { width: 320px; height: 640px; }
.close-prev { display: none; }
.fab { display: none; }

/* შეკვეთა */
.order { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 26px; padding: 28px; max-width: 760px; margin: 0 auto; }
.order .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order .full { grid-column: 1 / -1; }
.sum { background: rgba(0,0,0,.25); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.sum b { color: #fff; }
.info { background: rgba(111,211,255,.10); border: 1px solid rgba(111,211,255,.35); border-radius: 14px; padding: 12px 16px; font-size: 14px; color: #d6eefa; line-height: 1.6; }
.info b { color: #fff; }
.info ol { margin: 6px 0 0; padding-left: 20px; }
.info li { margin-bottom: 4px; }
.grp-body .info { margin-bottom: 14px; }
.game .price-tag { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ყვითელი ფასის იარლიყი თამაშის ბარათის კუთხეში */
.game .price-badge {
    position: absolute; top: 18px; right: -6px;
    padding: 8px 14px 8px 24px;
    background: linear-gradient(135deg, #fff06a 0%, #ffc61a 60%, #ffae00 100%);
    color: #3a2600; font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: .3px;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 15px 100%, 0 50%);
    transform: rotate(8deg); transform-origin: right center;
    transition: transform .25s;
}
.game .price-badge::before {
    content: ""; position: absolute; left: 11px; top: 50%;
    width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: rgba(58, 38, 0, .45);
}
.game:hover .price-badge { transform: rotate(3deg) scale(1.06); }

/* ემოჯის ღილაკი ტექსტურ ველებში */
.emo-field { position: relative; display: block; min-width: 0; }
.emo-field > input, .emo-field > textarea { width: 100%; padding-right: 42px; }
.emo-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
    background: transparent; font-size: 18px; line-height: 1; cursor: pointer; opacity: .7; transition: .15s;
}
.emo-btn:hover, .emo-btn.on { opacity: 1; background: rgba(255,255,255,.1); }
.emo-field.ta .emo-btn { top: 6px; transform: none; }

.emoji-pop {
    position: absolute; z-index: 300; width: 316px; max-width: calc(100vw - 16px);
    background: #241826; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55); padding: 8px;
}
.emoji-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.emoji-tabs button { flex: 1; background: transparent; border: 0; border-radius: 8px; font-size: 19px; padding: 6px 0; cursor: pointer; }
.emoji-tabs button.on { background: rgba(255,255,255,.12); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 210px; overflow-y: auto; }
.emoji-grid button { background: transparent; border: 0; border-radius: 8px; font-size: 22px; line-height: 1.25; padding: 4px 0; cursor: pointer; }
.emoji-grid button:hover { background: rgba(255,255,255,.12); }
.sum.done { margin-top: 14px; background: rgba(95,211,154,.12); border: 1px solid rgba(95,211,154,.45); color: #c9f2dc; }
.sum.warn { background: rgba(255,176,103,.14); border: 1px solid rgba(255,176,103,.5); color: #ffd9b3; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer a { text-decoration: none; margin-right: 16px; }
footer a:hover { color: #fff; }

.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0;
    background: #fff; color: #1a0f1c; font-weight: 600; padding: 12px 20px; border-radius: 30px;
    z-index: 200; transition: .3s; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-phone { order: 2; }
    .games { grid-template-columns: repeat(2, 1fr); }
    .steps, .pkgs { grid-template-columns: 1fr; }
    .cfg { grid-template-columns: 1fr; }

    .preview-col {
        position: fixed; inset: 0; z-index: 90; display: none; justify-content: center;
        background: rgba(10,5,12,.94); padding: 14px;
    }
    .preview-col.open { display: flex; }
    .preview-col .phone { width: min(92vw, 380px); height: min(76vh, 700px); }
    .close-prev { display: inline-flex; margin-top: 14px; }
    .fab {
        display: inline-flex; position: fixed; right: 16px; bottom: 18px; z-index: 60;
        box-shadow: 0 10px 30px rgba(0,0,0,.5);
    }
    .nav-links a:not(.btn) { display: none; }
    .order .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    section.block { padding: 48px 0; }
    .games { grid-template-columns: 1fr; }
    .colors { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr 40px; }
    .row > :nth-child(2):not(:last-child) { grid-column: 1; }
    .order { padding: 20px; }
    .hero { padding-top: 34px; }
}
