/*
* ПравоЭксперт - Стили сайта
* ITCSS архитектура с монохроматической цветовой схемой
* Базовый цвет: #44198f
*/

/*
* SETTINGS
* Глобальные переменные, настройки
*/
:root {
    /* Цветовая схема */
    --color-primary: #198f68;
    --color-primary-light: #2daa8b;
    --color-primary-lighter: #45c7ab;
    --color-primary-dark: #157868;
    --color-primary-darker: #105e47;

    /* Нейтральные цвета */
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-black: #000000;

    /* Размеры шрифтов */
    --font-size-xs: 0.875rem;
    --font-size-s: 1rem;
    --font-size-m: 1.25rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 1.75rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 2.5rem;

    /* Веса шрифтов */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Параметры контейнеров */
    --container-max-width: 1200px;
    --container-padding: 1rem;

    /* Отступы между секциями */
    --section-spacing: 4rem;
    --section-spacing-large: 6rem;

    /* Скругления */
    --border-radius: 0px;

    /* Переходы */
    --transition-speed: 0.3s;
}

/*
* GENERIC
* Сброс и нормализация стилей
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Стилизация полосы прокрутки */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-gray-200);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-light);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary);
}

/*
* ELEMENTS
* Базовые стили для HTML-элементов
*/
body {
    background-color: var(--color-white);
    color: var(--color-gray-800);
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-gray-900);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-xxxl);
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-l);
}

h5 {
    font-size: var(--font-size-m);
}

h6 {
    font-size: var(--font-size-s);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-light);
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

input,
textarea,
button {
    font-family: "Inter", sans-serif;
}

/* Кастомные стили фокуса */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(68, 25, 143, 0.3);
}

/* Кастомные стили для form элементов */
input,
textarea {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    color: var(--color-gray-800);
    font-size: var(--font-size-s);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-speed) ease;
    width: 100%;
}

input:hover,
textarea:hover {
    border-color: var(--color-gray-500);
}

input:focus,
textarea:focus {
    border-color: var(--color-primary);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/*
* OBJECTS
* Бестселессные объекты, шаблоны дизайна и структура макета
*/
.pe-container {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--container-max-width);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/*
* COMPONENTS
* Конкретные компоненты UI
*/

/* Кнопки */
.pe-btn {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-block;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.pe-btn:hover {
    transform: translateY(-2px);
}

.pe-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pe-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
}

.pe-btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pe-btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Навигация */
.pe-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: static;
    width: 100%;
    z-index: 100;
}

.pe-navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    position: relative;
}

.pe-navbar-brand {
    align-items: center;
    display: flex;
    z-index: 3;
}

.pe-navbar-brand h1 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 0;
}

.pe-nav-toggle {
    display: none;
}

.pe-nav-toggle-label {
    cursor: pointer;
    display: none;
    height: 30px;
    padding: 15px;
    position: relative;
    z-index: 3;
}

.pe-hamburger {
    background: var(--color-gray-800);
    height: 3px;
    position: relative;
    transition: all var(--transition-speed) ease;
    width: 30px;
}

.pe-hamburger:before,
.pe-hamburger:after {
    background: var(--color-gray-800);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    transition: all var(--transition-speed) ease;
    width: 30px;
}

.pe-hamburger:before {
    top: -8px;
}

.pe-hamburger:after {
    top: 8px;
}

.pe-nav-wrapper {
    align-items: center;
    display: flex;
    gap: 2rem;
}

.pe-nav-item {
    list-style: none;
    position: relative;
}

.pe-nav-link {
    color: var(--color-gray-700);
    display: block;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0;
    transition: color var(--transition-speed) ease;
}

.pe-nav-link:hover {
    color: var(--color-primary);
}

/* Выпадающее меню */
.pe-dropdown {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    min-width: 200px;
    opacity: 0;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    transform: translateY(10px);
    transition:
        opacity var(--transition-speed) ease,
        transform var(--transition-speed) ease;
    z-index: 10;
}

