/* ==========================================================================
   Hashvapahutyun.am — "Fintech aurora" design
   Dark is the default; light applies when the visitor picks it or their device is light.
   ========================================================================== */

:root {
    color-scheme: dark;
    --teal: #0ea392; --teal-hi: #2fd4bd; --mint: #9ff0e3; --sky: #6ab4ff; --navy: #17232e;

    --bg: #060b10;
    --ink: #e9f1f5;
    --text: #b9c6d0;
    --muted: #8597a5;
    --accent: #5fe0cc;
    --glass: rgba(255, 255, 255, .045);
    --glass-hi: rgba(255, 255, 255, .08);
    --glass-strong: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .09);
    --rim-a: rgba(159, 240, 227, .55);
    --rim-b: rgba(106, 180, 255, .35);
    --spot: rgba(47, 212, 189, .16);
    --header-bg: rgba(6, 11, 16, .72);
    --menu-bg: rgba(10, 18, 24, .95);
    --grid-line: rgba(255, 255, 255, .04);
    --aurora-1: .55; --aurora-2: .35; --aurora-3: .4;
    --grad: linear-gradient(100deg, #2fd4bd 0%, #9ff0e3 45%, #6ab4ff 100%);
    --orb-bg: radial-gradient(circle at 30% 25%, rgba(159, 240, 227, .35), rgba(14, 163, 146, .12) 60%);
    --orb-text: #9ff0e3;
    --chip-text: #9ff0e3;
    --field-bg: rgba(255, 255, 255, .05);
    --field-focus: rgba(255, 255, 255, .08);
    --error-bg: rgba(214, 69, 69, .14); --error-text: #ff9a9a;
    --ok-bg: rgba(14, 163, 146, .14); --ok-text: #7fe3d4;
    --map-filter: invert(.9) hue-rotate(180deg) grayscale(.4) brightness(.95);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    --chart-fill: rgba(47, 212, 189, .45);

    --font: "Manrope", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --radius: 24px;
    --wrap: 1200px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f8f7; --ink: #0f1d27; --text: #3b4b57; --muted: #627380; --accent: #0b8a7c;
    --glass: rgba(255, 255, 255, .62); --glass-hi: rgba(255, 255, 255, .9); --glass-strong: rgba(255, 255, 255, .75);
    --line: rgba(15, 29, 39, .1); --rim-a: rgba(14, 163, 146, .45); --rim-b: rgba(37, 99, 235, .25);
    --spot: rgba(14, 163, 146, .12); --header-bg: rgba(243, 248, 247, .82); --menu-bg: rgba(255, 255, 255, .97);
    --grid-line: rgba(15, 29, 39, .05); --aurora-1: .28; --aurora-2: .16; --aurora-3: .2;
    --grad: linear-gradient(100deg, #0b8a7c 0%, #0ea392 45%, #2563eb 100%);
    --orb-bg: radial-gradient(circle at 30% 25%, rgba(14, 163, 146, .22), rgba(14, 163, 146, .08) 60%);
    --orb-text: #0b8a7c; --chip-text: #0b7a6e;
    --field-bg: #ffffff; --field-focus: #ffffff;
    --error-bg: #fdecec; --error-text: #b42f2f; --ok-bg: #e2f5f1; --ok-text: #0b7a6e;
    --map-filter: grayscale(.25); --shadow: 0 24px 60px -28px rgba(15, 29, 39, .35); --chart-fill: rgba(14, 163, 146, .3);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #f3f8f7; --ink: #0f1d27; --text: #3b4b57; --muted: #627380; --accent: #0b8a7c;
        --glass: rgba(255, 255, 255, .62); --glass-hi: rgba(255, 255, 255, .9); --glass-strong: rgba(255, 255, 255, .75);
        --line: rgba(15, 29, 39, .1); --rim-a: rgba(14, 163, 146, .45); --rim-b: rgba(37, 99, 235, .25);
        --spot: rgba(14, 163, 146, .12); --header-bg: rgba(243, 248, 247, .82); --menu-bg: rgba(255, 255, 255, .97);
        --grid-line: rgba(15, 29, 39, .05); --aurora-1: .28; --aurora-2: .16; --aurora-3: .2;
        --grad: linear-gradient(100deg, #0b8a7c 0%, #0ea392 45%, #2563eb 100%);
        --orb-bg: radial-gradient(circle at 30% 25%, rgba(14, 163, 146, .22), rgba(14, 163, 146, .08) 60%);
        --orb-text: #0b8a7c; --chip-text: #0b7a6e;
        --field-bg: #ffffff; --field-focus: #ffffff;
        --error-bg: #fdecec; --error-text: #b42f2f; --ok-bg: #e2f5f1; --ok-text: #0b7a6e;
        --map-filter: grayscale(.25); --shadow: 0 24px 60px -28px rgba(15, 29, 39, .35); --chart-fill: rgba(14, 163, 146, .3);
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
h1, h2, h3, h4, p, li, a, blockquote, .card, .info-list span { overflow-wrap: break-word; }
a[href^="mailto"] { overflow-wrap: normal; word-break: normal; }
html[lang="hy"] h1, html[lang="hy"] h2 { letter-spacing: -.01em; }

/* ---------- Background: aurora + fading grid ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora span { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 18s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(1) { width: 60vw; height: 50vw; left: 35%; top: -25%; background: #0ea392; opacity: var(--aurora-1); }
.bg-aurora span:nth-child(2) { width: 45vw; height: 40vw; left: -15%; top: 30%; background: #1d4fa0; opacity: var(--aurora-2); animation-duration: 24s; }
.bg-aurora span:nth-child(3) { width: 40vw; height: 35vw; right: -10%; bottom: -20%; background: #0b6f78; opacity: var(--aurora-3); animation-duration: 21s; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.15); } }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* ---------- Glass surfaces ---------- */
.glass { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); overflow: hidden; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, var(--rim-a), transparent 35%, transparent 60%, var(--rim-b));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
    background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), var(--spot), transparent 45%); }
