.skip-nav {
    position: absolute;
    top: -48px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    font-size: .84rem;
    font-weight: 600;
    transition: top .2s;
    z-index: 9999;
    text-decoration: none
}

.skip-nav:focus {
    top: 0
}

:root {
    --navy: #1F2F46;
    --navy-deep: #142033;
    --yellow: #D4A017;
    --yellow-bright: #F2BA20;
    --yellow-soft: #F5EDD0;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E1;
    --white: #FFFFFF;
    --text: #1B1F23;
    --text-mid: #4A5260;
    --text-soft: #7A8290;
    --success: #2B5D4C;
    --success-bg: #E4F0EC;
    --border: rgba(31, 47, 70, 0.10);
    --border-dark: rgba(255, 255, 255, 0.10);
    --shadow: 0 4px 24px rgba(31, 47, 70, 0.08);
    --shadow-lift: 0 8px 32px rgba(31, 47, 70, 0.12);
    --font-h: 'DM Serif Display', Georgia, serif;
    --font-b: 'Manrope', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-b);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

h1 {
    font-family: var(--font-h);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--navy);
}

h2 {
    font-family: var(--font-h);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--navy);
}

h3 {
    font-family: var(--font-h);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--navy);
}

p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
}

em {
    font-style: italic;
}

a {
    text-decoration: none;
}

/* ── LAYOUT ─────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

.slabel {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
    display: block;
    margin-bottom: 16px;
}

.slabel-d {
    color: rgba(255, 255, 255, 0.45);
}

/* ── NAV ────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

#nav.scrolled {
    box-shadow: 0 2px 20px rgba(31, 47, 70, .08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo {
    font-family: var(--font-h);
    font-size: 1.5rem;
    color: var(--navy);
}

.logo span {
    color: var(--yellow);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-cta {
    background: var(--yellow);
    color: var(--navy-deep);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background .2s;
    flex-shrink: 0;
}

@media screen and (max-width: 959px) {
    .nav-cta {
        padding: 10px;
    }
}

.nav-cta:hover {
    background: var(--yellow-bright);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .3s;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--cream);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .m-cta {
    background: var(--yellow);
    color: var(--navy-deep);
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
    border-bottom: none;
    font-size: 1rem;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
    min-height: 48px;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: var(--font-b);
    font-size: .92rem;
    font-weight: 700;
    transition: all .22s;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-y {
    background: var(--yellow);
    color: var(--navy-deep);
}

.btn-y:hover {
    background: var(--yellow-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, .35);
}

.btn-n {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-n:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-g {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .2);
}

.btn-g:hover {
    background: var(--yellow);
    color: var(--navy-deep);
    border-color: var(--yellow);
}

/* ── HERO ── */

#hero {
    padding: 144px 0 16px 0;
    background: var(--cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    position: relative;
}

.hero-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 32, 51, .88);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    gap: 20px;
}

.hb-num {
    font-family: var(--font-h);
    font-size: 1.6rem;
    color: var(--yellow);
    line-height: 1;
}

.hb-lbl {
    font-size: .68rem;
    color: rgba(255, 255, 255, .55);
    margin-top: 2px;
}

/* ── TRUST BAR ──────────────────────────────────── */
#trust {
    padding: 0;
    background: var(--navy);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.trust-item {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.trust-item:last-child {
    border-right: none;
}

.trust-num {
    font-family: var(--font-h);
    font-size: 2.2rem;
    color: var(--white);
    display: block;
    line-height: 1;
}

.trust-lbl {
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    margin-top: 8px;
    display: block;
}

/* ── SEGMENTS ───────────────────────────────────── */
#segments {
    background: var(--cream);
}

.seg-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.seg-intro p {
    margin-top: 14px;
}

.seg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.seg-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all .28s;
}

.seg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    opacity: 0;
    transition: opacity .28s;
}

.seg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.seg-card:hover::before {
    opacity: 1;
}

.seg-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--yellow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 160, 23, .2);
}

.seg-card h3 {
    font-size: 1.22rem;
    margin-bottom: 14px;
}

.seg-list {
    list-style: none;
}

.seg-list li {
    font-size: .87rem;
    color: var(--text-mid);
    padding: 6px 0;
    border-bottom: 1px solid var(--cream-dark);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.55;
}

.seg-list li:last-child {
    border-bottom: none;
}

.seg-list li::before {
    content: '—';
    color: var(--yellow);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.seg-link {
    display: inline-block;
    margin-top: 18px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--yellow);
}

.seg-link:hover {
    text-decoration: underline;
}

