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

/* CSS Variables */
:root {
    --color-background: #111318;
    --color-text: #EAEAEA;
    --color-text-secondary: #8A91A0;
    --color-accent: #00F5A0;
    --color-accent-dark: #00D88C;
    --color-surface: #1A1D24;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    background-color: rgba(17, 19, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
}

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

.header__nav-link {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.header__nav-link:hover {
    color: var(--color-text);
}

.header__nav-link--button {
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-background);
}


/* Footer */
.footer {
    padding: 60px 0;
    background-color: var(--color-surface);
    border-top: 1px solid #252830;
}

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

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block;
}

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

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-text);
    font-weight: 500;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

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

.footer__list--contacts li {
    display: flex;
    align-items: center;
}

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.footer__address {
    align-items: flex-start !important;
}

.footer__address .footer__icon {
    margin-top: 4px;
}


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

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Mobile menu will be added later */
    }
}

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

    .footer {
        padding: 40px 0;
    }
}

/* Добавьте это в конец style.css */

/* General Button Style */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-accent);
    color: var(--color-background);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    overflow: hidden; /* Важно для анимации */
}

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

.hero__title {
    font-family: var(--font-secondary);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 500;

    /* Для анимации */
    opacity: 0;
    transform: translateY(20px);
}

.hero__description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin-bottom: 30px;

    /* Для анимации */
    opacity: 0;
    transform: translateY(20px);
}

.hero__cta-button {
    /* Для анимации */
    opacity: 0;
    transform: translateY(20px);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;

    /* Для анимации */
    opacity: 0;
    transform: scale(0.95);
}

.hero__image-wrapper {
    background-color: var(--color-surface);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #252830;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero__image {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Responsive for Hero */
@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2; /* Текст будет под картинкой */
    }
    .hero__visual {
        order: 1;
        margin-bottom: 40px;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 38px;
    }
    .hero__description {
        font-size: 16px;
    }
}

/* Добавьте это в конец style.css */

/* Courses Section */
.courses {
    padding: 100px 0;
    background-color: var(--color-background);
}

.courses__header {
    text-align: center;
    margin-bottom: 60px;
}

.courses__title {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.courses__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.course-card {
    background-color: var(--color-surface);
    border: 1px solid #252830;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.1);
}

.course-card__icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(0, 245, 160, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.course-card__icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.course-card__title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
}

.course-card__description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes footer to the bottom */
}

.course-card__footer {
    border-top: 1px solid #252830;
    padding-top: 15px;
}

.course-card__tech-list {
    font-family: var(--font-secondary);
    color: var(--color-text);
    font-size: 15px;
}


/* Responsive for Courses */
@media (max-width: 576px) {
    .courses {
        padding: 60px 0;
    }
    .courses__title {
        font-size: 34px;
    }
    .courses__subtitle {
        font-size: 16px;
    }
}

/* Добавьте это в конец style.css */

/* Process Section */
.process {
    padding: 100px 0;
    background-color: var(--color-surface); /* Slightly different background to separate sections */
}

.process__header {
    text-align: center;
    margin-bottom: 80px;
}

.process__title {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.process__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.process__timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* The connecting line for desktop */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 45px; /* Aligns with the middle of the icon wrapper */
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #252830,
        #252830 5px,
        transparent 5px,
        transparent 10px
    );
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 23%;
    position: relative;
    z-index: 1;
}

