:root {
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --accent-blue: #0019ff;
    --text-white: #ffffff;
    --text-black: #000000;
    --gray-sub: #86868b;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.1;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    transition: color 0.3s;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1.5px;
}

.menu-pill-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
}

.menu-pill {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.3s;
}

.hamburger-lines {
    width: 18px;
    height: 2px;
    background: white;
    position: relative;
}
.hamburger-lines::before,
.hamburger-lines::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: inherit;
    left: 0;
}
.hamburger-lines::before { top: -6px; }
.hamburger-lines::after { top: 6px; }

/* --- MOBILE CTA --- */
.mobile-cta-fixed {
    position: fixed;
    bottom: 30px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-cta-fixed.hidden-down {
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.btn-discuss-fixed {
    background: var(--accent-blue);
    color: white;
    padding: 18px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0, 25, 255, 0.3);
}

.support-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: url('https://i.pravatar.cc/150?u=l2') center/cover;
    border: 3px solid white;
    position: relative;
}
.support-avatar::after {
    content: ''; position: absolute; bottom: 3px; right: 3px; 
    width: 12px; height: 12px; background: #00ff00; border-radius: 50%; border: 2px solid white;
}

/* --- SECTIONS --- */
section { padding: 120px 40px; position: relative; }
.container { max-width: 1400px; margin: 0 auto; }

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1;
    filter: brightness(0.6);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title-wrapper {
    min-height: 280px; 
    margin-top: -15vh; 
    margin-bottom: 40px;
    display: block; 
}

.hero-title {
    font-size: clamp(40px, 8.5vw, 115px);
    font-weight: 900;
    letter-spacing: -4px;
    max-width: 1200px;
    margin-bottom: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    font-size: 18px;
}
.hero-contacts a { color: white; text-decoration: none; opacity: 0.7; transition: 0.3s; }
.hero-contacts a:hover { opacity: 1; }

.light-theme {
    background-color: var(--bg-light);
    color: var(--text-black);
}

.main-description {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 1100px;
    margin-bottom: 24px;
}

.stats-row {
    display: flex;
    gap: 100px;
    margin-bottom: 100px;
}
.stat-item h2 { font-size: clamp(60px, 6vw, 100px); font-weight: 900; letter-spacing: -4px; }
.stat-item p { color: var(--gray-sub); font-size: 18px; margin-top: 5px; font-weight: 500;}

@media (max-width: 768px) {
    header { padding: 20px; }
    section { padding: 80px 20px; }
    .hero-title { letter-spacing: -1.5px; }
    .stats-row { gap: 40px; }
    .desktop-only { display: none; }
    .main-description { letter-spacing: -1px; }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-light);
    color: var(--text-black);
    padding: 100px 40px 20px 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-main-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-main-links a {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-main-links a:hover { color: var(--accent-blue); }

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-action-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-action-link:hover { color: var(--accent-blue); }

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.footer-contacts a {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: var(--text-black);
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s;
}
.footer-contacts a:hover { color: var(--accent-blue); }

.footer-btn-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-blue);
    color: var(--text-white);
    padding: 24px 30px;
    border-radius: 16px;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.footer-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 25, 255, 0.2);
    color: var(--text-white);
}
.btn-plus { font-size: 28px; font-weight: 400; line-height: 1; }

.footer-social-grid {
    display: flex; 
    gap: 30px;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s;
}
.social-item:hover { color: var(--accent-blue); }

.social-item .icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--bg-light);
    transition: border-color 0.3s;
}
.social-item:hover .icon { border-color: var(--accent-blue); }

.massive-footer-text {
    font-family: var(--font-main);
    font-size: clamp(60px, 16vw, 255px); 
    font-weight: 900;
    line-height: 0.8;
    text-align: center;
    letter-spacing: -0.06em; 
    color: var(--text-black);
    text-transform: uppercase;
    margin-bottom: 30px;
    white-space: nowrap;
    user-select: none;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
}

.contact-link {
    position: relative;
    display: inline-block;
}

.us-badge {
    position: absolute;
    right: 0; 
    bottom: -6px; 
    font-size: 20px; 
    font-weight: 800;
    text-transform: lowercase;
    color: var(--accent-blue);
    z-index: 2;
}

@media (max-width: 768px) {
    .site-footer { padding: 60px 20px 20px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; }
    .footer-contacts { margin-bottom: 30px; }
    .footer-btn-primary { padding: 20px 24px; margin-bottom: 40px; }
    .footer-social-grid { flex-direction: column; gap: 15px; }
    .massive-footer-text { margin-bottom: 20px; letter-spacing: -0.05em; font-size: 19vw; }
}

