:root {
    --bg-primary: #0A1019;
    --bg-secondary: #0f1623;
    --accent: #d4af68;
    --text-main: #ffffff;
    --text-muted: #8ba0b9;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Montserrat', sans-serif;

    --container-width: 1400px;
    --header-height: 104px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height, 130px) - 48px);
    /* Offset for fixed header */
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    width: 100%;
    letter-spacing: 0.04em;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.0;
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    line-height: 1.2;
}

.btn-primary {
    background-color: #e6e6e6;
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    width: auto;
    min-width: 160px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 12px;
    padding: 10px 30px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    padding: clamp(10px, 1.25rem, 20px) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(22, 25, 32, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(22, 25, 32, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: block;
    position: relative;
    padding: 0 5vw;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.header-left {
    position: relative;
}

.logo-block {
    position: relative;
    left: 0;
    white-space: nowrap;
}

.header-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    gap: 30px;
}

.logo-block {
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-img {
    height: clamp(30px, 2.875rem, 46px);
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-divider {
    height: 40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.logo-sub {
    font-size: 14px;
    color: #ffffff;
    /* Restored to white */
    line-height: 1.4;
    max-width: 220px;
    margin-right: auto;
    text-align: left;
}

.burger-menu {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.menu-overlay { display: none; }
.mobile-call-fab { display: none; }
.nav-mobile-contacts { display: none; }

.nav ul {
    display: flex;
    justify-content: space-evenly;
    /* Distribute links evenly */
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.nav {
    margin: 0 40px;
    /* Space between logo-sub and contacts */
    flex-grow: 1;
    /* Take up available space */
}

.nav a {
    font-size: clamp(11px, 0.8125rem, 13px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.8;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Nav Dropdown for ПОСЛУГИ */
.nav-dropdown-wrap {
    position: relative;
}

.nav-chevron {
    display: inline-block;
    font-size: 1.35em;
    line-height: 0;
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-left: 2px;
    transform: translateY(-2px);
    opacity: 0.6;
}

.nav-dropdown-wrap:hover .nav-chevron {
    transform: rotate(180deg) translateY(0);
}

.nav-dropdown-wrap:hover > a {
    color: var(--accent) !important;
}

.nav-dropdown-wrap:hover > a::after {
    width: 100% !important;
}

.nav-dropdown-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    min-width: 100%;
    height: 15px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    background: rgba(22, 25, 32, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 4px 4px 6px 0px rgba(0, 0, 0, 0.8);
}

.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-transform: none !important;
    line-height: 1.3;
    position: relative;
    overflow: visible;
}

.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.25);
}

.nav-dropdown-arrow {
    margin-left: auto;
    font-size: 10px !important;
    color: var(--accent) !important;
    opacity: 0.6;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 14px;
}

.nav-dropdown-prices {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Nav Submenu (Цивільні справи) */
.nav-has-submenu {
    position: relative;
    cursor: pointer;
}

.nav-has-submenu > a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    text-transform: none !important;
}

.nav-has-submenu > a::after {
    display: none !important;
}

.nav-has-submenu:hover > a {
    color: #fff;
}

.nav-submenu {
    position: absolute;
    left: 100%;
    top: -6px;
    background: rgba(24, 29, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    padding: 6px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 4px 4px 6px 0px rgba(0, 0, 0, 0.8);
    margin-left: -5px;
}

.nav-has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3;
    position: relative;
    overflow: visible;
}

.nav-submenu-item::after {
    display: none !important;
}

.nav-submenu-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.25);
}

/* Third level: sub-sub-menu */
.nav-has-subsubmenu {
    position: relative;
    cursor: pointer;
}

.nav-has-subsubmenu > a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    text-transform: none !important;
}

.nav-has-subsubmenu > a::after {
    display: none !important;
}

.nav-has-subsubmenu:hover > a {
    color: #fff;
}

.nav-submenu-arrow {
    margin-left: auto;
    font-size: 8px !important;
    color: var(--accent) !important;
    padding-left: 8px;
    opacity: 0.6;
}

.nav-subsubmenu {
    position: absolute;
    left: 100%;
    top: -6px;
    background: rgba(24, 29, 32, 0.96);
    box-shadow: 4px 4px 6px 0px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    min-width: 260px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10002;
    margin-left: -5px;
}

.nav-has-subsubmenu:hover .nav-subsubmenu {
    opacity: 1;
    visibility: visible;
}

.nav-subsubmenu-item {
    display: block;
    padding: 5px 14px;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3;
}

.nav-subsubmenu-item::after {
    display: none !important;
}

.nav-subsubmenu-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.25);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: clamp(14px, 1.25rem, 20px);
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 0;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-phones div {
    margin-bottom: 4px;
    letter-spacing: 0.2em;
    line-height: 1.0;
    color: #ffffff;
    opacity: 0.8;
}

.contact-phones a {
    color: #ffffff;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-phones a:hover {
    color: var(--accent);
}

.socials {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
}

.socials a {
    color: #ffffff;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Page Sections */
.page {
    min-height: 100vh;
    display: block;
    position: relative;
    padding: 140px 0 60px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Hero Page (Page 1) */
.hero-page {
    position: relative;
    padding-top: 0;
    height: 100vh;
    min-height: 680px;
    display: block;
    overflow: hidden;
    background-color: #000;
}

.hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-hero-v5.png');
    background-size: cover;
    background-position: 62% calc(85% + 72px);
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.hero-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: none;
    z-index: 0;
    pointer-events: none;
}

.hero-fullwidth {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: clamp(100px, 9rem, 144px);
}

.hero-text {
    position: relative;
    max-width: 700px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 4.75rem, 5.5rem);
    margin-top: 0;
    margin-bottom: clamp(15px, 1.875rem, 30px);
    line-height: 1.0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.hero-description {
    font-size: clamp(1rem, 1.625rem, 2rem);
    line-height: 1.3;
    color: #fff;
    margin-top: 0;
    width: 100%;
    max-width: 600px;
    z-index: 90;
    text-align: left;
    opacity: 0.69;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-description-second {
    margin-top: 25px;
}

.hero-tagline {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    padding-top: clamp(100px, 9rem, 144px);
    padding-right: 2vw;
}

.hero-tagline span {
    font-size: clamp(1.25rem, 2rem, 2.5rem);
    font-weight: 500;
    color: #6A798C;
    opacity: 0.6;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
}

.hero-cta {
    margin-top: clamp(20px, 2.5rem, 40px);
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.btn-hero-cta {
    background: linear-gradient(to bottom, #ffffff 60%, #d9d9d9 100%);
    color: #080c15;
    border: none;
    width: auto;
    min-width: clamp(140px, 11.25rem, 180px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(16px, 1.375rem, 22px);
    font-weight: 500;
    line-height: 1.3;
    border-radius: 6px;
    padding: 10px 25px;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 -7px 8px 0px rgba(0, 0, 0, 0.25);
}

.btn-hero-arrow {
    margin-left: 14px;
    display: inline-flex;
    align-items: center;
}

.btn-hero-arrow svg {
    width: 22px;
    height: 18px;
    fill: #080c15;
    opacity: 0.7;
}

.btn-hero-cta:hover {
    background: linear-gradient(to bottom, #f0f0f0 60%, #cccccc 100%);
    color: #080c15;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    border-color: #e6e6e6;
}

/* btn-outline styles consolidated above */
.btn-outline:hover {
    background: transparent;
    color: #fff;
}

/* Features Strip */
.features-strip {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    width: 100%;
    z-index: 10;
    margin-top: auto;
    padding-bottom: 0;
    margin-bottom: -4px;
    border-top: none;
    padding-top: 60px;
}

.feature-box {
    flex: 1;
    padding: 25px 30px;
    position: relative;
}

.feature-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 105px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.feature-box:first-child {
    padding-left: 10px;
}

.feature-box:nth-child(2) {
    display: flex;
    justify-content: center;
}

.feature-box:nth-child(2) .feature-inner {
    width: fit-content;
}

.feature-box:nth-child(2) .feature-title,
.feature-box:nth-child(2) .feature-desc {
    text-align: left;
}

.feature-box:nth-child(3) {
    display: flex;
    justify-content: flex-end;
}

.feature-box:nth-child(3) .feature-inner {
    width: fit-content;
}

.feature-box:nth-child(3) .feature-title,
.feature-box:nth-child(3) .feature-desc {
    text-align: left;
}

.feature-title {
    font-size: clamp(1.25rem, 2rem, 2.5rem);
    margin-bottom: clamp(6px, 0.75rem, 12px);
    letter-spacing: 0.04em;
    color: #fff;
    font-weight: 500;
    text-align: left;
    opacity: 0.6;
}

.feature-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.55;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.6;
}

.hero-tagline-mobile,
.hero-stats-mobile {
    display: none;
}

/* Scroll-driven Video Section */
.scroll-video-section {
    position: relative;
    z-index: 1;
    height: 300vh;
    background: #000;
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.scroll-video {
    width: 100%;
    height: 100%;
    display: block;
    will-change: contents;
}

/* About Page (Page 2) */
.about-page {
    scroll-margin-top: -72px;
    background: #0A1019;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 34px;
    margin-bottom: 30px;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.about-layout {
    display: flex;
    gap: 8%;
    align-items: flex-start;
    margin-bottom: 140px;
}

.about-text {
    flex: 0 0 51%;
}

.about-photo {
    flex: 0 0 29%;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-text p {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 33% 1fr 1fr;
    padding-right: 15%;
    gap: 40px;
}

.about-stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Services Page (Page 3) */
.services-page {
    background: #0A1019;
    scroll-margin-top: -136px;
}

.services-page .section-title {
    margin-bottom: 30px;
}

.services-intro {
    padding-bottom: 70px;
}

.services-intro p {
    font-size: 32px;
    color: #ffffff;
    line-height: 1.15;
    margin-top: 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-item {
    padding: 12px 20px 12px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 10px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: none;
    line-height: 1.3;
    color: #ffffff;
}

.service-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* Contacts Page (Page 4) */
/* Container uses global style for alignment */

.contacts-page {
    background: #0A1019;
    padding-bottom: 24px;
    min-height: calc(100vh - 40px);
}

.contacts-layout {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    margin-top: 16px;
}

.contacts-info-col {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 95px;
}

.contacts-map-col {
    flex: 1.1;
}

.contacts-map-small {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: transparent;
}

.contacts-map-small iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Contact block with icons */
.contact-text-block p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.5;
}

.contact-text-block p i {
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
    width: 22px;
    font-size: 20px;
    text-align: center;
}

.contact-text-block a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-text-block a:hover {
    color: var(--accent);
}

/* Header phone links */
.contact-phones a {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-phones a:hover {
    color: var(--accent);
}

.socials-centered {
    justify-content: space-between;
    gap: 24px;
    display: flex;
    margin-top: 38px;
    padding-left: 0;
    max-width: 360px;
    transform: translateX(-8px);
}

.socials-centered a {
    font-size: 36px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.socials-centered a,
.socials-centered a:hover {
    border: none;
    width: auto;
    height: auto;
}

.socials-centered a:hover {
    color: var(--accent);
}

.socials-centered a .fa-tiktok path {
    fill: currentColor;
}



/* Call Button Fixed */
.call-btn-fixed {
    position: fixed;
    bottom: 60px;
    left: 8px;
    color: #fff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.5;
    text-align: center;
    letter-spacing: 0.5px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 8px 4px;
}

.call-btn-fixed:hover {
    opacity: 1;
}

.call-btn-fixed i {
    font-size: 16px;
    transform: rotate(90deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: var(--accent);
    font-size: 24px;
    z-index: 999;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.2);
}

/* Reviews Section Styles */
.reviews-heading {
    font-size: 28px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.4;
    max-width: calc(100vw - 30px);
    text-decoration: none;
    display: block;
    cursor: pointer;
    margin-top: 16px;
}

.reviews-heading:hover {
    color: var(--accent);
}

.reviews-carousel {
    overflow: hidden;
    margin-top: 40px;
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 1s ease;
}

.review-card {
    background: rgba(79, 87, 101, 0.5);
    border: none;
    padding: 22px 26px;
    border-radius: 22px;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 60px) / 3);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80px;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.review-card:hover::before {
    opacity: 1;
}

.review-card:hover {
    background: rgba(79, 87, 101, 0.55);
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    object-fit: cover;
}

.review-author {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.reviews-cta {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-review i {
    font-size: 16px;
}

.btn-review:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 10px rgba(255, 255, 255, 0.15);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #000;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-btn {
    align-self: flex-start;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-btn:hover {
    background: var(--accent);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-author {
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.comment-date {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

/* Page Indicators */
.page-indicators {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 99;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-item:hover,
.indicator-item.active {
    opacity: 1;
}

.indicator-number {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.indicator-line {
    width: 30px;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.indicator-item.active .indicator-line {
    width: 50px;
    background-color: #fff;
}

@media (max-width: 1440px) {

    .page-indicators {
        left: 1.5vw;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Modal Dialogs */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #131a28;
    border: 1px solid rgba(212, 175, 104, 0.25);
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    z-index: 10001;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-close:focus {
    outline: none;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 35px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 25px;
    /* Moved icon closer to text */
}

.modal-phone-icon {
    display: none;
    /* Hide the old absolute icon */
}



.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Validation Styles */
.input-wrapper {
    position: relative;
    width: 100%;
}

.modal-form input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.modal-form input.error {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.error-message {
    color: #ff4d4d;
    /* Red color for error text */
    font-size: 12px;
    margin-top: 5px;
    margin-left: 10px;
    text-align: left;
    display: none;
    font-weight: 500;
}

.error-message.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-form input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 104, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 104, 0.15);
}

.modal-form .btn {
    margin-top: 20px;
    background: var(--accent);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px;
    min-height: 52px;
    /* Touch target >= 44px */
    width: 100%;
    /* Full width for easy tapping */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-form input {
    border-radius: 12px;
}

.modal-form .btn:hover {
    background: #e0c080;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 104, 0.3);
}

/* Status Modal Specifics */
.status-modal-content {
    text-align: center;
    max-width: 400px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.status-icon {
    font-size: 60px;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.status-icon.success {
    color: #fff;
}

.status-icon.error {
    color: #ffcccc;
}

.status-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.status-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.status-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
}

.status-btn:hover {
    background-color: #222;
}

/* "Усі публікації" link on hero */
.pub-all-link-wrap { margin-top: 20px; }
.pub-link-all { border: none; color: var(--accent); font-weight: 600; }
.pub-link-all-icon { font-size: 10px; margin-left: 5px; }

/* Publications page styles (moved from inline) */
.publications-page-container {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: #0A1019;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pub-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.pub-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 104, 0.1);
}

.pub-card .stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pub-card-category {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pub-card-title {
    font-size: 20px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: none;
}

.pub-card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pub-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.pub-card:hover .btn-pub-read {
    color: var(--accent);
}

.btn-pub-read i {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.pub-card:hover .btn-pub-read i {
    transform: translateX(5px);
}

/* Article page styles (moved from inline) */
.article-container {
    padding-top: 140px;
    padding-bottom: 80px;
}

.article-card {
    background: var(--bg-card, #ffffff);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link i {
    opacity: 0.6;
}

.back-link:hover {
    transform: translateX(-5px);
}

.article-category {
    color: var(--text-muted, #525252);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.article-card h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--text-heading, #000);
    text-transform: none;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-main);
    text-transform: none;
}

.content h2 {
    font-size: 22px;
    margin: 40px 0 20px;
    color: var(--text-heading, #000);
    text-transform: none;
}

.content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.case-number {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.prices-infographic-page {
    margin: 30px 0;
    text-align: center;
}

.prices-infographic-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content ol li {
    margin-bottom: 10px;
    font-size: 16px;
}

.ps-block {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--accent);
    font-style: italic;
    color: var(--text-muted);
}

/* ===== Service Detail Page ===== */

.service-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 0;
    z-index: 10;
    background: var(--bg-primary);
}

.service-sticky-cat {
    display: block;
    position: fixed;
    top: calc(var(--header-height, 130px) - 24px);
    width: 100%;
    left: 0;
    text-align: right;
    padding: 10px 5vw 10px 5vw;
    background: transparent;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 99;
    pointer-events: none;
}

.service-sticky-cat a,
.service-sticky-cat span {
    pointer-events: auto;
}

.service-sticky-cat a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-sticky-cat a:hover {
    color: #fff;
}

.service-sticky-sep {
    margin: 0 4px;
    opacity: 0.5;
}

.service-sticky-current {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-top-bar .service-detail-category {
    margin-bottom: 0;
}

.service-page-container {
    padding-top: calc(var(--header-height, 130px) - 30px);
    padding-bottom: 80px;
}

.service-detail-card {
    max-width: 720px;
    margin: 0 auto;
}

.service-detail-category {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.service-detail-card h1 {
    font-size: 26px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 16px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.service-detail-intro {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-point {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.service-point:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.service-point-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-muted);
    color: #0d1220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.service-point-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-point-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.service-cta {
    text-align: center;
    margin-top: 50px;
}

/* CTA-кнопка на сторінках послуг — копія .btn-hero-cta, 30% меньше */
.btn-service-cta {
    background: linear-gradient(to bottom, #ffffff 60%, #d9d9d9 100%);
    color: #080c15;
    border: none;
    width: auto;
    min-width: 126px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15.4px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 4px;
    padding: 7px 17px;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 -5px 6px 0px rgba(0, 0, 0, 0.25);
}

.btn-service-cta .btn-hero-arrow {
    margin-left: 10px;
}

.btn-service-cta .btn-hero-arrow svg {
    width: 15.4px;
    height: 12.6px;
}

.btn-service-cta:hover {
    background: linear-gradient(to bottom, #f0f0f0 60%, #cccccc 100%);
    color: #080c15;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

a.service-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* ===== Messenger FAB ===== */

#messenger-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #d4af68;
    color: #0d1220;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 104, 0.2);
    transition: box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
    z-index: 10001;
    animation: fab-breathe 5s ease-in-out infinite;
    font-size: 20px;
}

@keyframes fab-breathe {
    0%   { transform: scale(1); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

#messenger-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: fab-stroke-spin 27.5s linear infinite;
    pointer-events: none;
}

@keyframes fab-stroke-spin {
    0%      { transform: rotate(0deg); }
    1.8%    { transform: rotate(360deg); }
    20%     { transform: rotate(1008deg); }
    21.8%   { transform: rotate(1368deg); }
    40%     { transform: rotate(2016deg); }
    41.8%   { transform: rotate(2376deg); }
    60%     { transform: rotate(3024deg); }
    61.8%   { transform: rotate(3384deg); }
    80%     { transform: rotate(4032deg); }
    81.8%   { transform: rotate(4392deg); }
    100%    { transform: rotate(5040deg); }
}

#messenger-fab:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(212, 175, 104, 0.3);
}

#messenger-fab.active {
    animation: fab-bob 2s ease-in-out infinite;
    background: #d4af68;
    color: #ffffff;
    font-size: 22px;
}

#messenger-fab.active::before {
    animation: none;
    border-color: transparent;
}

@keyframes fab-bob {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.messenger-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-overlay-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    text-align: center;
    line-height: 1.14;
    padding: 0 100px 0 20px;
    pointer-events: none;
    transition: opacity 1.5s ease;
    transition-delay: 0s;
}

.messenger-overlay.active .messenger-overlay-text {
    opacity: 0.38;
    transition-delay: 1s;
}

.messenger-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.messenger-menu {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 21px;
    align-items: center;
    width: 58px;
    pointer-events: none;
}

.messenger-menu.active {
    pointer-events: auto;
}

.messenger-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-direction: row-reverse;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative;
}

.messenger-menu.active .messenger-item {
    opacity: 1;
    transform: translateY(0);
}

.messenger-item-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.messenger-item:hover .messenger-item-icon {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.messenger-item-label {
    position: absolute;
    right: 76px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 14px;
    border-radius: 8px;
}

.messenger-item:hover .messenger-item-label {
    opacity: 1;
    transform: translateX(0);
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 0;
    margin-top: -1px;
    margin-bottom: 180px;
}

.cta-banner-inner {
    background: linear-gradient(135deg, #002A62, #0d2f50, #17223C, #0d2f50, #002A62);
    background-size: 300% 300%;
    animation: ctaGradientWave 20s ease-in-out infinite;
    border-radius: 16px;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 50vh;
}

.cta-banner-text {
    flex: 1;
}

.cta-banner-text h2 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    text-transform: none;
    color: #FFFFFF;
}

.cta-banner-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.cta-banner-form {
    flex: 0 0 auto;
    width: 420px;
}

.cta-form-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cta-form-fields input {
    flex: 1;
    padding: 14px 18px;
    background: #555555;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: background 0.3s ease;
}

.cta-form-fields input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-form-fields input:focus {
    background: #666666;
}

.cta-form-btn {
    width: 100%;
    padding: 18px;
    background: #FAFAFA;
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        inset -4.5px -1.5px 8px rgba(0, 0, 0, 0.65),
        inset 3.7px 3px 10px rgba(0, 0, 0, 0.72);
}

.cta-form-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        inset -4.5px -1.5px 8px rgba(0, 0, 0, 0.5),
        inset 3.7px 3px 10px rgba(0, 0, 0, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Footer ===== */
.site-footer {
    background: #000000;
    padding: 60px 0 40px;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    display: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: #8BA0B9;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col p {
    color: #8BA0B9;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-socials-text {
    color: #8BA0B9;
    font-size: 16px;
    font-weight: 300;
    margin-top: 8px;
    line-height: 1.5;
}

.footer-socials-text a {
    color: #8BA0B9;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-socials-text a:hover {
    color: var(--accent);
}

.footer-developer {
    margin-top: 32px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-developer a:hover {
    color: var(--accent);
}

@keyframes ctaGradientWave {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* ===== Videos page ===== */
.videos-page-container {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: #0A1019;
}

.videos-channel-link {
    margin-top: 20px;
    text-align: center;
}

.videos-channel-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.videos-channel-link a:hover {
    opacity: 0.8;
}

.video-search-wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.video-search {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.video-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.video-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.video-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.video-search input:focus {
    border-color: var(--accent);
}

.video-search-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    min-height: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 104, 0.1);
}

.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #111827 0%, #1a2540 50%, #0f1923 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card-thumb.has-img {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.video-card-thumb::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    right: -10px;
    bottom: -10px;
}

.video-card-thumb.has-img::before {
    display: none;
}

.video-card-thumb.has-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.video-card-play {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card-play i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 3px;
    transition: color 0.3s ease;
}

.video-card:hover .video-card-play {
    background: rgba(212, 175, 104, 0.2);
    border-color: var(--accent);
    transform: scale(1.1);
}

.video-card:hover .video-card-play i {
    color: var(--accent);
}

.video-card-views {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-card-views i {
    font-size: 9px;
}

.video-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    flex: 1;
}

.video-card-category {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.video-card-title {
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
    font-weight: 600;
    text-transform: none;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
    padding-top: 8px;
}

.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-no-results {
    text-align: center;
    padding: 80px 20px;
}

.video-no-results i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.video-no-results p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}