/* ========== БАЗОВЫЕ НАСТРОЙКИ (ИСПРАВЛЕНО) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0056b3;
    --primary-blue-dark: #004494;
    --dark-blue: #0a192f;
    --light-bg: #f4f7fa;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1rem;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ========== ШАПКА ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 14px 0;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 28px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.shop-link {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 20px;
}

.shop-link::after {
    display: none !important;
}

.shop-link:hover {
    background: var(--primary-blue-dark) !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

.phone i {
    color: var(--primary-blue);
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* ========== HERO (РАСШИРЕННАЯ ЗОНА) ========== */
.hero {
    background-image: image-set(url('../img/hero-bg.webp') type('image/webp'), url('../img/hero-bg.jpg') type('image/jpeg')); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 130px 0 280px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,25,47,0.9) 0%, rgba(10,25,47,0.7) 60%, rgba(10,25,47,0.3) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff !important;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

/* === ЧАСЫ === */
.hero-clock-wrapper {
    flex: 0 0 auto;
    margin-left: -20px;
}

.clock-dark {
    background: #ffffff;
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    min-width: 340px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: floatDiagonal 6s ease-in-out infinite;
}

@keyframes floatDiagonal {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(10px); }
}

.clock-large .clock-time {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: -1px;
}

.clock-large .clock-time .sec {
    font-size: 2.4rem;
    color: #94a3b8;
    font-weight: 600;
}

.clock-large .clock-date {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.5px;
}

.clock-large .clock-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.clock-large .clock-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Карусель */
.hero-fullwidth-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.hero-fullwidth-carousel .carousel-track {
    display: flex;
    animation: scrollProblems 35s linear infinite;
    gap: 16px;
    width: max-content;
    padding-left: 20px;
}

.hero-fullwidth-carousel .carousel-track:hover {
    animation-play-state: paused;
}

.hero-fullwidth-carousel .problem-card {
    min-width: 300px;
    max-width: 300px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-fullwidth-carousel .problem-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: var(--primary-blue);
}

.hero-fullwidth-carousel .problem-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-fullwidth-carousel .problem-text strong {
    color: var(--dark-blue);
    font-size: 0.95rem;
    line-height: 1.2;
}

.hero-fullwidth-carousel .problem-text span {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.3;
    display: block; 
}

@keyframes scrollProblems {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== ОБЪЕДИНЕННАЯ СЕКЦИЯ РЕШЕНИЙ (С РАЗМЫТЫМ ФОНОМ) ========== */
.solutions-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.solutions-section::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px; right: -100px; bottom: -100px;
    background-image: image-set(url('../img/bg-texture.webp') type('image/webp'), url('../img/bg-texture.jpg') type('image/jpeg')); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.solutions-section > .container {
    position: relative;
    z-index: 1;
}

.unified-head {
    margin-bottom: 40px;
    text-align: center;
}

/* Партнеры */
.trust-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 50px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    min-width: 150px;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(0, 86, 179, 0.15);
}

.partner-logo-box {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo-box {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.partner-card:hover .partner-logo-box img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.partner-card span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.partner-card:hover span {
    color: var(--primary-blue);
}

/* Теги нормативов */
.compact-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.compact-tags .reg-tag {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.compact-tags .reg-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.compact-tags .reg-tag:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

/* Сетка услуг */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.unified-grid .service-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--border-light);
    z-index: 1;
    height: 100%;
}

.unified-grid .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.unified-grid .service-card[data-service="monitoring"]::before {
    background-image: image-set(url('../img/services/monitoring.webp') type('image/webp'), url('../img/services/monitoring.jpg') type('image/jpeg'));
}

.unified-grid .service-card[data-service="video"]::before {
    background-image: image-set(url('../img/services/video.webp') type('image/webp'), url('../img/services/video.jpg') type('image/jpeg'));
}

.unified-grid .service-card[data-service="tacho"]::before {
    background-image: image-set(url('../img/services/tacho.webp') type('image/webp'), url('../img/services/tacho.jpg') type('image/jpeg'));
}

.unified-grid .service-card:hover::before {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.unified-grid .service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    transition: background 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.unified-grid .service-card:hover::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
}

.unified-grid .service-card h3,
.unified-grid .service-card .tagline,
.unified-grid .service-card .expand-hint,
.unified-grid .service-icon {
    position: relative;
    z-index: 2;
}

.unified-grid .service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
    transform: translateY(-5px);
}

