/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --clr-accent: #22D3EE;
    --clr-text-primary: #E2E8F0;
    --clr-text-secondary: #94A3B8;
    --clr-on-accent: #0F172A;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--clr-text-primary);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a:hover {
    color: var(--clr-accent);
}

ul {
    list-style: none;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-primary);
}

/* Header */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--bg-secondary);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Navigation */
.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Main Content Placeholder */
.main {
    padding-top: var(--header-height);
    min-height: 100vh; /* Для демонстрации */
}


/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.footer__column--about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__copy {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.footer__title {
    font-family: var(--font-heading);
    color: var(--clr-text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.footer__link {
    color: var(--clr-text-secondary);
}

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--clr-text-secondary);
}

.footer__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--clr-accent);
}

/* Mobile & Tablet Styles */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        transition: left 0.3s ease-in-out;
        padding-top: 2rem;
    }
    
    .nav.nav--active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .header__burger-btn {
        display: block;
        z-index: 101;
    }
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--clr-accent);
    color: var(--clr-on-accent);
}

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

.btn i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

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

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    color: var(--clr-text-secondary);
}

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: calc(100vh - var(--header-height));
        padding: 6rem 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/* Section Base Styles */
.section {
    padding: 6rem 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__subtitle {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.section__description {
    font-size: 1.125rem;
    color: var(--clr-text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.steps__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    background-color: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent);
}

.step__icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
}

.step__icon-wrapper i {
    width: 32px;
    height: 32px;
    color: var(--clr-accent);
}

.step__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step__text {
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments for Section & Steps */
@media (max-width: 992px) {
    .steps__container {
        grid-template-columns: 1fr;
    }
}

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

    .section__title {
        font-size: 2rem;
    }

    .section__description {
        font-size: 1rem;
    }
}

/* Modifier for section with alternative background */
.section--alt-bg {
    background-color: var(--bg-secondary);
}

/* Modifier for left-aligned section header */
.section__header--left {
    text-align: left;
    margin: 0 0 3rem 0;
}

/* Features Section */
.features__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
}

.features__image-wrapper {
    width: 100%;
    height: 100%;
}

.features__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.features__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-item__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(34, 211, 238, 0.1);
}

.feature-item__icon i {
    width: 24px;
    height: 24px;
    color: var(--clr-accent);
}

.feature-item__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-primary);
}

.feature-item__text {
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments for Features */
@media (max-width: 992px) {
    .features__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section__header--left {
        text-align: center;
    }

    .features__image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Technology Section - Tabs */
.tabs__nav {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tabs__btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background-color: transparent;
    color: var(--clr-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tabs__btn:hover {
    color: var(--clr-text-primary);
}

.tabs__btn--active {
    background-color: var(--clr-accent);
    color: var(--clr-on-accent);
}
.tabs__btn--active:hover {
    color: var(--clr-on-accent);
}


.tabs__pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs__pane--active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
}

.pane__content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pane__content p {
    color: var(--clr-text-secondary);
    margin-bottom: 1.5rem;
}

.pane__content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pane__content li {
    position: relative;
    padding-left: 25px;
    color: var(--clr-text-secondary);
}

.pane__content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-accent);
    font-weight: bold;
}

.pane__image {
    width: 100%;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for Tabs */
@media (max-width: 992px) {
    .tabs__pane--active {
        grid-template-columns: 1fr;
    }
    .pane__image-wrapper {
        order: -1; /* Image on top on mobile */
    }
}

@media (max-width: 768px) {
    .tabs__nav {
        flex-direction: column;
        max-width: 100%;
    }
    .tabs__pane--active {
        padding: 2rem;
    }
}

/* FAQ Section */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__item:hover {
    border-color: var(--clr-accent);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 500;
}

.faq__icon {
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--clr-text-secondary);
    line-height: 1.7;
}

/* Active state for FAQ item */
.faq__item.faq__item--active .faq__answer {
    max-height: 300px; /* Adjust if content is longer */
}

.faq__item.faq__item--active .faq__icon {
    transform: rotate(180deg);
    color: var(--clr-accent);
}

/* Contact Section */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    background-color: var(--bg-secondary);
    padding: 4rem;
    border-radius: 12px;
}

.contact__form-wrapper {
    position: relative;
}

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

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    margin-bottom: 0.5rem;
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: 8px;
    color: var(--clr-text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
    color: #475569;
}

.form__input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.form__checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--clr-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form__checkbox:checked {
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
}

.form__checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--clr-on-accent);
    font-weight: bold;
    font-size: 14px;
}

.form__checkbox-label {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.form__btn {
    width: 100%;
}

/* Form Message Block */
.form__message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    border-radius: 12px;
}

.form__message.form__message--visible {
    opacity: 1;
    visibility: visible;
}

.form__message-content {
    color: var(--clr-text-primary);
}
.form__message-content i {
    width: 48px;
    height: 48px;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

/* Responsive adjustments for Contact Section */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        padding: 3rem;
    }
}
@media (max-width: 768px) {
    .contact__container {
        padding: 2rem;
    }
}

/* Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.cookie-popup--visible {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-popup__text {
    color: var(--clr-text-secondary);
}

.cookie-popup__text a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.btn--small {
    padding: 0.625rem 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------ */
/* Styles for Policy Pages (privacy.html, terms.html, etc.) */
/* ------------------ */

.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem 0;
}

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

.pages h1, .pages h2 {
    font-family: var(--font-heading);
    color: var(--clr-text-primary);
    margin-bottom: 1.5rem;
}

.pages h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    border-bottom: 2px solid var(--bg-secondary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

.pages p {
    color: var(--clr-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pages a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

.pages ul, .pages ol {
    color: var(--clr-text-secondary);
    margin: 1.5rem 0;
    padding-left: 25px;
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

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