/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --color-background: #F8F5F2;
    --color-text: #2D3748;
    --color-primary: #2C5282;
    --color-accent: #DD6B20;
    --color-white: #FFFFFF;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background-color: var(--color-white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.header__nav {
    display: none;
}

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

.header__nav-link {
    font-weight: 700;
    padding: 5px 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header__nav-link:hover::after {
    transform: scaleX(1);
}

.header__nav-link--button {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: #C05621;
}

.header__nav-link--button::after {
    display: none;
}

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

/* Mobile Nav - active state */
.header__nav.is-active {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    padding: 20px;
}
.header__nav.is-active .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}


/* --- Main Content Placeholder --- */
.main {
    padding-top: var(--header-height); /* Offset for fixed header */
}

/* --- Footer --- */
.footer {
    background-color: #202b3a;
    color: #a0aec0;
    padding: 60px 0 0;
}

.footer__container {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    display: inline-block;
}

.footer__tagline {
    font-size: 14px;
}

.footer__heading {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 20px;
}

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

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.footer__bottom {
    background-color: #1a202c;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* --- General Components --- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.button--primary:hover {
    background-color: #C05621;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(221, 107, 32, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    align-items: center;
    gap: 40px;
}

.hero__title {
    font-size: 2.5rem; /* 40px */
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Styles for JS animation */
.hero__title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__text {
    font-size: 1.125rem; /* 18px */
    max-width: 500px;
    margin-bottom: 30px;
}

.hero__image-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero__image-bg {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 10px;
    z-index: -1;
}

.hero__image {
    width: 100%;
    border-radius: 10px;
    position: relative;
}

/* --- Media Queries (Mobile-First) --- */
@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    .header__burger-button {
        display: none;
    }
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }

    .hero {
        padding: 80px 0;
    }
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .hero__title {
        font-size: 3.25rem; /* 52px */
    }
}
/* ... (предыдущие стили без изменений) ... */

/* --- General Components --- */
/* ... */
.button--primary:hover {
    background-color: #C05621;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(221, 107, 32, 0.3);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 1.125rem; /* 18px */
    color: #4A5568; /* Slightly lighter text color */
}

/* --- Hero Section --- */
/* ... */

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

.process__grid {
    display: grid;
    gap: 30px;
}

.process__card {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(44, 82, 130, 0.1);
}

.process__card-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.process__card-icon-wrapper i {
    width: 30px;
    height: 30px;
}

.process__card-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 10px;
    color: var(--color-primary);
}

.process__card-text {
    font-size: 1rem;
    color: #4A5568;
}


/* --- Media Queries (дополнения) --- */
@media (min-width: 576px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    .header__burger-button {
        display: none;
    }
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }

    .hero {
        padding: 80px 0;
    }
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .hero__title {
        font-size: 3.25rem; /* 52px */
    }

    .process__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* --- Directions Section --- */
.directions {
    padding: 80px 0;
    /* No background change, uses the default body background */
}

.directions__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.directions__card {
    background-color: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.directions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(44, 82, 130, 0.08);
    border-color: var(--color-accent);
}

.directions__card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.directions__card-title {
    font-size: 1.125rem; /* 18px */
    color: var(--color-primary);
    margin: 0;
}

/* --- Cases Section --- */
.cases {
    padding: 80px 0;
    background-color: var(--color-white);
}

.cases__grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.cases__card {
    background-color: var(--color-background);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cases__card-content {
    padding: 30px;
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.cases__card-content::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    font-family: var(--font-heading);
    color: rgba(44, 82, 130, 0.08);
    line-height: 1;
    z-index: 1;
}

.cases__card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cases__card-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cases__card-author-name {
    font-weight: 700;
    color: var(--color-primary);
}

.cases__card-summary {
    background-color: #E2E8F0; /* A light grey from the text palette */
    padding: 20px 30px;
    font-size: 0.95rem;
}

.cases__card-summary p {
    margin: 0;
    line-height: 1.5;
}

.cases__card-summary strong {
    color: var(--color-primary);
}

.cases__card-summary p:first-child {
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- About Section --- */
.about {
    padding: 80px 0;
    /* Uses default body background */
}

.about__container {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about__image-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.about__image {
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about__name {
    font-size: 2.5rem; /* 40px */
    margin: 0;
}

.about__role {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.about__bio {
    margin-bottom: 15px;
    color: #4A5568;
}

.about__strengths {
    margin-top: 30px;
    padding-left: 0;
    list-style: none;
}

.about__strength-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.about__strength-icon {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1fr 1.5fr; /* Image takes less space */
        gap: 60px;
    }
}

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

.contact__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CBD5E0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.form__group--captcha #captcha-label {
    font-style: italic;
}

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

.form__group--checkbox input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.form__group--checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form__group--checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__button {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
}

.form__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
}

.form__success-message i {
    color: #48BB78; /* Green color */
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.form__success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .contact__form-wrapper {
        padding: 50px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #202b3a; /* Same as footer */
    color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
    z-index: 2000;
    max-width: 600px; /* Limit width on large screens */
    margin: 0 auto;
}

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

.cookie-popup__text {
    margin: 0;
    font-size: 14px;
}

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

.cookie-popup__button {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #C05621;
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* --- Policy & Static Pages Styles --- */
.pages {
    padding: 60px 0;
    padding-top: calc(var(--header-height) + 60px); /* Offset for fixed header */
    background-color: var(--color-white);
    min-height: 100vh;
}

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

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4A5568;
}

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

.pages li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #4A5568;
}

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

.pages a:hover {
    color: #C05621;
}

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