/* =====================================================================
   פיני רייך שירותי ביטוח — Design System
   ===================================================================== */

:root {
    --navy-950: #040f1c;
    --navy-900: #071a2b;
    --navy-800: #0b2740;
    --navy-700: #10395a;
    --navy-600: #184a73;

    --teal-300: #6ee7d8;
    --teal-400: #3fd6c4;
    --teal-500: #19b3a2;
    --teal-600: #0f8f82;
    --teal-700: #0b6f66;

    --mint: #e6faf6;
    --gold: #f2c14e;

    --bg: #f4f8fb;
    --surface: #ffffff;
    --ink: #0e2235;
    --ink-2: #2a3f52;
    --muted: #5e7085;
    --line: #dfe8f0;

    --font-head: 'Rubik', 'Heebo', system-ui, sans-serif;
    --font-body: 'Heebo', 'Rubik', system-ui, sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 2px 10px rgba(7, 26, 43, .06);
    --shadow: 0 14px 40px -12px rgba(7, 26, 43, .18);
    --shadow-lg: 0 30px 70px -20px rgba(7, 26, 43, .32);
    --shadow-teal: 0 18px 44px -14px rgba(25, 179, 162, .55);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --nav-h: 84px;
    --container: 1200px;
}

/* ------------------------- Reset ------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* `clip` is the only value iOS Safari honours for touch panning */
@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    main {
        overflow-x: clip;
    }
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--teal-400);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--teal-400);
    color: var(--navy-900);
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, var(--container));
    }
}

/* ------------------------- Typography ------------------------- */
.section {
    position: relative;
    padding: clamp(84px, 10vw, 140px) 0;
}

.section__head {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.section__head--start {
    text-align: start;
}

.section__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--navy-900);
}

.section__head--light .section__title {
    color: #fff;
}

.section__line {
    display: block;
    width: 72px;
    height: 5px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
    position: relative;
}

.section__line::after {
    content: '';
    position: absolute;
    inset-inline-end: -14px;
    top: 0;
    width: 8px;
    height: 5px;
    border-radius: 999px;
    background: var(--gold);
}

.section__head--start .section__line,
.section__line--start {
    margin-inline: 0;
}

.section__title--start {
    text-align: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .04em;
    color: var(--teal-600);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.eyebrow--light {
    color: var(--teal-300);
}

/* ------------------------- Buttons ------------------------- */
.btn {
    --btn-bg: var(--teal-500);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 2px solid transparent;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(120%);
    transition: transform .7s var(--ease);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(-120%);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    box-shadow: 0 10px 24px -10px rgba(25, 179, 162, .7);
}

.btn--primary:hover {
    box-shadow: var(--shadow-teal);
}

.btn--glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
    filter: blur(16px);
    opacity: .45;
    z-index: -2;
    transition: opacity .3s;
}

.btn--glow:hover::after {
    opacity: .8;
}

.btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
}

.btn--outline {
    background: transparent;
    border-color: var(--line);
    color: var(--navy-800);
}

.btn--outline:hover {
    border-color: var(--teal-500);
    color: var(--teal-600);
}

.btn--sm {
    padding: 10px 20px;
    font-size: .92rem;
}

.btn--lg {
    padding: 18px 34px;
    font-size: 1.08rem;
}

.btn--block {
    width: 100%;
}

.btn__icon {
    width: 20px;
    height: 20px;
    transition: transform .35s var(--ease);
}

.btn:hover .btn__icon {
    transform: translateX(-5px);
}

/* ------------------------- Preloader ------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-content: center;
    gap: 22px;
    background: var(--navy-900);
    transition: opacity .6s var(--ease), visibility .6s;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.preloader__logo {
    background: #fff;
    padding: 14px 22px;
    border-radius: 18px;
    width: 180px;
    animation: pl-float 2s ease-in-out infinite;
}

.preloader__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.preloader__bar {
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.preloader__bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
    animation: pl-bar 1.2s var(--ease) infinite;
}

@keyframes pl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pl-bar {
    0% { transform: translateX(120%); }
    100% { transform: translateX(-280%); }
}

/* ------------------------- Cursor glow ------------------------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(25, 179, 162, .16), transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .6s;
    mix-blend-mode: screen;
}

body.has-pointer .cursor-glow {
    opacity: 1;
}

@media (hover: none), (max-width: 900px) {
    .cursor-glow { display: none; }
}

/* ------------------------- Navbar ------------------------- */
.nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .4s, box-shadow .4s, height .4s var(--ease), backdrop-filter .4s;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: inline-flex;
    background: #fff;
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease);
}

