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

/* --- CSS Variables --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --color-background: #f8f9fa;
    --color-text: #212529;
    --color-accent: #087f5b; /* Teal */
    --color-secondary-text: #6c757d;
    --color-border: #e9ecef;
    --color-white: #ffffff;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

a:hover {
    color: #0ca678; /* Lighter shade of accent */
}

ul {
    list-style: none;
}

/* --- Header --- */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__logo {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--color-text);
}

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

.header__nav {
    display: none; /* Hidden on mobile */
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    color: var(--color-secondary-text);
    font-weight: 500;
}

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

.header__nav-link--button {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.header__nav-link--button:hover {
    background-color: #0ca678;
    color: var(--color-white);
}

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

/* --- Footer --- */
.footer {
    background-color: var(--color-white);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem; /* To be adjusted later */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__column--brand {
    text-align: center;
}

.footer__logo {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--color-text);
    display: inline-block;
    margin-bottom: 0.5rem;
}

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

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

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer__list--contacts {
    gap: 1rem;
}

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

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

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

.footer__bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

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

/* --- Lucide Icons --- */
.lucide {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}


/* --- Media Queries (Tablet and up) --- */
@media (min-width: 768px) {
    .header__burger-menu {
        display: none;
    }
    .header__nav {
        display: block;
    }
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .footer__column--brand {
        grid-column: 1 / -1; /* Span full width on tablet */
        text-align: left;
    }
}

/* --- Media Queries (Desktop and up) --- */
@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
        gap: 3rem;
    }
    .footer__column--brand {
        grid-column: auto;
        text-align: left;
    }
}

/* style.css (добавить в конец файла) */

/* --- Reusable Button --- */
.button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border: 1px solid var(--color-accent);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: var(--color-white);
    min-height: calc(80vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden; /* To hide parts of bg elements */
}

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

.hero__content {
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    /* This will be split into spans by JS for animation */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* Prevents layout shift */
}

.hero__title-word {
    display: inline-block;
    overflow: hidden; /* For animation */
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary-text);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__cta {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* For animation readiness */
.hero__title, .hero__subtitle, .hero__cta {
    opacity: 0;
}

/* Background decorative elements */
.hero__bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg-element {
    position: absolute;
    border-radius: 50%;
    background-color: var(--color-accent);
    filter: blur(150px);
    opacity: 0.1;
}

.hero__bg-element--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
}

.hero__bg-element--2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -200px;
}


/* --- Media Queries --- */
@media (min-width: 768px) {
    .hero {
        min-height: calc(70vh - var(--header-height));
        padding: 6rem 0;
    }
    .hero__content {
        text-align: left;
        margin: 0;
    }
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__subtitle {
        margin: 0 0 2.5rem;
    }
}
/* style.css (добавить в конец файла) */

/* --- Generic Section Styles --- */
.section {
    padding: 4rem 0;
}

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

.section__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* --- Directions Section --- */
.directions {
    background-color: var(--color-background);
}

.directions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.directions__card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.directions__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6fcf5; /* Lighter version of accent */
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.directions__card-icon .lucide {
    color: var(--color-accent);
    width: 28px;
    height: 28px;
}

.directions__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.directions__card-description {
    color: var(--color-secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.directions__card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.directions__card-skills li {
    background-color: var(--color-border);
    color: var(--color-secondary-text);
    padding: 0.25rem 0.75rem;
    border-radius: 100px; /* Pill shape */
    font-size: 0.875rem;
    font-weight: 500;
}

.directions__card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-accent);
}

.directions__card-link .lucide {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.directions__card-link:hover .lucide {
    transform: translateX(4px);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    .section__title {
        font-size: 2.5rem;
    }
    .directions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* style.css (добавить в конец файла) */

/* --- Process Section --- */
.process {
    background-color: var(--color-white);
}

.process__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* The vertical timeline line */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 23px; /* Aligns with the center of the icon */
    bottom: 20px;
    width: 2px;
    background-color: var(--color-border);
}

.process__item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.process__item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Above the timeline line */
}

.process__item-icon .lucide {
    color: var(--color-accent);
}

.process__item-content {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    flex-grow: 1;
}

.process__item-step {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.process__item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process__item-description {
    color: var(--color-secondary-text);
    line-height: 1.6;
}

/* --- Media Queries (Desktop) --- */
@media (min-width: 768px) {
    .process__timeline {
        gap: 0;
    }
    
    .process__timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .process__item {
        width: 50%;
        padding: 2rem;
    }

    /* Even items on the right */
    .process__item:nth-child(even) {
        align-self: flex-end;
        padding-left: 3rem; /* Space from center line */
    }

    /* Odd items on the left */
    .process__item:nth-child(odd) {
        align-self: flex-start;
        flex-direction: row-reverse; /* Moves icon to the right */
        padding-right: 3rem; /* Space from center line */
    }
    
    /* Make the icon the connection point */
    .process__item-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .process__item:nth-child(odd) .process__item-icon {
        right: -24px;
    }
    
    .process__item:nth-child(even) .process__item-icon {
        left: -24px;
    }

    .process__item-content {
        width: 100%;
    }
}

/* style.css (добавить в конец файла) */

/* --- Mentors Section --- */
.mentors {
    background-color: var(--color-background);
}

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

.mentors__card {
    background-color: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentors__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.mentors__card-photo-wrapper {
    position: relative;
}

.mentors__card-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.mentors__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 127, 91, 0.85); /* Accent color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mentors__card:hover .mentors__card-overlay {
    opacity: 1;
}

.mentors__card-social-link {
    color: var(--color-white);
}

.mentors__card-social-link .lucide {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.mentors__card-social-link:hover .lucide {
    transform: scale(1.15);
}

.mentors__card-info {
    padding: 1.5rem;
}

.mentors__card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mentors__card-role {
    color: var(--color-secondary-text);
    font-size: 0.95rem;
}

/* style.css (добавить в конец файла) */

/* --- FAQ Section --- */
.faq {
    background-color: var(--color-white);
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
    border-bottom: none;
}

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

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

.faq__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

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

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

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

/* style.css (добавить в конец файла) */

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

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__info .section__title,
.contact__info .section__subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.contact__details {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px #087f5b33;
}

.form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form__consent input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.form__consent label {
    font-size: 0.9rem;
    color: var(--color-secondary-text);
}
.form__consent a {
    text-decoration: underline;
}

#form-status {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: none; /* Hidden by default */
    text-align: center;
}
#form-status.success {
    background-color: #e6fcf5;
    color: var(--color-accent);
}
#form-status.error {
    background-color: #fff5f5;
    color: #c92a2a;
}

.contact__submit-btn {
    width: 100%;
}


@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    .contact__form-wrapper {
        padding: 3rem;
    }
}

/* style.css (добавить в конец файла) */

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 1rem 0;
    z-index: 200;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
}

.cookie-popup--hidden {
    transform: translateY(100%);
}

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

.cookie-popup__text {
    font-size: 0.9rem;
}

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

.cookie-popup__button {
    background-color: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
    padding: 0.5rem 1.5rem;
}

.cookie-popup__button:hover {
    background-color: transparent;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row;
    }
}

/* style.css (добавить в конец файла) */

/* --- Generic Content Pages (privacy, terms, etc.) --- */
.pages {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.pages .container {
    max-width: 800px;
}

.pages h1,
.pages h2,
.pages h3 {
    font-family: var(--font-primary);
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pages h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    font-weight: 700;
}

.pages h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    font-weight: 700;
}

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

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

.pages a:hover {
    color: #0ca678;
}

.pages ul,
.pages ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--color-secondary-text);
}

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

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