.pe-dropdown a {
    color: var(--color-gray-700);
    display: block;
    font-size: var(--font-size-s);
    padding: 0.5rem 1rem;
    transition:
        color var(--transition-speed) ease,
        background-color var(--transition-speed) ease;
}

.pe-dropdown a:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

.pe-nav-item:hover .pe-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Секция Hero */
.pe-hero {
    background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary-dark));
    color: var(--color-white);
    height: 60vh;
    min-height: 500px;
    padding: 4rem 0;
    position: relative;
}

.pe-hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pe-hero-content h2 {
    color: var(--color-white);
    font-size: var(--font-size-xxxl);
    margin-bottom: 1.5rem;
}

.pe-hero-content p {
    font-size: var(--font-size-m);
    margin-bottom: 2rem;
}

.pe-contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

.pe-contact-form-large {
    margin-top: 2rem;
}

/* Секция услуг */
.pe-services {
    padding: var(--section-spacing) 0;
}

.pe-service-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.pe-service-row:last-child {
    margin-bottom: 0;
}

.pe-row-reverse {
    flex-direction: row-reverse;
}

.pe-service-content {
    flex: 1;
    min-width: 300px;
}

.pe-service-image {
    flex: 1;
    min-width: 300px;
}

.pe-service-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.pe-service-image img:hover {
    transform: scale(1.02);
}

/* Секция преимуществ */
.pe-benefits {
    background-color: var(--color-gray-100);
    padding: var(--section-spacing) 0;
    text-align: center;
}

.pe-benefits h2 {
    margin-bottom: 3rem;
}

.pe-benefits-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pe-benefit-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition:
        transform var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

.pe-benefit-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Секция отзывов */
.pe-testimonials {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.pe-testimonials h2 {
    margin-bottom: 3rem;
}

.pe-testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pe-testimonial-card {
    background-color: var(--color-gray-100);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
    transition: transform var(--transition-speed) ease;
}

.pe-testimonial-card:hover {
    transform: translateY(-5px);
}

.pe-testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.pe-testimonial-card h5 {
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0;
}

/* Секция контактов */
.pe-contact {
    background-color: var(--color-gray-100);
    padding: var(--section-spacing) 0;
}

.pe-contact-content {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.pe-contact-info {
    margin: 2rem 0;
}

.pe-contact-info p {
    margin-bottom: 0.5rem;
}

/* Подвал */
.pe-footer {
    background-color: var(--color-primary-darker);
    color: var(--color-gray-300);
    padding-top: 4rem;
}

.pe-footer-main {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding-bottom: 3rem;
}

.pe-footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.pe-footer-links h4,
.pe-footer-contact h4 {
    color: var(--color-white);
    font-size: var(--font-size-m);
    margin-bottom: 1.5rem;
}

.pe-footer-links a {
    color: var(--color-gray-400);
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
}

.pe-footer-links a:hover {
    color: var(--color-white);
}

.pe-footer-contact p {
    margin-bottom: 0.75rem;
}

/*
* ПравоЭксперт - Стили сайта
* ITCSS архитектура с монохроматической цветовой схемой
* Базовый цвет: #44198f
*/

/*
* SETTINGS
* Глобальные переменные, настройки
*/
:root {
    /* Цветовая схема */
    --color-primary: #198f68;
    --color-primary-light: #2daa8b;
    --color-primary-lighter: #45c7ab;
    --color-primary-dark: #157868;
    --color-primary-darker: #105e47;

    /* Нейтральные цвета */
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-black: #000000;

    /* Размеры шрифтов */
    --font-size-xs: 0.875rem;
    --font-size-s: 1rem;
    --font-size-m: 1.25rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 1.75rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 2.5rem;

    /* Веса шрифтов */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Параметры контейнеров */
    --container-max-width: 1200px;
    --container-padding: 1rem;

    /* Отступы между секциями */
    --section-spacing: 4rem;
    --section-spacing-large: 6rem;

    /* Скругления */
    --border-radius: 0px;

    /* Переходы */
    --transition-speed: 0.3s;
}

/*
* GENERIC
* Сброс и нормализация стилей
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Стилизация полосы прокрутки */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-gray-200);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-light);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary);
}

