/* ==========================================================================
   Клуб Лояльности - Premium Landing Page Styles
   ========================================================================== */

@font-face {
    font-family: 'PFDINTextPro';
    src: url('res/PFDINTextPro-Light-subset.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'PFDINTextPro';
    src: url('res/PFDINTextPro-Regular-subset.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PFDINTextPro';
    src: url('res/PFDINTextPro-MedItalic-subset.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'PFDINTextPro';
    src: url('res/PFDINTextPro-Bold-subset.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PFDINTextPro';
    src: url('res/PFDINTextPro-ThinItalic-subset.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

/* Variables & Design Tokens */
:root {
    /* Colors */
    --clr-bg: #1a1a1a;
    --clr-bg-darker: #131313;
    --clr-text-main: #ffffff;
    --clr-text-muted: rgba(255, 255, 255, 0.7);
    --clr-accent: #9311dd;
    --clr-accent-hover: #a92eee;
    --clr-glass-bg: rgba(255, 255, 255, 0.03);
    --clr-glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-main: 'PFDINTextPro', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-pad-y: 100px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--clr-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad-y) 0;
}

.bg-darker {
    background-color: var(--clr-bg-darker);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(147, 17, 221, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-text-main);
}

.btn-outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background-color: rgba(147, 17, 221, 0.05);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Glass Card */
.glass-card {
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    max-width: 800px;
}

.title-line {
    height: 3px;
    width: 60px;
    background-color: var(--clr-accent);
    margin-top: 1rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 700px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--clr-glass-border);
    transition: padding var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(26, 26, 26, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo-img-footer {
    height: 52px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: var(--clr-bg-darker);
    border: 1px solid var(--clr-glass-border);
    border-radius: 20px;
    padding: 2px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 18px;
    transition: all var(--transition-fast);
}

.lang-btn.active {
    background: var(--clr-accent);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--clr-text-main);
    transition: all var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition-smooth);
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* 1. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--clr-glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--clr-text-muted);
    border-radius: 14px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* 2. About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text p:not(.lead) {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
}

.about-stats {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
}

/* 3. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--clr-glass-border);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--clr-accent);
    transition: height var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 17, 221, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* 4 & 5. Tasks and Advantages Double Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.task-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.task-list span {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.highlight-col {
    padding: 3rem;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advantage-item h4 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.client-logos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.client-logo {
    object-fit: contain;
    filter: grayscale(100%) opacity(85%);
    transition: all var(--transition-fast);
}

.horizontal-logo {
    max-height: 50px;
    max-width: 170px;
}

.vertical-logo {
    max-height: 90px;
    max-width: 90px;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(100%);
}

/* Footer Section */
.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-accent);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: white;
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item span {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--clr-accent);
}

.footer-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid var(--clr-glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.social-icon:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: white;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.slide-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .highlight-col {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}