.seg-note {
    background: var(--yellow-soft);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: .78rem;
    color: var(--navy);
    border-left: 3px solid var(--yellow);
}

.seg-note a {
    color: var(--navy);
    font-weight: 600;
}

.seg-micro {
    text-align: center;
    margin-top: 44px;
}

/* ── SERVICES ───────────────────────────────────── */
#services {
    background: var(--white);
}

.svc-hdr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 48px;
}

.svc-hdr p {
    margin-top: 14px;
    font-size: 1.05rem;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.svc-span2 {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.svc-card {
    background: var(--cream-dark);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 30px;
    transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.svc-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.svc-num {
    font-family: var(--font-h); 
    font-size: 2.8rem;
    color: black;
    line-height: 1;
    margin-bottom: 12px;
}

.svc-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.svc-card p {
    font-size: .87rem;
}

.svc-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--yellow);
}

/* ── WHY ────────────────────────────────────────── */
#why {
    background: var(--navy-deep);
}

#why h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.why-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    margin-bottom: 52px;
}

.why-table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.why-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.why-head {
    background: rgba(255, 255, 255, .05);
}

.why-cell {
    padding: 16px 26px;
    font-size: .89rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-cell.left {
    color: rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.why-cell.right {
    color: rgba(255, 255, 255, .9);
}

.why-head .why-cell {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    padding: 14px 26px;
}

.ic-bad {
    color: #E57373;
    flex-shrink: 0;
    font-size: .82rem;
}

.ic-good {
    color: #81C784;
    flex-shrink: 0;
    font-size: .82rem;
}

.why-cta {
    margin-top: 36px;
    text-align: center;
}

/* ── PHOTO BREAK ──*/
.photo-break {
    position: relative;
    display: flex;
    /* Дозволяє оверлею керувати висотою */
    /* Переконайтеся, що тут або в медіа-запитах немає фіксованої height! */
}

/* 1. Робимо picture блоковим і жорстко розтягуємо на весь батьківський контейнер */
.photo-break picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    /* Критично важливо для <picture> */
}

/* 2. Картинка повністю заповнює свій picture */
.photo-break picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    display: block;
    /* Прибирає дефолтні відступи під картинкою */
}

/* 3. Оверлей диктує загальну висоту всього блоку */
.photo-break-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 320px;
    background: rgba(20, 32, 51, .72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.photo-break-text {
    text-align: center;
    max-width: 640px;
}

.photo-break-text h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 16px;
}

.photo-break-text p {
    color: rgba(255, 255, 255, .75);
    font-size: 1.05rem;
}

/* ── TAKE ON ────────────────────────────────────── */
#takeon {
    background: var(--cream);
}

.takeon-hd {
    max-width: 640px;
    margin-bottom: 52px;
}

.takeon-hd p {
    margin-top: 16px;
    font-size: 1.05rem;
}

.to-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 44px;
}

.to-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
}

.to-num {
    font-family: var(--font-h);
    font-size: 2.1rem;
    color: var(--yellow);
    opacity: .4;
    line-height: 1;
}

.to-card p {
    font-size: .87rem;
    margin-top: 10px;
    line-height: 1.75;
}

.takeon-finale {
    background: var(--navy);
    border-radius: 16px;
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.takeon-q {
    font-family: var(--font-h);
    font-size: 1.5rem;
    color: var(--white);
    font-style: italic;
    line-height: 1.5;
    max-width: 560px;
}

/* ── HOW ────────────────────────────────────────── */
#how {
    background: var(--white);
}

.how-hd {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 60px;
}

.how-hd p {
    margin-top: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 14px);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-family: var(--font-h);
    font-size: 1.35rem;
    color: var(--navy);
    transition: all .25s;
}

.step:hover .step-dot {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    font-size: .84rem;
}

.step-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: .73rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: var(--yellow-soft);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 160, 23, .2);
}

/* ── NUMBERS ────────────────────────────────────── */
#numbers {
    background: var(--navy);
}

.num-hd {
    text-align: center;
    margin-bottom: 52px;
}

.num-hd h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.num-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .08);
    border-radius: 14px;
    overflow: hidden;
}

.num-item {
    background: var(--navy);
    padding: 36px 24px;
    text-align: center;
}

.num-big {
    font-family: var(--font-h);
    font-size: 2.8rem;
    color: var(--yellow);
    line-height: 1;
    display: block;
}

.num-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    margin-top: 8px;
    display: block;
}

/* ── TEAM ───────────────────────────────────────── */
#team {
    background: var(--cream);
}