.spot:hover::after { opacity: 1; }
.card { padding: 28px; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.card p { font-size: .98rem; }
.orb { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--orb-text); background: var(--orb-bg); box-shadow: 0 0 0 1px rgba(95, 224, 204, .3) inset, 0 8px 24px -8px rgba(14, 163, 146, .7); flex: none; }
.orb .icon { width: 24px; height: 24px; }

/* ---------- Buttons, chips, text ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 15px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.1; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn.sm { padding: 11px 18px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn-glow { color: #04130f; background: linear-gradient(135deg, #5fe0cc, #0ea392); box-shadow: 0 0 0 1px rgba(159, 240, 227, .4) inset, 0 10px 30px -8px rgba(14, 163, 146, .8); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(159, 240, 227, .6) inset, 0 16px 40px -8px rgba(47, 212, 189, .9); color: #04130f; }
.btn-glass { color: var(--ink); background: var(--glass-hi); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.btn-glass:hover { transform: translateY(-2px); background: var(--glass-strong); }
.btn-light { color: #06231f; background: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .6); }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--chip-text); background: rgba(14, 163, 146, .12); border: 1px solid rgba(95, 224, 204, .3); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-hi); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 212, 189, .7); } 70% { box-shadow: 0 0 0 9px rgba(47, 212, 189, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 212, 189, 0); } }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { font-size: 1.15rem; color: var(--text); }
.sub { margin-top: 14px; font-size: 1.08rem; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.center { text-align: center; }
.center .actions { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; view-transition-name: site-header; }
.site-header.scrolled, .nav-open .site-header { background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 88px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: none; }
.brand img { width: 54px; height: auto; }
.brand-name { font-weight: 800; letter-spacing: .07em; font-size: 1.22rem; white-space: nowrap; }
.brand-name span { color: var(--teal-hi); }
.logo-on-light { display: none; }
.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-nav ul a { display: block; padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--text); white-space: nowrap; transition: color .2s, background .2s; }
.site-nav ul a:hover { color: var(--ink); background: var(--glass-hi); }
.site-nav ul a[aria-current="page"] { color: #04130f; background: linear-gradient(135deg, #5fe0cc, #0ea392); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--glass-hi); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; flex: none; }
.icon-btn:hover { background: var(--glass-hi); color: var(--accent); }
.icon-btn .icon { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-toggle .icon-close, .icon-moon, .langs-m, .theme-toggle--menu { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Light theme: dark logo in header, moon icon on the toggle */
:root[data-theme="light"] .site-header .logo-on-dark, :root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .site-header .logo-on-light, :root[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .site-header .logo-on-dark, :root:not([data-theme="dark"]) .icon-sun { display: none; }
    :root:not([data-theme="dark"]) .site-header .logo-on-light, :root:not([data-theme="dark"]) .icon-moon { display: block; }
}

