/* ==========================================================
   style.css
   Сайт адвокатского кабинета
   Автор: Николай Калуга
   ========================================================== */

/* ===========================
   Сброс стандартных стилей
   =========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===========================
   Основные настройки страницы
   =========================== */

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#ffffff;

    color:#333333;

    line-height:1.7;

}

/* ===========================
   Все изображения
   =========================== */

img{

    max-width:100%;

    display:block;

}

/* ===========================
   Ссылки
   =========================== */

a{

    text-decoration:none;

    transition:0.3s;

}

/* =====================================================
                       HEADER
===================================================== */

header{

    background:rgb(55,41,41);

    color:rgb(255,241,103);

    height:200px;

    width:100%;

}

/* Контейнер шапки */

.header-container{

    max-width:1200px;

    height:200px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:40px;

    padding:0 30px;

}

/* Фемида */

.header-image{

    width:110px;

    height:190px;

    flex-shrink:0;

}

.header-image img{

    width:110px;

    height:190px;

    object-fit:contain;

}

/* Правая часть */

.header-info{

    display:flex;

    flex-direction:column;

    justify-content:center;

    height:100%;

}

.header-info h2{

    font-size:22px;

    font-weight:400;

    margin-bottom:5px;

}

.header-info h1{

    font-size:38px;

    font-weight:bold;

    margin-bottom:25px;

}

/* Контакты */

.contacts{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.contact-item{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:20px;

}

.contact-item svg{

    color:rgb(255,241,103);

}

.contact-item a{

    color:rgb(255,241,103);

    font-weight:bold;

}

.contact-item a:hover{

    color:white;

}

.contact-item span{

    color:rgb(255,241,103);

}

/* =====================================================
                     MAIN
===================================================== */

main{

    max-width:1200px;

    margin:auto;

    padding:60px 30px;

}

/* =====================================================
                   Блок "Обо мне"
===================================================== */

.about h1{

    text-align:center;

    font-size:42px;

    margin-bottom:20px;

    color:#372929;

}

.about h2{

    text-align:center;

    margin-bottom:50px;

    color:#555;

    font-weight:normal;

}

/* Две колонки */

.about-content{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:50px;

    align-items:center;

}

/* Фото */

.about-photo{

    display:flex;

    justify-content:center;

}

.about-photo img{

    max-width:480px;

    width:100%;

    border-radius:12px;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

/* Текст */

.about-text{

    font-size:19px;

}

.about-text p{

    margin-bottom:22px;

}

.about-text strong{

    color:#372929;

}

.about-text h3{

    margin-top:35px;

    font-size:30px;

    color:#372929;

}

/* =====================================================
              Юридическое сопровождение
===================================================== */

.advantages{

    margin-top:90px;

}

.advantages h2{

    text-align:center;

    margin-bottom:60px;

    font-size:34px;

    color:#372929;

}

/* =====================================================
   Карточки преимуществ
   ===================================================== */

/* Сетка 2 × 2 */
.advantages-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 35px;

}

/* Карточка */

.card {

    background: #ffffff;

    border-radius: 12px;

    padding: 35px 25px;

    text-align: center;

    border: 1px solid #ececec;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    transition: transform .3s ease,
                box-shadow .3s ease;

}

/* Эффект при наведении */

.card:hover {

    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);

}

/* Изображение */

.card img {

    width: 100px;

    height: 100px;

    margin: 0 auto 20px;

    object-fit: contain;

}

/* Текст */

.card p {

    font-size: 17px;

    line-height: 1.7;

}

/* =====================================================
   Обратная связь
   ===================================================== */

.feedback {

    margin-top: 90px;

    margin-bottom: 70px;

    text-align: center;

}

.feedback h2 {

    font-size: 34px;

    color: #372929;

    margin-bottom: 25px;

}

/* =====================================================
   Подвал
   ===================================================== */

footer {

    background: rgb(55, 41, 41);

    color: rgb(255, 241, 103);

    padding: 45px 20px 25px;

}

/* Контейнер ссылок */

.footer-links {

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;

}

/* Блок */

.footer-links article {

    text-align: center;

}

/* Ссылка */

.footer-links a {

    color: rgb(255, 241, 103);

}

/* Изображение */

.footer-links img {

    margin: 0 auto 18px;

}

/* Подпись */

.footer-links p {

    font-size: 16px;

    line-height: 1.6;

}

/* Разработчик */

.developer {

    margin-top: 45px;

    text-align: center;

    font-size: 18px;

}

/* Ссылка */

.developer a {

    color: rgb(255, 241, 103);

    font-weight: bold;

}

.developer a:hover {

    color: #ffffff;

}

/* =====================================================
   Адаптация для планшетов
   ===================================================== */

@media (max-width: 992px) {

    header {

        height: auto;

        padding: 20px 0;

    }

    .header-container {

        height: auto;

        flex-direction: column;

        justify-content: center;

        gap: 20px;

        text-align: center;

    }

    .header-info {

        align-items: center;

    }

    .header-info h1 {

        font-size: 30px;

    }

    .header-info h2 {

        font-size: 22px;

    }

    .contacts {

        align-items: center;

    }

    .about-content {

        grid-template-columns: 1fr;

    }

    .about-photo {

        order: 1;

    }

    .about-text {

        order: 2;

    }

    .advantages-grid {

        grid-template-columns: 1fr;

    }

    .footer-links {

        grid-template-columns: 1fr;

    }

}

/* =====================================================
   Адаптация для смартфонов
   ===================================================== */

@media (max-width: 576px) {

    main {

        padding: 35px 20px;

    }

    .header-container {

        padding: 20px;

    }

    .header-image {

        width: 90px;

        height: auto;

    }

    .header-image img {

        width: 90px;

        height: auto;

    }

    .header-info h1 {

        font-size: 24px;

        line-height: 1.3;

    }

    .header-info h2 {

        font-size: 18px;

    }

    .contact-item {

        font-size: 17px;

        justify-content: center;

        flex-wrap: wrap;

    }

    .about h1 {

        font-size: 30px;

    }

    .about h2 {

        font-size: 22px;

    }

    .about-text {

        font-size: 17px;

    }

    .about-text h3 {

        font-size: 24px;

        text-align: center;

    }

    .advantages h2 {

        font-size: 26px;

    }

    .feedback h2 {

        font-size: 26px;

    }

    .card {

        padding: 25px 20px;

    }

    .developer {

        font-size: 16px;

    }

}