.team-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    margin-bottom: 40px;
}

.team-quote {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.65;
    font-style: italic;
    padding-left: 22px;
    border-left: 3px solid var(--yellow);
    margin: 22px 0;
}

.roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.role-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.role-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--navy);
    margin-bottom: 3px;
}

.role-desc {
    font-size: .78rem;
    color: var(--text-soft);
    margin-bottom: 6px;
    line-height: 1.5;
}

.role-value {
    font-size: .78rem;
    color: var(--yellow);
    font-weight: 600;
}

/* Team photos grid */
.team-photos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.team-photo-main {
    border-radius: 14px;
    overflow: hidden;
    height: 380px;
}

.team-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-photo-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-photo-sm {
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.team-photo-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* ── REVIEWS ────────────────────────────────────── */
#reviews {
    background: var(--white);
}

.rev-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 20px;
}

.rating-big {
    font-family: var(--font-h);
    font-size: 3.8rem;
    color: var(--navy);
    line-height: 1;
}

.rating-stars {
    color: var(--yellow);
    font-size: 1.1rem;
    margin: 4px 0;
    letter-spacing: .05em;
}

.rating-count {
    font-size: .76rem;
    color: var(--text-soft);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab {
    padding: 7px 18px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    transition: all .2s;
}

.tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.tab:hover:not(.active) {
    border-color: var(--navy);
    color: var(--navy);
}

.rev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rev-card {
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
}

.rev-stars {
    color: var(--yellow);
    font-size: .82rem;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.rev-text {
    font-size: .89rem;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 18px;
}

.rev-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rev-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

.rev-name {
    font-weight: 700;
    font-size: .86rem;
    color: var(--navy);
}

.rev-type {
    font-size: .73rem;
    color: var(--text-soft);
}

/* ── CASES ──────────────────────────────────────── */
#cases {
    background: var(--cream);
}

.cases-hd {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 52px;
}

.cases-hd p {
    margin-top: 14px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.case-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .28s;
    background: var(--white);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.case-hd {
    background: var(--navy);
    padding: 22px;
}

.case-type {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 5px;
}

.case-title {
    font-family: var(--font-h);
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.3;
}

.case-body {
    padding: 22px;
}

.case-step {
    margin-bottom: 14px;
}

.case-step-lbl {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.case-step-txt {
    font-size: .86rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.case-result {
    background: var(--success-bg);
    border-radius: 10px;
    padding: 14px;
    margin-top: 14px;
}

.case-result-lbl {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--success);
    margin-bottom: 4px;
}

.case-result-txt {
    font-size: .87rem;
    font-weight: 700;
    color: var(--text);
}

.cases-cta {
    text-align: center;
    margin-top: 55px;
}

/* ── NOT FOR ────────────────────────────────────── */
#notfor {
    background: var(--white);
}

.notfor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.notfor-text p {
    margin-bottom: 28px;
}

.notfor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notfor-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--cream-dark);
    border-radius: 10px;
    border-left: 3px solid rgba(31, 47, 70, .15);
}

.notfor-item .ni-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.notfor-item p {
    font-size: .87rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}

.notfor-pos {
    background: var(--navy);
    border-radius: 16px;
    padding: 36px;
}

.notfor-pos h3 {
    font-family: var(--font-h);
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.notfor-pos-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.notfor-pos-item:last-child {
    margin-bottom: 0;
}

.notfor-pos-item .tick {
    color: var(--yellow);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notfor-pos-item p {
    font-size: .87rem;
    color: rgba(255, 255, 255, .8);
    margin: 0;
    line-height: 1.65;
}

/* ── FAQ ────────────────────────────────────────── */
#faq {
    background: var(--cream);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 72px;
    align-items: start;
}

.faq-intro h2 {
    margin-bottom: 16px;
}

.faq-intro p {
    font-size: .94rem;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-q {
    min-height: 48px;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-family: var(--font-b);
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background .2s;
}

.faq-q:hover {
    background: var(--cream-dark);
}

.faq-q:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: -2px;
}

.faq-q .arrow {
    flex-shrink: 0;
    transition: transform .3s;
    color: var(--yellow);
    font-size: .68rem;
}

.faq-item.open .faq-q {
    min-height: 48px;
    background: var(--cream-dark);
}

.faq-item.open .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-a-inner {
    padding: 0 22px 18px;
    font-size: .87rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ── CTA FINAL ──────────────────────────────────── */
#cta-final {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.cta-txt h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.cta-txt p {
    color: rgba(255, 255, 255, .7);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.cta-contacts {
    margin-top: 28px;
    font-size: .8rem;
    color: whitesmoke;
    line-height: 1.9;
}

.cta-form {
    background: var(--white);
    border-radius: 20px;
    padding: 38px;
}

.form-title {
    font-family: var(--font-h);
    font-size: 1.45rem;
    color: var(--navy);
    margin-bottom: 26px;
    line-height: 1.2;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-b);
    font-size: .89rem;
    color: var(--text);
    background: var(--cream);
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .15);
}