.nav__brand:hover {
    transform: translateY(-2px);
}

.nav__brand img {
    height: 42px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    position: relative;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, .82);
    border-radius: 999px;
    transition: color .3s, background .3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    inset-inline: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__cta {
    margin-inline-start: 10px;
}

.nav.is-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 8px 30px -14px rgba(7, 26, 43, .25);
}

.nav.is-scrolled .nav__brand {
    box-shadow: none;
    padding: 4px 8px;
}

.nav.is-scrolled .nav__brand img {
    height: 36px;
}

.nav.is-scrolled .nav__link {
    color: var(--ink-2);
}

.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__link.is-active {
    color: var(--navy-900);
}

.nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    position: relative;
    z-index: 110;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .3s;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .4s var(--ease), opacity .3s, background .3s;
}

.nav.is-scrolled .nav__toggle {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        background: radial-gradient(120% 120% at 80% 0%, var(--navy-700), var(--navy-900) 60%);
        clip-path: circle(0 at calc(100% - 50px) 42px);
        transition: clip-path .7s var(--ease);
        z-index: 105;
    }

    [dir="rtl"] .nav__links {
        clip-path: circle(0 at 50px 42px);
    }

    .nav.is-open .nav__links,
    [dir="rtl"] .nav.is-open .nav__links {
        clip-path: circle(150% at 50px 42px);
    }

    .nav__link {
        font-family: var(--font-head);
        font-size: 1.7rem;
        font-weight: 700;
        color: #fff !important;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .5s var(--ease) calc(.15s + var(--d, 0s)), transform .5s var(--ease) calc(.15s + var(--d, 0s));
    }

    .nav__link::after {
        display: none;
    }

    .nav__link:nth-child(1) { --d: .05s; }
    .nav__link:nth-child(2) { --d: .1s; }
    .nav__link:nth-child(3) { --d: .15s; }
    .nav__link:nth-child(4) { --d: .2s; }

    .nav.is-open .nav__link {
        opacity: 1;
        transform: none;
    }

    .nav__cta {
        margin: 18px 0 0;
        opacity: 0;
        transition: opacity .5s var(--ease) .4s;
    }

    .nav.is-open .nav__cta {
        opacity: 1;
    }
}

/* ------------------------- Hero ------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 100px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy-900);
}

.hero__bg > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
    animation: hero-zoom 24s ease-in-out infinite alternate;
    filter: saturate(.8);
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 26, 43, .6) 0%, rgba(7, 26, 43, .25) 40%, rgba(7, 26, 43, .95) 100%),
        linear-gradient(250deg, rgba(25, 179, 162, .35) 0%, rgba(7, 26, 43, .7) 45%, rgba(7, 26, 43, .92) 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
    transition: transform .6s var(--ease-out);
}

.hero__blob--1 {
    width: 520px;
    height: 520px;
    inset-inline-end: -120px;
    top: -140px;
    background: radial-gradient(circle, var(--teal-500), transparent 65%);
    animation: blob-a 14s ease-in-out infinite alternate;
}

.hero__blob--2 {
    width: 460px;
    height: 460px;
    inset-inline-start: -160px;
    bottom: -60px;
    background: radial-gradient(circle, #2567a8, transparent 65%);
    animation: blob-b 18s ease-in-out infinite alternate;
}

.hero__blob--3 {
    width: 300px;
    height: 300px;
    inset-inline-start: 40%;
    top: 20%;
    background: radial-gradient(circle, rgba(242, 193, 78, .55), transparent 65%);
    opacity: .3;
    animation: blob-a 20s ease-in-out infinite alternate-reverse;
}

@keyframes blob-a {
    from { translate: 0 0; }
    to { translate: -60px 70px; }
}

@keyframes blob-b {
    from { translate: 0 0; }
    to { translate: 80px -60px; }
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 40px;
}

.hero__content {
    max-width: 640px;
    min-width: 0;
    animation: rise .9s var(--ease-out) both .2s;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.hero__title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    display: grid;              /* "ביטוח" always on its own line */
    grid-template-columns: minmax(0, 1fr);
    gap: .05em 0;
    min-width: 0;
    max-width: 100%;
}

