/* ==================== GLOBAL STYLES ==================== */
:root {
    --color-background: #0D1117;
    --color-background-light: #161B22;
    --color-primary-accent: #58A6FF;
    --color-text-main: #C9D1D9;
    --color-text-secondary: #8B949E;
    --color-border: #30363D;

    --font-family-headings: 'Exo 2', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-main);
    font-weight: 700;
}

a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-main);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
}

.logo:hover {
    color: var(--color-primary-accent);
}

.header__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: 15px;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}

.header__link:hover {
    color: var(--color-text-main);
}

.header__link:hover::after {
    width: 100%;
}

.header__link--cta {
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    padding: 8px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__link--cta:hover {
    background-color: var(--color-text-main);
    color: var(--color-background);
}

.header__link--cta::after {
    display: none;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
}

/* Header responsiveness */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-background);
        transition: left 0.4s ease;
        padding-top: 30px;
    }
    
    .header__nav.active {
        left: 0;
    }
    
    .header__list {
        flex-direction: column;
        gap: 25px;
    }
    
    .header__link {
        font-size: 18px;
    }
    
    .header__burger {
        display: block;
    }
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-background-light);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer__column--main {
    grid-column: span 1;
}

.footer__logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer__description {
    color: var(--color-text-secondary);
    font-size: 14px;
    max-width: 250px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--color-text-secondary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer__link:hover {
    color: var(--color-primary-accent);
}

.footer__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Footer responsiveness */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__description {
        margin: 0 auto;
    }
    
    .footer__link {
       justify-content: center;
    }
}
/* ==================== BUTTONS ==================== */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    font-family: var(--font-family-body);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: transparent;
    border-color: var(--color-primary-accent);
    color: var(--color-primary-accent);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 600px;
    padding-top: var(--header-height);
    text-align: center;
    overflow: hidden;
}

.hero__gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    min-height: 58px; /* Резервируем место под 2 строки текста */
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero__cursor {
    display: inline-block;
    font-weight: bold;
    color: var(--color-text-main);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero responsiveness */
@media (max-width: 768px) {
    .hero__title {
        font-size: 42px;
    }
    .hero__subtitle {
        font-size: 18px;
        min-height: 54px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__subtitle {
        font-size: 16px;
        min-height: 48px;
    }
    .button {
        padding: 10px 24px;
        font-size: 15px;
    }
}

/* ==================== GLOBAL SECTION STYLES ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 38px;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 32px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
}


/* ==================== FEATURES ==================== */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 35px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.features-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-accent);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.features-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(88, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.features-card__icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary-accent);
}

.features-card__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.features-card__description {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* ==================== PROCESS ==================== */
.process {
    padding: 100px 0;
    background-color: var(--color-background-light);
}

.process__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 40px;
}

.process__step {
    padding-left: 90px;
    position: relative;
    margin-bottom: 50px;
}

.process__step:last-child {
    margin-bottom: 0;
}

.process__icon-wrapper {
    position: absolute;
    left: 12px;
    top: 0;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-background-light);
}

.process__icon {
    width: 28px;
    height: 28px;
    color: var(--color-background);
}

.process__content {
    padding: 10px;
}

.process__step-number {
    font-family: var(--font-family-headings);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary-accent);
    margin-bottom: 10px;
    display: block;
}

.process__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.process__description {
    color: var(--color-text-secondary);
    font-size: 15px;
}

/* Process responsiveness (Desktop first for this component) */
@media (min-width: 768px) {
    .process__timeline::after {
        left: 50%;
        margin-left: -1.5px;
    }

    .process__step {
        padding-left: 0;
        width: 50%;
    }
    
    /* Alternating steps */
    .process__step:nth-child(odd) {
        left: 0;
        padding-right: 70px;
        text-align: right;
    }
    
    .process__step:nth-child(even) {
        left: 50%;
        padding-left: 70px;
    }

    .process__icon-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Align content to the right */
    .process__step:nth-child(odd) .process__content {
        text-align: right;
    }
}

/* ==================== SHOWCASE ==================== */
.showcase {
    padding: 100px 0;
}

.showcase__slider {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px; /* Space for pagination */
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.case-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 360px;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.case-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #333; /* Placeholder color */
}

.case-card__content {
    padding: 25px;
}

.case-card__tag {
    display: inline-block;
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--color-primary-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

.case-card__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-card__description {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background-color: var(--color-text-secondary);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary-accent);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--color-text-main);
    width: 50px;
    height: 50px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--color-primary-accent);
    border-color: var(--color-primary-accent);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none; /* Hide arrows on mobile */
    }
}

/* ==================== FAQ ==================== */
.faq {
    padding: 100px 0;
    background-color: var(--color-background-light);
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq__item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden; /* Important for animation */
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-family-headings);
    list-style: none; /* Remove default marker */
}

.faq__question::-webkit-details-marker {
    display: none; /* Hide for Safari */
}

.faq__icon {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.faq__answer {
    padding: 0 25px 20px;
    color: var(--color-text-secondary);
    overflow: hidden;
}

/* Open state */
.faq__item[open] .faq__question {
    color: var(--color-primary-accent);
}

.faq__item[open] .faq__icon {
    transform: rotate(180deg);
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 100px 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact__title {
    font-size: 38px;
    margin-bottom: 20px;
}

.contact__description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 400px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group__label {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.form-group__input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group--checkbox label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary-accent);
}

.contact-form__button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
}

/* Success Message */
.success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-background-light);
}

.success-message__icon {
    color: #28a745; /* Success Green */
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.success-message__title {
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message__text {
    color: var(--color-text-secondary);
}


/* Contact responsiveness */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .contact__description {
        margin: 0 auto;
    }
}

/* ==================== COOKIE POP-UP ==================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background-light);
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    z-index: 200;
    
    /* Animation setup */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.cookie-consent__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent__text {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.cookie-consent__link {
    text-decoration: underline;
}
.cookie-consent__link:hover {
    color: var(--color-text-main);
}

.cookie-consent__button {
    padding: 8px 20px;
    font-size: 14px;
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* Cookie pop-up responsiveness */
@media (max-width: 768px) {
    .cookie-consent__container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== POLICY PAGES ==================== */
.pages {
    padding: 120px 0 100px; /* Top padding > header height */
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.pages h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 50px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.pages strong {
    color: var(--color-text-main);
    font-weight: 500;
}

.pages a {
    color: var(--color-primary-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.pages a:hover {
    color: var(--color-text-main);
}

/* Policy pages responsiveness */
@media (max-width: 768px) {
    .pages {
        padding-top: 100px;
    }
    .pages h1 {
        font-size: 34px;
    }
    .pages h2 {
        font-size: 24px;
    }
}