.form-row textarea {
    resize: vertical;
    min-height: 75px;
}

.form-submit {
    min-height: 48px;
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-b);
    font-size: .94rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s;
    margin-top: 4px;
}

.form-submit:hover {
    background: var(--yellow);
    color: var(--navy-deep);
}

.form-note {
    font-size: .73rem;
    color: var(--text-soft);
    text-align: center;
    margin-top: 10px;
}

/* ── CONTACTS ───────────────────────────────────── */
#contacts {
    background: var(--cream);
    padding: 72px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 52px;
}

.brand-name {
    font-family: var(--font-h);
    font-size: 1.9rem;
    color: var(--navy);
}

.brand-name span {
    color: var(--yellow);
}

.brand-desc {
    font-size: .86rem;
    color: var(--text-soft);
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.75;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--white);
    font-weight: 700;
    transition: background .2s;
}

.social-a:hover {
    background: var(--yellow);
    color: var(--navy-deep);
}

.cgroup h4 {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.cgroup a,
.cgroup p {
    display: block;
    font-size: .86rem;
    color: var(--text-mid);
    margin-bottom: 7px;
    line-height: 1.6;
}

.cgroup a:hover {
    color: var(--navy);
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
    background: var(--navy-deep);
    padding: 22px 0;
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-copy {
    font-size: .74rem;
    color: rgba(255, 255, 255, .3);
}

.foot-links {
    display: flex;
    gap: 22px;
}

.foot-links a {
    font-size: .74rem;
    color: rgba(255, 255, 255, .3);
    transition: color .2s;
}

.foot-links a:hover {
    color: rgba(255, 255, 255, .7);
}

/* ── ANIMATIONS ─────────────────────────────────── */
/* opacity:0.05 → елемент майже невидимий але не пустий */
.fu {
    opacity: 0.05;
    transform: translateY(24px);
    transition: opacity .62s ease, transform .62s ease;
}

.fu.vis {
    opacity: 1;
    transform: translateY(0);
}

.fu:nth-child(2) {
    transition-delay: .1s;
}

.fu:nth-child(3) {
    transition-delay: .2s;
}

.fu:nth-child(4) {
    transition-delay: .3s;
}


/* ── VIDEO SECTION ─────────────────────────── */
.video-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-grid-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.video-thumb {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    transition: transform .25s;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 46 / 35;
}

.video-thumb:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift)
}

.video-thumb img {
    width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: opacity .25s;
}

.video-thumb:hover img {
    opacity: .85;
}

.video-main {
    aspect-ratio: 16/10;
    min-height: 340px
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 32, 51, 0) 0%, rgba(20, 32, 51, .7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white)
}

.video-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    box-shadow: 0 8px 24px rgba(212, 160, 23, .4);
    transition: transform .25s
}

.video-thumb:hover .video-play {
    transform: scale(1.1)
}

.video-thumb:not(.video-main) .video-play {
    width: 48px;
    height: 48px
}

.video-label {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.3
}

.video-thumb:not(.video-main) .video-label {
    font-size: 1rem
}

.video-side {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.video-side .video-thumb {
    flex: 1;
    min-height: 160px
}

.video-cta {
    width: 100%;
    max-width: 600px;
    background: var(--cream-dark);
    border-radius: 14px;
    padding: 32px 24px;
    margin: 20px 0 55px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    text-align: center;
    box-sizing: border-box;
}

.video-link {
    padding: 8px 16px;
    background: var(--white);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    transition: all .2s
}

.video-link:hover {
    background: var(--yellow);
    color: var(--navy-deep);
    border-color: var(--yellow)
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(20, 32, 51, .92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px
}

.video-modal.open {
    display: flex;
    animation: fadeIn .3s ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16/9
}

.video-modal-frame {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: none
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s
}

.video-modal-close:hover {
    background: var(--yellow);
    color: var(--navy-deep);
    border-color: var(--yellow)
}

@media (max-width: 1024px) {
    .video-grid-flex {
        gap: 20px;
        /* Зменшуємо відступ до 20px */
    }
}

/* Етап 2: Мобільні телефони -> відео стають одне під одним */
@media (max-width: 900px) {
    .video-grid-flex {
        flex-direction: column;
        /* Змінюємо напрямок на вертикальний */
        gap: 30px;
        /* Відступ між відео, коли вони в стовпчик */
    }

    .video-thumb {
        max-width: 100%;
        /* Дозволяємо відео розтягнутися на ширину телефону */
    }

    .video-cta {
        width: 100%;
        /* Скидаємо будь-які жорсткі розміри */
        height: auto;
    }
}

/* ── FAB MESSENGERS ───────────────────────── */
.fab-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9997
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy-deep);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(212, 160, 23, .4);
    transition: all .25s;
    position: relative
}