.hero__title-static {
    color: #fff;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}

/*
 * All rotating words are stacked in the same grid cell, so the box is
 * always as tall as the longest word. Nothing below the title ever moves.
 */
.hero__rotator {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: .16em;
    min-width: 0;
    max-width: 100%;
    /* Clip sideways only; keep the vertical slide/blur of the words visible */
    overflow-x: hidden;
    overflow-y: visible;
}

@supports (overflow-x: clip) {
    .hero__rotator {
        overflow-x: clip;
        overflow-y: visible;
    }
}

.hero__rotator::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: .12em;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal-400), transparent);
    opacity: .7;
}

.hero__word {
    grid-area: 1 / 1;
    display: block;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;   /* always one line – JS sizes the font so it fits */
    color: transparent;
    background: linear-gradient(90deg, var(--teal-300), var(--teal-500) 60%, #8ff5e6);
    -webkit-background-clip: text;
    background-clip: text;
    padding-bottom: .06em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.35em);
    filter: blur(6px);
    transition:
        opacity .55s var(--ease-out),
        transform .55s var(--ease-out),
        filter .55s var(--ease-out),
        visibility 0s linear .55s;
    will-change: opacity, transform, filter;
}

.hero__word.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: blur(0);
    transition:
        opacity .6s var(--ease-out) .12s,
        transform .6s var(--ease-out) .12s,
        filter .6s var(--ease-out) .12s,
        visibility 0s;
}

.hero__word.is-leaving {
    opacity: 0;
    transform: translateY(-.3em);
    filter: blur(6px);
    transition:
        opacity .35s var(--ease),
        transform .35s var(--ease),
        filter .35s var(--ease),
        visibility 0s linear .35s;
}

.hero__lead {
    margin-top: 28px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .8);
    max-width: 560px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

/* Hero visual: image streams */
.hero__visual {
    position: relative;
    height: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    perspective: 1400px;
    animation: rise 1s var(--ease-out) both .45s;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 50% 50%, rgba(25, 179, 162, .22), transparent 60%);
    z-index: -1;
}

.hero__stream {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    transform: rotateY(-14deg) rotateX(6deg);
}

.hero__stream--down {
    transform: rotateY(-14deg) rotateX(6deg) translateY(40px);
}

.hero__stream-track {
    display: flex;
    flex-direction: column;
    gap: 22px;
    will-change: transform;
}

.hero__stream--up .hero__stream-track {
    animation: stream-up 38s linear infinite;
}

.hero__stream--down .hero__stream-track {
    animation: stream-down 44s linear infinite;
}

.hero__stream-track img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    filter: saturate(.9);
}

@keyframes stream-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes stream-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

.hero__shield {
    position: absolute;
    z-index: 2;
    width: 150px;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    filter: drop-shadow(0 20px 40px rgba(25, 179, 162, .55));
    animation: shield-float 5s ease-in-out infinite;
}

.hero__shield::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 26, 43, .85), transparent 70%);
    z-index: -1;
}

@keyframes shield-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-16px) rotate(3deg); }
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    translate: -50% 0;
    opacity: .7;
    transition: opacity .3s;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    position: relative;
}

.hero__mouse span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 999px;
    background: var(--teal-300);
    animation: mouse-wheel 1.8s ease-in-out infinite;
}