/*
* ELEMENTS
* Базовые стили для HTML-элементов
*/
body {
    background-color: var(--color-white);
    color: var(--color-gray-800);
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-gray-900);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-xxxl);
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-l);
}

h5 {
    font-size: var(--font-size-m);
}

h6 {
    font-size: var(--font-size-s);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-light);
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

input,
textarea,
button {
    font-family: "Inter", sans-serif;
}

/* Кастомные стили фокуса */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(68, 25, 143, 0.3);
}

/* Кастомные стили для form элементов */
input,
textarea {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    color: var(--color-gray-800);
    font-size: var(--font-size-s);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-speed) ease;
    width: 100%;
}

input:hover,
textarea:hover {
    border-color: var(--color-gray-500);
}

input:focus,
textarea:focus {
    border-color: var(--color-primary);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/*
* OBJECTS
* Бестселессные объекты, шаблоны дизайна и структура макета
*/
.container,
.pe-container {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--container-max-width);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/*
* COMPONENTS
* Конкретные компоненты UI
*/

/* Кнопки */
.pe-btn {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-block;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.pe-btn:hover {
    transform: translateY(-2px);
}

.pe-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pe-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
}

.pe-btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pe-btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Навигация */
.main_menu {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: static;
    width: 100%;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.navbar-brand {
    align-items: center;
    display: flex;
    z-index: 3;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.hamburger {
    width: 30px;
    height: 3px;
    background: #000;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    top: 8px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--color-gray-700);
    display: block;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Мобильная навигация */
@media screen and (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 15px;
        z-index: 2;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        transition: all 0.3s ease;
        padding-top: 80px;
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .nav-link {
        display: inline-block;
        padding: 10px 20px;
        font-size: 18px;
        color: #000;
    }

    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger:after {
        transform: rotate(-45deg);
        top: 0;
    }
}

@media screen and (min-width: 769px) {
    .nav-wrapper {
        display: flex;
        gap: 30px;
    }
}

/* Секция Hero */
.pe-hero {
    background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary-dark));
    color: var(--color-white);
    height: 60vh;
    min-height: 500px;
    padding: 4rem 0;
    position: relative;
}

.pe-hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pe-hero-content h2 {
    color: var(--color-white);
    font-size: var(--font-size-xxxl);
    margin-bottom: 1.5rem;
}

.pe-hero-content p {
    font-size: var(--font-size-m);
    margin-bottom: 2rem;
}

.pe-contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

.pe-contact-form-large {
    margin-top: 2rem;
}

/* Секция услуг */
.pe-services {
    padding: var(--section-spacing) 0;
}

.pe-service-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.pe-service-row:last-child {
    margin-bottom: 0;
}

.pe-row-reverse {
    flex-direction: row-reverse;
}

.pe-service-content {
    flex: 1;
    min-width: 300px;
}

.pe-service-image {
    flex: 1;
    min-width: 300px;
}

.pe-service-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.pe-service-image img:hover {
    transform: scale(1.02);
}

/* Секция преимуществ */
.pe-benefits {
    background-color: var(--color-gray-100);
    padding: var(--section-spacing) 0;
    text-align: center;
}

.pe-benefits h2 {
    margin-bottom: 3rem;
}

.pe-benefits-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 750px;
    margin: 0 auto;
    gap: 24px;
}

.pe-benefit-card {
    width: calc(50% - 12px);
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition:
        transform var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

.pe-benefit-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Секция экспертизы */
.pe-expertise {
    padding: var(--section-spacing) 0;
}

.pe-expertise h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.pe-expertise-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.pe-expertise-text {
    flex: 1;
    min-width: 300px;
}

.pe-expertise-list {
    list-style-type: none;
}

.pe-expertise-list li {
    padding-left: 1.5rem;
    position: relative;
}

.pe-expertise-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.pe-expertise-image {
    flex: 1;
    min-width: 300px;
}

.pe-expertise-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Секция отзывов */
.pe-testimonials {
    padding: var(--section-spacing) 0;
    text-align: center;
    background-color: var(--color-gray-100);
}

.pe-testimonials h2 {
    margin-bottom: 3rem;
}

.pe-testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pe-testimonial-card {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
    transition: transform var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pe-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pe-testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.pe-testimonial-card h5 {
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0;
}

/* Секция процесса */
.pe-process {
    padding: var(--section-spacing) 0;
}

.pe-process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pe-process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pe-process-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition-speed) ease;
}

.pe-process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pe-process-item h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.pe-process-image {
    text-align: center;
}

.pe-process-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: 550px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
}