/* --- СТОРІНКА КЕЙСА --- */
.case-detail-page {
    padding-top: 180px; 
    padding-bottom: 100px;
    background-color: var(--bg-light);
    color: var(--text-black);
    min-height: 100vh;
}

.case-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
    padding: 0 40px; 
}

.case-hero-meta { margin-bottom: 20px; }
.case-hero-title {
    font-size: clamp(40px, 6vw, 90px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 40px;
}

.case-hero-desc {
    max-width: 800px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    color: var(--text-black);
    font-weight: 500;
}

.case-media-list {
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.case-full-media {
    width: 100%;
    height: auto;
    background: #f5f5f5;
    display: block;
    border-radius: 0; 
}

.case-back-wrapper {
    padding: 0 40px;
    margin-bottom: 20px; 
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-back svg { transition: transform 0.3s ease; }
.btn-back:hover { opacity: 0.7; }
.btn-back:hover svg { transform: translateX(-5px); }

@media (max-width: 768px) {
    .case-detail-page { padding-top: 120px; }
    .case-hero { margin-bottom: 50px; padding: 0 20px; }
    .case-media-list { gap: 20px; }
    .case-back-wrapper { padding: 0 20px; }
}

/* --- СТОРІНКА ПОРТФОЛІО --- */
.portfolio-page {
    padding: 150px 40px 120px 40px; 
    background-color: var(--bg-light);
    color: var(--text-black);
    min-height: 100vh;
}

.portfolio-main-title {
    font-size: clamp(60px, 12vw, 150px);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-filters {
    display: flex;
    gap: 30px;
    overflow-x: auto; 
    white-space: nowrap;
    padding-bottom: 20px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.portfolio-filters::-webkit-scrollbar { display: none; }

.filter-btn {
    background: none;
    border: none;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--text-black);
    cursor: pointer;
    padding-bottom: 20px;
    position: relative;
    font-family: var(--font-main);
}

.filter-btn .count {
    color: var(--gray-sub);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 600;
    margin-left: 5px;
}

.filter-btn.active { color: var(--accent-blue); }
.filter-btn.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 100%; height: 3px; background-color: var(--accent-blue);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px 40px;
}

.portfolio-card { text-decoration: none; color: var(--text-black); display: block; }
.portfolio-img-wrap {
    width: 100%; aspect-ratio: 16 / 10; border-radius: 20px;
    overflow: hidden; margin-bottom: 24px; background: #f5f5f5;
}
.portfolio-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.03); }

.portfolio-card-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.portfolio-card-desc { font-size: 18px; color: var(--gray-sub); margin-bottom: 20px; line-height: 1.4; }
.portfolio-card-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-badge {
    padding: 8px 16px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 30px;
    font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}

@media (max-width: 768px) {
    .portfolio-page { padding-top: 100px; padding: 100px 20px 80px 20px; }
    .portfolio-main-title { margin-bottom: 40px; }
    .portfolio-filters { gap: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* --- ПОПАП МЕНЮ --- */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7); z-index: 9998; 
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: auto; 
    background-color: #09090b; z-index: 9999; display: flex; flex-direction: column;
    padding: 80px 20px 30px 20px; border-radius: 0 0 40px 40px; 
    transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.mobile-menu-popup.active { transform: translateY(0); visibility: visible; }

.menu-popup-nav { display: flex; flex-direction: column; gap: 5px; margin-bottom: 30px; }
.menu-popup-nav a {
    font-size: clamp(28px, 6vw, 42px); font-weight: 800; color: var(--text-white);
    text-decoration: none; letter-spacing: -1px; display: flex; align-items: center;
    gap: 10px; transition: opacity 0.3s;
}
.menu-popup-nav a:hover { opacity: 0.7; }

.menu-popup-socials { display: flex; gap: 12px; margin-bottom: 30px; }
.social-circle {
    width: 54px; height: 54px; background-color: #1c1c1e; border-radius: 50%;
    display: grid; place-items: center; transition: transform 0.3s, background-color 0.3s;
}
.social-circle:hover { transform: scale(1.05); background-color: #2c2c2e; }

.menu-popup-cta {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(90deg, #0019ff 0%, #050520 80%);
    padding: 24px 24px; border-radius: 20px; text-decoration: none;
    color: var(--text-white); margin-bottom: 30px; transition: transform 0.3s, box-shadow 0.3s;
}
.menu-popup-cta:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 25, 255, 0.2); }
.cta-text { font-size: 18px; font-weight: 700; }
.cta-plus { font-size: 28px; font-weight: 300; line-height: 1; }

.menu-popup-close-wrap { display: flex; justify-content: center; }
.menu-popup-close {
    width: 50px; height: 50px; background-color: #1c1c1e; border: none; border-radius: 16px;
    display: grid; place-items: center; cursor: pointer; transition: background-color 0.3s;
}
.menu-popup-close:hover { background-color: #2c2c2e; }


/* --- ПОПАП ФОРМИ --- */
.contact-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); z-index: 99999; 
    display: flex; justify-content: center; align-items: center; padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease;
}
.contact-popup-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.contact-popup-content {
    background: #ffffff; color: #000000; width: 100%; max-width: 500px;
    border-radius: 30px; padding: 50px 40px; position: relative;
    transform: translateY(30px) scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.contact-popup-overlay.active .contact-popup-content { transform: translateY(0) scale(1); }

.contact-popup-close {
    position: absolute; top: 20px; right: 20px; background: #f5f5f5; border: none; 
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; 
    cursor: pointer; transition: background 0.3s; color: #000;
}
.contact-popup-close:hover { background: #e0e0e0; }

.contact-popup-header h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.contact-popup-header p { font-size: 16px; color: var(--gray-sub); line-height: 1.4; margin-bottom: 30px; }

.contact-popup-form { display: flex; flex-direction: column; gap: 15px; }
.contact-popup-form input, .contact-popup-form textarea {
    width: 100%; padding: 18px 20px; border: 1px solid rgba(0,0,0,0.1); border-radius: 16px;
    font-size: 16px; font-family: inherit; background: #f9f9f9; color: #000; transition: all 0.3s;
}
.contact-popup-form input:focus, .contact-popup-form textarea:focus {
    outline: none; border-color: var(--text-black); background: #fff;
}
.contact-popup-form textarea { resize: none; }

.btn-submit {
    background: var(--accent-blue); color: #fff; padding: 20px; border: none; border-radius: 16px;
    font-size: 18px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 25, 255, 0.3); }

/* --- СТОРІНКА КОНТАКТІВ --- */
.contact-page {
    padding: 180px 40px 120px 40px; background-color: rgba(16, 16, 16, 1);
    color: #ffffff; min-height: 100vh; display: flex; align-items: center; 
    position: relative; overflow: hidden; 
}
.parallax-img { position: absolute; z-index: 1; width: 100px; pointer-events: none; }
.img-left { left: -5%; top: 15%; }
.img-right { right: -5%; top: 45%; }

.contact-page-wrapper { max-width: 600px; margin: 0 auto; width: 100%; }
.contact-page-header { text-align: center; margin-bottom: 40px; }
.contact-page-header h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; line-height: 1; }
.contact-page-header p { font-size: 18px; color: #a0a0a0; line-height: 1.5; }

.contact-page .contact-popup-form input, .contact-page .contact-popup-form textarea { background: #1c1c1e; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); }
.contact-page .contact-popup-form input:focus, .contact-page .contact-popup-form textarea:focus { background: #2c2c2e; border-color: #ffffff; }

.contact-page-socials { display: flex; gap: 15px; margin-top: 40px; justify-content: center; }

@media (max-width: 768px) {
    .contact-page { padding: 120px 20px 80px 20px; }
    .parallax-img { width: 200px; opacity: 0.3; } 
    .img-left { top: 10%; } .img-right { top: 60%; }
}

.hide-fixed-btn .btn-discuss-fixed, .hide-fixed-btn .mobile-cta-fixed { display: none !important; }

/* --- СТОРІНКА О НАС --- */
.about-page {
    padding: 180px 40px 120px 40px; background-color: var(--bg-light);
    color: var(--text-black); min-height: 100vh;
}
.about-hero { text-align: center; margin-bottom: 80px; }
.about-hero h1 { font-size: clamp(60px, 12vw, 150px); font-weight: 900; letter-spacing: -4px; line-height: 1; margin-bottom: 24px; }
.about-subtitle { font-size: clamp(18px, 2.5vw, 28px); font-weight: 500; color: var(--gray-sub); max-width: 800px; margin: 0 auto; line-height: 1.4; }

.about-content { max-width: 800px; margin: 0 auto; }
.about-text-block { margin-bottom: 60px; }
.about-text-block h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 30px; letter-spacing: -1px; }
.about-text-block p { font-size: 20px; line-height: 1.6; margin-bottom: 20px; color: #222; }

.about-closing { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.about-closing p { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--accent-blue); line-height: 1.3; }

@media (max-width: 768px) {
    .about-page { padding: 120px 20px 80px 20px; }
    .about-hero { margin-bottom: 50px; }
    .about-text-block p { font-size: 18px; }
    .about-closing { margin-top: 50px; padding-top: 30px; }
}

/* --- БЛОК: FAQ --- */
.faq-container { max-width: 900px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq-question { padding: 30px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px; }
.faq-question h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; margin: 0; transition: color 0.3s ease; }
.faq-item.active .faq-question h3 { color: var(--accent-blue); }

.faq-icon { width: 24px; height: 24px; position: relative; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background-color: var(--text-black); transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-icon::before { top: 11px; left: 0; width: 24px; height: 2px; }
.faq-icon::after { top: 0; left: 11px; width: 2px; height: 24px; }
.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after { background-color: var(--accent-blue); }
.faq-item.active .faq-icon::after { transform: rotate(90deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { font-size: clamp(16px, 1.8vw, 18px); color: var(--gray-sub); line-height: 1.5; padding-bottom: 0; margin: 0; max-width: 800px; }
.faq-item.active .faq-answer p { padding-bottom: 30px; }

/* --- БЛОК: БІГУЧА СТРІЧКА БРЕНДІВ --- */
.brands-section {
    background-color: #000000; padding: 40px 0; overflow: hidden; position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.marquee-wrapper { display: flex; width: 100%; overflow: hidden; }
.marquee-track {
    display: flex; align-items: center; gap: 80px; padding-left: 80px; width: max-content; 
    flex-wrap: nowrap; animation: scroll-marquee 40s linear infinite;
}
.brand-logo { height: 90px; width: auto; object-fit: contain; opacity: 0.5; transition: opacity 0.3s ease; user-select: none; pointer-events: none; flex-shrink: 0; }

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .brands-section { padding: 25px 0; } 
    .marquee-track { gap: 40px; padding-left: 40px; animation-duration: 25s; }
    .brand-logo { height: 60px; } 
}

/* --- БЛОК: BENEFITS --- */
.benefits-section { padding: 120px 40px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.benefit-card { background: #f5f5f5; border-radius: 30px; padding: 50px 40px; transition: transform 0.3s ease, background 0.3s ease; }
.benefit-card:hover { background: #f0f0f0; transform: translateY(-5px); }

.benefit-icon { width: 60px; height: 60px; background: var(--text-black); color: var(--text-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.benefit-card h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; color: var(--text-black); }
.benefit-card p { font-size: 18px; color: var(--gray-sub); line-height: 1.5; font-weight: 500; }

@media (max-width: 768px) {
    .benefits-section { padding: 80px 20px; }
    .benefit-card { padding: 40px 30px; border-radius: 24px; }
}

/* --- БЛОК: SERVICES (DARK) --- */
.services-dark { background-color: #131313; padding: 120px 40px; color: #ffffff; }
.services-grid-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; }

.service-card-new {
    position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; 
    display: flex; flex-direction: column; justify-content: center; background-color: #131313;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.4s ease;
}
.service-card-new:hover { transform: translateY(-5px); }

.service-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover;
    background-position: left center; z-index: 1; transition: transform 0.7s ease;
}
.service-card-new:hover .service-bg { transform: scale(1.03); }

.service-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(19, 19, 19, 0) 10%, rgba(19, 19, 19, 0.7) 50%, rgba(19, 19, 19, 1) 90%); z-index: 2;
}

.service-content-new { position: relative; z-index: 3; padding: 40px; width: 60%; margin-left: auto; }
.service-content-new h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.service-content-new p { font-size: 16px; color: #a1a1aa; line-height: 1.5; margin-bottom: 40px; }

.request-btn { font-size: 16px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; transition: padding-left 0.3s ease, opacity 0.3s ease; }
.color-cyan { color: #00e5ff; }
.color-green { color: #10b981; }
.request-btn:hover { padding-left: 10px; opacity: 0.8; }

@media (max-width: 768px) {
    .services-dark { padding: 80px 20px; }
    .services-grid-new { grid-template-columns: 1fr; }
    .service-card-new { aspect-ratio: auto; min-height: 380px; justify-content: flex-end; }
    .service-bg { background-position: top center; }
    .service-overlay { background: linear-gradient(to bottom, rgba(19, 19, 19, 0) 0%, rgba(19, 19, 19, 0.8) 50%, rgba(19, 19, 19, 1) 90%); }
    .service-content-new { width: 100%; margin-left: 0; padding: 30px 20px; }
}

/* --- БЛОК: WHO IS IT FOR --- */
.who-for-section { padding: 120px 40px; }
.who-for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.niche-card {
    position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; 
    display: flex; align-items: flex-end; justify-content: center; padding: 30px; background-color: #000;
}
.niche-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover;
    background-position: center; z-index: 1; transition: transform 0.5s ease;
}
.niche-card:hover .niche-bg { transform: scale(1.05); }

.niche-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%); z-index: 2;
}
.niche-title { position: relative; z-index: 3; color: #fff; font-size: 24px; font-weight: 700; margin: 0; }

.niche-text-card {
    background-color: #000; border-radius: 16px; aspect-ratio: 1 / 1; display: flex;
    align-items: center; justify-content: center; text-align: center;
}
.niche-text-card h3 { color: #00e5ff; font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: 4px; line-height: 1.4; margin: 0; }

@media (max-width: 900px) { .who-for-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .who-for-section { padding: 80px 20px; }
    .who-for-grid { grid-template-columns: 1fr; }
    .niche-text-card { display: none; }
}

/* --- БЛОК: OUR PROCESS --- */
.process-section { background-color: #131313; padding: 120px 40px; color: #ffffff; position: relative; overflow: hidden; }
.process-glow { position: absolute; top: 30%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(19, 19, 19, 0) 70%); z-index: 1; pointer-events: none; }
.process-cards { display: flex; align-items: stretch; justify-content: center; }

.process-card {
    flex: 1; background-color: #0d0d0d; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px;
    padding: 50px 40px; position: relative; box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6); transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-card:not(:first-child) { margin-left: -30px; }
.process-card:nth-child(1) { z-index: 1; } .process-card:nth-child(2) { z-index: 2; }
.process-card:nth-child(3) { z-index: 3; } .process-card:nth-child(4) { z-index: 4; }
.process-card:hover { transform: translateY(-10px); border-color: rgba(0, 229, 255, 0.3); z-index: 10; }

.step-num { font-size: clamp(50px, 5vw, 70px); font-weight: 300; color: #00e5ff; line-height: 1; margin-bottom: 40px; font-family: sans-serif; }
.process-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: #ffffff; }
.process-card p { font-size: 16px; color: #a1a1aa; line-height: 1.6; }

@media (max-width: 1024px) { .process-card { padding: 40px 24px; } }
@media (max-width: 768px) {
    .process-section { padding: 80px 20px; }
    .process-cards { flex-direction: column; }
    .process-card:not(:first-child) { margin-left: 0; margin-top: -20px; }
    .process-card { box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6); }
}

/* --- БЛОК: TESTIMONIALS SLIDER --- */
.testimonials-section { padding: 120px 0; overflow: hidden; }
.testimonials-section .container { padding: 0 40px; }
.testimonials-slider-wrap { padding: 0 40px; margin-top: 20px; }
.testimonials-track {
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px;
    scrollbar-width: none; -ms-overflow-style: none; 
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-slide {
    flex: 0 0 calc(25% - 22.5px); min-width: 320px; max-width: 450px; scroll-snap-align: start;
    border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05); background: #ffffff; transition: transform 0.3s ease;
}
.testimonial-slide:hover { transform: translateY(-5px); }
.testimonial-slide img { width: 100%; height: auto; display: block; object-fit: cover; }

@media (max-width: 1024px) { .testimonial-slide { flex: 0 0 calc(50% - 15px); } }
@media (max-width: 768px) {
    .testimonials-section { padding: 80px 0; }
    .testimonials-section .container { padding: 0 20px; }
    .testimonials-slider-wrap { padding: 0 20px; }
    .testimonials-track { gap: 20px; }
    .testimonial-slide { flex: 0 0 85%; min-width: 280px; } 
}

/* --- БЛОК: WORK (PORTFOLIO SLIDER) --- */
.work-section { background-color: #131313; padding: 120px 0; color: #ffffff; overflow: hidden; }
.work-section .container { padding: 0 40px; }
.work-slider-wrap { padding: 0 40px; }
.work-track {
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px;
    scrollbar-width: none; -ms-overflow-style: none; 
}
.work-track::-webkit-scrollbar { display: none; }

.work-slide {
    flex: 0 0 calc(33.333% - 20px); min-width: 320px; max-width: 450px; scroll-snap-align: start;
    border-radius: 20px; overflow: hidden; position: relative; background: #000; aspect-ratio: 9 / 16; 
}
.work-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.custom-play-btn {
    position: absolute; bottom: 20px; right: 20px; width: 56px; height: 56px;
    background-color: rgba(0, 229, 255, 0.9); border: none; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; z-index: 10; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.custom-play-btn svg { margin-left: 4px; }
.custom-play-btn:hover { transform: scale(1.1); background-color: rgba(0, 229, 255, 1); }
.custom-play-btn.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 1024px) { .work-slide { flex: 0 0 calc(50% - 15px); } }
@media (max-width: 768px) {
    .work-section { padding: 80px 0; }
    .work-section .container { padding: 0 20px; }
    .work-slider-wrap { padding: 0 20px; }
    .work-track { gap: 20px; }
    .work-slide { flex: 0 0 85%; min-width: 280px; } 
}

/* --- THANK YOU POPUP --- */
.thanks-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(5px);
}
.thanks-popup-overlay.active { opacity: 1; pointer-events: all; }
.thanks-popup-content {
    background: var(--bg-light, #fff); padding: 50px 40px; border-radius: 20px; text-align: center;
    max-width: 400px; width: 90%; transform: translateY(20px); transition: transform 0.3s ease;
}
.thanks-popup-overlay.active .thanks-popup-content { transform: translateY(0); }
.thanks-popup-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 15px; color: #000; }
.thanks-popup-content p { font-size: 16px; color: #666; }

/* --- АДАПТАЦІЯ ПІД ПК (тільки екрани ширші за 1024px) --- */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
}

@media (min-width: 1025px) {
    .mobile-only { display: none !important; }
    .desktop-nav {
        display: flex; gap: 40px; position: absolute; left: 50%; transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(15px); padding: 12px 35px;
        border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease;
    }
    .desktop-nav a { color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 500; transition: opacity 0.3s ease; }
    .desktop-nav a:hover { opacity: 0.6; }

    .hero { padding-top: 180px; justify-content: flex-start; }
    .hero-title-wrapper { margin-top: 8vh; min-height: auto; display: flex; }
    .hero-title { font-size: clamp(60px, 7vw, 110px); max-width: 1200px; line-height: 1; }

    .hero-contacts {
        position: relative; bottom: auto; left: auto; right: auto; display: flex;
        justify-content: flex-start; align-items: center; gap: 60px; margin-top: 60px; grid-template-columns: none;
    }
    .hero-contacts .col:nth-child(2), .hero-contacts .col:nth-child(3) { position: static; transform: none; text-align: left; }
    .hero-contacts .col:nth-child(3) { text-align: right; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
    .footer-main-links { flex-direction: row; gap: 30px; margin-bottom: 60px; }
    .footer-legal-links { display: flex; flex-direction: column; gap: 12px; }
    .footer-legal-links a { font-size: 14px; color: var(--gray-sub); text-decoration: none; transition: color 0.3s; }
    .footer-legal-links a:hover { color: var(--text-black); }
    .footer-contacts a { font-size: 64px; }
    .footer-social-grid { flex-direction: row; justify-content: flex-start; }
}


/* --- БЛОК: BENEFITS (СВЕТЛЫЙ) --- */
.benefits-section {
    padding: 120px 40px;
    background-color: var(--bg-light); /* Белый фон */
    color: var(--text-black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
}

.benefit-card {
    background: #f8f8f8; /* Очень легкий серый фон карточек */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: #000000; /* Черный квадрат с иконкой */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff; /* Белая иконка */
}

.benefit-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-black);
    line-height: 1.2;
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-sub);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .benefits-section { padding: 80px 20px; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .benefit-card { padding: 30px 24px; }
}



/* Загальні стилі селекту */
.budget-select-custom {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: var(--gray-sub); 
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 16px !important;
}

/* Використовуємо background-color замість background, щоб не затирати стрілочку */
.budget-select-custom:focus {
    outline: none;
    border-color: #000;
    background-color: #fff; 
}

.budget-select-custom option {
    color: #000;
}

/* Темна тема (contact.php) */
.contact-page .budget-select-custom {
    background-color: #1c1c1e;
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Додаємо адекватний фокус для темної теми */
.contact-page .budget-select-custom:focus {
    background-color: #2c2c2e;
    border-color: #ffffff;
}

.contact-page .budget-select-custom option {
    background-color: #1c1c1e;
    color: #fff;
}