@keyframes mouse-wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

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

    .hero__visual {
        display: none;
    }

    .hero__content {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-bottom: 110px;
    }

    .hero__title {
        font-size: clamp(2.4rem, 11vw, 3rem);
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* ------------------------- Reveal on scroll ------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--ease-out) calc(var(--i, 0) * 70ms), transform .9s var(--ease-out) calc(var(--i, 0) * 70ms);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------- Services ------------------------- */
.services {
    background:
        radial-gradient(60% 40% at 100% 0%, rgba(25, 179, 162, .08), transparent 60%),
        var(--bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: start;
    background: var(--navy-800);
    box-shadow: var(--shadow);
    transition: transform .55s var(--ease), box-shadow .55s var(--ease);
    isolation: isolate;
}

.service::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--teal-400), transparent 50%, var(--teal-500)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
}

.service:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(25, 179, 162, .2);
}

.service:hover::after {
    opacity: 1;
}

.service img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease), filter .6s;
}

.service:hover img {
    transform: scale(1.1);
    filter: saturate(1.1);
}

.service__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 26, 43, 0) 35%, rgba(7, 26, 43, .55) 70%, rgba(7, 26, 43, .95) 100%);
    transition: opacity .5s;
}

.service__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}

.service__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    transition: transform .5s var(--ease);
}

.service:hover .service__title {
    transform: translateY(-3px);
}

.service__arrow {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
    transition: background .4s, transform .5s var(--ease);
}

.service__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service:hover .service__arrow {
    background: var(--teal-500);
    border-color: var(--teal-500);
    transform: translateX(-4px);
}

@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .service__body { padding: 16px; }
    .service__title { font-size: 1.05rem; }
    .service__arrow { width: 34px; height: 34px; }
}

/* ------------------------- Modal ------------------------- */
.modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(1080px, calc(100vw - 32px));
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow: visible;
    color: var(--ink);
}

.modal::backdrop {
    background: rgba(4, 15, 28, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal[open] {
    animation: modal-in .5s var(--ease-out);
}

.modal[open]::backdrop {
    animation: fade-in .4s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 32px);
}

.modal__media {
    position: relative;
    min-height: 320px;
}

.modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.modal__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 43, .25), transparent 40%);
}

.modal__body {
    padding: clamp(28px, 4vw, 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: var(--navy-900);
    line-height: 1.2;
    padding-inline-end: 40px;
}

.modal__line {
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
    margin: 16px 0 22px;
}

.modal__body p {
    color: var(--ink-2);
    font-size: 1.02rem;
    line-height: 1.85;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
}

.modal__close {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--navy-900);
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: transform .35s var(--ease), background .3s, color .3s;
}

.modal__close:hover {
    transform: rotate(90deg);
    background: var(--navy-900);
    color: #fff;
}

@media (max-width: 860px) {
    .modal__card {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal__media {
        min-height: 220px;
        max-height: 260px;
    }

    .modal__media img {
        position: relative;
        height: 260px;
    }

    .modal__media::after {
        background: linear-gradient(180deg, transparent 60%, #fff 100%);
    }

    .modal__body {
        overflow: visible;
    }
}

/* ------------------------- Partners marquee ------------------------- */
.partners {
    background: var(--surface);
    padding-bottom: clamp(64px, 8vw, 110px);
    overflow: hidden;
}

.partners .section__head {
    margin-bottom: 48px;
}

.marquee {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    padding: 20px 0;
}

.marquee__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

[dir="rtl"] .marquee__track {
    animation-name: marquee-rtl;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.logo-card {
    flex: none;
    width: 220px;
    height: 120px;
    display: grid;
    place-items: center;
    padding: 22px 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}

.logo-card img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(.9);
    opacity: .7;
    transition: filter .4s, opacity .4s, transform .4s var(--ease);
}

.logo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(25, 179, 162, .4);
}

.logo-card:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.06);
}

/* ------------------------- Reasons ------------------------- */
.reasons {
    background:
        radial-gradient(50% 50% at 0% 100%, rgba(25, 179, 162, .1), transparent 60%),
        var(--bg);
    overflow: hidden;
}

