/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

:root {
    --navy:       #0a1628;
    --blue:       #1a3a6b;
    --mid-blue:   #1e5fc2;
    --sky:        #2d8cf0;
    --light-sky:  #5ab0ff;
    --ice:        #d6eaff;
    --pale:       #f0f6ff;
    --white:      #ffffff;
    --gray-100:   #f7f9fc;
    --gray-200:   #e8eef7;
    --gray-400:   #9badc8;
    --gray-700:   #3d5070;
    --gold:       #c8a84b;
    --font:       'Segoe UI', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--pale);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-blue);
    border-radius: 3px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 140, 240, 0.18);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(10, 22, 40, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-image {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.logo-sub {
    font-size: 10px;
    color: var(--light-sky);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(45, 140, 240, 0.15);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.phone-link {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--light-sky);
}

/* ==========================================================================
   NAVIGATION DROPDOWN
   ========================================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.25);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--ice);
    color: var(--mid-blue);
}

/* Mobile dropdown */
.mobile-dropdown {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 4px 0;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding: 0 16px 12px;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li {
    list-style: none;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a.active {
    color: var(--white);
    background: rgba(45,140,240,0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    color: var(--white);
    box-shadow: 0 4px 18px rgba(30, 95, 194, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30, 95, 194, 0.45);
    background: linear-gradient(135deg, #2368d6, #45b0ff);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-white {
    background: var(--white);
    color: var(--mid-blue);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   BURGER MENU
   ========================================================================== */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 70px 0;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid-blue);
    background: var(--ice);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 17px;
    color: var(--gray-700);
    max-width: 580px;
    line-height: 1.75;
}

.section-desc.light {
    color: rgba(255, 255, 255, 0.72);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--mid-blue), var(--sky));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.divider.left {
    margin: 0 0 20px;
}

/* ==========================================================================
   ABOUT STRIP
   ========================================================================== */

.about-strip {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 28px 0;
}

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

.strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}

.strip-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.strip-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.strip-text span {
    font-size: 13px;
    color: var(--gray-400);
}

.strip-sep {
    width: 1px;
    height: 50px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mid-blue), var(--sky));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.service-card:hover {
    border-color: var(--sky);
    box-shadow: 0 12px 40px rgba(30, 95, 194, 0.12);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--pale);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    transition: background 0.3s;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-desc {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-700);
}

.service-list li::before {
    content: '✓';
    color: var(--mid-blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mid-blue);
    font-size: 13px;
    font-weight: 600;
    margin-top: 22px;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 10px;
}

/* ==========================================================================
   WHY US
   ========================================================================== */

.why-us {
    background: linear-gradient(160deg, var(--navy), #0f3070);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 140, 240, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 140, 240, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px 24px;
    transition: background 0.3s, border-color 0.3s;
}

.why-feature:hover {
    background: rgba(45, 140, 240, 0.1);
    border-color: rgba(45, 140, 240, 0.3);
}

.why-feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
}

.why-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.why-feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.65;
}

.why-number-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.why-num-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
}

.why-num-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.why-num-text span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process {
    background: var(--gray-100);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--mid-blue), var(--sky));
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    background: var(--white);
    border: 3px solid var(--mid-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--mid-blue);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(30, 95, 194, 0.15);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.process-step:hover .step-num {
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(30, 95, 194, 0.35);
    transform: scale(1.1);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-desc {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-block {
    position: relative;
}

.about-main-card {
    background: linear-gradient(160deg, var(--navy), #0f3070);
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.25);
    position: relative;
    overflow: hidden;
}

.about-main-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(45, 140, 240, 0.12);
    border-radius: 50%;
}

.about-main-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(45, 140, 240, 0.08);
    border-radius: 50%;
}

.about-year {
    font-size: 96px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    letter-spacing: -5px;
    pointer-events: none;
}

.about-card-content {
    position: relative;
    z-index: 1;
}

.about-card-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.about-card-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

.about-mini-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.mini-stat {
    flex: 1;
    background: var(--pale);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1.5px solid var(--ice);
    transition: all 0.3s;
}

.mini-stat:hover {
    background: var(--mid-blue);
    border-color: var(--mid-blue);
}

.mini-stat:hover .mini-stat-num,
.mini-stat:hover .mini-stat-label {
    color: var(--white);
}

.mini-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--mid-blue);
    line-height: 1;
    display: block;
}

.mini-stat-label {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 6px;
    line-height: 1.4;
    transition: color 0.3s;
}

.about-content p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0;
}

