/* ===== COMMON.CSS – единые стили для лендинга и каталога ===== */
@import url('/css/fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a2c3e;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .nav-links a, .btn {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
/*    max-width: 1280px; */
    max-width: -webkit-fill-available;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

:root {
    --primary: #0077b6;
    --primary-dark: #023e8a;
    --secondary: #00b4d8;
    --accent: #f4a261;
    --accent-dark: #e76f51;
    --light-bg: #f8fafc;
    --gray: #4b5563;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER (фиксированный) ===== */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
@media (max-width: 768px) {
    header {
        position: fixed;
        width: 100%;
    }
    body {
        padding-top: 70px;   /* компенсация высоты фиксированного header */
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.logo span {
    color: #f4a261;
    background: none;
}
.logo a {
    text-decoration: none;
    background: none;
    color: inherit;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #1e293b;
    transition: 0.2s;
    font-size: 16px;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    .logo {
        font-size: 24px;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 18px;
        background: white;
        padding: 20px 0;
        margin-top: 10px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
        font-size: 28px;
    }
    .nav-links a {
        font-size: 18px;
        font-weight: 600;
    }
}

/* ===== ФУТЕР (всегда на всю ширину) ===== */
footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 32px 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
footer .social-links a {
    color: white;
    margin: 0 12px;
    font-size: 22px;
    transition: 0.2s;
}
footer .social-links a:hover {
    color: var(--accent);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background: linear-gradient(95deg, #0077b6, #0096c7);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,119,182,0.2);
    font-size: 1rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(0,119,182,0.4);
}
.btn-accent {
    background: linear-gradient(95deg, #f4a261, #e76f51);
    box-shadow: 0 4px 12px rgba(244,162,97,0.3);
}
.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    font-family: inherit;
    transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    width: ;
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.2);
}
.checkbox-group {
    width: auto;
    text-align: left;
    margin: 15px 20px;
}
/.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    white-space: normal;
}
.checkbox-group label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: auto;
    height: auto;
}
/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}
.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 48px;
    text-align: center;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    cursor: pointer;
}

/* ===== ХЛЕБНЫЕ КРОШКИ (общие) ===== */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}
.breadcrumbs a {
    color: #0077b6;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== БРЕНДЫ ===== */
.brands-section {
    padding: 40px 0 60px;
    background: #ffffff;
}
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.brand-item {
    background: #f1f5f9;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin: 4px;
}
.brand-item:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.more-brands-toggle {
    background: #0077b6;
    color: white;
    cursor: pointer;
}
.more-brands-toggle:hover {
    background: #023e8a;
}
.hidden-brands {
    margin-top: 20px;
}

/* ===== СЕКЦИИ (общие) ===== */
section {
    padding: 30px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #f4a261);
    margin: 12px auto 0;
    border-radius: 4px;
}
.services-grid, .price-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}
.service-card, .price-card, .review-card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}
.service-card:hover, .price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}
.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}
.price-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 16px 0;
}
.price-card ul {
    text-align: left;
    list-style: none;
    margin: 20px 0;
}
.price-card li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-card li i {
    color: var(--accent);
    width: 22px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    background: var(--light-bg);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}
