/*
Theme Name: Escalix
Description: Minimal landing page theme for Escalix
Author: Komanda
Version: 1.0
Text Domain: theme
*/

:root {
    --bg: #000;
    --panel: #0b0b0b;
    --muted: #bdb8bf;
    --accent1: #525bdb; /*#6d1cff*/
    --accent2: #525bdb; /*#b54cff*/
    --glass: rgba(255, 255, 255, 0.03);
    --card-radius: 16px;
    --container-max: 1440px;
    --heading-font-weight: 500;
    --heading-text-align: center;
    --heading-color: #fff;
    --heading-font-size: 42px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #fff;
    background: linear-gradient(180deg, var(--bg) 0%, #050505 45%, #0a0a0a 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*scroll-behavior: smooth;*/
}

.text-center {
    text-align: center;
}

.pt20 {
    padding-top: 20px;
}

.mt50 {
    margin-top: 50px;
}

.m40 {
    margin: 40px;
}

.mt80 {
    margin-top: 80px;
}

article ul li {
    line-height: 2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page p a {
    color: var(--accent1);
}

p.photo-gallery-subtitle a {
    color: inherit;
}

a:hover {
    transform: translateY(-1px);
}

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

/* Page layout */
.page {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: #080808;
    position: relative;
}

.wrap {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 20px;
}

/* Topbar */
/*.topbar {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    box-shadow: 0 14px 40px rgba(106, 22, 255, 0.16);
}

.topbar-messages {
    position: relative;
    width: 100%;
    height: 100%;
}

.topbar-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.topbar-message.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}*/

marquee.topbar-marquee {
    display: none;
}

/* Mobile styles: адаптация слайдера */
@media (max-width: 768px) {
    marquee.topbar-marquee {
        display: none;
    }
    /*.topbar {

        overflow: hidden;
        padding: 8px 20px;
        box-sizing: border-box;
    }


    .topbar-messages {
        position: relative;
        width: 100%;
        transition: height 0.3s ease-in-out;
    }

    .topbar-message {

        position: absolute;
        top: 0;
        left: 0;
        width: 100%;

        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
        word-break: break-word;
        font-size: .75rem;
        padding: 4px 0;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    }

    .topbar-message-mobile,
    .topbar-marquee {
        display: none;
    }*/
}

/* Header navigation */
header.nav {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.nav.scrolled {
    top: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
}

.nav-column {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

.brand {
    font-weight: 700;
    font-size: 18px;
    order: 1;
    z-index: 1002;
    min-width: 20%;
}

.nav-menu {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 60%;
}

.nav-cta {
    order: 3;
}

.mobile-menu-toggle {
    order: 4;
    z-index: 1002;
    min-width: 20%;
}

/* Mobile CTA button inside menu */
.mobile-cta {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.mobile-cta .cta {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 0;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 14px 40px rgba(106, 22, 255, 0.16);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 16px 30px;
    border-radius: 50px;
	font-size: 14px;
}

.cta:hover, .cta-pill:hover, .founder-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(106, 22, 255, 0.3);
    background: linear-gradient(90deg, var(--accent2), var(--accent1));
}

.cta:active {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(106, 22, 255, 0.2);
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 72px;
    border-radius: 12px;
    /*background: linear-gradient(90deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));*/
    min-height: 520px;
    max-width: 1100px;
    margin: auto;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);*/
}

/* Hero Video Styles - responsive iframe + aspect-ratio fallback */
.hero-video-embed {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    position: relative;
    /* дефолтне співвідношення сторін 16:9, можна змінити через data-aspect */
    aspect-ratio: 16 / 9;
    height: auto;
    background: #0a0a0a;
}

/* iframe займає весь контейнер, але спочатку прихований до події load */
.hero-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    display: block;
    opacity: 0;
    transition: opacity .25s ease;
}

/* показати iframe після того як він завантажився (додаємо клас .video-ready на .hero-video-embed через JS) */
.hero-video-embed.video-ready iframe {
    opacity: 1;
}

/* fallback для браузерів без support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .hero-video-embed {
        height: 0;
        padding-top: calc(100% * (9 / 16)); /* 16:9 fallback */
    }
    .hero-video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.headline h1 {
    margin: 0;
    font-weight: 800;
    line-height: 1.02;
    font-size: clamp(28px, 6vw, 52px);
    text-align: center;
}

.headline {
    padding: 30px 0 10px;
}

.headline a {
    font-size: 20px;
}

.em {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Brands section */
.brands-section {
    width: 100%;
    /*background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));*/
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brands-inner {
    width: 100%;
    max-width: var(--container-max);
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.brands-title {
    font-weight: var(--heading-font-weight);
    text-align: var(--heading-text-align);
    color: var(--heading-color);
    font-size: var(--heading-font-size);
}

/* Brands grid container */
.brands-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    width: 100%;
}

.brand-grid-item {
    opacity: .85;
    filter: grayscale(.2) contrast(.9);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    transition: all 0.3s ease;
}

.brand-grid-item:hover {
    opacity: 1;
    filter: grayscale(0) contrast(1);
    transform: translateY(-2px);
}

.brand-grid-item img {
    max-height: 80px;
    max-width: 200px;
    opacity: .96;
    width: auto;
    height: auto;
    object-fit: contain;
    text-align: center;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Video skeleton loading styles (абсолютно покриває контейнер) */
.video-skeleton {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    max-width: none;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 14px;
    margin: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 0;
}

/* коли відео готове — приховуємо скелетон (JS додає .video-ready) */
.hero-video-embed.video-ready .video-skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* анімація скелетону */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Testimonials section */
.testimonials-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 36px 0 0;
}

.testimonials-inner {
    width: 100%;
    max-width: var(--container-max);
    padding: 0 18px;
}

.testimonials-head {
    text-align: var(--heading-text-align);
    margin-bottom: 18px;
    font-weight: var(--heading-font-weight);
    font-size: var(--heading-font-size);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.02);
    padding: 22px;
    border-radius: 14px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote {
    color: #ddd;
    line-height: 1.6;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.author-info {
    color: var(--muted);
    padding-top: 6px;
}

.author-name {
    font-weight: 700;
    color: #fff;
}

.author-name-link {
    color: var(--accent1);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-name-link:hover {
    color: var(--accent1);
    transform: translateY(-1px);
}

.author-name-link::after {
    /*content: "🔗";*/
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/*.author-name-link:hover::after {
    opacity: 1;
    content: "🔗";
}*/

/* CTA section */
.cta-band {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 48px 18px;
}

.cta-card {
    width: 100%;
    max-width: var(--container-max);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
    padding: 34px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    /*box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);*/
    background-color: rgb(26, 26, 26);
    border: 1px solid rgb(42, 42, 42);
    padding: 48px 32px;
}

.cta-card h2 {
    margin: 0;
    font-size: var(--heading-font-size);
    font-weight: var(--heading-font-weight);
    text-align: var(--heading-text-align);
    color: var(--heading-color);
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(107, 13, 255, 0.16);
    transition: all 0.3s ease;
    padding: 16px 30px;
    border-radius: 50px;
	text-align: center;
}

.cta-pill:hover {
    box-shadow: 0 16px 40px rgba(107, 13, 255, 0.25);
    background: linear-gradient(90deg, var(--accent2), var(--accent1));
}

.cta-small-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.reviews-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--muted);
    /* box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6); */
    text-align: center;
}

.reviews-pill-num span {
    display: inline-flex;
}

.mini-avatars-flex {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
}

.reviews-pill span {
    color: #f5c542;
    font-weight: 700;
    gap:1px;
}

.reviews-pill-num {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reviews-pill-text {
    color: #fff;
    font-weight: 500;
}

.reviews-pill .mini-avatars {
    display: flex;
    gap: 0;
    margin-left: 0;
}

.reviews-pill img {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -10px;
}

@media (max-width: 768px) {
    .nav-menu {
        min-width: 50%;
    }
    .brand {
        min-width: 30%;
    }
    .cta-small-pills .reviews-pill img {
        width: 34px;
        height: 34px;
    }
    .reviews-pill {
        font-size: 12px;
        padding: 5px 18px;
    }
    .mini-avatars-flex {
        align-items: center;
    }
}

/* Founder section */
:root {
    --founder-bg: linear-gradient(180deg, rgba(255,255,255,0.004), rgba(255,255,255,0.002));
    --founder-accent-1: #525bdb;
    --founder-accent-2: #525bdb;
    --founder-muted: #bdb7be;
    --founder-radius: 18px;
    --founder-gap: 36px;
    --founder-container-max: 1100px;
}

.founder-section {
    width: 100%;
    padding: 56px 18px;
    background: var(--founder-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.founder-inner {
    width: 100%;
    max-width: var(--founder-container-max);
    display: flex;
    gap: var(--founder-gap);
    align-items: flex-start;
    padding: 0 6px;
    border-radius: var(--founder-radius);
}

.founder-photo {
    flex: 0 0 44%;
    max-width: 48%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg,#0f0f10,#070707);
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
    min-height: 360px;
    display: block;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.founder-content {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    color: #fff;
    height: 100%;
}

.founder-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.founder-title {
    margin: 0;
    font-weight: var(--heading-font-weight);
    font-size: var(--heading-font-size);
    line-height: 1.05;
    color: var(--heading-color);
    text-align: var(--heading-text-align);
    width: 100%;
    max-width: var(--container-max);
    padding: 0 20px;
}

.founder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.founder-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #fcfcfc;
    font-family: Raleway;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.founder-list .check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(90deg,var(--founder-accent-1),var(--founder-accent-2));
    display: inline-grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(107,13,255,0.16);
    margin-top: 3px;
}

.founder-list .check svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    display: block;
}

.founder-cta-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.founder-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg,var(--founder-accent-1),var(--founder-accent-2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(107,13,255,0.16);
    transition: transform .14s ease, box-shadow .14s ease;
    padding: 16px 30px;
    border-radius: 50px;
    text-align: center;
}

.founder-cta:active {
    transform: translateY(1px);
}

.founder-cta:focus {
    outline: 3px solid rgba(107,13,255,0.14);
    outline-offset: 4px;
}

.founder-note {
    color: var(--founder-muted);
    font-size: 13px;
    margin-top: 6px;
}



/* Responsive styles */
@media (max-width:900px) {
    .hero {
        padding: 90px 20px 0;
    }

    .nav-cta {
        display: none;
    }
    
    .mobile-cta {
        display: block;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
    }

    .brand-grid-item {
        height: 60px;
    }

    .brand-grid-item img {
        max-height: 40px;
        max-width: 120px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        min-height: 150px;
    }

    .testimonials-head {
        text-align: center;
    }

    .cta-card {
        padding: 22px 10px;
        border-radius: 14px;
    }

    .cta-pill {
        padding: 12px 22px;
    }

    .cta-card h2 {
        font-size: 18px;
    }

    .reviews-pill img {
        width: 38px;
        height: 38px;
    }

    .founder-inner {
        flex-direction: column;
        gap: 22px;
        align-items: stretch;
    }

    .founder-photo {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 260px;
        border-radius: 14px;
    }

    .founder-content {
        padding: 0 8px;
    }

    .founder-header {
        margin-bottom: 30px;
    }
    
    .founder-title {
        text-align: center;
        font-size: var(--heading-font-size);
    }

    .founder-cta-wrap {
        justify-content: center;
    }

    .founder-note {
        text-align: center;
    }
}

@media (max-width:480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }

    .brand-grid-item {
        height: 50px;
    }

    .brand-grid-item img {
        max-height: 35px;
        max-width: 100px;
    }

    .founder-section {
        padding: 0 12px 36px;
    }

    .brands-title,
    .testimonials-head,
    .guides-title,
    .video-testimonials-title,
    .photo-gallery-title,
    .founder-title,
    .cta-card h2,
    .inside-accounts-title,
    .cta-small-title {
        font-size: 30px!important;
    }

    .founder-list li {
        font-size: 20px;
        line-height: 1.5;
    }

    .founder-list .check {
        height: 22px;
    }

    .founder-cta {
        padding: 10px 20px;
    }
}

@media (max-width:480px) {
    .founder-section {
        padding: 36px 12px;
    }

    .founder-title {
        font-size: var(--heading-font-size);
    }

    .founder-cta {
        padding: 10px 20px;
    }
}
/* === GUIDES SECTION STYLES === */
.guides-section {
  /*background-color: #000;*/
  color: #fff;
  text-align: center;
  padding: 20px 20px 80px;
}

.guides-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.guides-title {
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  margin-bottom: 10px;
  text-align: var(--heading-text-align);
  color: var(--heading-color);
}

.guides-subtitle {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 40px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 40px;
}

/* Reserve space to avoid layout shift when lazy-loading guide images.
   We use an aspect-ratio box for consistent sizing and object-fit on images.
   JS will add the 'loaded' class when the image actually loads. */
.guide-item {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16; /* reserve space to prevent height jump; adjust if needed */
  background: #0a0a0a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

.guide-item img {
  width: 100%;
  height: auto;
  max-width: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.guide-item img:hover {
  /*transform: scale(1.05);*/
  cursor: pointer;
}

.guide-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #aaa;
}

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

@media (max-width: 768px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guides-section {
      padding: 0 20px 40px;
  }
}

@media (max-width: 480px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
}
/* ================================
   VIDEO TESTIMONIALS SECTION
================================ */
.video-testimonials {
  padding: 0 0 80px 0;
  /*background-color: #000;*/
  color: #fff;
  text-align: center;
}

.video-testimonials-title {
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  margin-bottom: 40px;
  text-align: var(--heading-text-align);
  color: var(--heading-color);
  /*background: linear-gradient(90deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
}

.video-testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.video-full-width {
  width: 100%;
  max-width: 1175px;
}

.video-row {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1175px;
  justify-content: center;
}

.video-half-width {
  flex: 1;
  max-width: 587px;
  min-width: 300px;
}

@media (max-width: 900px) {
  .video-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .video-half-width {
    max-width: 100%;
  }
}

.video-thumb {
  background: #f3f3f5;
  border-radius: 14px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.video-thumb button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.video-thumb button:hover {
  transform: scale(1.1);
}
/* ================================
   VIDEO PHOTOS GRID
================================ */
.video-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
  align-items: start;
  justify-content: center;
  min-height: 950px;
}

.video-photo-item {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  break-inside: avoid;
}

.video-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-photo-item img:hover {
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Masonry effect using CSS columns */
@media (min-width: 768px) {
  .video-photos-grid {
    column-count: 2;
    column-gap: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 1175px;
  }
  
  .video-photo-item {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .video-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	  min-height: 1230px;
  }
  
  @media (min-width: 768px) {
    .video-photos-grid {
      column-count: 2;
    }
  }
}

@media (max-width: 767px) {
  .video-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    display: grid;
    column-count: 1;
    justify-items: center;
  }
}

/* ================================
   PHOTO GALLERY SECTION
================================ */
.photo-gallery {
  /*background-color: #000;*/
  color: #fff;
  text-align: center;
  padding: 0px 20px;
}

.photo-gallery-inner {
  max-width: 1175px;
  margin: 0 auto;
}

.photo-gallery-title {
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  margin-bottom: 10px;
  text-align: var(--heading-text-align);
  color: var(--heading-color);
  /*background: linear-gradient(90deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
}

.photo-gallery-subtitle {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 40px;
  text-decoration: underline;
  cursor: pointer;
}

.photo-gallery-grid {
  display: flex;
  gap: 20px;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  overflow: hidden;
  max-height: 2500px;
  opacity: 1;
}

.photo-gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-gallery-grid.collapsed {
  max-height: 600px;
  position: relative;
  border-radius: 15px;
  min-height: 600px;
}

.photo-gallery-item {
    margin-bottom: 0;
    align-content: center;
}

.photo-gallery-grid.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 170px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgb(27 27 27 / 70%) 30%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.photo-gallery-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  height: auto;
}

/*.photo-gallery-item img:hover {
  transform: scale(1.05);
}*/

.gallery-toggle-btn {
    margin-top: 40px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(107, 13, 255, 0.16);
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid #525bdb;
    padding: 15px 35px;
    background: inherit;
}

.gallery-toggle-btn:hover {
  box-shadow: 0 16px 40px rgba(107, 13, 255, 0.25);
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
}

@media (max-width: 1024px) {
  .photo-gallery-grid {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  .photo-gallery-grid {
    flex-direction: column;
  }
  .photo-gallery-grid.collapsed {
      max-height: 428px;
  }
  .photo-gallery.photo-gallery {
      padding: 0px 20px 60px;
  }
  .video-testimonials {
    padding: 20px 20px 60px;
  }
}
/* Inside Accounts Section */
.inside-accounts {
  color: #fff;
  text-align: center;
  padding: 40px 20px 80px;
}

.inside-accounts-title {
    font-size: var(--heading-font-size);
    font-weight: var(--heading-font-weight);
    text-align: var(--heading-text-align);
    color: var(--heading-color);
    margin-bottom: 50px;
}

.cta-small-title {
    font-size: var(--heading-font-size);
    font-weight: var(--heading-font-weight);
    text-align: var(--heading-text-align);
    color: var(--heading-color);
}

.inside-accounts-gallery {
  column-count: 2;
  column-gap: 20px;
  max-width: 1175px;
  margin: 0 auto;
}

.inside-accounts-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  break-inside: avoid;
  margin-bottom: 20px;
}

.inside-accounts-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.inside-accounts-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .inside-accounts-gallery {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .inside-accounts-gallery {
    column-count: 1;
  }
}

@media (max-width: 600px) {
  .inside-accounts {
    padding: 0 10px 40px;
  }

  .inside-accounts-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .inside-accounts-gallery {
    column-count: 1;
    column-gap: 15px;
  }
  
  .inside-accounts-item {
    margin-bottom: 15px;
  }
}
/* === Footer Styles === */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 0 18px 36px;
  text-align: center;
  background: transparent;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 18px;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-menu-left,
.footer-menu-right {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-menu-left li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-menu-left a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-menu-left a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-arrow-up-right' aria-hidden='true'%3E%3Cpath d='M7 7h10v10'%3E%3C/path%3E%3Cpath d='M7 17 17 7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.footer-menu-right a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu-left a:hover,
.footer-menu-right a:hover {
  color: #ccc;
}

.footer-text {
  color: #ccc;
}

.google-partner-badge {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.google-partner-badge:hover {
  transform: scale(1.05);
}

.google-partner-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-partner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.google-label {
  font-size: 9px;
  color: rgb(95, 99, 104);
}

.partner-label {
  font-size: 12px;
  color: rgb(32, 33, 36);
  font-weight: 600;
}

/* Mobile footer styles */
@media (max-width: 768px) {
	.site-footer {
		padding-top: 40px;
	}
   .footer-center {
    display: flex;
    flex-direction: column;
   }

   .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-menu-left,
  .footer-menu-right {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-menu-left li {
    justify-content: center;
  }
  
  .footer-menu-left a,
  .footer-menu-right a {
    justify-content: center;
  }
}

/*Cf7 form*/
.cf7-download-form {
    max-width: 520px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cf7-download-form label {
    display: block;
    margin-bottom: 20px;
}

.cf7-download-form input[type="text"],
.cf7-download-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.cf7-download-form input[type="text"]:focus,
.cf7-download-form input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.radio-group {
    margin: 25px 0 30px;
}

.radio-group p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e293b;
}

.wpcf7-radio .wpcf7-list-item {
    display: block;
    margin: 12px 0;
}

.submit-wrap {
    text-align: center;
}

.cf7-download-form input[type="submit"] {
    background: #e11d48;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
}

.cf7-download-form input[type="submit"]:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.4);
}

.req {
    color: #ef4444;
}

/* Блок «Дякуємо + кнопка скачування» */
div#altEmail_container {
    display: none;
}
.quiz-cf7 {
    max-width: 560px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.quiz-step {
    display: none;
    padding: 60px 40px;
    min-height: 400px;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question h3 {
    font-size: 32px;
    margin: 0 0 12px;
    color: #1e293b;
}

.quiz-hint {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 17px;
}

.quiz-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 18px;
    transition: all 0.3s;
}

.quiz-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.15);
}

.quiz-radios .wpcf7-list-item {
    margin: 16px 0;
}

.quiz-radios label {
    display: block;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-radios input:checked+span {
    background: #ede9fe;
    border-color: #8b5cf6;
    color: #6d28d9;
    font-weight: 600;
}

.btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
}

.btn:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}

.quiz-prev {
    background: transparent;
    color: #64748b;
}

.quiz-prev:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.hide-submit {
    display: none !important;
}

/* Фінальний блок */
.thanks-box {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 14px 40px rgba(106, 22, 255, 0.16);
    color: white;
    padding: 60px 30px;
    border-radius: 20px;
    margin-top: 20px;
    display: none;
}

form.wpcf7-form.sent .thanks-box {
    display: block;
}

.rtwwcfm_hidden.rtwwcfm-tab-3 a.rtwwcfm_prev_btn.rtwwcfm_prev_btn {
    display: none;
}

.thanks-box h3 {
    font-size: 34px;
    margin-bottom: 16px;
}

ul.rtwwcfm_tab_list_wrapper li:before {
    display: none !important;
}

.wpcf7-response-output {
    max-width: 550px;
    margin: 20px auto !important;
    border-radius: 50px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: white;
    color: #6d28d9;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    margin: 30px 0 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.rtwwcfm_main_div.rtwwcfm_wrap {
    padding: 5px 40px 20px;
    min-height: 350px;
    text-align: center;
    animation: fadeIn 0.6s ease;
    margin: auto;
    max-width: 600px;
    background: #fff;
    border-radius: 20px;
}

.rtwwcfm_tab_item div:nth-child(2) {
    display: none;
}

.rtwwcfm_tab_item.rtwwcfm_temp6_item::after {
    width: 155% !important;
    left: 75% !important;
    top: 37% !important;
    border-bottom: 1px solid #6923dc;
}

.rtwwcfm_appointment_tracker {
    width: auto;
    background-color: inherit;
}

/*.notifyjs-wrapper.notifyjs-hidable {
    display: none;
}*/

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 0;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 14px 40px rgba(106, 22, 255, 0.16);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 16px 30px;
    border-radius: 50px;
    margin: auto;
    float: none;
    cursor: pointer;
}

form.wpcf7-form.sent .cf7-content-tab h3,
form.wpcf7-form.sent .cf7-content-tab .quiz-radios,
form.wpcf7-form.sent .cf7-content-tab input.wpcf7-form-control.wpcf7-submit.has-spinner {
    display: none;
}

.rtwwcfm_wrap .rtwwcfm_next a.rtwcpig_red.rtwwcfm_next_btn,
.rtwwcfm_wrap .rtwwcfm_prev a.rtwwcfm_prev_btn.rtwwcfm_prev_btn {
    background-color: var(--accent1) !important;
    min-width: 126px;
    border-radius: 20px !important;
    padding: 16px 30px !important;
    font-size: 16px;
    font-weight: 600;
}

.rtwwcfm_wrap .rtwwcfm_prev a.rtwwcfm_prev_btn.rtwwcfm_prev_btn {
    background-color: #390063 !important;
}

span.wpcf7-spinner {
    position: absolute;
}

.rtwwcfm_multistep_content_wrapper p {
    margin: 0;
}

span.wpcf7-form-control.wpcf7-radio {
    background: #ede9fe;
    border-color: var(--accent1);
    color: #262429;
    font-weight: 600;
}

.rtwwcfm_active_number p {
    background: #280363 !important;
}

.rtwwcfm_tab_number p {
    background: var(--accent1);
    margin: 0;
}

ul.rtwwcfm_tab_list_wrapper {
    justify-content: space-between;
}

.rtwwcfm_tab_number_text p {
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .quiz-step {
        padding: 40px 20px;
    }

    .quiz-question h3 {
        font-size: 26px;
    }

    .download-btn {
        padding: 18px 30px;
        font-size: 17px;
    }
}

/* ================================
   POPUP MODAL STYLES
=============================== */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popup-modal[aria-hidden="false"] .popup-overlay {
    opacity: 1;
}

.popup-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-modal[aria-hidden="false"] .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgb(0 0 0 / 10%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.wpcf7-response-output {
    display: none;
}

/* Body scroll lock when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Photo Popup Modal Styles */
.photo-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-popup-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.photo-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
}

.photo-popup-modal[aria-hidden="false"] .photo-popup-overlay {
    opacity: 1;
}

.photo-popup-content {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-popup-modal[aria-hidden="false"] .photo-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.photo-popup-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.photo-popup-close {
    position: absolute;
    top: 3px;
    right: 2px;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 34px;
    border-radius: 50%;
}

.photo-popup-close:hover {
    transform: rotate(90deg);
}

.photo-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.8;
}

.photo-popup-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.photo-popup-prev {
    left: 20px;
}

.photo-popup-next {
    right: 20px;
}

.photo-popup-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-popup-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1);
}

.photo-popup-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

.photo-gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 640px) {
    .photo-popup-close {
        position: absolute;
        top: 3px;
        right: 2px;
        width: 20px;
        height: 20px;
        font-size: 24px;
    }
}
