:root {
    --primary-color: #1a3e72;
    --primary-dark: #e3b600;
    --accent-color: #d4a762;
    --accent-light: #e8c897;
    --text-dark: #f0f0f0;
    --text-light: #cccccc;
    --bg-light: #090D11;
    --bg-dark: #070A0E;
    --border-color: #5a565a;
}

* {
    margin: 3px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Forum';
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header_container{
    background-image: url(../images/image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 100px 20px;
    color: white;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    font-family: 'Forum';
}

/* Затемнение фона */
.header_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Контент поверх затемнения */
.header_container > * {
    position: relative;
    z-index: 2;
}

/* Шапка */
.header {
    background: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 98%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Forum';
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-light);
    text-decoration: none;
    letter-spacing: 1px;
}

nav a {
    margin-left: 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Бургер-меню */
.burger-menu {
    background: rgba(237, 224, 212, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 25px;
    position: relative;
    z-index: 1001;
}

.burger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: all 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.burger-icon::before {
    top: -8px;
    left: 0;
}

.burger-icon::after {
    top: 8px;
    left: 0;
}

.burger-menu.active .burger-icon {
    background: transparent;
}

.burger-menu.active .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.burger-menu.active .burger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Полноэкранное меню */
/* Полноэкранное меню */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    overflow-y: hidden;
}

.fullscreen-menu.active {
    transform: translateY(0);
}

/* Шапка меню (логотип + кнопка закрытия) */
.fullscreen-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 70%;
    margin: 50px auto 0;
}

.fullscreen-menu-logo img {
    max-width: 150px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

/* Контейнер меню */
.fullscreen-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 1px 20px 20px;
    box-sizing: border-box;
}

/* Навигация */
.fullscreen-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.fullscreen-menu-nav a {
    color: var(--text-dark);
    font-size: 32px;
    text-decoration: none;
    transition: color 0.3s;
}

.fullscreen-menu-nav a:hover {
    color: var(--accent-color);
}

/* Контакты адвокатов */
.fullscreen-menu-contacts {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 800px;
    margin-bottom: 50px;
}

.lawyer-contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lawyer-contact-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    width: 200px;
}

.lawyer-contact-phones a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
}

.vertical-divider {
    width: 1px;
    height: 100%;
    background: var(--accent-color);
    align-self: center;
}

/* Блок с иконками соцсетей */
.fullscreen-menu-socials {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: auto;
    padding: 10px;
    width: 100%;
}

.social-item {
    display: flex;
    gap: 20px;
}

.social-item a {
    color: var(--text-dark);
    font-size: 28px;
    transition: color 0.3s;
}

.social-item a:hover {
    color: var(--accent-color);
}























/* Герой */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.content-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    max-width: 60%;
    text-align: left;
}


.text-content h2{
    font-size: 60px;
}

.text-content p{
    font-size: 20px;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 30px;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.3s ease;
}

.hero-block {
    width: 100%;
    min-height: 500px;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
















.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 80px;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Forum';
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* О компании */
.about {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}






.about .container{
    background: var(--bg-dark);
    width: 1000px;
    padding: 64px 10px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.about p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 30px;
    font-weight: 400;
    font-family: 'Forum';
}

.about p:first-child{
    font-size: 32px;
    margin-bottom: 45px;
    font-weight: 500;
}









/* Карточки юристов */
.team {
    padding: 100px 0;
    background: var(--bg-light);
}

.lawyers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.lawyer-card {
    background: var(--bg-dark);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 580px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    margin: 0 auto 130px;
    position: relative;
}

.lawyer-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 540px;
    margin-left: 100px;
}

.card-image {
    flex-shrink: 0;
    width: 350px;
    height: 450px;
    position: relative;
    top: -100px;
    left: -100px;
    margin-bottom: -50px;
}

.card-image_2 {
    flex-shrink: 0;
    width: 350px;
    height: 450px;
    position: relative;
    top: -100px;
    left: 0;
    margin-bottom: -50px;
}

.card-image .pos_img,
.card-image_2 .pos_img{
    position: relative;
}

.card-image img, .card-image_2 img {
    width: 450px;
    height: 670px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.lawyer-card h3 {
    width: 400px;
    font-family: 'Forum';
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 30px;
}

.experience {
    color: #EDE0D4;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 20px;
}

.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 75px;
}

.specialization-badge {
    color: #EDE0D4;
    font-weight: 500;
    margin-top: 10px;
    font-size: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--accent-color);
    font-size: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Кнопки */
.btn {
    display: inline-block;
    background: transparent;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}




/* Стили для блока "Нам доверяют" */
.trust_block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.trust_block img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.trust_block img:hover {
    transform: scale(1.05);
}



