/* --- ЭТАП 0: ГЛОБАЛЬНЫЕ СТИЛИ --- */
:root {
    --color-carrot: #FF6B35;
    --color-carrot-dark: #E85A2A;
    --color-green: #2B580C;
    --color-green-light: #A8E063;
    --color-dark: #1A1A1B;
    --color-light: #F9FAFB;
    --color-white: #FFFFFF;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn--primary:hover {
    background-color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- ЭТАП 1: ХЕДЕР --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

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

.logo__icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    border-radius: 10px;
    position: relative;
}

.logo__icon::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--color-carrot);
    bottom: -5px;
    right: -5px;
    border-radius: 4px;
}

.logo__text {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

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

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
    position: relative;
}

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

.nav__link:hover { color: var(--color-green); }
.nav__link:hover::after { width: 100%; }

.burger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger span, .burger::before, .burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    left: 0;
    transition: var(--transition);
}

.burger::before { top: 0; }
.burger span { top: 9px; }
.burger::after { bottom: 0; }

/* --- ЭТАП 2: ФУТЕР --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0 40px;
}

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

.footer__description {
    margin-top: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer__title {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--color-carrot);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-green-light);
    padding-left: 5px;
}

.footer__contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.icon-small {
    width: 18px;
    height: 18px;
    color: var(--color-green-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; } /* Будет реализовано через JS в мобильном меню */
    .burger { display: block; }
}

@media (max-width: 576px) {
    .footer__grid { grid-template-columns: 1fr; }
}
/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(168, 224, 99, 0.05) 0%, transparent 50%);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(43, 88, 12, 0.1);
    color: var(--color-green);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge__dot {
    width: 6px;
    height: 6px;
    background: var(--color-carrot);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-carrot);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.text-highlight {
    color: var(--color-green);
    position: relative;
}

.text-accent {
    color: var(--color-carrot);
    font-style: italic;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: #555;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero__btns {
    display: flex;
    gap: 20px;
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1rem;
}

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

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

/* --- ВАНИЛЬНАЯ АНИМАЦИЯ СЛОВ --- */
.hero__bg-words {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-word {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    opacity: 0.03;
    color: var(--color-dark);
    user-select: none;
    animation: floatWords 15s infinite ease-in-out;
}

.word-1 { top: 15%; left: 5%; animation-delay: 0s; }
.word-2 { top: 60%; left: 45%; animation-delay: -3s; }
.word-3 { top: 20%; right: 10%; animation-delay: -7s; }
.word-4 { bottom: 10%; left: 15%; animation-delay: -11s; }

@keyframes floatWords {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* --- КАРТОЧКА СТАТИСТИКИ --- */
.hero__image-wrap {
    position: relative;
}

.hero__img {
    width: 100%;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.hero__circle-decor {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: var(--color-green-light);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(40px);
}

.hero__stat-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    border-left: 4px solid var(--color-carrot);
}

.hero__stat-card i {
    color: var(--color-carrot);
    width: 32px;
    height: 32px;
}

.hero__stat-card strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
}

.hero__stat-card span {
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 992px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__content { order: 2; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__btns { justify-content: center; }
    .hero__image-wrap { order: 1; max-width: 500px; margin: 0 auto; }
}
/* --- ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-carrot { color: var(--color-carrot); }
.text-green { color: var(--color-green); }

/* --- SECTION: ПУТЬ УСПЕХА --- */
.path {
    padding: 100px 0;
    background-color: var(--color-white);
}

.path__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.path__item {
    background: var(--color-light);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.path__item:hover {
    transform: translateY(-10px);
    background: var(--color-white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--color-green-light);
}

.path__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-green);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.path__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.path__text {
    font-size: 0.95rem;
    color: #666;
}

.path__icon {
    margin-top: 25px;
    width: 45px;
    height: 45px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-carrot);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- SECTION: ЭКСПЕРТИЗА --- */
.expertise {
    padding: 120px 0;
    background: linear-gradient(135deg, #f0f7e9 0%, #ffffff 100%);
}

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

.expertise__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.expertise__list {
    margin-bottom: 40px;
}

.expertise__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--color-green);
}

.expertise__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.exp-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.exp-card:hover {
    background: var(--color-green);
    color: var(--color-white);
}

.exp-card--accent {
    background: var(--color-carrot);
    color: var(--color-white);
}

.exp-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(168, 224, 99, 0.2);
}