.process-step__icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #252830;
    background-color: var(--color-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.process-step:hover .process-step__icon-wrapper {
    border-color: var(--color-accent);
    background-color: rgba(0, 245, 160, 0.1);
}

.process-step__icon {
    width: 36px;
    height: 36px;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.process-step:hover .process-step__icon {
    color: var(--color-accent);
}

.process-step__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

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

/* Responsive for Process */
@media (max-width: 992px) {
    .process__timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    /* The connecting line for mobile (vertical) */
    .process__timeline::before {
        top: 5%;
        bottom: 5%;
        left: 45px; /* Aligns with the middle of the icon wrapper */
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(
            180deg,
            #252830,
            #252830 5px,
            transparent 5px,
            transparent 10px
        );
    }
    
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .process-step__icon-wrapper {
        margin-right: 25px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .process {
        padding: 60px 0;
    }
    .process__header {
        margin-bottom: 60px;
    }
    .process__title {
        font-size: 34px;
    }
    .process__subtitle {
        font-size: 16px;
    }
    .process-step__icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .process-step__icon {
        width: 30px;
        height: 30px;
    }
    .process__timeline::before {
        left: 35px;
    }
}

/* Добавьте это в конец style.css */

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--color-background);
}

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

.about__image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about__title {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.about__text {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #252830;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item__icon-wrapper {
    flex-shrink: 0;
}

.stat-item__icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.stat-item__text {
    display: flex;
    flex-direction: column;
}

.stat-item__value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.2;
}

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


/* Responsive for About Section */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about__stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 60px 0;
    }
    .about__title {
        font-size: 34px;
    }
    .about__text {
        font-size: 16px;
    }
}

/* Добавьте это в конец style.css */

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

.faq__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq__header {
    text-align: center;
    margin-bottom: 60px;
}

.faq__title {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.faq__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq__item {
    background-color: var(--color-background);
    border: 1px solid #252830;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.faq__item.active {
    background-color: #1a1d24; /* Slightly lighter background when active */
}

.faq__question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

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

.faq__icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    transition: transform 0.4s ease, color 0.3s ease;
    flex-shrink: 0;
}

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

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq__answer p {
    overflow: hidden;
    padding: 0 25px;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq__item.active .faq__answer {
    grid-template-rows: 1fr;
}

.faq__item.active .faq__answer p {
    padding-bottom: 25px;
}

/* Responsive for FAQ */
@media (max-width: 576px) {
    .faq {
        padding: 60px 0;
    }
    .faq__title {
        font-size: 34px;
    }
    .faq__subtitle {
        font-size: 16px;
    }
    .faq__question {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Добавьте это в конец style.css */

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--color-background);
}

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

.contact__title {
    font-size: 42px;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.contact__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact__work-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
    background-color: var(--color-surface);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
}

.contact__work-hours-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.contact__form-wrapper {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #252830;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-background);
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.2);
}

.form-input.invalid {
    border-color: #ff4d4d;
}

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

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

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

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

.contact__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

.contact__success-message {
    text-align: center;
    padding: 40px 20px;
}
.contact__success-icon-wrapper {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: rgba(0, 245, 160, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact__success-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}
.contact__success-title {
    font-size: 28px;
    font-family: var(--font-secondary);
    margin-bottom: 10px;
}
.contact__success-text {
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* Responsive for Contact */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact__text-content {
        text-align: center;
    }
}

/* Добавьте это в конец style.css */

/* Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--color-surface);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #252830;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    
    display: none; /* Initially hidden */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 540px) {
    .cookie-popup {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px);
    }
    .cookie-popup.active {
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

@media (min-width: 540px) {
    .cookie-popup__content {
       flex-direction: row;
       align-items: center;
    }
}


.cookie-popup__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cookie-popup__link {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 8px 20px;
    font-size: 14px;
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 540px) {
    .cookie-popup__button {
        width: auto;
    }
}

/* Добавьте это в конец style.css */

/* ------------------------- */
/* --- Styles for Policy Pages --- */
/* ------------------------- */

.pages {
    padding: 80px 0;
}

.pages .container {
    max-width: 800px; /* Make content column narrower for better readability */
}

.pages h1 {
    font-family: var(--font-secondary);
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 500;
    color: var(--color-text);
}

.pages h2 {
    font-family: var(--font-primary);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-text);
}

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

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

.pages a:hover {
    color: var(--color-accent-dark);
}

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

.pages li {
    position: relative;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.pages li::before {
    content: '■';
    position: absolute;
    left: -25px;
    top: 0;
    color: var(--color-accent);
    font-size: 12px;
}

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