/* Секция контактов */
.pe-contact {
    background-color: var(--color-gray-100);
    padding: var(--section-spacing) 0;
}

.pe-contact-content {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.pe-contact-info {
    margin: 2rem 0;
}

.pe-contact-info p {
    margin-bottom: 0.5rem;
}

/* team */
.team .title {
    text-align: center;
    display: block;
}

.team .title::after {
    left: 50%;
    translate: -50% 0;
}

.team__inner {
    padding: 56px 0;
}

.team__box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.team__item {
    width: calc(25% - 16px);
}

.team__item-img {
    height: 300px;
    width: 100%;
    object-position: 50% 30%;
    object-fit: cover;
    margin-bottom: 24px;
}

.team__item-name {
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 8px;
}

.team__item-pos {
    text-align: center;
    font-size: 18px;
}

/* Секция офиса */
.pe-office {
    padding: var(--section-spacing) 0;
}

.pe-office h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pe-office-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.pe-office-image {
    flex: 1;
    min-width: 300px;
}

.pe-office-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pe-office-text {
    flex: 1;
    min-width: 300px;
}

.pe-office-amenities {
    list-style-type: none;
    margin-top: 1rem;
}

.pe-office-amenities li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.pe-office-amenities li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* cta */
.cta .title {
    text-align: center;
    display: block;
}

.cta .title::after {
    left: 50%;
    translate: -50% 0;
}

.cta__inner {
    padding: 56px 0;
}

.cta__box {
    background: linear-gradient(135deg, var(--color-primary-darker, #29105e), var(--color-primary-dark, #371578));
    padding: 24px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.cta__box h3 {
    color: #fff;
}

.cta__box p {
    max-width: 800px;
    margin: 0 auto 24px;
}

/* Подвал */
.pe-footer {
    background-color: var(--color-primary-darker);
    color: var(--color-gray-300);
    padding-top: 4rem;
}

.pe-footer-main {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding-bottom: 3rem;
}

.pe-footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.pe-footer-links h4,
.pe-footer-contact h4 {
    color: var(--color-white);
    font-size: var(--font-size-m);
    margin-bottom: 1.5rem;
}

.pe-footer-links a {
    color: var(--color-gray-400);
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
}

.pe-footer-links a:hover {
    color: var(--color-white);
}

.pe-footer-contact p {
    margin-bottom: 0.75rem;
}

.pe-footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 2rem 0;
}

.pe-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pe-footer-legal a {
    color: var(--color-gray-400);
    font-size: var(--font-size-xs);
    transition: color var(--transition-speed) ease;
}

.pe-footer-legal a:hover {
    color: var(--color-white);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
        --section-spacing-large: 4rem;
    }

    .pe-hero-content h2 {
        font-size: var(--font-size-xxl);
    }

    .pe-service-row {
        flex-direction: column;
    }

    .pe-row-reverse {
        flex-direction: column;
    }

    .pe-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .pe-footer-legal {
        justify-content: center;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-service-row,
.pe-benefit-card,
.pe-testimonial-card,
.pe-process-item,
.pe-expertise-content,
.pe-office-content {
    animation: fadeIn 0.6s ease-out forwards;
}

.pe-service-row:nth-child(2) {
    animation-delay: 0.2s;
}

.pe-service-row:nth-child(3) {
    animation-delay: 0.4s;
}

.pe-benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pe-benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pe-benefit-card:nth-child(4) {
    animation-delay: 0.3s;
}

.pe-testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pe-testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pe-process-item:nth-child(2) {
    animation-delay: 0.1s;
}

.pe-process-item:nth-child(3) {
    animation-delay: 0.2s;
}

.pe-process-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* Дополнительные стили для улучшения внешнего вида и интерактивности */

/* Улучшенные градиенты и эффекты */
.pe-hero {
    background: linear-gradient(
        135deg,
        var(--color-primary-darker) 0%,
        var(--color-primary) 60%,
        var(--color-primary-light) 100%
    );
    position: relative;
    overflow: hidden;
}

.pe-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
}

/* Улучшенные эффекты карточек */
.pe-benefit-card,
.pe-testimonial-card,
.pe-process-item {
    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        background-color 0.4s ease;
    border-top: 3px solid transparent;
}

.pe-benefit-card:hover {
    background-color: rgba(68, 25, 143, 0.03);
    border-top: 3px solid var(--color-primary);
    transform: translateY(-8px);
}

.pe-testimonial-card {
    position: relative;
    border-left: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

.pe-testimonial-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-primary-lighter);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.pe-testimonial-card:hover {
    background-color: rgba(68, 25, 143, 0.02);
    transform: translateY(-8px) scale(1.01);
}

/* Эффект выделения для элементов процесса */
.pe-process-item {
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 1;
}

.pe-process-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.4s ease;
    z-index: -1;
}

.pe-process-item:hover::before {
    width: 100%;
}

.pe-process-item h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.pe-process-item h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.pe-process-item:hover h4::after {
    width: 100%;
}

/* Улучшенные изображения */
.pe-service-image img,
.pe-expertise-image img,
.pe-process-image img,
.pe-office-image img {
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease,
        filter 0.5s ease;
    filter: saturate(0.95) brightness(1);
}

.pe-service-image img:hover,
.pe-expertise-image img:hover,
.pe-process-image img:hover,
.pe-office-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(68, 25, 143, 0.15);
    filter: saturate(1.05) brightness(1.05);
}

/* Улучшенные кнопки */
.pe-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition:
        color 0.4s ease,
        background-color 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.pe-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.pe-btn:hover {
    box-shadow: 0 5px 15px rgba(68, 25, 143, 0.15);
    transform: translateY(-3px);
}

.pe-btn:hover::before {
    left: 0;
}

.pe-btn-primary {
    box-shadow: 0 4px 12px rgba(68, 25, 143, 0.2);
}

.pe-btn-primary:hover {
    box-shadow: 0 6px 18px rgba(68, 25, 143, 0.3);
}

.pe-btn-outline:hover {
    box-shadow: 0 5px 15px rgba(68, 25, 143, 0.15);
}

/* Улучшенные поля формы */
.pe-contact-form input,
.pe-contact-form textarea {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.pe-contact-form input:focus,
.pe-contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 25, 143, 0.1);
}

