/* ============================================
style_mip_home.css — Главная страница МИП
============================================ */
:root {
    --primary: #00a896;       /* Бирюзовый (был синий) */
    --primary-dark: #006e6a;  /* Тёмно-бирюзовый (был тёмно-синий) */
    --accent: #008240;        /* Зелёный (без изменений) */
    --bg-light: #f7fcfb;      /* Светло-светло бирюзовый (был светло-синий) */
    --text-main: #00302e;     /* Тёмный текст (был #333) */
    --text-light: #004d4a;    /* Светлый текст (был #666) */
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

/* ============================================
ОБЩИЕ СТИЛИ СЕКЦИЙ
============================================ */
.mip-section {
    padding: 60px 0;
}
.bg-light {
    background-color: var(--bg-light);
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-family: "Inter-Bold", sans-serif;
    font-size: 36px;
    color: var(--primary);
    margin: 0;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 16px;
}

/* ============================================
СЛАЙДЕР ТОВАРОВ
============================================ */
.slider-wrapper {
    position: relative;
    max-width: 1409px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}
.slider-container {
    display: block;
    width: 100%;
}
.slider-slide {
    display: none;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}
.slider-slide.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.slider-dots {
    text-align: center;
    margin-top: 20px;
}
.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active,
.slider-dot:hover {
    background: var(--primary);
}

/* Кнопки слайдера */
.slider-wrapper .btn2 {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background-color: #e0f7f4; /* Светло-бирюзовый фон кнопок */
    color: #000;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.slider-wrapper .btn2-1 {
    right: 20px;
}
.slider-wrapper .btn2-2 {
    left: 20px;
}
.slider-wrapper .btn2:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
БЛОК УСЛУГИ
============================================ */
.services-section {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.service-img {
    /*width: 100%;*/
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.service-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-name {
    font-family: "Inter-Bold", sans-serif;
    font-size: 20px;
    color: #003330; /* Тёмно-бирюзовый заголовок */
    margin-bottom: 10px;
    min-height: 48px;
}
.service-price {
    font-family: "Inter-Medium", sans-serif;
    font-size: 22px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}
.service-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    /*transition: background 0.3s;*/
}
.service-link:hover {
    background: var(--primary-dark);
}

/* ============================================
SPLIT-СЕКЦИЯ (Новинки/Популярное + Новости)
============================================ */
.split-section {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}
.split-left {
    flex: 0 0 55%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.split-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.split-block {
    background: var(--bg-light); /* Светло-бирюзовый фон */
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.split-title {
    font-family: "Inter-Bold", sans-serif;
    font-size: 28px;
    color: #003330; /* Тёмно-бирюзовый заголовок */
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.product-mini-list,
.news-mini-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* === Карточки товаров (Новинки/Популярное) === */
.product-mini-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
.product-mini-card:hover {
    border-color: var(--primary);
    background: #ffffff;
}
.product-mini-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.product-mini-card span {
    font-family: "Inter-Medium", sans-serif;
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
}

/* === Карточки новостей === */
.news-mini-card {
    padding: 20px;
    background: #ffffff;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}
.news-mini-card .news-img-box {
    width: 100%;
    max-height: 200px;
    height: auto;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-mini-card .news-img-box img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}
.news-mini-card:hover .news-img-box img {
    transform: scale(1.05);
}
.news-mini-date {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.news-mini-title {
    font-family: "Inter-Bold", sans-serif;
    font-size: 24px;
    color: #003330; /* Тёмно-бирюзовый заголовок */
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-mini-excerpt {
    font-size: 18px;
    color: #00302e; /* Тёмный текст */
    margin: 0 0 12px 0;
    line-height: 1.6;
}
.news-read-more {
    font-size: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.news-read-more::after {
    transition: transform 0.3s ease;
}
.news-read-more:hover {
    color: var(--accent);
    text-decoration: none;
}
.news-read-more:hover::after {
    transform: translateX(5px);
}
.empty-msg {
    color: #999;
    font-size: 15px;
    text-align: center;
    padding: 20px;
}

/* ============================================
АДАПТИВНОСТЬ
============================================ */
@media (max-width: 900px) {
    .split-section {
        flex-direction: column;
    }
    .split-left,
    .split-right {
        width: 100%;
    }
    .split-block {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .split-title {
        font-size: 24px;
    }
    .product-mini-card {
        padding: 15px;
        gap: 15px;
    }
    .product-mini-card img {
        width: 75px;
        height: 75px;
    }
    .product-mini-card span {
        font-size: 16px;
    }
    .news-mini-card {
        padding: 18px;
    }
    .news-mini-card .news-img-box {
        height: 160px;
    }
    .news-mini-title {
        font-size: 17px;
    }
    .news-mini-excerpt {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .split-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    .split-block {
        padding: 18px;
        border-radius: 12px;
    }
    .split-title {
        font-size: 22px;
    }
    .product-mini-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .product-mini-card img {
        width: 100px;
        height: 100px;
    }
    .news-mini-card .news-img-box {
        height: 140px;
    }
}


/* === УБИРАЕМ ЧЁРНЫЕ БОРТИКИ И ТЕНИ У ВСЕХ КНОПОК === */
.btn2,
.service-link,
.btn-order,
.btn-primary,
.btn-search,
.btn-1,
.btn-2,
.icon-btn,
button,
input[type="submit"],
input[type="button"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Убираем тень и обводку при наведении и клике */
.btn2:hover, .btn2:focus,
.service-link:hover, .service-link:focus,
.btn-order:hover, .btn-order:focus,
.btn-primary:hover, .btn-primary:focus,
.btn-search:hover, .btn-search:focus,
.btn-1:hover, .btn-1:focus,
.btn-2:hover, .btn-2:focus,
.icon-btn:hover, .icon-btn:focus,
button:focus,
input:focus {
    box-shadow: none !important;
    outline: none !important;
}