/* --- Global Settings & Reset --- */
:root {
    --color-primary: #1e1b4b; /* Глубокий индиго */
    --color-accent: #a3e635;  /* Лайм */
    --color-text: #334155;    /* Темно-серый текст */
    --color-bg: #ffffff;
    --color-light-bg: #f8fafc;
    --color-white: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    
    --spacing-container: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: var(--transition);
}

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

.btn--primary:hover {
    background-color: #84cc16; /* Darker lime */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header__nav {
    display: none; /* Mobile First hidden */
}

@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
}

.header__menu {
    display: flex;
    gap: 30px;
}

.header__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
}

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

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

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

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

@media (min-width: 992px) {
    .header__burger {
        display: none;
    }
}

/* --- Main --- */
.main {
    flex: 1;
    padding-top: 80px; /* Компенсация высоты хедера */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: #cbd5e1; /* Light slate for text on dark bg */
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

@media (min-width: 992px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer__desc {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    color: var(--color-white);
    opacity: 0.7;
}

.footer__socials a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer__title {
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.footer__link {
    font-size: 14px;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer__contacts i {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    overflow: hidden;
    padding: 100px 0 60px; /* Top padding compenstates fixed header */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4; /* Subtle effect */
}

.hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero__content {
    color: var(--color-white);
    animation: fadeInUp 1s ease-out;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    backdrop-filter: blur(5px);
}

.hero__badge i {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-white);
}

.text-highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-accent);
    position: relative;
    display: inline-block;
}

/* Эффект "заливки" текста */
.text-highlight::before {
    content: attr(data-text); /* Need to duplicate text in HTML or just use color */
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    color: var(--color-accent);
    overflow: hidden;
    transition: width 1s ease-in-out;
    /* Simplified for this iteration: just color text */
    color: var(--color-accent);
    -webkit-text-stroke: 0;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 64px;
    }
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__note {
    font-size: 12px;
    opacity: 0.6;
    font-style: italic;
}

.hero__btn {
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
}

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

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

.hero__stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.hero__stat-desc {
    font-size: 14px;
    opacity: 0.8;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections General --- */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 18px;
    color: #64748b; /* Slate-500 */
    line-height: 1.6;
}

.text-bold {
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Methodology Section --- */
.methodology {
    background-color: var(--color-light-bg);
}

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

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

/* --- Method Card --- */
.method-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* Декоративная линия сверху при ховере */
.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.method-card:hover::before {
    transform: scaleX(1);
}

.method-card__icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff; /* Light blue-ish */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    transition: var(--transition);
}

.method-card:hover .method-card__icon {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.method-card__icon i {
    width: 30px;
    height: 30px;
}

.method-card__title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.method-card__text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* --- Scroll Animation Classes --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Consulting Section --- */
.consulting {
    background-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

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

@media (min-width: 992px) {
    .consulting__container {
        grid-template-columns: 1fr 1fr;
    }
}

.consulting__title {
    color: var(--color-white);
    text-align: left;
    margin-bottom: 30px;
}

.consulting__desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Image Styling */
.consulting__image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Decorative border frame effect */
.consulting__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(163, 230, 53, 0.3); /* Accent color low opacity */
    border-radius: 20px;
    pointer-events: none;
    margin: 15px;
}

.consulting__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.consulting__image-wrapper:hover .consulting__img {
    transform: scale(1.05);
}

.consulting__badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 10px 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Accordion --- */
.accordion {
    margin-bottom: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.accordion__item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

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

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

/* State: Active */
.accordion__item.active .accordion__header {
    color: var(--color-accent);
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion__body {
    padding-bottom: 20px;
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

/* --- Consulting CTA --- */
.consulting__cta {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.consulting__cta-text {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.consulting__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* --- Blog Section --- */
.blog {
    background-color: var(--color-light-bg);
}

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

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

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

/* --- Blog Card --- */
.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.1);
}

.blog-card__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__tag--accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.blog-card__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__meta i {
    width: 14px;
    height: 14px;
}

.blog-card__title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: #4338ca; /* Slightly lighter indigo */
}

.blog-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1; /* Pushes link to bottom */
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
    margin-top: auto;
}

.blog-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-card__link:hover {
    color: var(--color-accent); /* Text becomes lime */
}

.blog-card__link:hover i {
    transform: translateX(5px);
}

/* --- Reviews Section --- */
.reviews {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-bottom: 120px; /* Extra space before footer/contact */
}

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

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

/* --- Review Card --- */
.review-card {
    background: rgba(255, 255, 255, 0.05); /* Glass effect */
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.review-card__info {
    flex: 1;
}

.review-card__name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 4px;
}

.review-card__role {
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-card__rating {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
}

.review-card__rating i {
    width: 16px;
    height: 16px;
    fill: var(--color-accent); /* Заливка звезд */
}

.review-card__text {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    font-style: italic;
    position: relative;
}

/* Декоративная кавычка */
.review-card__text::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 60px;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -10px;
    line-height: 1;
}

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

.contact__wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact__header {
    text-align: center;
    margin-bottom: 40px;
}

.contact__box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

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

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Left padding for icon */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

.form-input.error {
    border-color: #ef4444; /* Red */
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #64748b;
}

.form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
}

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

/* Captcha */
.captcha-group label span {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 18px;
}

/* Button full width */
.contact__btn {
    width: 100%;
    justify-content: center;
}

/* Loading State */
.contact__btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.contact__success {
    display: none; /* Hidden initially */
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.success-icon i {
    width: 64px;
    height: 64px;
}

.contact__success h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 24px;
}

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

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Спрятано внизу */
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

.btn--sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* --- Policy Pages Styles --- */
.pages {
    padding: 120px 0 60px; /* Отступ сверху для хедера */
    min-height: 60vh;
}

.pages h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.pages h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.pages p {
    margin-bottom: 15px;
    color: #475569;
    line-height: 1.7;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #475569;
}

.pages li {
    margin-bottom: 8px;
}

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

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