/* Улучшенная навигация */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Улучшенный футер */
.pe-footer-links a {
    position: relative;
    padding-left: 15px;
    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.pe-footer-links a::before {
    content: "›";
    position: absolute;
    left: 0;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        left 0.3s ease;
}

.pe-footer-links a:hover {
    padding-left: 20px;
}

.pe-footer-links a:hover::before {
    opacity: 1;
    left: 5px;
}

/* Улучшенные списки экспертизы */
.pe-expertise-list li,
.pe-office-amenities li {
    transition:
        transform 0.3s ease,
        padding-left 0.3s ease;
}

.pe-expertise-list li:hover,
.pe-office-amenities li:hover {
    transform: translateX(5px);
}

.pe-expertise-list li::before,
.pe-office-amenities li::before {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.pe-expertise-list li:hover::before,
.pe-office-amenities li:hover::before {
    transform: scale(1.3);
    background-color: var(--color-primary-light);
}

/* Улучшенная секция услуг */
.pe-service-content {
    position: relative;
    transition: transform 0.4s ease;
}

.pe-service-content:hover {
    transform: translateX(10px);
}

.pe-row-reverse .pe-service-content:hover {
    transform: translateX(-10px);
}

/* Плавные анимации загрузки страницы */
@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-hero-content {
    animation: slideFromBottom 0.8s ease forwards;
}

/* Кастомный скроллбар с индикатором прогресса */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    z-index: 1000;
    width: 0;
    transition: width 0.2s ease;
}

/* Скрипт для обновления индикатора прогресса прокрутки страницы */
/* Этот CSS использует атрибут, который будет обновляться через JS */
body[data-scroll="0"]::before {
    width: 0%;
}
body[data-scroll="10"]::before {
    width: 10%;
}
body[data-scroll="20"]::before {
    width: 20%;
}
body[data-scroll="30"]::before {
    width: 30%;
}
body[data-scroll="40"]::before {
    width: 40%;
}
body[data-scroll="50"]::before {
    width: 50%;
}
body[data-scroll="60"]::before {
    width: 60%;
}
body[data-scroll="70"]::before {
    width: 70%;
}
body[data-scroll="80"]::before {
    width: 80%;
}
body[data-scroll="90"]::before {
    width: 90%;
}
body[data-scroll="100"]::before {
    width: 100%;
}

/* Улучшенные заголовки */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-benefits h2,
.pe-testimonials h2,
.pe-process h2,
.pe-office h2,
.pe-expertise h2 {
    text-align: center;
    display: block;
}

.pe-benefits h2::after,
.pe-testimonials h2::after,
.pe-process h2::after,
.pe-office h2::after,
.pe-expertise h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Стилизация мобильного меню */
.hamburger,
.hamburger:before,
.hamburger:after {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger:before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger:after {
    top: 0;
    transform: rotate(-45deg);
}

/* Дополнительные медиа-запросы для большей адаптивности */
@media (max-width: 480px) {
    .pe-hero-content h2 {
        font-size: var(--font-size-xl);
    }

    .pe-hero {
        min-height: 450px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .pe-service-content,
    .pe-service-image,
    .pe-expertise-text,
    .pe-expertise-image,
    .pe-office-text,
    .pe-office-image {
        min-width: 250px;
    }
}

/* Кастомные маркеры */
@media (min-width: 769px) {
    .pe-process-timeline {
        position: relative;
    }

    .pe-process-timeline::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, var(--color-primary-lighter), var(--color-primary-dark));
        opacity: 0.3;
        z-index: 0;
    }
}

/* Стили для страницы О нас */

/* Активный пункт меню */
.nav-link.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Секция About Hero */
.pe-about-hero {
    background: linear-gradient(
        135deg,
        var(--color-primary-darker) 0%,
        var(--color-primary) 80%,
        var(--color-primary-light) 100%
    );
    color: var(--color-white);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pe-about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
}

.pe-about-hero-content {
    position: relative;
    z-index: 2;
}

.pe-about-hero h1 {
    font-size: var(--font-size-xxxl);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.pe-about-hero p {
    font-size: var(--font-size-l);
    max-width: 700px;
    margin: 0 auto;
}

/* Основное содержимое страницы О нас */
.pe-about-content {
    padding: var(--section-spacing) 0;
}

.pe-about-main {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.pe-about-text {
    flex: 2;
    min-width: 300px;
}

.pe-about-image {
    flex: 1;
    min-width: 300px;
}

.pe-about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(68, 25, 143, 0.1);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.pe-about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(68, 25, 143, 0.2);
}

.pe-about-text h2 {
    color: var(--color-primary-dark);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.pe-about-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-about-text h2:first-child {
    margin-top: 0;
}

.pe-about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.pe-about-values {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.pe-about-values li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pe-about-values li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.pe-about-values li:hover::before {
    transform: scale(1.3);
    background-color: var(--color-primary-light);
}

.pe-about-team h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.pe-about-team h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-about-team p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Секция с подходом к работе */
.pe-about-approach {
    background-color: var(--color-gray-100);
    padding: var(--section-spacing) 0;
    text-align: center;
}

.pe-about-approach h2 {
    margin-bottom: 3rem;
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pe-about-approach h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pe-approach-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-top 0.4s ease;
    text-align: left;
    border-top: 3px solid transparent;
}

.pe-approach-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--color-primary);
}

.pe-approach-item h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.pe-approach-item h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.pe-approach-item:hover h4::after {
    width: 100%;
}

.pe-approach-item p {
    line-height: 1.6;
}

/* Анимации для страницы О нас */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-about-text,
.pe-about-image,
.pe-about-team,
.pe-approach-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.pe-approach-item:nth-child(2) {
    animation-delay: 0.1s;
}

.pe-approach-item:nth-child(3) {
    animation-delay: 0.2s;
}

.pe-approach-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .pe-about-hero h1 {
        font-size: var(--font-size-xxl);
    }

    .pe-about-hero p {
        font-size: var(--font-size-m);
    }

    .pe-about-main {
        flex-direction: column-reverse;
    }

    .pe-about-text {
        text-align: center;
    }

    .pe-about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .pe-about-values li {
        text-align: left;
    }

    .pe-about-team {
        text-align: center;
    }

    .pe-about-team h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Стили для cookie предупреждения */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary-darker, #29105e), var(--color-primary-dark, #371578));
    color: white;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
    font-family: "Inter", sans-serif;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.cookie-banner.show {
    bottom: 0;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

.cookie-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
    min-width: 280px;
}

.cookie-text p {
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.cookie-btn {
    background-color: white;
    color: #44198f;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-btn:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-icon {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.cookie-icon svg {
    fill: white;
    width: 25px;
    height: 25px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .cookie-actions {
        justify-content: center;
    }
}

/* Стили для страницы Контакты */

/* Hero секция */
.pe-contact-hero {
    background: linear-gradient(
        135deg,
        var(--color-primary-darker) 0%,
        var(--color-primary) 60%,
        var(--color-primary-light) 100%
    );
    color: var(--color-white);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pe-contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
}

.pe-contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.pe-contact-hero h1 {
    font-size: var(--font-size-xxxl);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.pe-contact-hero p {
    font-size: var(--font-size-l);
}

/* Секция с информацией о контактах */
.pe-contact-info-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-white);
}

.pe-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pe-contact-info-card {
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    text-align: center;
}

.pe-contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pe-contact-info-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pe-contact-info-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.pe-contact-info-card:hover h3::after {
    width: 100%;
}

.pe-contact-info-card p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.pe-contact-info-card p:last-child {
    margin-bottom: 0;
}

/* Форма контакта */
.pe-contact-form-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-gray-100);
}