.about-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-list-icon {
    width: 36px;
    height: 36px;
    background: var(--pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.about-list-item:hover .about-list-icon {
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
}

.about-list-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.about-list-text span {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */

.clients-section {
    background: var(--gray-100);
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.client-logo-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 70px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.client-logo-item:hover {
    border-color: var(--sky);
    color: var(--mid-blue);
    box-shadow: 0 4px 20px rgba(30, 95, 194, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
    background: var(--white);
}

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

.testimonial-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--sky);
    box-shadow: 0 8px 30px rgba(30, 95, 194, 0.1);
}

.testimonial-quote {
    font-size: 48px;
    color: var(--sky);
    line-height: 1;
    margin-bottom: 16px;
    font-family: Georgia, serif;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--gray-200);
    padding-top: 18px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.author-company {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(160deg, #0d2147, #0f3070, var(--mid-blue));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-inner .section-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-contacts {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.cta-contact-item:hover {
    color: var(--white);
}

.cta-contact-item .contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.55);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--light-sky);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    background: rgba(45, 140, 240, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
}

.footer-contact-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.footer-contact-text a,
.footer-contact-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-contact-text a:hover {
    color: var(--light-sky);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--light-sky);
}

.developer-link {
    color: var(--sky);
    font-weight: 600;
    transition: all 0.2s;
}

.developer-link:hover {
    color: var(--light-sky);
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    z-index: 999;
    border-bottom: 1px solid rgba(45, 140, 240, 0.15);
    flex-direction: column;
    gap: 6px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    color: var(--white);
    background: rgba(45, 140, 240, 0.12);
}

.mobile-phone {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    padding: 16px 16px 8px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

/* ==========================================================================
   MODAL - FINAL FIX (с гарантией вписывания в экран)
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(10, 22, 40, 0.4);
    animation: modalIn 0.3s ease;
}

/* Scrollbar for modal */
.modal-box::-webkit-scrollbar {
    width: 6px;
}
.modal-box::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}
.modal-box::-webkit-scrollbar-thumb {
    background: var(--mid-blue);
    border-radius: 3px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--mid-blue);
    color: var(--white);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Modal Form - compact */
.modal-form {
    width: 100%;
}

.modal-form .form-group {
    width: 100%;
    margin-bottom: 12px;
}

.modal-form .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.2s;
    outline: none;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    border-color: var(--sky);
    background: var(--white);
}

.modal-form .form-group textarea {
    min-height: 60px;
    resize: vertical;
}

/* CAPTCHA - compact */
.captcha-field {
    background: var(--gray-100);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0 12px;
}

.captcha-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.captcha-question-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.captcha-input {
    width: 60px;
    padding: 8px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
}

.captcha-hint {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 6px;
}

.modal-privacy {
    font-size: 10px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE MODAL - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-box {
        padding: 32px 20px !important;
        margin: 0;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-title {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }
    
    .modal-subtitle {
        font-size: 12px !important;
        margin-bottom: 16px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .modal-form .form-group {
        margin-bottom: 10px !important;
    }
    
    .modal-form .form-group label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 9px 12px !important;
        font-size: 16px !important;
    }
    
    .modal-form .form-group textarea {
        min-height: 50px !important;
    }
    
    .captcha-field {
        padding: 10px !important;
        margin: 8px 0 10px !important;
    }
    
    .captcha-question {
        font-size: 13px !important;
    }
    
    .captcha-input {
        width: 55px !important;
        padding: 7px !important;
        font-size: 13px !important;
    }
    
    .modal-privacy {
        font-size: 9px !important;
        margin-top: 8px !important;
    }
    
    .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 28px 16px !important;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .modal-title {
        font-size: 18px !important;
    }
    
    .modal-subtitle {
        font-size: 11px !important;
        margin-bottom: 14px !important;
    }
    
    .modal-form .form-group {
        margin-bottom: 9px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 8px 11px !important;
    }
    
    .captcha-field {
        padding: 8px !important;
    }
    
    .captcha-question {
        font-size: 12px !important;
    }
    
    .captcha-input {
        width: 50px !important;
        padding: 6px !important;
    }
}

/* Very small screens */
@media (max-height: 650px) {
    .modal-box {
        padding: 24px 16px !important;
        max-height: 98vh;
    }
    
    .modal-subtitle {
        display: none !important;
    }
    
    .modal-form .form-group {
        margin-bottom: 8px !important;
    }
    
    .modal-privacy {
        display: none !important;
    }
}

@media (max-height: 600px) {
    .modal-box {
        padding: 20px 14px !important;
    }
    
    .modal-title {
        font-size: 17px !important;
        margin-bottom: 4px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 7px 10px !important;
    }
    
    .captcha-field {
        padding: 6px !important;
        margin: 6px 0 8px !important;
    }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mid-blue), var(--sky));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 24px rgba(30, 95, 194, 0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 95, 194, 0.45);
}

