/* ===== CSS Variables ===== */
:root {
    --khr-red: #C42126;
    --khr-red-hover: #A01B1F;
    --black: #0A0A0A;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;
    --white: #ffffff;
    
    --font-barlow: 'Barlow Condensed', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    color: var(--zinc-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-barlow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--khr-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--khr-red-hover);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

.btn svg, .btn i {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--zinc-800);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo img {
    height: 3rem;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-desktop a {
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-300);
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--white);
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-family: var(--font-barlow);
    font-weight: 600;
}

@media (min-width: 640px) {
    .header-phone {
        display: flex;
    }
}

.header-phone i, .header-phone svg {
    width: 1rem;
    height: 1rem;
    color: var(--khr-red);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn i, .mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    display: none;
    background: var(--zinc-950);
    border-top: 1px solid var(--zinc-800);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
}

.mobile-menu a {
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-300);
    padding: 0.5rem 0;
}

.mobile-menu .mobile-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-top: 0.5rem;
}

.mobile-phone i, .mobile-phone svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--khr-red);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 5rem);
    padding: 3rem 0;
    max-width: 56rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    width: fit-content;
}

.hero-badge i, .hero-badge svg {
    width: 1rem;
    height: 1rem;
    color: var(--khr-red);
}

.hero-badge span {
    font-size: 0.875rem;
}

.hero-title {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title span {
    color: var(--white);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.stat i, .stat svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--khr-red);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Animations ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* ===== Brands Marquee ===== */
.brands {
    padding: 3rem 0;
    background: var(--zinc-100);
    overflow: hidden;
}

.brands-label {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zinc-500);
    margin-bottom: 2rem;
}

.marquee-wrapper {
    position: relative;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    z-index: 10;
    pointer-events: none;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, var(--zinc-100), transparent);
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, var(--zinc-100), transparent);
}

.marquee {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    flex-shrink: 0;
    padding: 0 2rem;
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--khr-red);
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .marquee-content span {
        font-size: 1.875rem;
    }
}

.marquee-content span:hover {
    color: var(--khr-red-hover);
}

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

/* ===== Section Styles ===== */
.section-label {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--khr-red);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.875rem;
    text-transform: uppercase;
    color: var(--zinc-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

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

.section-description {
    font-size: 1.125rem;
    color: var(--zinc-600);
    max-width: 42rem;
}

.section-header {
    margin-bottom: 4rem;
}

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

/* ===== Services Section ===== */
.services {
    padding: 4rem 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .services {
        padding: 6rem 0;
    }
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--zinc-200);
    padding: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--khr-red);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-bg {
    opacity: 0.2;
}

.service-content {
    position: relative;
    z-index: 10;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--zinc-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(196, 33, 38, 0.1);
}

.service-icon i, .service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--khr-red);
}

.service-header h3 {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--zinc-900);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .service-header h3 {
        font-size: 1.5rem;
    }
}

.service-card:hover .service-header h3 {
    color: var(--khr-red);
}

.service-content > p {
    color: var(--zinc-600);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.service-tags {
    margin-bottom: 1.5rem;
}

.tag-label {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zinc-400);
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.875rem;
    background: var(--zinc-100);
    color: var(--zinc-700);
    padding: 0.25rem 0.75rem;
}

.service-brands .brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-brands .brands-list span {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--zinc-900);
    transition: color 0.3s ease;
}

.service-card:hover .service-brands .brands-list span {
    color: var(--khr-red);
}

/* ===== About Section ===== */
.about {
    padding: 4rem 0;
    background: var(--zinc-50);
}

@media (min-width: 768px) {
    .about {
        padding: 6rem 0;
    }
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.about-image {
    position: relative;
    order: 2;
}

@media (min-width: 1024px) {
    .about-image {
        order: 1;
    }
}

.about-image img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--khr-red);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(196, 33, 38, 0.3);
}

.about-badge .badge-value {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--white);
}

.about-badge .badge-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-content {
    order: 1;
}

@media (min-width: 1024px) {
    .about-content {
        order: 2;
    }
}

.about-content p {
    font-size: 1.125rem;
    color: var(--zinc-600);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i, .feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--khr-red);
    flex-shrink: 0;
}

.feature span {
    color: var(--zinc-700);
}

/* ===== Advantages Section ===== */
.advantages {
    padding: 4rem 0;
    background: var(--zinc-950);
}

@media (min-width: 768px) {
    .advantages {
        padding: 6rem 0;
    }
}

.advantages-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.advantage-card {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--zinc-800);
    padding: 2rem;
    transition: border-color 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--khr-red);
}

.advantage-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(196, 33, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: rgba(196, 33, 38, 0.2);
}

.advantage-icon i, .advantage-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--khr-red);
}

.advantage-card h3 {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--zinc-400);
    line-height: 1.75;
}

/* ===== Contact Section ===== */
.contact {
    padding: 4rem 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .contact {
        padding: 6rem 0;
    }
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-description {
    font-size: 1.125rem;
    color: var(--zinc-600);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--zinc-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i, .contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--khr-red);
}

.contact-label {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-900);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--zinc-600);
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: var(--khr-red);
}

.bank-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
}

.bank-label {
    display: block;
    font-family: var(--font-barlow);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zinc-400);
    margin-bottom: 0.75rem;
}

.bank-details p {
    font-size: 0.875rem;
    color: var(--zinc-600);
    margin-bottom: 0.5rem;
}

.bank-details p:last-child {
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    padding: 2rem;
}

.contact-form-wrapper h3 {
    font-family: var(--font-barlow);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--zinc-900);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--zinc-300);
    background: var(--white);
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--zinc-900);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--khr-red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--zinc-400);
}

.form-group textarea {
    resize: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--zinc-950);
    border-top: 1px solid var(--zinc-800);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: var(--zinc-400);
    line-height: 1.75;
    max-width: 28rem;
}

.footer-nav h4,
.footer-contacts h4 {
    font-family: var(--font-barlow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-nav nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--zinc-400);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
}

.footer-contacts a,
.footer-contacts span {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--zinc-400);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--white);
}

.footer-contacts i,
.footer-contacts svg {
    width: 1rem;
    height: 1rem;
    color: var(--khr-red);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--zinc-800);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom span {
    font-size: 0.875rem;
    color: var(--zinc-500);
}

/* ===== Floating Messengers ===== */
.floating-messengers {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
}

.messengers-list {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    bottom: 4rem;
    right: 0;
    margin-bottom: 0.5rem;
}

.messengers-list.active {
    display: flex;
}

.messenger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 9999px;
    padding: 0.5rem 1rem 0.5rem 1rem;
    white-space: nowrap;
    transition: box-shadow 0.3s ease;
}

.messenger:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.messenger span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-700);
}

.messenger svg {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.messenger.telegram svg {
    background: #0088cc;
    color: var(--white);
}

.messenger.whatsapp svg {
    background: #25D366;
    color: var(--white);
}

.messenger.viber svg {
    background: #7360F2;
    color: var(--white);
}

.messengers-toggle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--khr-red);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(196, 33, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease;
}

.messengers-toggle:hover {
    background: var(--khr-red-hover);
}

.messengers-toggle i,
.messengers-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--khr-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--khr-red-hover);
}

/* ===== Selection ===== */
::selection {
    background-color: var(--khr-red);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--khr-red);
    color: var(--white);
}