.exp-card:hover .exp-card__icon,
.exp-card--accent .exp-card__icon {
    background: rgba(255,255,255,0.2);
}

.exp-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.exp-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Адаптив */
@media (max-width: 992px) {
    .expertise__wrapper { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 576px) {
    .expertise__grid { grid-template-columns: 1fr; }
}
/* --- SECTION: КЕЙСЫ (BENTO) --- */
.cases {
    padding: 100px 0;
    background: var(--color-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
}

.bento-item {
    background: var(--color-white);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.bento-item--lg { grid-column: span 2; grid-row: span 2; background: var(--color-green); color: var(--color-white); }
.bento-item--md { grid-column: span 2; background: var(--color-white); }
.bento-item--sq { grid-column: span 1; background: var(--color-carrot); color: var(--color-white); }
.bento-item--hor { grid-column: span 1; background: var(--color-white); }

.bento-item h3 { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.2; }
.bento-item p { font-size: 0.9rem; opacity: 0.8; }
.bento-icon { position: absolute; top: 30px; right: 30px; width: 40px; height: 40px; opacity: 0.2; }

/* --- SECTION: БЛОГ (FLIP CARDS) --- */
.blog {
    padding: 100px 0;
    background: var(--color-white);
}

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

.flip-card {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card__front, .flip-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    overflow: hidden;
}

.flip-card__front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
    text-align: left;
}

.flip-card__back {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.flip-card__back h4 { color: var(--color-carrot); margin-bottom: 20px; }
.flip-card__back p { margin-bottom: 30px; font-size: 0.95rem; opacity: 0.8; }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; border-color: var(--color-white); color: var(--color-white); }

/* Адаптив для Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-item { grid-column: span 2; min-height: 250px; }
}
/* --- CONTACT SECTION --- */
.contact { padding: 100px 0; background: var(--color-white); }
.contact__wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.contact__details { margin-top: 40px; }
.contact__item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-weight: 600; }
.contact__item i { color: var(--color-green); }

.contact__form { background: var(--color-light); padding: 50px; border-radius: 40px; }
.form-group { margin-bottom: 20px; }
.form-input { 
    width: 100%; padding: 18px 25px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.1); 
    font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--color-carrot); box-shadow: 0 0 0 4px rgba(255,107,53,0.1); }

.form-captcha { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
#captchaLabel { font-weight: 700; color: var(--color-green); min-width: 80px; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 30px; cursor: pointer; }
.form-checkbox input { margin-top: 4px; }

.btn--full { width: 100%; }

.form-status { margin-top: 20px; padding: 15px; border-radius: 10px; display: none; text-align: center; font-weight: 600; }
.form-status.success { display: block; background: #d4edda; color: #155724; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; }

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed; bottom: -100px; left: 20px; right: 20px; 
    background: var(--color-dark); color: var(--color-white);
    padding: 20px; border-radius: 20px; z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.cookie-popup.active { transform: translateY(-120px); }
.cookie-popup__content { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; }
.cookie-popup p { font-size: 0.9rem; }
.cookie-popup a { color: var(--color-green-light); text-decoration: underline; }

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed; top: 0; left: 100%; width: 100%; height: 100%;
    background: var(--color-white); z-index: 999; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu.active { left: 0; }
.mobile-nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-nav__link { font-size: 1.5rem; font-weight: 800; font-family: 'Montserrat'; }

/* Адаптив хедера */
.burger.active span { opacity: 0; }
.burger.active::before { transform: translateY(9px) rotate(45deg); }
.burger.active::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    .contact__wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact__form { padding: 30px; }
    .cookie-popup__content { flex-direction: column; text-align: center; }
}
/* Стили для юридических и контентных страниц */
.legal-page {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.pages h1 {
    font-size: 3rem;
    margin: 20px 0 30px;
    color: var(--color-dark);
}

.lead-text {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--color-light);
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-carrot);
    background: var(--color-white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    background: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 25px;
}

.contact-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-link {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--color-carrot);
    font-size: 1.1rem;
}

.contact-address {
    font-style: normal;
    margin-top: 15px;
    line-height: 1.6;
    color: #666;
}

.contact-extra {
    padding: 30px;
    border-left: 4px solid var(--color-green);
    background: rgba(43, 88, 12, 0.05);
    border-radius: 0 20px 20px 0;
}