@media (max-width: 1439px) { .nav-cta { display: none; } }
@media (max-width: 1180px) {
    .nav-toggle { display: inline-grid; }
    .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px;
        border-radius: 22px; background: var(--menu-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .site-nav ul { flex-direction: column; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-nav ul a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
    .site-nav .langs-m { display: flex; align-self: flex-start; margin: 4px 6px; }
    .site-nav .langs-m a { padding: 9px 14px; font-size: .85rem; }
    .nav-right .lang-switch { display: none; }
}
@media (max-width: 720px) {
    .nav-in { height: 72px; }
    .brand { gap: 10px; }
    .brand img { width: 44px; }
    .brand-name { font-size: clamp(.86rem, 3.9vw, 1.05rem); letter-spacing: .04em; }
}
@media (max-width: 400px) {
    .nav-right > .theme-toggle { display: none; }
    .site-nav .theme-toggle--menu { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; width: auto; height: auto; padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; }
}

/* ---------- Hero (home) ---------- */
.hero { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); max-width: 1000px; margin: 26px auto 22px; }
.hero .lead { max-width: 720px; margin: 0 auto; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 64px; text-align: left; perspective: 1200px; }
.kpi { padding: 24px 24px 0; min-height: 190px; display: flex; flex-direction: column; animation: rise .9s var(--ease) both; }
.kpi:nth-child(2) { animation-delay: .12s; } .kpi:nth-child(3) { animation-delay: .24s; }
.kpi.featured { transform: translateY(-14px); background: rgba(14, 163, 146, .1); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) rotateX(12deg); } }
.kpi small { color: var(--muted); font-size: .85rem; }
.kpi b { color: var(--ink); font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi em { font-style: normal; color: var(--accent); font-size: .85rem; font-weight: 600; }
.kpi svg { margin-top: auto; width: calc(100% + 48px); margin-left: -24px; height: 70px; display: block; }
.kpi .fill { fill: var(--chart-fill); }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars { margin-top: auto; height: 70px; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2fd4bd, rgba(14, 163, 146, .2)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.bars i:nth-child(2) { animation-delay: .08s; } .bars i:nth-child(3) { animation-delay: .16s; } .bars i:nth-child(4) { animation-delay: .24s; } .bars i:nth-child(5) { animation-delay: .32s; } .bars i:nth-child(6) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } }

.marquee { margin: 80px 0 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--glass);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 48px; width: max-content; padding: 20px 0; animation: scroll 45s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; white-space: nowrap; }
.track .icon { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-top: 120px; }
.head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.bento .b0 { grid-column: span 2; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(160deg, rgba(14, 163, 146, .22), var(--glass) 60%); }
.bento .b0 h3 { font-size: 1.8rem; } .bento .b0 p { font-size: 1.05rem; max-width: 460px; }
.bento .b0 .orb { position: absolute; top: 28px; left: 28px; }
.bento .b3, .bento .cta-tile { grid-column: span 2; }
.cta-tile { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: linear-gradient(140deg, rgba(106, 180, 255, .16), var(--glass) 70%); }
.cta-tile .btn { margin-top: 18px; }
.ring { position: absolute; top: 28px; right: 28px; width: 120px; height: 120px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 8; }
.ring .arc { stroke: var(--teal-hi); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2s var(--ease) .3s; }
.in .ring .arc { stroke-dashoffset: 0; }
.ring b { color: var(--ink); font-size: 1.4rem; }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.area { padding: 30px; display: flex; flex-direction: column; }
.area-top { display: flex; justify-content: space-between; align-items: flex-start; }
.idx { font-size: 3rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--rim-a); }
.area h3 { font-size: 1.35rem; margin: 22px 0 10px; }
.area > p { font-size: .98rem; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: .97rem; color: var(--ink); line-height: 1.5; }
.check-list .icon { color: var(--accent); margin-top: 3px; }
.area .check-list { margin: 20px 0 22px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
.more .icon { transition: transform .25s; } .more:hover .icon { transform: translateX(4px); }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-hi), var(--sky), transparent); opacity: .6; }
.timeline li { text-align: center; position: relative; }
.dot { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; font-weight: 800; color: #04130f; background: linear-gradient(135deg, #9ff0e3, #0ea392); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px rgba(95, 224, 204, .35), 0 0 40px rgba(47, 212, 189, .45); }
.timeline h3 { font-size: 1.12rem; margin-bottom: 8px; }
.timeline p { font-size: .95rem; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 960px; margin: 22px auto 18px; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--ink); }
.service-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.service-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; backdrop-filter: blur(12px); transition: background .2s, transform .2s; }
.service-nav a:hover { background: var(--glass-hi); transform: translateY(-2px); }
.service-nav .icon { color: var(--accent); }