.fab-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(212, 160, 23, .5)
}

.fab-icon-close {
    display: none
}

.fab-wrap.open .fab-icon-chat {
    display: none
}

.fab-wrap.open .fab-icon-close {
    display: block
}

.fab-menu {
    position: absolute;
    bottom: 72px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .25s
}

.fab-wrap.open .fab-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.fab-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--navy);
    padding: 10px 16px 10px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: .84rem;
    box-shadow: 0 4px 16px rgba(31, 47, 70, .15);
    border: 1px solid var(--border);
    transition: all .2s;
    min-width: 200px
}

.fab-link:hover {
    transform: translateX(-2px);
    background: var(--cream)
}

.fab-link svg {
    flex-shrink: 0;
    color: var(--white);
    background: var(--navy);
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px
}

.fab-tg svg {
    background: #0088cc
}

.fab-vb svg {
    background: #7360F2
}

.fab-call svg {
    background: var(--success)
}

.fab-link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

.fab-link-text strong {
    font-size: .86rem;
    color: var(--navy);
    font-weight: 700
}

.fab-link-text small {
    font-size: .72rem;
    color: var(--text-soft);
    margin-top: 1px
}

/* FAB pulse on first load */
@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(212, 160, 23, .4)
    }

    50% {
        box-shadow: 0 6px 20px rgba(212, 160, 23, .4), 0 0 0 12px rgba(212, 160, 23, .15)
    }
}

.fab-btn {
    animation: fabPulse 2.5s ease-in-out 3s 3
}

@media(max-width:540px) {
    .fab-wrap {
        bottom: 16px;
        right: 16px
    }

    .fab-btn {
        width: 52px;
        height: 52px
    }

    .fab-link {
        min-width: 0;
        padding: 10px 14px 10px 10px
    }

    .fab-link-text small {
        display: none
    }

    .video-main {
        min-height: 220px
    }
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
    section {
        padding: 72px 0;
    }

    .hero-grid,
    .cta-grid,
    .team-top,
    .faq-layout,
    .contacts-grid,
    .svc-hdr,
    .notfor-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-wrap {
        display: block;
    }

    .seg-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .steps::before {
        display: none;
    }

    .to-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rev-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-grid {
        grid-template-columns: 1fr;
    }

    .svc-span2 {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .why-row {
        grid-template-columns: 1fr;
    }

    .why-cell.left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .takeon-finale {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .team-photos {
        grid-template-columns: 1fr;
    }

    .team-photo-side {
        flex-direction: row;
    }

    .team-photo-main {
        height: 300px;
    }

    .num-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rev-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {

    .to-grid,
    .steps,
    .roles {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-btns {
        flex-direction: column;
    }

    .team-photo-side {
        flex-direction: column;
    }

    .photo-break img {
        height: 280px;
    }
}

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.m-tg {
    background: #26A5E4;
    color: white;
}

.m-vb {
    background: #7360F2;
    color: white;
}

.m-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(31, 47, 70, 0.1);
}

.stat-num {
    font-family: serif;
    font-size: 3rem;
    color: #D4A017;
}


.video-item {
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .video-grid-flex {
        flex-direction: column;
        gap: 30px;
    }

    .video-thumb {
        width: 100%;
        /* 🔥 Обмежуємо максимальну ширину на телефонах до 320px (це стандартний акуратний розмір) */
        max-width: 520px;

        /* 🔥 Центруємо відео всередині колонки */
        margin: 0 auto;
    }

    .video-cta {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 960px) {
    /* ... ваш існуючий код (hero-grid, nav-links: none, burger: flex і т.д.) ... */

    .nav-inner {
        gap: 20px;
        /* Встановлюємо відступ рівно 20px */
    }

    .nav-cta {
        /* Забирає весь вільний простір зліва і штовхає кнопку вправо до бургера */
        margin-left: auto;
    }
}