﻿.menu__list__item {
    position: relative;
}

.header__wrapper .menu__list__item__link {
    padding-bottom: 24px;
}

ul.menu__list__submenu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
    margin: 0;
    min-width: 950px;
    position: absolute;
    background: #fff;
    padding: 20px!important;
    border-radius: 10px;
    top: 45px;
    left: -5000px;
    box-shadow: 0px -5px 14px 1px #00000030, 0px 5px 14px 2px #ffffff6e;
    pointer-events: none;
    opacity: 0;
    transition: all .3s ease;
    z-index: 100;
}

.menu__list__item:hover ul.menu__list__submenu {
    left: 0;
    opacity: 1;
    pointer-events: all;
}

a.menu__list__submenu__item__link {
    font-size: 16px;
    font-weight: 700;
    color: #035495;
    transition: all 0.3s ease-in-out;
    display: block;
    height: 100%;
}

a.menu__list__submenu__item__link:hover {
    color: #144369;
}

span.mobile-menu__list__item__link.has_child_mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-right: 20px;
    align-items: center;
}

span.mobile-menu__list__item__link.has_child_mobile a {
    width: 100%;
}

span.dropdown_mobile_button {
    transition: all .3s ease;
}

span.mobile-menu__list__item__link.has_child_mobile + .mobile-menu__submenu {
    display: none;
    padding: 15px 0 0;
    gap: 10px;
}

span.mobile-menu__list__item__link.has_child_mobile.active + .mobile-menu__submenu {
    display: flex;
    flex-direction: column;
}

span.mobile-menu__list__item__link.has_child_mobile.active span.dropdown_mobile_button {
    transform: rotate(180deg);
}

a.mobile-menu__submenu__item__link {
    height: 100%;
    width: 100%;
    display: block;
}

@media screen and (max-width: 580px) {
    .header__wrapper .header-info__contact-block__call-btn .make-call {
        font-size: 12px;
        display: flex;
        width: auto;
        align-items: center;
    }
}

.breadcrumbs {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

h1.text-block__title {
    margin-left: 0;
}

p.p_flex_buttons {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
}

p.p_flex_buttons a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    p.p_flex_buttons {
        flex-wrap: wrap;
    }

    p.p_flex_buttons a.btn {
        width: calc(50% - 2px);
    }
}
/*Блок с плиткой услуг*/
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 5px;
}

.service-tile {
    border: 1px solid #025494;
    background: white;
    border-radius: 12px;
    padding: 5px 5px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Эффекты при наведении */
.service-tile:hover {
   border: 2px solid #8bc8ff;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

/* Активные тени */
.service-tile:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Градиентная подложка */
.service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
rgba(26, 115, 232, 0.1) 0%, 
rgba(26, 115, 232, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.service-tile:hover::before {
    opacity: 1;
}

/* Стилизация иконок */
.service-tile i {
    font-size: 2.6em;
    margin-bottom: 1px;
    color: #1a73e8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Стилизация текста */
.service-tile span {
    font-weight: 600;
    color: #025494;
    font-size: 1.15em;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Адаптация под мобильные */
@media (max-width: 1024px) {
    .service-grid {
grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-grid {
grid-template-columns: 1fr;
gap: 20px;
    }
    
    .service-tile {
padding: 25px 15px;
min-height: 50px;
    }
}

/* Кастомный список */
.info__wrapper__text-block li::before {

    
    margin-right: 5px;
    margin-top: 5px;
    content: "";
    display: inline-block; 
    width: 1em;
    height: 1em;

    
    background-image: url( "../img/check-mark.svg" );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Текст контента */
.content-text p, li {
    font-size: 16px;
}

/* Скрываем ячейки с пустыми ссылками в плитке услуг*/
.service-tile:has(a[href=""], a[href="#"]) {
    display: none;
}

/*Секция "Адвокат незаменим"*/
.features-section {
    padding: 60px 20px;
    background: #ffffff;
}

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

.section-title {
    color: #152d5b;
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #152d5b;
    margin: 20px auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(4, 84, 147, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(4, 84, 147, 0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #d1d1d1;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-1 { background-image: url('../img/travel.svg'); } /* Указать путь к иконке */
.icon-2 { background-image: url('../img/baby-stroller.svg'); } /* Указать путь к иконке */
.icon-3 { background-image: url('../img/divorce-certificate.svg'); } /* Указать путь к иконке */
.icon-4 { background-image: url('../img/money-trade.png'); } /* Указать путь к иконке */
.icon-5 { background-image: url('../img/worker.png'); } /* Указать путь к иконке */

.card-title {
    color: #152d5b;
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
}

.card-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #152d5b;
}

.card-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.card-text ul {
    list-style: none;
    padding-left: 20px;
}

.card-text li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.card-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #152d5b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Кастомный список  */
.content-text ul li::before {

    
    margin-right: 5px;
    margin-top: 5px;
    content: "";
    display: inline-block; 
    width: 1em;
    height: 1em;

    
    background-image: url( "../img/check-mark.svg" );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


/* Контейнер "Чем поможет юрист" стили */

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
}
.icon-service {
    margin: auto;
    display: block;
    padding: 15px;

}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #34495e;
}

.service-description {
  font-size: 0.9rem;
  color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}
/* Контейнер "Чем поможет юрист" стили конец */