/* ---------- Services page ---------- */
.svc-list { display: grid; gap: 22px; }
.svc { padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); scroll-margin-top: 110px; }
.svc-head { display: flex; align-items: center; gap: 18px; }
.svc-head .idx { font-size: 2.6rem; margin-left: auto; }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 22px 0 12px; }
.svc-summary { font-size: 1.05rem; }
.svc-box { padding: 26px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.svc-box h4 { font-size: .95rem; color: var(--accent); margin-bottom: 14px; letter-spacing: .01em; }
.services-cta { margin-top: 22px; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; background: linear-gradient(160deg, rgba(14, 163, 146, .18), var(--glass) 70%); }
.services-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 16px 0 10px; max-width: 720px; }
.services-cta p { max-width: 620px; margin-bottom: 24px; }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 18px 0 16px; }
.split .lead { margin-bottom: 14px; }
.split .check-list { margin-top: 24px; }
.split .check-list a:hover { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.form-card { padding: clamp(26px, 4vw, 44px); scroll-margin-top: 110px; }
.form-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--field-bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.field select option { color: #0f1d27; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-hi); background: var(--field-focus); box-shadow: 0 0 0 4px rgba(47, 212, 189, .18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error-text); }
.field-error { display: block; margin-top: 6px; font-size: .86rem; color: var(--error-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.form-note .icon { color: var(--accent); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.alert .icon { margin-top: 3px; }
.alert-success { background: var(--ok-bg); color: var(--ok-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }
.info-card { padding: 30px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .orb { width: 46px; height: 46px; border-radius: 14px; }
.info-list .orb .icon { width: 22px; height: 22px; }
.info-list small { display: block; font-size: .82rem; color: var(--muted); }
.info-list a, .info-list strong { color: var(--ink); font-weight: 700; }
.info-list a:hover { color: var(--accent); }
.info-list li > span:last-child { min-width: 0; }
.hours-table { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2px; }
.hours-table span { color: var(--text); }
.hours-table strong { white-space: nowrap; margin-bottom: 6px; }
.hours-table strong:last-child { margin-bottom: 0; }
.map { margin-top: 22px; height: 280px; padding: 0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: var(--map-filter); }

/* ---------- Call-to-action band (stays dark in both themes) ---------- */
.cta-band { padding-top: 130px; }
.page-contact .cta-band { display: none; }
.cta { position: relative; padding: clamp(44px, 7vw, 80px) 24px; border-radius: 32px; text-align: center; overflow: hidden; border: 1px solid rgba(159, 240, 227, .3); background: #072a27; }
.cta-aurora { position: absolute; inset: -40%; background: conic-gradient(from 0deg at 50% 50%, #0ea392, #1d4fa0, #0b6f78, #2fd4bd, #0ea392); filter: blur(70px); opacity: .55; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.cta > *:not(.cta-aurora) { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; color: #fff; }
.cta p { max-width: 560px; margin: 16px auto 0; color: #d6ece8; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 90px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.4fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.site-footer .brand-name { font-size: 1.06rem; letter-spacing: .06em; }
.site-footer .brand img { width: 46px; }
.site-footer .logo-on-light { display: none; }
:root[data-theme="light"] .site-footer .logo-on-dark { display: none; }
:root[data-theme="light"] .site-footer .logo-on-light { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .site-footer .logo-on-dark { display: none; }
    :root:not([data-theme="dark"]) .site-footer .logo-on-light { display: block; }
}
.foot-brand p { margin-top: 18px; max-width: 320px; font-size: .97rem; }
.site-footer h3 { font-size: .95rem; margin-bottom: 16px; color: var(--ink); }
.site-footer li { padding: 5px 0; font-size: .97rem; }
.site-footer li a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 4px; }
.footer-contact .hours { display: flex; flex-direction: column; gap: 2px; }
.footer-contact .hours b { color: var(--ink); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0 30px; font-size: .88rem; color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: clamp(80px, 12vw, 140px) 0 0; }
.not-found .big { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.not-found h1 { font-size: 2rem; margin: 10px 0 12px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento .b0, .bento .cta-tile { grid-column: span 2; }
    .bento .b3 { grid-column: span 1; }
    .areas { grid-template-columns: minmax(0, 1fr); }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
    .timeline::before { display: none; }
    .svc { grid-template-columns: minmax(0, 1fr); }
    .contact-grid, .split { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    body { font-size: 17px; line-height: 1.6; }
    .wrap { padding: 0 16px; }
    .hero { padding-top: 44px; }
    .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
    .page-hero { padding-top: 40px; }
    .page-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
    .lead { font-size: 1.07rem; }
    .actions .btn { width: 100%; }
    .btn { white-space: normal; text-align: center; }
    .kpis { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 44px; }
    .kpi.featured { transform: none; }
    .marquee { margin-top: 56px; }
    .sec { padding-top: 76px; }
    .head { margin-bottom: 30px; }
    .head h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
    .g4, .bento, .timeline, .form-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .bento .b0, .bento .b3, .bento .cta-tile { grid-column: auto; }
    .bento .b0 { min-height: 300px; }
    .ring { width: 88px; height: 88px; top: 22px; right: 22px; } .ring b { font-size: 1.05rem; }
    .card, .area { padding: 22px; }
    .card:hover { transform: none; }
    .card:has(> .orb) { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "orb title" "text text"; column-gap: 14px; align-items: center; }
    .card:has(> .orb) > .orb { grid-area: orb; position: static; }
    .card:has(> .orb) > h3 { grid-area: title; margin: 0; }
    .card:has(> .orb) > p { grid-area: text; margin-top: 12px; }
    .bento .b0:has(> .orb) { align-content: end; }
    .svc-head .idx { font-size: 2rem; }
    .svc-box { padding: 20px 18px; }
    .service-nav a { font-size: .9rem; white-space: normal; }
    .form-card, .info-card { padding: 22px 18px; }
    .field { margin-bottom: 14px; }
    .cta-band { padding-top: 90px; }
    .cta { border-radius: 24px; padding: 40px 20px; }
    .site-footer { padding-top: 70px; }
    .foot-grid { gap: 30px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) .05s both; }
::view-transition-group(site-header) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@supports not (view-transition-name: none) {
    main, .cta-band, .site-footer { animation: vt-in .45s var(--ease) both; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
    .js .reveal { opacity: 1; transform: none; }
    .draw, .ring .arc { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Featured card (first service) — no empty area: content beside the progress ring
   ========================================================================== */
.bento .b0 { min-height: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "orb title ring" "text text ring"; column-gap: 18px; row-gap: 14px; align-items: center; justify-content: stretch; }
.bento .b0 .orb { position: static; grid-area: orb; }
.bento .b0 h3 { grid-area: title; margin: 0; font-size: 1.7rem; }
.bento .b0 p { grid-area: text; max-width: none; }
.bento .b0 .ring { position: relative; top: auto; right: auto; grid-area: ring; align-self: center; }

/* ==========================================================================
   Phone typography — one consistent, larger scale (overrides the rules above)
   ========================================================================== */
@media (max-width: 720px) {
    body { font-size: 17px; line-height: 1.62; }
    .lead, .page-hero .lead, .hero .lead { font-size: 1.1rem; line-height: 1.6; }
    .sub { font-size: 1.06rem; }
    .chip { font-size: 1rem; padding: 8px 16px; }
    .btn, .btn.sm { font-size: 1.02rem; }
    .breadcrumbs { font-size: .95rem; }

    /* cards */
    .card h3, .area h3 { font-size: 1.25rem; line-height: 1.25; }
    .card p, .area > p, .timeline p, .svc-summary, .cta-tile p { font-size: 1.03rem; line-height: 1.58; }
    .check-list li { font-size: 1.02rem; }
    .more { font-size: 1.02rem; }
    .orb { width: 50px; height: 50px; }

    .bento { grid-auto-rows: auto; }
    .card:has(> .orb) { grid-template-columns: 50px minmax(0, 1fr); }
    /* featured card on phones: icon + title + small ring in one row, text below */
    .bento .b0 { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "orb title ring" "text text text"; column-gap: 14px; row-gap: 12px; padding: 22px; }
    .bento .b0 h3 { font-size: 1.3rem; }
    .bento .b0 p { font-size: 1.03rem; }
    .bento .b0 .ring { width: 66px; height: 66px; }
    .bento .b0 .ring circle { stroke-width: 9; }
    .bento .b0 .ring b { font-size: .95rem; }

    /* hero numbers */
    .kpi small, .kpi em { font-size: .95rem; }
    .kpi b { font-size: 2.2rem; }
    .track span { font-size: 1rem; }

    /* timeline + services */
    .timeline h3 { font-size: 1.2rem; }
    .svc h2 { font-size: 1.55rem; }
    .svc-box h4 { font-size: 1.02rem; }
    .service-nav a { font-size: .97rem; padding: 11px 16px; }
    .services-cta p, .cta p { font-size: 1.05rem; }

    /* contact form (16px+ inputs also stop phones from zooming in) */
    .field label { font-size: 1rem; }
    .field input, .field select, .field textarea { font-size: 1.03rem; }
    .field-error, .form-note { font-size: .95rem; }
    .form-card > p { font-size: 1rem; }
    .alert { font-size: 1rem; }
    .info-list small { font-size: .95rem; }
    .info-list a, .info-list strong, .hours-table span { font-size: 1.03rem; }

    /* header menu + footer */
    .site-nav .langs-m a { font-size: .92rem; padding: 10px 15px; }
    .site-footer h3 { font-size: 1.05rem; }
    .site-footer li, .foot-brand p { font-size: 1.02rem; }
    .foot-bottom { font-size: .95rem; }
}

/* Very small phones: keep long Armenian/Russian words from breaking */
@media (max-width: 360px) {
    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .head h2 { font-size: 1.62rem; }
    .svc h2 { font-size: 1.4rem; }
    .card h3, .area h3, .bento .b0 h3 { font-size: 1.16rem; }
    .bento .b0 { grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: 12px; }
    .bento .b0 .ring { width: 58px; height: 58px; }
    .bento .b0 .ring b { font-size: .85rem; }
}
@media (max-width: 360px) {
    .card, .area { padding: 20px 18px; }
    .orb, .card:has(> .orb) > .orb { width: 44px; height: 44px; border-radius: 14px; }
    .orb .icon { width: 22px; height: 22px; }
    .card:has(> .orb) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
    .bento .b0 { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 20px 18px; }
    .card h3, .area h3, .bento .b0 h3 { font-size: 1.08rem; }
    .svc { padding: 22px 18px; }
    .svc h2 { font-size: 1.28rem; }
    .bento .b0 .ring b { font-size: .9rem; }
}

/* Wide service tiles share a row with taller neighbours: centre their content instead of leaving a gap below */
@media (min-width: 721px) {
    .bento .b0 { align-content: center; }
    .bento .b3 { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
    .bento .b3 .orb { margin-bottom: 0; }
}
@media (min-width: 721px) {
    .bento .card:not(.b0):has(> .orb) { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "orb title" "text text"; column-gap: 16px; row-gap: 14px; align-content: center; align-items: center; }
    .bento .card:not(.b0):has(> .orb) > .orb { grid-area: orb; }
    .bento .card:not(.b0):has(> .orb) > h3 { grid-area: title; margin: 0; }
    .bento .card:not(.b0):has(> .orb) > p { grid-area: text; }
    .bento { grid-auto-rows: minmax(190px, auto); }
}
@media (min-width: 1101px) {
    /* the longer text gets the wide tile, the short CFO text the narrow one */
    .bento .b2 { grid-column: span 2; }
    .bento .b3 { grid-column: span 1; }
    .bento .b3 { display: grid; }
}

/* ==========================================================================
   Theme-aware call-to-action box and active menu item
   ========================================================================== */
:root {
    --pill-on-bg: linear-gradient(135deg, #5fe0cc, #0ea392); --pill-on-text: #04130f;
    --cta-bg: #072a27; --cta-border: rgba(159, 240, 227, .3); --cta-aurora: .55;
    --cta-title: #ffffff; --cta-text: #d6ece8;
    --cta-btn-bg: #ffffff; --cta-btn-text: #06231f; --cta-btn-shadow: rgba(255, 255, 255, .6);
    --cta-btn2-bg: rgba(255, 255, 255, .1); --cta-btn2-text: #ffffff; --cta-btn2-border: rgba(255, 255, 255, .25); --cta-btn2-hover: rgba(255, 255, 255, .18);
}
:root[data-theme="light"] {
    --pill-on-bg: #0f1d27; --pill-on-text: #ffffff;
    --cta-bg: linear-gradient(135deg, #e4f6f2 0%, #e6eefc 100%); --cta-border: rgba(14, 163, 146, .28); --cta-aurora: .2;
    --cta-title: #0f1d27; --cta-text: #3b4b57;
    --cta-btn-bg: linear-gradient(135deg, #0ea392, #0b7a6e); --cta-btn-text: #ffffff; --cta-btn-shadow: rgba(14, 163, 146, .55);
    --cta-btn2-bg: rgba(255, 255, 255, .75); --cta-btn2-text: #0f1d27; --cta-btn2-border: rgba(15, 29, 39, .14); --cta-btn2-hover: #ffffff;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --pill-on-bg: #0f1d27; --pill-on-text: #ffffff;
        --cta-bg: linear-gradient(135deg, #e4f6f2 0%, #e6eefc 100%); --cta-border: rgba(14, 163, 146, .28); --cta-aurora: .2;
        --cta-title: #0f1d27; --cta-text: #3b4b57;
        --cta-btn-bg: linear-gradient(135deg, #0ea392, #0b7a6e); --cta-btn-text: #ffffff; --cta-btn-shadow: rgba(14, 163, 146, .55);
        --cta-btn2-bg: rgba(255, 255, 255, .75); --cta-btn2-text: #0f1d27; --cta-btn2-border: rgba(15, 29, 39, .14); --cta-btn2-hover: #ffffff;
    }
}
.site-nav ul a[aria-current="page"] { background: var(--pill-on-bg); color: var(--pill-on-text); }
.cta { background: var(--cta-bg); border-color: var(--cta-border); }
.cta-aurora { opacity: var(--cta-aurora); }
.cta h2 { color: var(--cta-title); }
.cta p { color: var(--cta-text); }
.cta .btn-light { background: var(--cta-btn-bg); color: var(--cta-btn-text); }
.cta .btn-light:hover { box-shadow: 0 14px 40px -12px var(--cta-btn-shadow); }
.cta .btn-ghost-light { background: var(--cta-btn2-bg); color: var(--cta-btn2-text); border-color: var(--cta-btn2-border); }
.cta .btn-ghost-light:hover { background: var(--cta-btn2-hover); }

/* Home hero spacing: label → title → buttons */
.hero h1 { margin-top: 44px; }
.hero .actions { margin-top: 48px; }

/* Larger section heading (Home: "Ծառայություններ") */
.head-xl h2 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); }
@media (max-width: 720px) { .head-xl h2 { font-size: clamp(2rem, 9vw, 2.6rem); } }
@media (max-width: 360px) { .head-xl h2 { font-size: 1.75rem; } }

/* Smaller section heading (Home: "Երեք հիմնական ուղղություն") */
.head-sm h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
@media (max-width: 720px) { .head-sm h2 { font-size: clamp(1.3rem, 5vw, 1.55rem); } }
.head-sm h2:first-child { margin-top: 0; }

/* Home services block: big heading → (28px) → sub-heading → areas → (18px) → service cards */
.head-tight { margin-bottom: 28px; }
.areas-grouped { margin-bottom: 18px; }
.footer-contact .hours b { white-space: nowrap; }

/* ==========================================================================
   Service cards: no progress ring; first row = two equal cards (startups featured)
   ========================================================================== */
.bento .b0 { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "orb title" "text text"; min-height: 0; align-content: center; }
@media (min-width: 721px) {
    .bento .b0 h3 { font-size: 1.45rem; }
    .bento .b0 p { font-size: 1.05rem; }
}
@media (min-width: 1101px) {
    .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .bento .b0, .bento .b1 { grid-column: span 3; }
    .bento .b2, .bento .cta-tile { grid-column: span 4; }
    .bento .b3, .bento .b4 { grid-column: span 2; }
}

/* "Երեք հիմնական ուղղություն": gradient text between two glowing lines */
.head-sm h2 { display: inline-flex; align-items: center; gap: 18px; max-width: 100%; }
.head-sm h2 .t { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
.head-sm h2::before, .head-sm h2::after { content: ""; flex: none; width: clamp(28px, 6vw, 72px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--teal-hi)); box-shadow: 0 0 12px rgba(47, 212, 189, .55); }
.head-sm h2::after { background: linear-gradient(90deg, var(--teal-hi), transparent); }
@media (max-width: 400px) { .head-sm h2 { gap: 10px; } .head-sm h2::before, .head-sm h2::after { width: 20px; } }

/* Label between the two card groups on Home ("Առանձնահատուկ առաջարկներ") */
.areas-grouped { margin-bottom: 0; }
.group-label { text-align: center; margin: 48px 0 28px; }
@media (max-width: 720px) { .group-label { margin: 36px 0 22px; } }
/* "Առանձնահատուկ առաջարկներ" title: centred between the two card groups */
.head.group-label { margin: 42px auto 44px; }
@media (max-width: 720px) { .head.group-label { margin: 36px auto; } }

/* Phones: the generic ".wrap { padding: 0 16px }" was wiping the footer's vertical padding */
@media (max-width: 720px) {
    .site-footer .foot-grid { padding-bottom: 40px; }
    .site-footer .foot-bottom { padding-top: 28px; padding-bottom: 30px; }
    .not-found.wrap { padding-top: 80px; }
}

/* Contact page on desktop: both columns end at the same line (the map fills the space left under the info card) */
@media (min-width: 1101px) {
    .contact-grid { align-items: stretch; }
    .contact-grid aside { display: flex; flex-direction: column; }
    .contact-grid .map { height: auto; flex: 1 1 0; min-height: 200px; }
}

/* About page: "Who we are" as one glass panel with an open quote beside the text */
.story { position: relative; padding: clamp(28px, 4vw, 56px); border-radius: 32px; border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(14, 163, 146, .10), transparent 55%), var(--glass); overflow: hidden; }
.story::before { content: ""; position: absolute; right: -10%; bottom: -40%; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 212, 189, .18), transparent 70%); pointer-events: none; }
.story h2 { margin: 18px 0; line-height: 1.12; }
.story .lead { font-size: 1.12rem; color: var(--ink); opacity: .9; }
.story p:not(.lead) { color: var(--muted); padding-left: 16px; border-left: 2px solid rgba(47, 212, 189, .5); }
.story .check-list { display: grid; gap: 10px; margin-top: 26px; }
.story .check-list li { margin: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(47, 212, 189, .18);
    background: rgba(47, 212, 189, .06); transition: transform .2s, border-color .2s, background .2s; }
.story .check-list li:hover { transform: translateX(4px); border-color: rgba(47, 212, 189, .5); background: rgba(47, 212, 189, .12); }
.story .check-list li a { font-weight: 600; }
.story-quote { position: relative; margin: 0; padding: 8px 0 8px 36px; }
.story-quote::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px;
    background: linear-gradient(180deg, var(--teal-hi), var(--sky) 60%, transparent); }
.story-quote .q-mark { display: block; height: 56px; margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif;
    font-size: 120px; line-height: .7; background: linear-gradient(135deg, var(--teal-hi), var(--sky));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-quote blockquote { margin: 0; font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.42; font-weight: 700;
    letter-spacing: -.01em; color: var(--ink); }
.story-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--accent); font-weight: 600; }
.story-quote figcaption::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
@media (max-width: 720px) {
    .story { padding: 24px 18px; border-radius: 24px; }
    .story-quote { padding-left: 24px; }
    .story-quote blockquote { font-size: 1.25rem; }
}

/* Page headers (About, Services, Contact): breadcrumb pill, gradient last word, glowing divider */
.page-hero { position: relative; padding-top: 48px; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: 40px; z-index: -1; width: min(760px, 90%); height: 320px;
    transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(47, 212, 189, .16), transparent 65%);
    filter: blur(10px); pointer-events: none; }
.page-hero .breadcrumbs { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: .85rem; }
.page-hero .breadcrumbs a { color: var(--muted); }
.page-hero .breadcrumbs a:hover { color: var(--accent); }
.page-hero .breadcrumbs .sep { color: var(--teal-hi); opacity: .8; }
.page-hero .breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero h1 { line-height: 1.1; letter-spacing: -.02em; max-width: 900px; margin: 10px auto 22px; }
.page-hero .lead { max-width: 600px; margin: 4px auto 0; font-size: 1.06rem; line-height: 1.65; color: var(--text); }
.page-hero .lead b { color: var(--ink); font-weight: 700; border-bottom: 2px solid rgba(47, 212, 189, .6); }
.page-hero .hero-line { width: 120px; height: 3px; margin: 34px auto 0; border-radius: 3px; background: var(--grad);
    box-shadow: 0 0 24px rgba(47, 212, 189, .6); }
@media (min-width: 721px) { .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); } }
@media (max-width: 720px) { .page-hero { padding-top: 32px; } .page-hero .hero-line { margin-top: 26px; } }

/* About page: title only, with the "Who we are" panel close below it */
.page-hero--compact { padding-bottom: 0; }
.page-hero--compact h1 { margin-bottom: 0; }
.page-hero--compact + .sec { padding-top: 44px; }
@media (max-width: 720px) { .page-hero--compact + .sec { padding-top: 32px; } }
