/* 1. Базовые настройки (увеличены базовые размеры) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%; /* 1rem = 10px → легко масштабировать */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6; /* Уплотнённый межстрочный интервал */
    color: #ffffff;
    background-color: #f5f7fa;
    min-height: 100vh;
    font-size: 2.0rem; /* Базовый размер текста: 11.25px → 18px при 1rem=16px */
}

/* 2. Контейнер (увеличены отступы) */
.container {
    text-align: center;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px; /* Увеличены отступы по бокам */
}

/* 3. Шапка */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0; /* Больше отступа сверху/снизу */
}

.logo h1 {
    margin: 0;
    font-size: 2.8rem; /* Крупный заголовок */
    font-weight: 700;
}

.logo span {
    display: block;
    font-size: 1.4rem;
    opacity: 0.9;
    margin-top: 8px;
}

#mainNav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px; /* Больше пространства между пунктами */
    margin-top: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem; /* Крупнее текст меню */
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* 4. Модальное окно (увеличены все размеры) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px; /* Более скруглённые углы */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    padding: 40px; /* Больше внутренних отступов */
}

.close {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 28px; /* Крупный крестик */
    color: #888;
    cursor: pointer;
    font-weight: 300;
}

/* Контейнер для контактов внизу вкладки */
.contact-footer {
  background-color: #2c3e50; /* Цвет фона (тёмно-синий) */
  color: white;
  padding: 20px;
  margin-top: 150px;
  width: 100%;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

/* Заголовок */
.contact-footer h4 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  color: #3498db; /* Голубой акцент */
}

/* Список контактов */
.contact-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-footer li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Жирный текст для меток */
.contact-footer strong {
  color: #ecf0f1;
}

.close:hover {
    color: #333;
}

/* 5. Форма внутри модального окна */
.modal-content h3 {
    text-align: center;
    margin: 0 0 36px 0;
    font-size: 2.4rem; /* Крупный заголовок формы */
    color: #2c3e50;
    font-weight: 700;
}

.form-group {
    margin-bottom: 28px; /* Больше пространства между полями */
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.2rem; /* Крупнее подписи */
    color: #444;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px; /* Крупные поля ввода */
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: 16px;
}

/* 6. Кнопка отправки */
.btn-submit {
    display: block;
    width: 100%;
    padding: 20px 0;
    background-color: #27ae60;
    color: white;
    font-size: 1.3rem; /* Крупный текст кнопки */
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 0.8px;
    margin-top: 16px;
}

.btn-submit:hover {
    background-color: #219653;
    transform: translateY(-3px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 7. Сообщение об успехе */
.success-message {
    display: none;
    text-align: center;
    padding: 18px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 10px;
    margin: 24px 0 0 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 8. Обязательные поля */
label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 9. Валидация форм */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
    animation: shake 0.6s ease-in-out;
}

input:valid,
textarea:valid {
    border-color: #27ae60;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}


/* 11. Стили для секций контента */
.section {
    padding: 60px 0; /* Увеличены отступы сверху/снизу */
}

.section h2 {
    font-size: 2.6rem;
    margin-bottom: 32px;
    color: #ffffff;
    line-height: 1.3;
}

.section h3 {
    font-size: 2.2rem;
    margin-bottom: 28px;
    color: #ffffff;
    line-height: 1.3;
    margin-top: -10px;
}

.section p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 12. Стили для блока «Об адвокате» */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Для мобильных */
    gap: 40px;
    align-items: flex-start;
}

.qualifications li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    line-height: 2;
    position: relative; /* важно для позиционирования */
}

.qualifications li::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%23eafbf5"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="%2327ae60"/></svg>') no-repeat center;
  background-size: contain;
}




/* 13. Стили для сетки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Увеличен отступ между карточками */
}

