/*
 * Sitkva – translation agency template · Abedev (abedev.com)
 *
 * Design: a well-set dictionary – ivory paper, ink and one bordeaux accent, a literary serif with italics for headings
 * over a clean sans, numbered entries, hairlines and real photography. Motion is quiet: a word turns into the next
 * language under the heading, the languages drift by on a dark band, entries shift. The language switch is a word list
 * of the languages in their own scripts with small flags; on phones the menu is a dictionary page where every entry
 * shows its name in the other languages. Colours, fonts and spacing are variables. All motion stops with "reduce motion".
 */
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spectral-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spectral-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/spectral-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/spectral-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/spectral-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sitkva Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Sitkva Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sitkva Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/spectral-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sitkva Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/spectral-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sitkva Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sitkva Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

:root {
    --paper: #f6f2ea;
    --white: #fffdf9;
    --ink: #1a1714;
    --accent: #8d1c3b;
    --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
    --accent-light: color-mix(in srgb, var(--accent) 45%, #fff);
    --muted: #625a51;
    --line: #e1d9ca;
    --line-dark: rgba(255, 255, 255, .15);
    --r: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --serif: "Sitkva Serif", Georgia, serif;
    --sans: "Sitkva Sans", system-ui, sans-serif;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.no-scroll { overflow: hidden; }
.addr { line-height: 1.6; }

/* type */
.display { font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.display--page { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 17ch; }
.display--cta { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
:lang(ka) .display { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.22; font-weight: 600; }
:lang(ka) .display--page { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
:lang(ka) .display--cta { font-size: clamp(1.6rem, 3vw, 2.4rem); }
:lang(ka) .h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 600; }
.display, .h2, .h3 { overflow-wrap: break-word; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font: italic 400 1.05rem/1.2 var(--serif); color: var(--accent); }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.small-label { display: block; margin: 0 0 8px; padding: 0; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .small-label { letter-spacing: 0; text-transform: none; font-size: .86rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.more:hover { background-size: 100% 1px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .93); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 400 1.6rem/1 var(--serif); letter-spacing: -.02em; min-width: 0; }
.logo small { display: block; margin-top: 4px; font: italic 400 .86rem/1 var(--serif); letter-spacing: 0; color: var(--muted); }
.logo-img { max-height: 40px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font: italic 400 1.4rem/1 var(--serif); transition: background .3s, color .3s; }
.logo:hover .logo-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav { display: flex; gap: 24px; }
.nav a { position: relative; padding: 6px 0; font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current] { color: var(--accent); }
.header-cta[aria-current] { background: var(--ink); }

/* language switch: a word list – every language in its own script, with a small flag, divided by slashes */
.words ul { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.words li + li::before { content: "/"; margin: 0 6px; color: var(--line); font-family: var(--serif); }
.words a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--muted); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.words .flag { width: 16px; height: 11px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .3s var(--ease); }
.words a:hover { color: var(--ink); background-size: 100% 1px; }
.words a:hover .flag { transform: translateY(-2px); }
.words a[aria-current] { color: var(--accent); background-size: 100% 1px; }
.words--panel ul { flex-direction: column; align-items: flex-start; gap: 4px; }
.words--panel li + li::before { display: none; }
.words--panel a { font-size: 1.05rem; padding: 6px 0; }
.words--panel .flag { width: 22px; height: 15px; }
.panel-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; font-weight: 600; cursor: pointer; }

/* phone menu: a dictionary page – each page an entry with its name in the other languages */
.panel { position: fixed; inset: 0; z-index: 100; background: var(--paper); opacity: 0; transition: opacity .35s; }
.panel.is-open { opacity: 1; }
.panel-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; padding: 18px 20px 26px; overflow-y: auto; }
.panel-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.panel-label { font: italic 400 1.15rem/1 var(--serif); color: var(--accent); }
.panel-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.panel-nav { display: grid; }
.panel-nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .4s calc(var(--i) * 70ms + 120ms), transform .5s var(--ease) calc(var(--i) * 70ms + 120ms); }
.panel.is-open .panel-nav a { opacity: 1; transform: none; }
.panel-num { font: italic 400 1.2rem/1.4 var(--serif); color: var(--accent); }
.panel-text { font: 400 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.02em; min-width: 0; overflow-wrap: break-word; }
:lang(ka) .panel-text { font-size: clamp(1.3rem, 5.6vw, 1.7rem); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.panel-text small { display: block; margin-top: 6px; font: italic 400 .98rem/1.35 var(--serif); letter-spacing: 0; color: var(--muted); }
.panel-nav a[aria-current] .panel-text { color: var(--accent); }
.panel-contact { margin: auto 0 0; color: var(--muted); line-height: 1.8; }

/* hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-text .display { margin-bottom: 10px; }
.rotor { position: relative; display: block; height: 1.25em; margin: 0 0 26px; overflow: hidden; font: italic 400 clamp(2.2rem, 5vw, 4rem)/1.2 var(--serif); color: var(--accent); }
.rotor-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: transform .6s var(--ease), opacity .6s; }
.rotor-word.is-on { opacity: 1; transform: none; }
.rotor-word.is-off { opacity: 0; transform: translateY(-100%); }
.rotor-word[lang="ka"] { font-style: normal; font-size: .82em; }
.hero .lead { margin-bottom: 30px; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.hero-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--accent); z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }

/* languages band */
.langs-band { background: var(--ink); color: #fff; overflow: hidden; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; animation: slide 46s linear infinite; }
.langs-band:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-list { display: flex; flex: none; margin: 0; padding: 22px 0; list-style: none; }
.marquee-list li { display: flex; align-items: baseline; gap: 10px; padding: 0 30px; border-right: 1px solid var(--line-dark); white-space: nowrap; }
.marquee-list span { font: italic 400 1.6rem/1.2 var(--serif); }
.marquee-list span[lang="ka"] { font-style: normal; font-size: 1.3rem; }
.marquee-list small { color: rgba(255, 255, 255, .55); font-size: .82rem; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(20px, 3vw, 36px); }
.section--soft { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { flex-basis: 100%; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* entries: services like a dictionary */
.entries { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .35s var(--ease); }
.entry:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); padding-left: 10px; }
.entry-n { font: italic 400 1.5rem/1 var(--serif); color: var(--accent); }
.entry-ico { align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--white); }
.entry h3, .entry .h3 { margin-bottom: 6px; font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
:lang(ka) .entry h3, :lang(ka) .entry .h3 { font-weight: 600; font-size: 1.25rem; }
.entry p { margin: 0; color: var(--muted); max-width: 62ch; }
.entry-from { font: italic 400 1.1rem/1.2 var(--serif); white-space: nowrap; }

/* facts */
.facts { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: 4px; padding: 30px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font: 400 clamp(2.3rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; color: var(--accent); }
.fact span { color: var(--muted); font-size: .95rem; }

/* how it works */
.type-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.type-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s; }
.type-photo:hover img { filter: grayscale(0); }
.steps { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-n { font: italic 400 1.15rem/1.6 var(--serif); color: var(--accent); }
.steps h3 { margin-bottom: 4px; font-size: 1.35rem; font-weight: 400; }
:lang(ka) .steps h3 { font-size: 1.15rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.quote { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.quote blockquote { margin: 0 0 14px; font: italic 400 1.3rem/1.45 var(--serif); }
:lang(ka) .quote blockquote { font-style: normal; font-size: 1.05rem; line-height: 1.7; }
.quote blockquote p { margin: 0; }
q { quotes: "“" "”"; }
:lang(de) q, :lang(ka) q { quotes: "„" "“"; }
:lang(ru) q { quotes: "«" "»"; }
.quote figcaption { font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* call to action */
.cta { padding: clamp(56px, 8vw, 96px) 0; background: var(--accent); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }

/* page head */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 34px); }
.page-head .lead { margin-top: 20px; }
.page-head h1 { overflow-wrap: break-word; }

/* language pair matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.matrix th, .matrix td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--ink); }
.matrix abbr { text-decoration: none; }
.matrix tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600; white-space: nowrap; background: #fff; }
.matrix tbody th small { display: block; font-weight: 400; font-style: italic; font-family: var(--serif); color: var(--muted); }
.matrix-corner { display: block; text-align: left; font-weight: 400; font-style: italic; font-family: var(--serif); letter-spacing: 0; white-space: nowrap; }
.matrix tbody tr:hover th, .matrix tbody tr:hover td { background: var(--accent-soft); }
.m-yes { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .2s var(--ease); }
.m-yes:hover { transform: scale(1.15); }
.m-yes .icon { width: 16px; height: 16px; }
.m-self { display: inline-block; width: 30px; height: 30px; background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 6px); border-radius: 50%; }
.m-no { display: inline-block; width: 8px; height: 1px; background: var(--muted); vertical-align: middle; }
.domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.domains li { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.domains h3 { margin-bottom: 6px; font-size: 1.35rem; font-weight: 400; }
:lang(ka) .domains h3 { font-size: 1.15rem; font-weight: 600; }
.domains p { margin: 0; color: var(--muted); }

/* quote */
.quote-in, .quote-out { padding: clamp(20px, 3vw, 34px); }
.estimate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--ink); background: #fff; }
.quote-in { display: grid; gap: 20px; align-content: start; }
.quote-in .field { margin: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.pair .field { margin: 0; }
.swap { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; transition: transform .4s var(--ease), border-color .2s; }
.swap:hover:not(:disabled) { transform: rotate(180deg); border-color: var(--ink); }
.swap:disabled { opacity: .35; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .93rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.counter { border: 1px dashed var(--line); padding: 12px 14px; }
.counter summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
.counter summary::-webkit-details-marker { display: none; }
.counter textarea { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); resize: vertical; }
.counter p { margin: 8px 0 0; }
.toggle { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background .25s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.toggle .icon { color: var(--accent); }
.toggle--field { align-self: center; margin-bottom: 18px; }
.quote-out { display: flex; flex-direction: column; gap: 12px; background: var(--ink); color: #fff; }
.quote-out .small-label { color: rgba(255, 255, 255, .55); margin: 0; }
.quote-pair { margin: 0; font: italic 400 1.35rem/1.3 var(--serif); }
.bill { margin: 0; }
.bill div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); }
.bill dt { color: rgba(255, 255, 255, .72); font-size: .94rem; }
.bill dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill .bill-total { align-items: baseline; padding-top: 16px; border-bottom: 0; }
.bill-total dt { color: #fff; font-weight: 600; }
.bill-total dd { font: 400 clamp(2.2rem, 4vw, 2.8rem)/1 var(--serif); color: #fff; }
.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(6px); opacity: .3; } }
.quote-out .muted { color: rgba(255, 255, 255, .6); margin: 0; }
.ready { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--line-dark); }
.ready .icon { margin-top: 3px; color: var(--accent-light); }
.quote-out .btn { align-self: flex-start; }
.quote-note { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.rates li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rates li > span:first-child small { font: italic 400 .95rem/1 var(--serif); color: var(--muted); margin-left: 6px; }
.rates-dots { flex: 1; min-width: 14px; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.rates b { font: 400 1.3rem/1 var(--serif); }
.rates li > small { color: var(--muted); font-size: .82rem; }
.rates-note { margin-top: 20px; max-width: 70ch; }

/* order */
.book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.block { margin: 0 0 20px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); background: #fff; min-width: 0; }
.block > legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding: 0; font: 400 1.6rem/1.15 var(--serif); }
:lang(ka) .block > legend { font-size: 1.25rem; font-weight: 600; }
.block > legend + * { clear: both; }
.block .pair { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background-color: #fff; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1714' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }   /* iOS Safari would let it stick out */
.field input[type="date"]::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.note:last-child { margin-bottom: 0; }
.note .icon { margin-top: 3px; color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .92rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-status { margin-top: 14px; }
.form-status.is-shown { padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--paper); font-weight: 600; }
.form-status.ok { border-color: #2e7d4f; }
.form-status.info { border-color: var(--accent); }
.form-status.error { border-color: #b3261e; color: #8c1d18; }
.book-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.card--summary { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--summary .small-label { color: rgba(255, 255, 255, .55); }
.summary-pair { margin: 0 0 6px; font: italic 400 1.5rem/1.2 var(--serif); }
.summary-main { margin: 0 0 10px; color: rgba(255, 255, 255, .78); }
.summary-price { margin: 0 0 6px; font: 400 2.2rem/1 var(--serif); }
.summary-when { margin: 0; color: rgba(255, 255, 255, .78); }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { margin: 34px 0 12px; font-size: 1.6rem; font-weight: 400; }
:lang(ka) .legal h2 { font-size: 1.25rem; font-weight: 600; }
.legal h2:first-child { margin-top: 0; }
.page-head h1:not(.display) { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; }
:lang(ka) .page-head h1:not(.display) { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; }

/* footer */
.footer { padding: clamp(48px, 6vw, 80px) 0 24px; background: var(--ink); color: rgba(255, 255, 255, .75); }
.footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer a:hover { text-decoration-color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-name { font: italic 400 2.6rem/1 var(--serif); color: #fff; margin-bottom: 14px; }
.footer-h { margin-bottom: 14px; font: 600 .76rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
:lang(ka) .footer-h { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.footer .plain li { padding: 3px 0; }
.footer .plain a { text-decoration: none; }
.footer .plain a:hover { text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; transition: background .2s; }
.socials a:hover { background: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1180px) {
    .nav { gap: 16px; }
    .header-inner { gap: 16px; }
    .words--top a span { display: none; }
    .words--top a { gap: 0; }
    .words--top .flag { width: 22px; height: 15px; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1020px) {
    .nav, .words--top, .header-cta { display: none; }
    .panel-btn { display: inline-flex; }
    .hero-grid, .split, .book-grid, .cta-inner, .estimate { grid-template-columns: minmax(0, 1fr); }
    .hero-photo { aspect-ratio: 16 / 10; margin-right: 18px; }
    .type-photo { aspect-ratio: 16 / 10; }
    .book-side { position: static; }
    .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .header-inner { min-height: 64px; gap: 12px; }
    .logo { font-size: 1.35rem; }
    .logo-mark { width: 36px; height: 36px; }
    .entry { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
    .entry-from { grid-column: 2; }
    .entry-ico { width: 36px; height: 36px; }
    .fact { padding: 22px 0 22px 14px; }
    .pair { grid-template-columns: minmax(0, 1fr); }
    .swap { justify-self: center; transform: rotate(90deg); width: 44px; height: 44px; }
    .swap:hover:not(:disabled) { transform: rotate(270deg); }
    .row2 { grid-template-columns: minmax(0, 1fr); }
    .marquee-list span { font-size: 1.3rem; }
    .rates b { font-size: 1.15rem; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
    .logo small { display: none; }
    .panel-btn span { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .btn { padding: 12px 16px; }
    .block, .card, .quote-in, .quote-out { padding-left: 16px; padding-right: 16px; }
    .facts-grid { grid-template-columns: minmax(0, 1fr); }
    .fact, .fact:nth-child(odd) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
    .fact:first-child { border-top: 0; }
    .rates li { flex-wrap: wrap; }
    .rates-dots { display: none; }
    .rates b { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
    @view-transition { navigation: none; }
}