.reasons__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.accordion {
    display: grid;
    gap: 14px;
}

.acc {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .4s, border-color .4s, transform .4s var(--ease);
}

.acc.is-open {
    box-shadow: var(--shadow);
    border-color: rgba(25, 179, 162, .35);
}

.acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    text-align: start;
}

.acc__num {
    flex: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--teal-600);
    background: var(--mint);
    transition: background .4s, color .4s, transform .4s var(--ease);
}

.acc.is-open .acc__num {
    color: #fff;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    transform: rotate(-6deg);
    box-shadow: var(--shadow-teal);
}

.acc__title {
    flex: 1;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    color: var(--navy-900);
}

.acc__icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    position: relative;
    transition: transform .45s var(--ease), border-color .3s, background .3s;
}

.acc__icon::before,
.acc__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .45s var(--ease), background .3s;
}

.acc__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.acc.is-open .acc__icon {
    transform: rotate(180deg);
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.acc.is-open .acc__icon::before,
.acc.is-open .acc__icon::after {
    background: #fff;
}

.acc.is-open .acc__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .55s var(--ease);
}

.acc.is-open .acc__panel {
    grid-template-rows: 1fr;
}

.acc__body {
    overflow: hidden;
    padding: 0 24px;
    color: var(--ink-2);
    line-height: 1.85;
    transition: padding .55s var(--ease);
}

.acc.is-open .acc__body {
    padding: 0 24px 26px 94px;
}

[dir="rtl"] .acc.is-open .acc__body {
    padding: 0 94px 26px 24px;
}

.reasons__visual {
    position: relative;
}

.reasons__frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 4.6;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform .8s var(--ease);
}

.reasons__visual:hover .reasons__frame {
    transform: rotate(0deg) scale(1.01);
}

.reasons__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reasons__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(25, 179, 162, .45), rgba(7, 26, 43, .55));
    mix-blend-mode: multiply;
}

.reasons__hex {
    position: absolute;
    background: url(../images/hexagon-green.svg) center / contain no-repeat;
    opacity: .9;
    filter: drop-shadow(0 20px 30px rgba(25, 179, 162, .35));
    animation: hex-float 7s ease-in-out infinite;
}

.reasons__hex--1 {
    width: 120px;
    height: 110px;
    top: -36px;
    inset-inline-start: -30px;
}

.reasons__hex--2 {
    width: 72px;
    height: 66px;
    bottom: -20px;
    inset-inline-end: -16px;
    animation-delay: -3s;
    opacity: .6;
}

@keyframes hex-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-14px) rotate(8deg); }
}

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

    .reasons__visual {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .reasons__frame {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 640px) {
    .acc__head { padding: 18px; gap: 14px; }
    .acc__num { width: 44px; height: 44px; border-radius: 13px; }
    .acc.is-open .acc__body,
    [dir="rtl"] .acc.is-open .acc__body { padding: 0 18px 22px; }
}

/* ------------------------- About ------------------------- */
.about {
    background: var(--surface);
    overflow: hidden;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.about__visual {
    position: relative;
    order: 2;
}

.about__frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5 / 4;
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.about__visual:hover .about__frame img {
    transform: scale(1.06);
}

.about__accent {
    position: absolute;
    inset: 28px -28px -28px 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--teal-400), var(--navy-700));
    z-index: -1;
    opacity: .9;
}

[dir="rtl"] .about__accent {
    inset: 28px 28px -28px -28px;
}

.about__content {
    order: 1;
}

.about__text {
    margin-top: 28px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--ink-2);
}

@media (max-width: 960px) {
    .about__inner { grid-template-columns: 1fr; }
    .about__visual { order: 1; max-width: 560px; margin: 0 auto 20px; width: 100%; }
    .about__content { order: 2; }
}

/* ------------------------- Analysis ------------------------- */
.analysis {
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.analysis__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(25, 179, 162, .35), transparent 60%),
        radial-gradient(50% 50% at 0% 100%, rgba(37, 103, 168, .4), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%, var(--navy-950));
}