.unified-grid .service-icon {
    width: 48px;
    height: 48px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.unified-grid .service-card:hover .service-icon {
    background: var(--primary-blue);
    color: var(--white);
}

.unified-grid .service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark-blue);
    text-transform: uppercase;
    line-height: 1.3;
}

.unified-grid .service-card .tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.unified-grid .expand-hint {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
    margin-top: auto;
}

.unified-grid .service-card:hover .expand-hint {
    gap: 10px;
}

/* ========== НОВОСТИ ========== */
.news-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
    border-color: var(--primary-blue);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.news-title {
    font-size: 1.15rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.news-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.news-link:hover {
    gap: 10px;
}

.static-news {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: var(--primary-blue);
}

/* ========== ФОРМА ЗАЯВКИ ========== */
.contact {
    padding: 80px 0 100px;
    background: var(--light-bg);
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-box h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-box > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full { margin-bottom: 20px; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-mess {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s;
}

.btn-mess.tg { background: #229ED9; }
.btn-mess.max { background: var(--primary-blue); }
.btn-mess.email { background: #10b981; }
.btn-mess:hover { transform: translateY(-2px); }

/* ✅ ВСТАВИТЬ СЮДА: Кнопка внутри поля ввода */
.input-with-button {
    position: relative;
    width: 100%;
}

.input-with-button input {
    width: 100%;
    padding-right: 50px !important; /* Место под кнопку */
}

.input-with-button .inner-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.input-with-button .inner-btn:hover {
    background: var(--primary-blue-dark);
}

/* ========== ФУТЕР ========== */
footer {
    background: var(--dark-blue);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    font-size: 1rem;
    text-align: left;
    line-height: 1.5;
}

.footer-list li i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 4px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.footer-list li a {
    color: #cbd5e1;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-list li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-list li strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Карта в подвале */
.footer-map-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-map-container iframe { border: 0; }

/* Кликабельный адрес (универсальный стиль) */
.footer-address-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto 0;
    max-width: 400px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-address-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-address-link i.fa-map-marker-alt {
    font-size: 2rem;
    color: #ef4444;
    flex-shrink: 0;
}

.footer-address-link i.fa-external-link-alt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: auto;
    opacity: 0.7;
}

.address-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.address-text strong {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.address-text span {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-tech-col {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.footer-calendar {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.footer-calendar span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    position: relative;
    padding: 4px 6px;
    border-radius: 4px;
}

.footer-calendar span.active {
    color: var(--white);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}

.footer-calendar span.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulseDay 2s infinite;
}

.footer-calendar span[data-day="1"].active::before,
.footer-calendar span[data-day="2"].active::before,
.footer-calendar span[data-day="3"].active::before,
.footer-calendar span[data-day="4"].active::before,
.footer-calendar span[data-day="5"].active::before {
    background: var(--primary-blue);
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.6);
}

.footer-calendar span[data-day="6"].active::before,
.footer-calendar span[data-day="0"].active::before {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulseDay {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.3); }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.75rem;
}

.footer-legal-links a {
    color: #64748b;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-legal-links span { opacity: 0.3; }

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.service-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.service-modal.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.service-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 2px solid var(--primary-blue);
}

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.service-modal-content .modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-content .modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.service-modal-icon {
    width: 80px; height: 80px;
    background: #eff6ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 0 auto 24px;
}

.service-modal-content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.service-modal-content .modal-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: block;
}

.service-modal-content p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-modal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.service-modal-content ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.service-modal-content ul li i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.service-modal-content ul li:last-child { border-bottom: none; }

.modal-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 32px;
}

.modal-actions .btn {
    flex: 1 1 auto;
    padding: 12px 14px;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* «Позвонить» — зелёный квадрат с трубкой */
.modal-actions .btn-call {
    flex: 0 0 48px;
    width: 48px;
    min-height: 48px;
    padding: 0;
    background: #10b981;
    color: var(--white);
    font-size: 1.15rem;
}

.modal-actions .btn-call:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========== КНОПКА МАГАЗИНА В ШАПКЕ ========== */
.header-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-shop-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* ========== ПЛАВАЮЩАЯ КНОПКА ========== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.floating-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
}

/* ========== АДАПТИВ (МОБИЛЬНАЯ ВЕРСИЯ) ========== */

@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
    .hero-clock-wrapper { 
        width: 100%; 
        max-width: 400px; 
        margin: 0 auto;
    }
    .hero-overlay { background: rgba(10,25,47,0.85); }
    
    .unified-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .footer-grid-3col {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-map-col {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 20px;
    }
    .footer-map-container { height: 250px; max-width: 100%; }
}

@media (max-width: 968px) {
    /* Шапка */
    .burger { display: block; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .main-nav.active { max-height: 400px; }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        text-align: center;
    }
    .shop-link { display: inline-block; width: 80%; margin: 0 auto; }
    .phone span { display: none; }
    .logo img { height: 45px; }
    
    /* Hero Mobile */
    .hero-clock-wrapper { display: none !important; }
    .hero-inner { flex-direction: column; text-align: center; padding-top: 20px; }
    .hero-content h1 { font-size: 2.2rem !important; line-height: 1.2; margin-bottom: 16px; }
    .hero-content p { font-size: 1rem; margin-bottom: 24px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; margin-bottom: 30px; }
    .hero-buttons .btn { width: 100%; justify-content: center; padding: 16px 20px; }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-fullwidth-carousel .problem-card { min-width: 260px; max-width: 260px; }
    
    /* Скрываем зеленую плашку и виджеты */
    .side-widget, .vertical-banner, [class*="side"][class*="widget"],
    [class*="vertical"][class*="banner"], .green-sidebar, [class*="leave-request"],
    #okdesk-widget-btn, .okdesk-widget-btn, [id*="okdesk-widget"],
    [class*="callback-widget"], [class*="chat-widget"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Услуги */
    .unified-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Футер */
    .footer-grid-3col { grid-template-columns: 1fr; gap: 40px; }
    .footer-map-col { order: 0; }
    .footer-list li { justify-content: flex-start; text-align: left; }
    .footer-calendar { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    .footer-legal-links { flex-direction: column; gap: 8px; }
    .footer-legal-links span { display: none; }
    
    /* Модалки */
    .modal-actions { flex-wrap: wrap; }
    .modal-actions .btn { flex-basis: 0; min-width: 0; white-space: normal; }
    .modal-actions .btn-call { flex: 0 0 48px; }
    .modal-actions .btn:first-child { flex-basis: 100%; }   /* «Подробнее» — строкой выше, ниже «Заказать» + трубка */
    .service-modal-content { padding: 30px 20px; }
    .service-modal-content h2 { font-size: 1.5rem; }
    .service-modal-icon { width: 60px; height: 60px; font-size: 2rem; }
    
    /* Форма */
    .form-row { grid-template-columns: 1fr; }
    
    /* Floating btn */
    .floating-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 0.9rem; }
    
    /* Кнопка магазина */
    .header-shop-btn span { display: none; }
    .header-shop-btn { padding: 10px; border-radius: 50%; }
    .header-shop-btn i { margin: 0; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    
    /* Партнеры: цветные сразу, компактнее */
    .trust-partners { gap: 16px; }
    .partner-card { min-width: auto; padding: 12px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); background: rgba(255, 255, 255, 0.9); }
    .partner-logo-box { width: 50px; height: 40px; padding: 4px; background: transparent; box-shadow: none; }
    .partner-logo-box img { filter: none !important; opacity: 1 !important; }
    .partner-card span { font-size: 0.8rem; }
    
    /* Теги: капсулы в сетке */
    .compact-tags { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; width: 100% !important; margin-bottom: 40px !important; }
    .compact-tags .reg-tag { width: 100% !important; text-align: center !important; margin: 0 !important; padding: 10px 16px !important; font-size: 0.85rem !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; border-radius: 50px !important; background: var(--white) !important; border: 1px solid #cbd5e1 !important; }
    .compact-tags .reg-tag:last-child:nth-child(odd) { grid-column: span 2 !important; }
    
    /* Новости: список */
    .news-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; margin-top: 20px !important; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); }
    .news-card { display: flex !important; flex-direction: row !important; align-items: center !important; padding: 16px 20px !important; border-radius: 0 !important; border: none !important; border-bottom: 1px solid var(--border-light) !important; box-shadow: none !important; height: auto !important; min-height: unset !important; transition: background 0.2s; }
    .news-card:last-child { border-bottom: none !important; }
    .news-card:active { background: var(--light-bg) !important; }
    .news-desc, .news-link { display: none !important; }
    .news-date { font-size: 0.75rem !important; color: var(--text-muted); margin-bottom: 0 !important; width: 80px; flex-shrink: 0; line-height: 1.3; padding-right: 15px; }
    .news-title { font-size: 0.95rem !important; margin-bottom: 0 !important; line-height: 1.4 !important; text-transform: none !important; font-weight: 600 !important; color: var(--dark-blue); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .news-card::after { content: '→'; font-size: 1.2rem; color: var(--primary-blue); margin-left: 10px; flex-shrink: 0; }
    
    /* Футер: кнопка-адрес */
    .footer-map-container { height: 200px; }
    .footer-address-link { max-width: 100%; padding: 16px; gap: 12px; }
    .footer-address-link i.fa-map-marker-alt { font-size: 1.5rem; }
}

/* ========== QWELO ONLINE HELPER (MOBILE FIX) ========== */
@media (max-width: 968px) {
    #qwelo-widget, .qwelo-widget, [class*="qwelo"], [id*="qwelo"],
    .online-helper, .chat-widget, [class*="chat"][class*="widget"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    #qwelo-widget button, .qwelo-widget button, [class*="qwelo"] button {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    }
}

/* ========== ИСПРАВЛЕНИЕ КАРТЫ В HERO СЕКЦИИ ========== */

/* Принудительно опускаем карту под весь контент Hero */
.hero iframe,
.hero [class*="map"],
.hero [id*="map"],
iframe[src*="yandex.ru/map"],
iframe[src*="maps.yandex"] {
    z-index: 1 !important;
    position: relative !important;
}

/* Поднимаем Hero контент НАД картой */
.hero-overlay,
.hero-inner,
.hero-content,
.hero-buttons,
.hero-fullwidth-carousel,
.hero-clock-wrapper {
    position: relative;
    z-index: 10 !important;
}

/* Фиксируем высоту карты и убираем растягивание */
.hero .footer-map-container,
.hero [class*="map-container"] {
    height: 250px !important;
    max-height: 250px !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero .footer-map-container iframe {
    height: 100% !important;
    width: 100% !important;
    border: none;
}

/* Убираем рекламные блоки Яндекса внутри карты */
.hero .ymaps-2-1-79-copyrights,
.hero [class*="advertising"],
.hero [class*="reklama"],
.hero [class*="ads"] {
    display: none !important;
}


/* ========== ГОЛОСОВОЙ ВВОД ========== */
.voice-input-wrapper { position: relative; width: 100%; }
.voice-input-wrapper textarea { width: 100%; padding-right: 50px !important; min-height: 120px; resize: vertical; }
.voice-btn {
    position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px;
    border-radius: 50%; background: var(--primary-blue); color: white; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.voice-btn:hover { background: var(--primary-blue-dark); transform: scale(1.1); }
.voice-btn.recording { background: #ef4444; animation: pulseMic 1.5s infinite; }
@keyframes pulseMic {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.voice-status {
    position: absolute; right: 60px; bottom: 18px; font-size: 0.8rem;
    color: var(--text-muted); opacity: 0; transition: opacity 0.3s;
    pointer-events: none; white-space: nowrap;
}
.voice-status.active { opacity: 1; }