.pe-contact-form-container {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pe-contact-form-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.pe-contact-form-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.pe-contact-form-container:hover .pe-contact-form-image img {
    transform: scale(1.05);
}

.pe-contact-form-content {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
}

.pe-contact-form-content h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.pe-contact-form-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-contact-form-content p {
    margin-bottom: 2rem;
    color: var(--color-gray-700);
}

.pe-contact-form-detailed {
    display: grid;
    gap: 1.5rem;
}

.pe-form-group {
    position: relative;
}

.pe-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-800);
}

.pe-form-group input,
.pe-form-group select,
.pe-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    background-color: var(--color-gray-100);
    font-size: var(--font-size-s);
    transition: all 0.3s ease;
}

.pe-form-group input:focus,
.pe-form-group select:focus,
.pe-form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(68, 25, 143, 0.1);
    transform: translateY(-2px);
}

.pe-form-group input::placeholder,
.pe-form-group select::placeholder,
.pe-form-group textarea::placeholder {
    color: var(--color-gray-500);
}

.pe-form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23495057" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.pe-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pe-form-privacy input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.pe-form-privacy label {
    margin: 0;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    color: var(--color-gray-600);
}

.pe-form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pe-form-privacy a:hover {
    color: var(--color-primary-dark);
}

.pe-btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Стилизация focus-visible для доступности */
.pe-form-group input:focus-visible,
.pe-form-group select:focus-visible,
.pe-form-group textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Анимированный эффект для input при фокусе */
.pe-form-group input:focus ~ label,
.pe-form-group textarea:focus ~ label,
.pe-form-group select:focus ~ label {
    color: var(--color-primary);
}

