/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: #b71c1c; }

.btn-small {
    display: inline-block;
    background-color: #1976d2;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.btn-small:hover { background-color: #1565c0; }


/* Верхняя панель */
.top-bar {
    background-color: #eaeaea;
    font-size: 14px;
    padding: 10px 0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-phone {
    font-weight: bold;
    font-size: 16px;
}
.top-phone a {
	text-decoration: none;
	 color: #333;
}

/* Шапка */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 26px;
    font-weight: 900;
    color: #1976d2;
}
.logo span { color: #d32f2f; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: #d32f2f; }

/* Главный экран */
.hero {
    background: linear-gradient(rgba(25, 118, 210, 0.9), rgba(21, 101, 192, 0.9)), url('hero-bg.jpg') center/cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Преимущества */
.advantages {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}
.advantages h2 { font-size: 32px; color: #333; margin-bottom: 10px; }
.subtitle { color: #666; margin-bottom: 40px; font-size: 18px; }

.advantages-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.adv-card {
    flex: 1;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.adv-icon { font-size: 40px; margin-bottom: 15px; }

/* Цены */
.pricing {
    padding: 80px 0;
    text-align: center;
}
.pricing h2 { font-size: 32px; margin-bottom: 50px; }
.pricing-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.price-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.price-card.popular {
    transform: scale(1.05);
    border: 2px solid #1976d2;
}
.price-card h3 { margin-bottom: 15px; color: #555; }
.price { font-size: 28px; font-weight: bold; color: #1976d2; margin-bottom: 15px; }
.price-card p { margin-bottom: 25px; color: #666; font-size: 14px; }

/* Блок директора */
.director-block {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.director-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.director-text { flex: 2; }
.director-text h2 { margin-bottom: 20px; color: #333; }
.director-text p { font-size: 16px; color: #555; }
.director-photo { flex: 1; }
.photo-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    border-radius: 8px;
}

/* Сетка услуг */
.services {
    padding: 80px 0;
    text-align: center;
    background-color: #f4f6f9;
}
.services h2 { font-size: 32px; margin-bottom: 40px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    border-left: 4px solid #d32f2f;
}
.service-item h4 { margin-bottom: 10px; color: #1976d2; }

/* Подвал */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 20px; font-size: 18px; border-bottom: 2px solid #1976d2; padding-bottom: 10px; display: inline-block;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a,.footer-col a { color: #bdc3c7; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover,.footer-col a:hover { color: #fff; }
.contacts p { margin-bottom: 10px; }
.contacts button { margin-top: 15px; }

.copyright {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}


/* =========================================
   СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ (Наша команда)
   ========================================= */

/* Шапка внутренней страницы */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('hero-bg.jpg') center/cover;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #bdc3c7;
}

/* Сетка юристов */
.team-section {
    padding: 60px 0;
    background-color: #f4f6f9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    display: flex;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-photo {
    flex: 0 0 200px; /* Ширина блока с фото */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    font-size: 18px;
}

.team-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-name {
    font-size: 22px;
    color: #1976d2;
    margin-bottom: 5px;
}

.team-spec {
    font-weight: bold;
    color: #d32f2f;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.team-desc {
    color: #555;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}


/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ЮРИСТА (Профиль)
   ========================================= */

.lawyer-profile {
    padding: 60px 0;
    background-color: #fff;
}

/* Верхняя часть профиля */
.profile-header {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    align-items: center;
}

.profile-photo-large {
    flex: 0 0 350px;
    height: 450px;
    background-color: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 1;
}

.lawyer-name {
    font-size: 40px;
    color: #333;
    margin-bottom: 10px;
}

.lawyer-title {
    font-size: 20px;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.lawyer-stats {
    list-style: none;
    margin-bottom: 25px;
    background-color: #f4f6f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.lawyer-stats li {
    margin-bottom: 10px;
    font-size: 16px;
}

.lawyer-stats li:last-child {
    margin-bottom: 0;
}

.lawyer-intro {
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

/* Нижняя часть профиля (биография и сайдбар) */
.profile-body {
    display: flex;
    gap: 50px;
    border-top: 1px solid #eee;
    padding-top: 50px;
}

.main-bio {
    flex: 2;
}

.main-bio h3 {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 20px;
    margin-top: 30px;
}

.main-bio h3:first-child {
    margin-top: 0;
}

.main-bio p {
    margin-bottom: 15px;
    color: #444;
    font-size: 16px;
}

.bio-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444;
}

.bio-list li {
    margin-bottom: 10px;
}

/* Карточки кейсов */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-card {
    background-color: #f9fafc;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.case-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Боковая панель (Сайдбар) */
.sidebar-bio {
    flex: 1;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
    display: inline-block;
}

.sidebar-widget.bg-light {
    background-color: #f4f6f9;
    padding: 25px;
    border-radius: 8px;
}

.sidebar-widget.bg-light h3 {
    border-bottom: none;
    margin-bottom: 10px;
    display: block;
}

.sidebar-widget.bg-light p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

/* Теги специализации */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

/* Форма в сайдбаре */
.quick-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.quick-form input:focus {
    outline: none;
    border-color: #1976d2;
}



/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "ПИСЬМО ДИРЕКТОРУ"
   ========================================= */

.director-contact-section {
    background-color: #f4f6f9;
}

.director-contact-wrap {
    display: flex;
    gap: 50px;
    padding: 60px 20px;
}

/* Левая колонка - Текст */
.director-message-box {
    flex: 1;
}

.message-photo-wrapper {
    margin-bottom: 25px;
}

.message-photo-placeholder {
    width: 150px;
    height: 150px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    font-size: 14px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.director-message-box h2 {
    color: #1976d2;
    margin-bottom: 20px;
    font-size: 28px;
}

.director-message-box p {
    color: #444;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.message-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444;
}

.message-list li {
    margin-bottom: 8px;
}

.director-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e4e8;
}

.director-signature strong {
    font-size: 18px;
    color: #333;
}

.director-signature span {
    display: block;
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Правая колонка - Форма */
.director-form-box {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid #d32f2f;
}

.director-form-box h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Стилизация элементов формы */
.director-form .form-group {
    margin-bottom: 20px;
}

.director-form .form-row {
    display: flex;
    gap: 20px;
}

.director-form .form-row .form-group {
    flex: 1;
}

.director-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

.director-form input[type="text"],
.director-form input[type="tel"],
.director-form input[type="email"],
.director-form select,
.director-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.director-form input:focus,
.director-form select:focus,
.director-form textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.director-form textarea {
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 13px;
    color: #666;
}


/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ПРАЙС-ЛИСТА
   ========================================= */

.price-page-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.price-intro h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.price-intro p {
    color: #555;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* Обертка для адаптивности таблицы на мобильных */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Позволяет скроллить таблицу на узких экранах */
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Сама таблица */
.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Минимальная ширина, чтобы текст не слипался */
    background-color: #fff;
}

.price-table th, 
.price-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

/* Шапка таблицы */
.price-table th {
    background-color: #1976d2;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table th:first-child {
    border-top-left-radius: 8px;
}

.price-table th:last-child {
    border-top-right-radius: 8px;
}

/* Строки с категориями */
.category-row td {
    background-color: #f4f6f9;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding-top: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1976d2;
}

/* Обычные строки */
.price-table tbody tr:not(.category-row) {
    transition: background-color 0.3s;
}

.price-table tbody tr:not(.category-row):hover {
    background-color: #f9fafc; /* Легкая подсветка при наведении */
}

.price-table td {
    color: #444;
    font-size: 15px;
}

/* Фиксированная ширина для колонок Единица и Стоимость */
.col-unit {
    width: 150px;
    white-space: nowrap;
}

.col-price {
    width: 200px;
    font-weight: bold;
    color: #d32f2f;
    white-space: nowrap;
}

/* Нижняя часть под таблицей */
.price-footer {
    text-align: center;
    padding: 30px;
    background-color: #f4f6f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.price-footer p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}




/* Адаптивность */
@media (max-width: 900px) {
    .director-contact-wrap {
        flex-direction: column;
    }
    .director-form-box {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .director-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}






/* Адаптивность для профиля */
@media (max-width: 900px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .lawyer-stats {
        text-align: left;
    }
    .profile-actions {
        justify-content: center;
    }
    .profile-body {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .profile-photo-large {
        flex: auto;
        width: 100%;
        height: 350px;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .profile-actions {
        flex-direction: column;
    }
}











/* Адаптивность для карточек юристов */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr; /* Одна колонка на планшетах */
    }
}

@media (max-width: 500px) {
    .team-card {
        flex-direction: column; /* Фото сверху, текст снизу на телефонах */
    }
    .team-photo {
        height: 250px;
        flex: auto;
    }
}




/* Адаптивность */
@media (max-width: 900px) {
    .director-content { flex-direction: column; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid, .advantages-grid { flex-direction: column; }
    .price-card.popular { transform: scale(1); }
}
@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; gap: 10px; }
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-col h4 { border-bottom: none; }
}