.service-card {
    background-color: rgb(161, 227, 245);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.service-card h4 {
    margin: 0 0 16px 0;
    color: #384f66;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* 14. Стили для примеров дел */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.case-item {
    background-color: #f8f9fa;
    border-left: 5px solid #3498db;
    padding: 20px 24px;
    border-radius: 10px;
    transition: border-left-color 0.3s, transform 0.3s;
}

.case-item:hover {
    border-left-color: #2980b9;
    transform: translateX(4px);
}

.case-item h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.case-item p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* 15. Стили для контактов */
.contact-info {
    max-width: 520px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 22px;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
}

.contact-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 16. Стили кнопки в основном контенте */
.btn {
    display: inline-block;
    padding: 18px 36px;
    background-color: #6ea5dc;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.4s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* 17. Дополнительные типографические стили */
ul, ol {
    margin-left: 28px;
    margin-bottom: 24px;
}

li {
    margin-bottom: 14px;
    font-size: 1.1rem;
    line-height: 1.6;
}

blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid #3498db;
    background-color: #f0f7ff;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

/* 18. Стили для футера */
.footer {
    padding: 60px 0 40px; /* отступ снизу 40 px */
    background-color: #1a1a1a; /* тёмный фон */
    color: #fff;
    clear: both; /* предотвращаем наложение */
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 1.1rem;
}

    .social-links {
        display: flex;
        gap: 16px;
        margin-top: 16px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #34495e;
        border-radius: 50%;
        color: white;
        font-size: 1.1rem;
        transition: all 0.3s;
    }

    .social-links a:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
    }

    .copyright {
        text-align: center;
        padding: 24px 0;
        color: #bdc3c7;
        font-size: 0.95rem;
        border-top: 1px solid #34495e;
        margin-top: 40px;
    }

/* 19. Специальные состояния и эффекты */
.btn:focus,
.btn-submit:focus,
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

.btn:active,
.btn-submit:active {
    transform: translateY(1px);
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.tildacdn.com/tild6538-6536-4733-a331-633339623730/572.jpg'); /* Укажите путь к изображению */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* Уходит под контент */
  filter: brightness(0.6); /* Затемнение */
  transition: filter 0.5s ease;
}

/* Дополнительно: плавное изменение затемнения при наведении */
body .background-overlay {
  filter: brightness(0.4);
}

/* 1. Изменяем footer */
.footer {
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный темный фон */
    color: #fff; /* Белый цвет текста для лучшей читаемости */
    padding: 40px 0 20px;
    margin-top: 200px;
    margin-bottom: -50px;
    position: relative; /* Для позиционирования */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.9)
    );
    z-index: -1;
}

/* Убираем маркеры в списках футера */
.footer ul,
.footer ol {
    list-style: none;
    padding-left: 0; /* Убираем отступ слева */
}

/* Дополнительно можно стилизовать пункты списка */
.footer li {
    margin-bottom: 10px; /* Добавляем отступ между пунктами */
    padding-left: 0; /* Убираем дополнительный отступ */
}

/* Если нужно стилизовать конкретные списки в футере */
.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin-bottom: 10px;
    padding-left: 0;
}

/* Для социальных ссылок */
.social-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 16px;
    margin-top: 16px;
}


/* 2. Изменяем header */
.header {
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный темный фон */
    color: #fff; /* Белый цвет текста */
    padding: 5px 0;
    margin-bottom: 10px;
}

/* 3. Делаем footer всегда внизу страницы */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto; /* Растягивает контент до footer */
}

/* 4. Обновляем стили для элементов footer */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: #fff; /* Белый цвет заголовков */
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #fff; /* Белый цвет текста */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #999; /* Светло-серый при наведении */
    text-decoration: underline;
}

/* 5. Обновляем стили для социальных иконок */
.social-links a {
    background-color: rgba(0, 0, 0, 0.5); /* Темный полупрозрачный фон */
    color: #fff;
}

.social-links a:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 6. Обновляем copyright */
.copyright {
    text-align: center;
    padding: 24px 0;
    color: #999; /* Светло-серый цвет */
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 40px;
}


.section.about {
    padding-top: 20px; 
}

.section {
    padding-top: 10px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* Расстояние между фото и текстом */
    justify-content: space-between; /* Распределить элементы по краям */
    width: 100%; /* Занимает всю доступную ширину */
    padding: 0 20px; /* Добавляем отступы по бокам */
    margin-top: -30px
}

.about-content .text-about {
    margin-top: 50px;
}

.about-content h3 {
    text-align: left;
    margin-bottom: 10px;
    width: 100%;
    margin-top: 0px
}