.analysis__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 10%, transparent 80%);
}

.analysis__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

.glass {
    position: relative;
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform .5s var(--ease), border-color .4s, background .4s;
}

.glass:hover {
    transform: translateY(-6px);
    border-color: rgba(25, 179, 162, .45);
    background: rgba(255, 255, 255, .085);
}

.glass__icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    box-shadow: var(--shadow-teal);
    margin-bottom: 24px;
}

.glass__icon svg {
    width: 28px;
    height: 28px;
}

.glass__intro {
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.quotes {
    display: grid;
    gap: 10px;
}

.quotes li {
    position: relative;
    padding: 12px 16px;
    border-radius: 14px 14px 4px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    font-style: italic;
    color: var(--teal-300);
    font-size: .98rem;
    line-height: 1.6;
}

[dir="rtl"] .quotes li {
    border-radius: 14px 14px 14px 4px;
}

.glass__punch {
    margin-top: 22px;
    font-weight: 700;
    font-size: 1.08rem;
    color: #fff;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, .18);
}

.steps {
    display: grid;
    gap: 0;
    position: relative;
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 22px;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    top: 44px;
    bottom: 0;
    inset-inline-start: 21px;
    width: 2px;
    background: linear-gradient(180deg, rgba(25, 179, 162, .7), rgba(25, 179, 162, .08));
}

.step:last-child::before {
    display: none;
}

.step__num {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy-900);
    background: linear-gradient(135deg, #fff, var(--teal-300));
    box-shadow: 0 10px 24px -8px rgba(25, 179, 162, .7);
    position: relative;
    z-index: 1;
}

.step__text {
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
    padding-top: 8px;
    font-size: 1rem;
}

.step__text b {
    color: #fff;
    font-weight: 700;
}

.glass__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.checks {
    display: grid;
    gap: 12px;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .3s, transform .3s var(--ease);
}

.checks li:hover {
    background: rgba(25, 179, 162, .18);
    transform: translateX(-4px);
}

.checks li::before {
    content: '';
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat,
        linear-gradient(135deg, var(--teal-300), var(--teal-500));
}

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

    .glass--wide {
        grid-column: 1 / -1;
        order: -1;
    }
}

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

    .glass {
        padding: 28px 22px;
    }
}

/* ------------------------- Team ------------------------- */
.team {
    background: var(--bg);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: end;
}

.member {
    position: relative;
    text-align: center;
    padding: 36px 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
    overflow: hidden;
}

.member::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 120px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(25, 179, 162, .14), transparent 70%);
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(25, 179, 162, .4);
}

.member--lead {
    padding-top: 44px;
    padding-bottom: 40px;
}

.member__photo {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 180deg, var(--teal-400), var(--navy-700), var(--teal-300), var(--teal-400));
}

.member--lead .member__photo {
    width: 200px;
    height: 200px;
}

.member__photo::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(25, 179, 162, .4);
    animation: ring-rotate 24s linear infinite;
}

@keyframes ring-rotate {
    to { transform: rotate(360deg); }
}

.member__photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid #fff;
    transition: transform .6s var(--ease);
}

.member:hover .member__photo img {
    transform: scale(1.04);
}

.member__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy-900);
    position: relative;
}

.member__role {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--teal-700);
    background: var(--mint);
    position: relative;
}

@media (max-width: 860px) {
    .team__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .member--lead {
        order: -1;
    }
}

/* ------------------------- Contact ------------------------- */
.contact {
    background: var(--surface);
    padding-bottom: clamp(84px, 10vw, 140px);
}

.contact__card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(25, 179, 162, .45), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(37, 103, 168, .5), transparent 60%),
        linear-gradient(150deg, var(--navy-700), var(--navy-900));
    box-shadow: var(--shadow-lg);
    color: #fff;
    isolation: isolate;
}

.contact__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    inset-inline-end: -140px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 179, 162, .5), transparent 65%);
    filter: blur(50px);
    z-index: -1;
    animation: blob-a 16s ease-in-out infinite alternate;
}

