/* ========== CSS RESET & VARIABLES ========== */
:root {
    /* Цвета */
    --pravo-black: #0A0A0F;
    --pravo-blue: #0A2463;
    --pravo-blue-dark: #05143B;
    --pravo-red: #8B0000;
    --pravo-gold: #D4AF37;
    
    /* Оттенки серого */
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Шрифты */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--pravo-blue);
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== HEADER ========== */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: var(--pravo-blue);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo__text {
    line-height: 1.2;
}

.logo__title {
    font-weight: 700;
    color: var(--pravo-black);
}

.logo__subtitle {
    font-size: 0.75rem;
    color: var(--gray-800);
}

/* Навигация */
.nav {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--pravo-red);
}

/* Кнопка в хедере */
.header__btn {
    background: var(--pravo-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.header__btn:hover {
    background: #7A0000;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--pravo-blue) 0%, var(--pravo-blue-dark) 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Статистика героя */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--pravo-gold);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Кнопки героя */
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.btn--primary {
    background: var(--pravo-red);
    color: white;
}

.btn--primary:hover {
    background: #7A0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--secondary:hover {
    background: white;
    color: var(--pravo-blue);
}

.btn--lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ========== SERVICES SECTION ========== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    font-size: 2.5rem;
    color: var(--pravo-blue);
    margin-bottom: 1rem;
}

.service-card__title {
    font-size: 1.5rem;
    color: var(--pravo-black);
    margin-bottom: 1rem;
}

.service-card__description {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.service-card__link {
    color: var(--pravo-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========== CASES SECTION ========== */
.cases {
    background: var(--gray-50);
}

.cases__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto;
}

.case-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.case-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-card__title {
    font-size: 1.5rem;
    color: var(--pravo-black);
    line-height: 1.3;
    flex: 1;
}

.case-card__category {
    background: var(--pravo-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.case-card__description {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-card__result {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #F0F9FF;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--pravo-blue);
}

/* ========== PROCESS SECTION ========== */
.process__steps {
    max-width: 800px;
    margin: 3rem auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--pravo-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    color: var(--pravo-blue);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--gray-800);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--pravo-black);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer__contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.footer__contact a {
    color: white;
    text-decoration: none;
}

.footer__contact a:hover {
    color: var(--pravo-gold);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__stats {
        gap: 2rem;
    }
    
    .stat__number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Хедер на мобильных */
    .header__inner {
        padding: 1rem 0;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        flex-direction: column;
        box-shadow: var(--shadow-md);
    }
    
    .nav.active {
        display: flex;
    }
    
    .burger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    
    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--pravo-black);
        position: absolute;
        transition: 0.3s;
    }
    
    .burger span:nth-child(1) { top: 0; }
    .burger span:nth-child(2) { top: 9px; }
    .burger span:nth-child(3) { top: 18px; }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    /* Герой секция */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Кейсы на мобильных */
    .case-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .case-card__category {
        align-self: flex-start;
    }
    
    /* Процесс работы */
    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Секции */
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .case-card,
    .service-card,
    .process-step {
        padding: 1.25rem;
    }
    
    .case-card__title,
    .service-card__title,
    .step-title {
        font-size: 1.25rem;
    }
}

/* ========== FAQ SECTION ========== */
.faq {
    background: var(--gray-50);
}

.faq__list {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pravo-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--pravo-red);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq__cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.faq__cta p {
    font-size: 1.25rem;
    color: var(--pravo-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========== MOBILE FAQ ========== */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
    
    .faq__cta {
        padding: 1.5rem;
    }
    
    .faq__cta p {
        font-size: 1.125rem;
    }
}

/* ========== TELEGRAM FORM ========== */
.telegram-form {
    background: linear-gradient(135deg, #0A2463 0%, #05143B 100%);
    color: white;
}



.telegram-form .section__title,
.telegram-form .section__subtitle {
    color: white;
}

.telegram-form .section__subtitle {
    opacity: 0.9;
}

.max-section {
    background: linear-gradient(135deg, #0A2463 0%, #05143B 100%);
    color: white;
}

.form-container {
    max-width: 500px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pravo-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

.btn--block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1.125rem;
}

.btn--block .fab {
    font-size: 1.25rem;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Мобильная версия формы */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1.5rem auto 0;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
    }
    
    .btn--block {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* === FIX для select в Chromium / Яндекс === */
.form-group select {
    color: #000;
    background-color: #fff;
}

.form-group select option {
    color: #000;
    background-color: #fff;
}

/* ========== MOBILE MENU STYLES ========== */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--pravo-black);
    position: absolute;
    transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Базовое состояние - меню скрыто справа */
.mobile-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    max-width: 80%;
    background: white;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
    border-radius: 0 0 0 20px;
    box-shadow: -5px 10px 25px rgba(0,0,0,0.15);
    
    /* Вот эти 3 строки - магия выезжания */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
}

/* Когда скрипт добавляет класс active - выезжает */
.mobile-nav.active {
    transform: translateX(0);
}

/* Стили для ссылок */
.mobile-nav__link {
    color: #0A0A0F;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav__link:hover {
    background: #F8F9FA;
    color: #8B0000;
}

.mobile-nav__btn {
    background: #8B0000;
    color: white !important;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-nav__btn:hover {
    background: #7A0000;
}

body.no-scroll {
    overflow: hidden;
}

/* Бургер */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0A0A0F;
    position: absolute;
    transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    
    .header__btn {
        display: none;
    }
    
    .burger {
        display: block;
    }
}

/* Стили для карты */
.map-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.map-container {
    margin: 30px 0 20px;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}

.map-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e3a5f;
    margin-top: 20px;
}

.map-address i {
    font-size: 1.5rem;
    color: #e74c3c;
    animation: pulse 1.5s ease infinite;
}

/* Анимация пульсации для иконки */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
    
    .map-address {
        font-size: 0.9rem;
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .map-address i {
        font-size: 1.2rem;
    }
}

/* Бургер */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--pravo-black);
    position: absolute;
    transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Мобильное меню */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav__link {
    color: var(--pravo-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav__btn {
    background: var(--pravo-red);
    color: white !important;
    text-align: center;
    margin-top: 1rem;
}

body.no-scroll {
    overflow: hidden;
}

/* Медиа-запрос - показываем бургер только на мобильных */
@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    
    .header__btn {
        display: none;
    }
    
    .burger {
        display: block;
    }
}