.profile-img {
    width: 40%; /* Ширина фото относительно контейнера */
    max-width: 500px; /* Максимальная ширина */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 5px solid #30383d;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
    margin-left: -100px; /* Сдвигаем фото левее */
    margin-top: -10px
}

.about-content > div {
    margin-top: 10px;
    flex: 1; /* Текст занимает оставшееся пространство */
    text-align: left;
    width: 55%; /* Ширина текстового блока */
    margin-right: -40px; /* Сдвигаем текст правее */
}

/* Стили для текста об адвокате */
.about-content p {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

a {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
  }

.case-item a:hover {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
  }
  @media (max-width: 768px) {
    /* 1. Контейнер */
    .container {
        width: 95%;
        padding: 0 15px;
    }

    /* 2. Шапка */
    .header {
        padding: 8px 0;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .logo span {
        font-size: 1.2rem;
        margin-top: 6px;
    }

    #mainNav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
        padding-left: 0;
        list-style: none;
    }

    .nav-link {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
        padding: 8px 0;
    }

    /* 3. Модальное окно */
    .modal-content {
        padding: 24px;
        width: 90%;
        border-radius: 16px;
        max-width: none;
    }

    .modal-content h3 {
        font-size: 2rem;
        margin: 0 0 24px 0;
    }

    .close {
        right: 16px;
        top: 16px;
        font-size: 24px;
    }

    /* 4. Форма внутри модального окна */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 1.1rem;
    }

    .btn-submit {
        font-size: 1.2rem;
        padding: 16px 0;
    }

    /* 5. Блок «Об адвокате» */
    .about-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
        margin-top: -10px;
    }

    .profile-img {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
        border: 3px solid #30383d;
    }

    .about-content > div {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .about-content h3 {
        text-align: center;
        margin-bottom: 15px;
    }

    .about-content p {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .qualifications li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    line-height: 2;
    position: relative;
    }

    .qualifications li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%23eafbf5"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="%2327ae60"/></svg>') no-repeat center;
    background-size: contain;
    }

    /* 6. Сетка услуг */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
        border-radius: 12px;
    }

    .service-card h4 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    /* 7. Примеры дел */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-item {
        padding: 16px 20px;
        border-radius: 8px;
    }

    .case-item h4 {
        font-size: 1.2rem;
    }

    .case-item p {
        font-size: 1rem;
    }

    /* 8. Контакты */
    .contact-info {
        max-width: 100%;
        padding: 0 10px;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    /* 9. Футер */
    .footer {
        padding: 40px 0 30px;
        margin-top: 100px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.4rem;
        text-align: center;
    }

    .footer-section p,
    .footer-section a {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 8px;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.9rem;
        padding: 16px 0;
    }

    /* 10. Дополнительные секции */
    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }

    .section h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .section p {
        font-size: 1.3rem;
    }

    /* 11. Кнопка в основном контенте */
    .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        width: 100%;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    }

    /* 12. Блок контактов внизу вкладки */
    .contact-footer {
        padding: 16px;
        margin-top: 80px;
    }

    .contact-footer h4 {
        font-size: 1.2rem;
        margin: 0 0 12px 0;
    }

    .contact-footer li {
        margin-bottom: 8px;
    }

    /* 13. Типографика */
    blockquote {
        padding: 16px 20px;
        font-size: 1rem;
    }

    ul, ol {
        margin-left: 16px;
        margin-bottom: 16px;
    }

    li {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 500px) {
  /* 1. Контейнер */
  .container {
    width: 100%;
    padding: 0 10px; /* Минимальные отступы по краям */
  }

  /* 2. Шапка */
  .header {
    padding: 6px 0; /* Уменьшаем вертикальные отступы */
  }

  .logo h1 {
    font-size: 1.8rem; /* Ещё меньше заголовок */
    text-align: center;
  }

  .logo span {
    font-size: 1rem; /* Уменьшаем подзаголовок */
    margin-top: 4px;
    text-align: center;
  }

  #mainNav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Меньше пространства между пунктами */
    margin-top: 8px;
    padding-left: 0;
    list-style: none;
  }

  .nav-link {
    font-size: 1rem; /* Текст меню чуть меньше */
    text-align: center;
    width: 100%;
    padding: 6px 0;
  }

  /* 3. Модальное окно */
  .modal-content {
    padding: 20px; /* Уменьшаем внутренние отступы */
    width: 95%; /* Почти на всю ширину */
    border-radius: 12px; /* Менее скруглённые углы */
    max-width: none; /* Снимаем ограничение по ширине */
  }

  .modal-content h3 {
    font-size: 1.8rem; /* Уменьшаем заголовок формы */
    margin: 0 0 20px 0;
  }

  .close {
    right: 12px;
    top: 12px;
    font-size: 22px; /* Уменьшаем крестик */
  }

  /* 4. Форма внутри модального окна */
  .form-group {
    margin-bottom: 16px; /* Меньше пространства между полями */
  }

  .form-group label {
    font-size: 1rem; /* Подписи чуть меньше */
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px; /* Поля ввода компактнее */
    font-size: 1rem;
  }

  .btn-submit {
    font-size: 1.1rem; /* Текст кнопки меньше */
    padding: 14px 0; /* Отступы кнопки */
  }

  .success-message {
    padding: 12px; /* Меньше отступы в сообщении */
    font-size: 1rem; /* Размер текста */
  }

  /* 5. Блок «Об адвокате» */
  .about-content {
    flex-direction: column;
    gap: 15px; /* Меньше расстояния между фото и текстом */
    padding: 0 5px; /* Минимум отступов */
    margin-top: -5px;
  }

  .profile-img {
    width: 100%; /* Фото на всю ширину */
    max-width: 250px; /* Ограничиваем максимальную ширину */
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    border: 2px solid #30383d; /* Тоньше рамка */
  }

  .about-content > div {
    width: 100%;
    margin-right: 0;
    text-align: center;
    padding: 0 5px; /* Отступы для текста */
  }

  .about-content h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.6rem; /* Заголовок раздела */
  }

  .about-content p {
    font-size: 1.2rem; /* Текст чуть меньше */
    margin-bottom: 12px;
  }

  .qualifications li {
    text-align: left;
    margin-bottom: 12px;
    font-size: 1.2rem; /* Список меньше */
    line-height: 1.8;
  }

  .qualifications li::before {
    left: -30px; /* Сдвигаем маркер ближе */
    top: 3px;
  }

  /* 6. Сетка услуг */
  .services-grid {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 15px; /* Меньше расстояния */
  }

  .service-card {
    padding: 16px; /* Компактнее карточки */
    border-radius: 8px; /* Менее скруглённые */
  }

  .service-card h4 {
    font-size: 1.2rem; /* Заголовки меньше */
  }

  .service-card p {
    font-size: 0.95rem; /* Текст меньше */
  }

  /* 7. Примеры дел */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 12px; /* Ещё компактнее */
  }

  .case-item {
    padding: 12px 16px; /* Меньше отступов */
    border-radius: 6px; /* Углы менее скруглённые */
  }

  .case-item h4 {
    font-size: 1.1rem; /* Заголовки чуть меньше */
  }

  .case-item p {
    font-size: 0.95rem; /* Текст компактнее */
  }

  /* 8. Контакты */
  .contact-info {
    max-width: 100%;
    padding: 0 5px; /* Минимум отступов */
  }

  .contact-info p {
    font-size: 1rem; /* Текст контактов меньше */
    margin-bottom: 14px;
  }

  /* 9. Футер */
  .footer {
    padding: 30px 0 20px; /* Меньше вертикальных отступов */
    margin-top: 60px; /* Меньше отступа сверху */
  }

  .footer-content {
    grid-template-columns: 1fr; /* Одна колонка в футере */
    gap: 20px; /* Компактные расстояния */
  }

  .footer-section h4 {
    font-size: 1.3rem; /* Заголовки футера меньше */
    text-align: center;
  }

  .footer-section p,
  .footer-section a {
    font-size: 1rem; /* Текст футера */
    text-align: center;
    margin-bottom: 6px;
  }

  .social-links {
    justify-content: center;
    gap: 10px; /* Ближе иконки */
  }

  .social-links a {
    width: 32px; /* Иконки меньше */
    height: 32px;
    font-size: 0.9rem; /* Текст внутри иконок */
  }

  .copyright {
    font-size: 0.85rem; /* Самый мелкий текст копирайта */
    padding: 12px 0; /* Меньше отступов */
  }

  /* 10. Основные секции контента */
  .section {
    padding: 30px 0; /* Меньше отступов у секций */
  }

  .section h2 {
    font-size: 1.8rem; /* Крупные заголовки */
    margin-bottom: 20px;
  }

  .section h3 {
    font-size: 1.5rem; /* Средние заголовки */
    margin-bottom: 16px;
  }

  .section p {
    font-size: 1.2rem; /* Основной текст */
  }

  /* 11. Кнопка в основном контенте */
  .btn {
    padding: 12px 24px; /* Компактная кнопка */
    font-size: 1rem; /* Текст кнопки */
    width:  100%; /* На всю ширину */
  }

  /* 12. Типографика */
  ul, ol {
    margin-left: 16px; /* Меньше отступ слева */
    margin-bottom: 16px;
  }

  li {
    margin-bottom: 8px; /* Компактнее список */
    font-size: 1rem; /* Размер текста */
    line-height: 1.5;
  }

  blockquote {
    margin: 16px 0; /* Меньше отступов */
    padding: 12px 16px; /* Компактные отступы */
    border-left: 3px solid #3498db; /* Тоньше линия */
    font-size: 0.95rem; /* Текст цитаты */
  }

  /* 13. Стили для блока контактов внизу вкладки */
  .contact-footer {
    padding: 16px; /* Меньше внутренних отступов */
    margin-top: 60px; /* Уменьшаем отступ сверху */
    border-radius: 6px; /* Менее скруглённые углы */
  }

  .contact-footer h4 {
    font-size: 1.2rem; /* Заголовок меньше */
    margin: 0 0 10px 0;
  }

  .contact-footer li {
    margin-bottom: 8px; /* Ближе пункты списка */
  }

  /* 14. Стили для примеров дел (дополнительно) */
  .case-item:hover {
    transform: none; /* Убираем смещение при наведении — может мешать на маленьких экранах */
  }

  /* 15. Дополнительные корректировки для форм */
  .form-group textarea {
    min-height: 80px; /* Меньше высота текстового поля */
    padding-top: 10px;
  }

  /* 16. Стили для кнопок в контенте */
  .btn:hover {
    transform: none; /* Отключаем подъём кнопки — может вызывать проблемы на сенсорных экранах */
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2); /* Оставляем тень */
  }

  /* 17. Корректировка модального окна при фокусе */
  .btn-submit:focus,
  .nav-link:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5); /* Меньше радиус фокуса */
  }

  /* 18. Оптимизация сетки */
  .about-content {
    align-items: stretch; /* Растягиваем элементы по высоте */
  }

  .text-about {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  /* 19. Корректировка футера */
  .footer-section {
    text-align: center; /* Центрируем содержимое секций футера */
  }

  .footer-bottom {
    font-size: 0.8rem; /* Мелкий текст в подвале */
    padding-top: 12px;
  }

  /* 20. Оптимизация для очень узких экранов */
  body {
    font-size: 1.8rem; /* Базовый размер текста — сохраняем читаемость */
  }

  html {
    font-size: 75%; /* Немного уменьшаем базовый размер шрифта */
  }

  /* 21. Корректировка заголовков секций */
  .section h2 {
    line-height: 1.2; /* Уплотняем строки */
  }

  .section h3 {
    line-height: 1.2;
  }

  /* 22. Оптимизация навигации */
  #mainNav {
    text-align: center;
  }

  /* 23. Корректировка валидации форм */
  input:invalid:not(:placeholder-shown),
  textarea:invalid:not(:placeholder-shown) {
    animation: none; /* Отключаем анимацию тряски — может раздражать на мобильных */
    border-color: #e74c3c;
  }

  /* 24. Оптимизация социальных ссылок */
  .social-links {
    flex-wrap: wrap; /* Разрешаем перенос иконок */
    justify-content: center;
  }

  .social-links a {
    margin: 4px; /* Добавляем небольшие отступы между иконками */
  }
}