/* Форма */
.contact {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title{
    width: 840px;
    margin: 0 auto;
    text-align: center;
    color: #EDE0D4;
    font-size: 40px;
    font-weight: 400;
    padding: 50px 0;
}

.form_title{
    width: 500px;
    margin: 0 auto;
    text-align: center;
    color: #070A0E;
    font-size: 40px;
    font-weight: 400;
    padding-bottom: 50px;
}

.consent-checkbox{
    display: flex;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 100px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.consent-text{
    color: #070A0E;
}

.btn_2{
    background: transparent;
    color: #070A0E;
    text-decoration: none;
    border-bottom: 2px solid #070A0E;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 20px 220px;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-light);
}

input, textarea, select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
    color: #070A0E;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 167, 98, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    display: block;
    margin: 0 auto;
    width: fit-content;
}












/* Контакты и карта */
.contact-info {
    background: var(--bg-light);
    padding: 80px 0;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-direction: row;
    align-items: center; /* Центрирование по вертикали */
}

.contact-details {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование содержимого по горизонтали */
    text-align: center; /* Центрирование текста */
}

.contact-details h2 {
    font-family: 'Forum';
    font-size: 28px;
    color: var(--accent-light);
    margin-bottom: 30px;
    width: 100%; /* Заголовок на всю ширину */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center; /* Центрирование иконки и текста */
    margin-bottom: 10px;
}

.contact-item i {
    font-size: 20px;
    color: var(--text-light);
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item span {
    color: var(--text-light);
}

.lawyers-contacts {
    width: 100%;
    margin-top: 30px;
}

.lawyers-contacts h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.lawyers-contacts-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px; /* Отступ между блоками адвокатов */
    flex-wrap: wrap; /* Перенос на новую строку, если не хватает места */
}

.lawyer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 200px; /* Ограничение ширины блока адвоката */
}

.lawyer-contact-name {
    color: var(--text-dark);
    margin-bottom: 10px;
}

hr {
    width: 60%;
    border: 0;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.3;
}

.map-wrapper {
    flex: 1;
}

.map-container {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /*filter: grayscale(100%) invert(100%) contrast(90%);*/
}

/* Футер */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    text-align: center;
    margin: auto;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптация под мобильные устройства */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 20px;
    }
    nav a {
        font-size: 16px;
    }
    .text-content h2 {
        font-size: 36px;
    }
    .text-content p {
        font-size: 18px;
    }
    .about .container {
        width: 90%;
        padding: 40px 20px;
    }
    .about p {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    nav {
        margin-top: 20px;
    }

    nav a {
        margin: 0 10px;
        font-size: 16px;
    }

    .hero {
        padding: 100px 0;
    }
    .content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .text-content {
        max-width: 100%;
    }
    .cta-button {
        align-self: flex-start;
    }
    .hero-block {
        min-height: auto;
        padding: 40px 20px;
    }
    .about .container {
        width: 100%;
        border-radius: 15px;
    }
    .lawyers {
        flex-direction: column;
        align-items: center;
    }
    .lawyer-card {
        flex-direction: column;
        height: auto;
        margin-bottom: 50px;
    }
    .card-content {
        width: 100%;
        margin: 0;
        padding: 20px;
        order: 2;
    }
    .card-image, .card-image_2 {
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        margin-bottom: 0;
        order: 1;
    }
    .card-image img, .card-image_2 img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .lawyer-card h3 {
        width: 100%;
        font-size: 32px;
    }
    .card-footer {
        justify-content: center!important;
        margin-top: 20px;
    }
    .contact-container {
        flex-direction: column;
    }
    .map-wrapper, .contact-details {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .trust_block {
        gap: 20px;
    }
    .trust_block img {
        max-width: 150px;
    }
    .contact-details {
        padding-left: 0;
        margin-top: 30px;
    }
    .lawyers-contacts-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .form-row {
        flex-direction: column;
    }
    .btn_2 {
        padding: 15px 80px;
    }
    .form_title {
        width: 100%;
        font-size: 28px;
    }
    .section-title {
        width: 100%;
        font-size: 28px;
    }
    .fullscreen-menu-contacts {
        flex-direction: row;
        gap: 30px;
        margin-left: 10px;
    }
    .fullscreen-menu{
        overflow-x: hidden;
    }
    .vertical-divider {
        display: none;
    }

    .fullscreen-menu-container {
        padding: 30px 20px 20px;
    }

    .fullscreen-menu-nav a {
        font-size: 25px;
    }

    .container{
        overflow-x: hidden;
    }
    html{
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .text-content h2 {
        font-size: 28px;
    }
    .text-content p {
        font-size: 16px;
    }
    .about p {
        font-size: 18px;
    }
    .about p:first-child {
        font-size: 20px;
    }
    .lawyer-card h3 {
        font-size: 24px;
    }
    .experience, .specialization-badge {
        font-size: 16px;
    }
    .contact-form {
        padding: 20px;
    }
    .form-group input, .form-group textarea {
        padding: 12px;
    }
    .consent-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }
    .consent-text {
        width: 100%;
        font-size: 14px;
    }
    .btn_2 {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
    .footer-info p {
        font-size: 14px;
    }
}
/* Стили для выезжающего меню на 2/3 экрана */
.slideout-menu {
    position: fixed;
    top: 0;
    right: -66.67%; /* Меню скрыто за правым краем */
    width: 66.67%; /* 2/3 экрана */
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.slideout-menu.active {
    transform: translateX(-100%); /* Сдвигаем меню в видимую область */
}

/* Затемнение фона при открытом меню */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .slideout-menu {
        width: 85%; /* На мобильных занимает почти весь экран */
        right: -85%;
    }

    .slideout-menu-nav a {
        font-size: 24px;
    }
}

/* Остальные стили меню можно оставить как были, просто заменив классы */
.slideout-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.slideout-menu-container {
    padding: 30px 20px;
}

.slideout-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.slideout-menu-nav a {
    color: var(--text-dark);
    font-size: 28px;
    text-decoration: none;
    transition: color 0.3s;
    padding: 10px 0;
}

.slideout-menu-nav a:hover {
    color: var(--accent-color);
}

/* Контакты в меню */
.slideout-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}