/* Эффект пульсации для кнопки отправки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(68, 25, 143, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(68, 25, 143, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(68, 25, 143, 0);
    }
}

.pe-btn-primary.pe-btn-large {
    animation: pulse 2s infinite;
}

.pe-btn-primary.pe-btn-large:hover {
    animation: none;
}

/* Секция с местоположением */
.pe-office-location {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.pe-office-location h2 {
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pe-office-location h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.pe-location-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
}

.pe-location-description p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.pe-location-list {
    list-style-type: none;
    padding-left: 0;
}

.pe-location-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.pe-location-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.pe-location-list li:hover::before {
    transform: scale(1.3);
    background-color: var(--color-primary-light);
}

.pe-map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--color-gray-200);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
        135deg,
        rgba(68, 25, 143, 0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(68, 25, 143, 0.05) 50%,
        rgba(68, 25, 143, 0.05) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
}

.pe-map-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.pe-map-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.pe-map-content p {
    margin-bottom: 1.5rem;
}

/* Анимации для страницы Контакты */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-contact-info-card,
.pe-contact-form-container,
.pe-location-description,
.pe-map-placeholder {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pe-contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pe-contact-info-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .pe-contact-hero h1 {
        font-size: var(--font-size-xxl);
    }

    .pe-contact-hero p {
        font-size: var(--font-size-m);
    }

    .pe-contact-form-content {
        padding: 2rem;
    }
}