.contact__info {
    padding: clamp(36px, 5vw, 64px);
    display: flex;
    flex-direction: column;
}

.contact__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.15;
    color: #fff;
}

.contact__sub {
    margin-top: 14px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .78);
}

.contact__list {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.08rem;
    font-weight: 500;
}

.contact__list a {
    position: relative;
    transition: color .3s;
}

.contact__list a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -3px;
    height: 1.5px;
    background: var(--teal-300);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}

.contact__list a:hover {
    color: var(--teal-300);
}

.contact__list a:hover::after {
    transform: scaleX(1);
}

.contact__ico {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--teal-300);
}

.contact__ico svg {
    width: 20px;
    height: 20px;
}

.contact__social {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    gap: 12px;
}

.social {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform .4s var(--ease), box-shadow .4s;
}

.social svg {
    width: 24px;
    height: 24px;
}

.social--fb {
    background: #1877f2;
}

.social--wa {
    background: #25d366;
}

.social:hover {
    transform: translateY(-5px) rotate(-6deg);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .5);
}

.contact__form-wrap {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    align-items: center;
}

.form {
    width: 100%;
    background: rgba(255, 255, 255, .97);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3.6vw, 44px);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    display: grid;
    gap: 18px;
}

.form.shake {
    animation: shake .5s;
}

/* Netlify honeypot – hidden from humans, visible to bots */
.form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
}

@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 62px;
    padding: 22px 18px 6px;
    border-radius: 16px;
    border: 2px solid var(--line);
    background: var(--bg);
    font: inherit;
    font-size: 1.05rem;
    color: var(--ink);
    transition: border-color .3s, background .3s, box-shadow .3s;
    text-align: start;
}

.field input[dir="ltr"] {
    text-align: right;
}

.field input:focus {
    outline: none;
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(25, 179, 162, .15);
}

.field.is-invalid input {
    border-color: #e5484d;
    box-shadow: 0 0 0 5px rgba(229, 72, 77, .12);
}

.field label {
    position: absolute;
    top: 50%;
    inset-inline-start: 18px;
    translate: 0 -50%;
    color: var(--muted);
    font-size: 1.02rem;
    pointer-events: none;
    transition: all .3s var(--ease);
    background: transparent;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: 12px;
    translate: 0 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--teal-600);
}

.form__msg {
    min-height: 1.4em;
    text-align: center;
    font-weight: 600;
    font-size: .98rem;
    color: #e5484d;
    transition: color .3s;
}

.form__msg.is-success {
    color: var(--teal-600);
    animation: pop .5s var(--ease-out);
}

@keyframes pop {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form .btn.is-loading {
    pointer-events: none;
    opacity: .8;
}

.form .btn.is-loading .btn__icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

    .contact__social {
        padding-top: 28px;
    }

    .contact__form-wrap {
        padding-top: 0;
    }
}

/* ------------------------- Footer ------------------------- */
.footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .6);
    padding: 36px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__logo {
    height: 44px;
    width: auto;
    background: #fff;
    padding: 6px 12px;
    border-radius: 12px;
}

.footer__credit {
    font-size: .85rem;
    letter-spacing: .02em;
    direction: ltr;
}

@media (max-width: 640px) {
    .footer {
        padding-bottom: 96px;
    }

    .footer__inner {
        justify-content: center;
        text-align: center;
    }
}

/* ------------------------- Floating elements ------------------------- */
.fab {
    position: fixed;
    inset-inline-start: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .7);
    z-index: 90;
    transition: transform .4s var(--ease);
}

.fab:hover {
    transform: scale(1.08) rotate(-8deg);
}

.fab svg {
    width: 32px;
    height: 32px;
    position: relative;
}

.fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.8); opacity: 0; }
}

.to-top {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .4s, visibility .4s, transform .4s var(--ease), background .3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--teal-600);
}

.to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .fab { width: 56px; height: 56px; inset-inline-start: 16px; bottom: 16px; }
    .fab svg { width: 28px; height: 28px; }
    .to-top { inset-inline-end: 16px; bottom: 16px; width: 46px; height: 46px; }
}