/* ==========================================================================
   RESPONSIVE - CONSOLIDATED
   ========================================================================== */

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

    .hero-form-card {
        max-width: 480px;
    }

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

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .process-steps::before {
        display: none;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .logo-image {
        height: 38px;
    }

    .footer-logo-image {
        height: 44px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .main-nav {
        display: none;
    }

    .header-contacts {
        display: none;
    }

    .burger {
        display: flex;
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-features {
        grid-template-columns: 1fr;
    }

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

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

    .strip-inner {
        flex-direction: column;
    }

    .strip-sep {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-form-card {
        padding: 28px 22px;
    }

    .hero-grid {
        gap: 36px;
    }

    .about-mini-stats {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .developer-link {
        color: var(--light-sky);
    }

    /* Modal Mobile */
    .modal-box {
        padding: 32px 20px !important;
        margin: 20px;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .modal-subtitle {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    .modal-form .form-group {
        margin-bottom: 14px !important;
    }

    .modal-form .form-group label {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 11px 14px !important;
        font-size: 16px !important;
    }

    .modal-form textarea {
        min-height: 70px !important;
    }

    .modal-form .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .modal-privacy {
        font-size: 10px !important;
        margin-top: 10px !important;
    }

    .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    .captcha-field {
        padding: 12px !important;
        margin-top: 12px !important;
    }

    .captcha-question {
        font-size: 14px !important;
    }

    .captcha-input {
        width: 70px !important;
        padding: 8px !important;
    }

    .captcha-question-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .clients-logos {
        gap: 10px;
    }

    .client-logo-item {
        min-width: 120px;
        padding: 14px 20px;
        font-size: 12px;
    }

    .logo-image {
        height: 34px;
    }

    .footer-logo-image {
        height: 40px;
    }

    /* Modal Small Mobile */
    .modal-box {
        padding: 28px 16px !important;
        margin: 12px;
        max-height: 95vh;
        border-radius: 12px !important;
    }

    .modal-title {
        font-size: 18px !important;
    }

    .modal-subtitle {
        font-size: 12px !important;
    }

    .modal-form .form-group {
        margin-bottom: 12px !important;
    }

    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 10px 12px !important;
    }
}

@media (max-height: 600px) {
    .modal-box {
        max-height: 95vh !important;
        padding: 24px 16px !important;
    }

    .modal-subtitle {
        display: none;
    }

    .modal-form .form-group {
        margin-bottom: 10px !important;
    }

    .modal-form textarea {
        min-height: 60px !important;
    }
}
/* ==========================================================================
   MODAL EXTRA COMPACT (дополнительное уменьшение на 10%)
   ========================================================================== */

@media (max-width: 768px) {
    .modal-box {
        padding: 28px 18px !important;
        margin: 16px;
        max-height: 88vh;
    }
    
    .modal-title {
        font-size: 19px !important;
        margin-bottom: 10px !important;
    }
    
    .modal-subtitle {
        font-size: 12px !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }
    
    .modal-form .form-group {
        margin-bottom: 12px !important;
    }
    
    .modal-form .form-group label {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 10px 12px !important;
        font-size: 15px !important;
    }
    
    .modal-form textarea {
        min-height: 60px !important;
    }
    
    .modal-form .btn {
        padding: 11px 18px !important;
        font-size: 14px !important;
    }
    
    .modal-privacy {
        font-size: 9px !important;
        margin-top: 8px !important;
        line-height: 1.4 !important;
    }
    
    .modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
    }
    
    .captcha-field {
        padding: 10px !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }
    
    .captcha-question {
        font-size: 13px !important;
    }
    
    .captcha-input {
        width: 65px !important;
        padding: 7px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 24px 14px !important;
        margin: 10px;
        max-height: 92vh;
        border-radius: 10px !important;
    }
    
    .modal-title {
        font-size: 17px !important;
    }
    
    .modal-subtitle {
        font-size: 11px !important;
        margin-bottom: 14px !important;
    }
    
    .modal-form .form-group {
        margin-bottom: 10px !important;
    }
    
    .modal-form .form-group label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 9px 11px !important;
        font-size: 14px !important;
    }
    
    .modal-form textarea {
        min-height: 55px !important;
    }
    
    .modal-form .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .modal-privacy {
        font-size: 8px !important;
        margin-top: 6px !important;
    }
    
    .captcha-field {
        padding: 8px !important;
    }
    
    .captcha-question {
        font-size: 12px !important;
    }
    
    .captcha-input {
        width: 60px !important;
        padding: 6px !important;
        font-size: 12px !important;
    }
}

/* Для очень маленьких экранов по высоте */
@media (max-height: 650px) {
    .modal-box {
        padding: 22px 14px !important;
        margin: 8px;
        max-height: 95vh;
    }
    
    .modal-subtitle {
        display: none;
    }
    
    .modal-form .form-group {
        margin-bottom: 9px !important;
    }
    
    .modal-form textarea {
        min-height: 50px !important;
    }
    
    .modal-privacy {
        display: none;
    }
}

@media (max-height: 600px) {
    .modal-box {
        padding: 20px 12px !important;
        margin: 6px;
    }
    
    .modal-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .modal-form .form-group {
        margin-bottom: 8px !important;
    }
    
    .modal-form .form-group label {
        margin-bottom: 3px !important;
    }
    
    .modal-form .form-group input,
    .modal-form .form-group select,
    .modal-form .form-group textarea {
        padding: 8px 10px !important;
    }
    
    .modal-form textarea {
        min-height: 45px !important;
    }
    
    .modal-form .btn {
        padding: 9px 14px !important;
    }
}
/* Исправление цвета текста в поле капчи */
.captcha-input,
input[name="captcha_answer"] {
    color: var(--navy) !important;
    background-color: var(--white) !important;
    -webkit-text-fill-color: var(--navy) !important;
}

/* Для мобильных */
@media (max-width: 768px) {
    .captcha-input,
    input[name="captcha_answer"] {
        color: var(--navy) !important;
        background-color: var(--gray-100) !important;
    }
}