/* Улучшенный стиль для ошибок формы */
.pe-form-group input:invalid:focus,
.pe-form-group select:invalid:focus,
.pe-form-group textarea:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.1);
}

.pe-form-group input:valid:focus,
.pe-form-group select:valid:focus,
.pe-form-group textarea:valid:focus {
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.1);
}

/* Исправление для мобильной навигации при активации бургера */
@media screen and (max-width: 768px) {
    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
        display: flex; /* Добавляем отображение flex */
        flex-direction: column;
        z-index: 1000; /* Увеличиваем z-index для перекрытия */
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        transition: all 0.3s ease;
        padding-top: 80px;
        flex-direction: column;
        align-items: center;
        z-index: 1000; /* Также добавляем z-index */
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 15px 0;
        display: block; /* Гарантируем, что элементы меню отображаются */
    }

    .nav-link {
        display: inline-block;
        padding: 10px 20px;
        font-size: 18px;
        color: #000;
        width: auto; /* Исправляем ширину */
    }

    /* Добавляем стили для закрытого меню */
    .nav-toggle:not(:checked) ~ .nav-wrapper {
        visibility: hidden; /* Скрываем видимость вместо left */
    }

    /* Дополнительные стили для улучшения видимости меню */
    .hamburger,
    .hamburger:before,
    .hamburger:after {
        background: #44198f; /* Используем основной цвет сайта */
    }

    .nav-toggle-label {
        z-index: 1001; /* Поднимаем выше чем nav-wrapper */
    }
}