.feature-item i {
    font-size: 44px;
    background: linear-gradient(145deg, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}
.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ===== ОТЗЫВЫ ===== */
.review-card {
    text-align: left;
    background: #ffffff;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}
.review-header i {
    font-size: 44px;
    color: #0077b6;
}
.stars i {
    color: #ffb703;
    font-size: 14px;
}

/* ===== КОНТАКТЫ ===== */
.contact-section {
    background: linear-gradient(115deg, #ffffff 0%, #f1f9ff 100%);
}
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.contact-info {
    flex: 1;
}
.contact-form {
    flex: 1;
    background: white;
    padding: 36px;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
}
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 25px 0;
}
.info-item i {
    width: 48px;
    height: 48px;
    background: #eef2ff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

/* ===== КАРТА (адаптивная) ===== */
.map {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}
.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== ГОТОВЫЕ РЕШЕНИЯ (табы и карточки) ===== */
.solutions-section {
    padding: 40px 0 60px;
    background: #ffffff;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.tab-btn {
    background: #f1f5f9;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.tab-btn small {
    font-size: 0.7rem;
    font-weight: normal;
    display: block;
}
.tab-btn.active {
    background: linear-gradient(95deg, #0077b6, #0096c7);
    color: white;
    box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* Карточка решения – визуально идентична product-card */
.solution-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 430px;
    position: relative;
    overflow: hidden;
}
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Изображение и его контейнер */
.solution-image {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 16px;
    overflow: hidden;
    border-radius: 16px;
    margin: 10px 16px 0;
}
.solution-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    mix-blend-mode: multiply;
    object-fit: contain;
    display: block;
}

/* Бейдж бренда внутри solution-image */
.solution-card .badge.brand-badge {
    position: absolute;
    bottom: 0;
    text-align: center;
    background: #f4a261;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
}

/* Информация о товаре */
.solution-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.solution-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: #1e293b;
    text-align:center;
}

/* Цена */
.solution-price {
    text-align: center;
    margin: auto 0 0;      /* автоматически прижимает цену вниз */
    padding-bottom: 0;     /* без дополнительного отступа */
}
.solution-price .total-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #023e8a;
}
.price-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.price-note {
    font-size: 0.85rem;
    color: #6c757d;
}
.standard-mount-link {
    color: #0077b6;
    text-decoration: none;
    border-bottom: 1px dashed #0077b6;
    cursor: pointer;
}

/* Кнопка "Подробнее" */
.solution-card .btn {
    background: #0077b6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;        /* небольшой просвет между ценой и кнопкой */
    margin-bottom: 0;
    width: 100%;
    transition: all 0.2s;
}
.solution-card .btn:hover {
    background: #023e8a;
    transform: translateY(-2px);
}

/* Swiper-кнопки внутри готовых решений */
.solutions-swiper {
    position: relative;
    padding: 20px 0 50px;
}
.solutions-swiper .swiper-button-next,
.solutions-swiper .swiper-button-prev {
    position: absolute;
    top: 140px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #0077b6;
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
}
.solutions-swiper .swiper-button-prev {
    left: 10px;
}
.solutions-swiper .swiper-button-next {
    right: 10px;
}
.solutions-swiper .swiper-button-next:after,
.solutions-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: white;
}
.solutions-swiper .swiper-button-next:hover,
.solutions-swiper .swiper-button-prev:hover {
    background: #023e8a;
    transform: translateY(-50%) scale(1.05);
}

/* ===== HERO-СЕКЦИЯ ===== */
.hero {
    background: linear-gradient(120deg, #eef2ff 0%, #ffffff 100%);
    padding: 40px 0 50px;
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-content {
    flex: 1.2;
    min-width: 0;
}
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #023e8a, #0077b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.hero-image img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #f4a261;
}

/* ===== ПРИЖАТИЕ ФУТЕРА ===== */
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px;   /* место для нижней панели */
}
main {
    flex: 1;
    min-width: 0;
}

/* ===== НИЖНЯЯ ПАНЕЛЬ (bottom-nav) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 12px;
    transition: color 0.2s;
    position: relative;
}
.bottom-nav a span:first-child {
    font-size: 24px;
    margin-bottom: 4px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
    color: #0077b6;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e76f51;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== ПЛАВАЮЩАЯ КОРЗИНА (скрыта по умолчанию) ===== */
.floating-cart {
    display: none !important;
}

/* ===== ОБЩИЕ МЕДИА-ЗАПРОСЫ (мобильные) ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-grid {
        flex-direction: column-reverse;
        align-items: center;
    }
    .hero-image {
        text-align: center;
        margin-bottom: 20px;
    }
    .hero-image img {
        max-height: 160px;
        width: auto;
        object-fit: contain;
    }
    .contact-grid {
        flex-direction: column;
    }
    .solution-image {
        height: 200px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .solutions-swiper .swiper-button-next,
    .solutions-swiper .swiper-button-prev {
        top: 75px;
        width: 36px;
        height: 36px;
    }
    .solutions-swiper .swiper-button-next:after,
    .solutions-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* Для планшетов и выше панель можно не адаптировать – оставлено как есть */
@media (min-width: 769px) {
    body {
        padding-bottom: 80px;
    }
}
@media (max-width: 768px) {
    .solutions-swiper .swiper-slide {
        width: auto;
        flex-shrink: 0;
    }
}
.contact-page h1 {
    margin-bottom: 30px;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.contact-page-info h2,
.contact-page-map h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.contact-page-map .map {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}
.contact-page-map .map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}
