/* ============================================
   Палитра - как в calloffice.css (лендинг «Водоканал»)
   ============================================ */
:root {
    --primary-blue: #1a5f9e;
    --primary-dark: #0d4a7a;
    --accent-orange: #fc9f25;
    --accent-hover: #e58a1c;
    --accent-green: #28a745;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

body {
    font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary-blue); }
a { color: var(--primary-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-orange); }

section { padding: 100px 0; }

.section-title { text-align: center; font-size: 36px; margin-bottom: 18px; color: var(--primary-blue); }
.section-lead { text-align: center; font-size: 18px; color: var(--text-gray); max-width: 760px; margin: 0 auto 50px; }

/* Появление блоков при скролле (как calloffice.js).
   Скрытие включается только при работающем JS (класс js на html): без скриптов контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-hover)) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(252,159,37,0.4);
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252,159,37,0.5);
    background: linear-gradient(135deg, var(--accent-hover), #d47b10) !important;
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15) !important; border-color: #fff !important; color: #fff !important; }
.btn-white {
    background: #fff !important;
    border: 2px solid #fff !important;
    color: var(--primary-blue) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-white:hover { background: rgba(255,255,255,0.85) !important; border-color: rgba(255,255,255,0.85) !important; transform: translateY(-2px); }
.btn-outline-primary {
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-outline-primary:hover { background: var(--primary-blue) !important; color: #fff !important; }

/* Шапка */
.navbar { height: 70px; backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 0; }
.navbar-brand { font-size: 26px; font-weight: 800; color: var(--primary-blue) !important; }
.navbar-brand span { color: var(--accent-orange); }
.header-phone a { color: var(--text-dark); font-weight: 600; font-size: 18px; text-decoration: none; }
.header-phone a:hover { color: var(--accent-orange); }
.nav-link { color: var(--text-dark) !important; font-weight: 500; padding: 8px 11px !important; transition: var(--transition); }
.nav-link:hover { color: var(--accent-orange) !important; }
.header-phone { white-space: nowrap; }
.navbar .btn { white-space: nowrap; }

/* Герой */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; top: -150px; right: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(252,159,37,0.2), transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.2; }
.hero h1 .text-accent { color: var(--accent-orange); }
.hero-subtitle { font-size: 20px; opacity: 0.92; margin-bottom: 30px; }
.hero-list { list-style: none; padding: 0; margin-bottom: 35px; }
.hero-list li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 18px; }
.hero-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(252,159,37,0.2); margin-right: 12px; flex-shrink: 0;
}
.hero-icon i { color: var(--accent-orange); font-size: 18px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-buttons .btn { min-width: 210px; }
.trust-badges { display: flex; gap: 30px; flex-wrap: wrap; }
.badge-item { text-align: left; min-width: 110px; }
.badge-item strong { display: block; font-size: 30px; color: var(--accent-orange); font-weight: 800; line-height: 1.1; }
.badge-item span { font-size: 15px; opacity: 0.8; }

/* Скриншот окна «Управление» - как hero-image на лендинге «Водоканал» */
.hero-image {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

/* Клик по скриншоту открывает увеличенный вид в модальном окне */
.hero-shot { display: block; cursor: zoom-in; }
.hero-shot:hover .hero-image,
.hero-shot:focus-visible .hero-image { box-shadow: 0 22px 60px rgba(0,0,0,0.6); transform: translateY(-2px); }
.hero-image { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.shot-hint {
    margin: 14px 0 0; text-align: center; font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.shot-modal .modal-dialog { max-width: 1100px; }
.shot-modal .modal-content {
    background: #10161d; border: none; border-radius: var(--radius); overflow: hidden;
}
.shot-modal .modal-header { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 14px 20px; }
.shot-modal .modal-title { color: #fff; font-size: 17px; }

/* Картинка по центру модалки: и по горизонтали, и по вертикали */
.shot-modal .modal-body {
    padding: 0; background: #10161d;
    display: flex; align-items: center; justify-content: center;
}
.shot-modal .modal-body img {
    display: block; margin: 0 auto;
    width: 100%; height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

@media (max-width: 575px) {
    .shot-modal .modal-dialog { margin: 10px; }
    .shot-modal .modal-body img { max-height: calc(100vh - 100px); }
}

/* Демо-звук */
.hero-audio {
    margin-top: 50px; background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px); border-radius: var(--radius);
    padding: 25px 30px; border: 1px solid rgba(255,255,255,0.15); text-align: center;
}
.hero-audio h3 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.hero-audio-players { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.hero-audio-players .audio-player { flex: 1; max-width: 400px; min-width: 260px; }
.audio-label { font-size: 16px; margin-bottom: 8px; opacity: 0.9; color: #fff; }
.audio-player audio { width: 100%; }

/* Проблемы */
.problem-card {
    border: none; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    border-top: 4px solid #e74c3c; transition: var(--transition); overflow: hidden; height: 100%;
}
.problem-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.problem-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(231,76,60,0.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.problem-icon i { font-size: 26px; color: #e74c3c; }
.problem-card .card-title { font-size: 18px; color: var(--text-dark); margin-bottom: 10px; }
.problem-card .card-text { color: var(--text-gray); font-size: 16px; }

/* Возможности */
.feature-card {
    border: 2px solid var(--border-color); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; background: #fff;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.feature-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon i { font-size: 30px; color: #fff; }
.feature-card .card-title { font-size: 19px; color: var(--text-dark); margin-bottom: 12px; }
.feature-card .card-text { color: var(--text-gray); font-size: 16px; }

/* Сценарии */
.scenario-card {
    border: 2px solid var(--border-color); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; background: #fff;
}
.scenario-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.scenario-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.scenario-icon i { font-size: 30px; color: #fff; }
.scenario-card .card-body, .feature-card .card-body { display: flex; flex-direction: column; height: 100%; }
.scenario-card .result-box { margin-top: auto; }
.scenario-card .card-title { font-size: 20px; color: var(--text-dark); margin-bottom: 15px; }
.scenario-list { list-style: none; padding: 0; margin-bottom: 20px; }
.scenario-list li { padding: 6px 0 6px 20px; position: relative; color: var(--text-gray); font-size: 16px; }
.scenario-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-green); font-weight: bold; }
.result-box {
    background: linear-gradient(135deg, rgba(26,95,158,0.08), rgba(252,159,37,0.08));
    border-radius: 8px; padding: 15px; text-align: center; font-size: 17px;
    color: var(--text-dark); border: 1px solid rgba(26,95,158,0.15);
}
.result-box strong { color: var(--accent-orange); font-size: 20px; }

/* Полоса цифр */
.stats-section { background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); padding: 80px 0; }
.stat-number { font-size: 54px; font-weight: 800; color: var(--accent-orange); line-height: 1.1; margin-bottom: 8px; }
.stat-label { font-size: 17px; color: rgba(255,255,255,0.85); }

/* Таблицы */
.comparison-table, .spec-table { border-radius: var(--radius); overflow: hidden; }
/* Шапка таблиц: Bootstrap 5 красит ячейки своим --bs-table-bg, поэтому цвет задаём на th */
.comparison-table thead th, .spec-table thead th { background: var(--primary-blue) !important; color: #fff !important; font-weight: 600; padding: 15px 20px; border: none !important; font-size: 17px; }
.comparison-table tbody .calloffice-col, .spec-table tbody .calloffice-col { background: rgba(252,159,37,0.07) !important; border-left: 3px solid var(--accent-orange); border-right: 3px solid var(--accent-orange); }
.comparison-table tbody td, .spec-table tbody td { padding: 14px 20px; vertical-align: middle; font-size: 16px; }
.spec-note { font-size: 15px; color: var(--text-light); margin-top: 16px; }

/* Блок «честно о статусе» */
.beta-box {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    border-left: 6px solid var(--accent-orange); padding: 34px 38px;
}
.beta-box h3 { font-size: 24px; margin-bottom: 14px; }
.beta-box ul { margin: 0; padding-left: 20px; color: var(--text-gray); font-size: 17px; }
.beta-box li { margin-bottom: 8px; }

/* COServer */
.server-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: var(--radius); color: #fff; padding: 44px;
}
.server-box h3 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.server-box p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 8px; }
.server-box .server-tag {
    display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(252,159,37,0.2); color: var(--accent-orange);
    border-radius: 30px; padding: 5px 14px; margin-bottom: 18px; font-weight: 600;
}
.server-highlight {
    margin-top: 22px; padding: 26px 30px; border-radius: var(--radius);
    background: rgba(255,255,255,0.08); border-left: 4px solid var(--accent-orange);
}
.server-highlight h4 { color: #fff; font-size: 21px; margin-bottom: 12px; }
.server-highlight h4 i { color: var(--accent-orange); margin-right: 8px; }
.server-highlight p { font-size: 16px; margin-bottom: 8px; }
.server-highlight p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-accordion { max-width: 860px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--border-color) !important; border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--text-dark) !important; font-size: 18px; padding: 18px 24px; background: #fff !important; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: rgba(26,95,158,0.05) !important; color: var(--primary-blue) !important; box-shadow: inset 0 -1px 0 var(--border-color) !important; }
.accordion-button::after { font-size: 26px; color: var(--accent-orange); content: '+'; background-image: none !important; width: auto; height: auto; transform: none; font-weight: 300; transition: var(--transition); }
.accordion-button:not(.collapsed)::after { content: '\2212'; background-image: none !important; transform: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(26,95,158,0.15) !important; border-color: var(--primary-blue) !important; }
.accordion-body { padding: 18px 24px; color: var(--text-gray); font-size: 17px; line-height: 1.7; }

/* Контакты */
.contact-section { background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); color: #fff; }
.contact-section .section-title { color: #fff; }
.contact-form-box { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); color: var(--text-dark); }
.contact-form-box .form-label { font-weight: 600; color: var(--text-dark); font-size: 16px; }
.contact-form-box .form-control { border-radius: 8px; border: 1px solid var(--border-color); padding: 10px 14px; font-size: 16px; transition: var(--transition); }
.contact-form-box .form-control:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26,95,158,0.15); }
.form-consent { font-size: 14px; color: var(--text-light); text-align: center; margin-top: 12px; margin-bottom: 0; }
.contact-info-box { padding: 30px 0; }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.contact-info-item > i { font-size: 26px; color: var(--accent-orange); margin-right: 15px; margin-top: 3px; width: 30px; text-align: center; }
.contact-info-item strong { display: block; font-size: 16px; margin-bottom: 4px; opacity: 0.8; }
.contact-info-item a { color: #fff; font-size: 20px; font-weight: 600; }
.contact-info-item a:hover { color: var(--accent-orange); }
.contact-info-item span { display: block; font-size: 15px; opacity: 0.7; }
.contact-demo-links { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }
.contact-demo-links strong { display: block; margin-bottom: 10px; font-size: 16px; opacity: 0.8; }
.contact-demo-links a { display: block; color: #fff; font-size: 18px; margin-bottom: 5px; }
.contact-demo-links a:hover { color: var(--accent-orange); }

/* Подвал */
footer { background: #0a1628; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
footer hr { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }
.footer-brand { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 15px; }
.footer-brand span { color: var(--accent-orange); }
footer p { font-size: 16px; line-height: 1.7; }
footer h6 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-contacts, .footer-links { list-style: none; padding: 0; }
.footer-contacts li, .footer-links li { margin-bottom: 10px; font-size: 16px; }
.footer-contacts li i { color: var(--accent-orange); margin-right: 8px; width: 16px; text-align: center; }
.footer-contacts a, .footer-links a { color: rgba(255,255,255,0.7); }
.footer-contacts a:hover, .footer-links a:hover { color: var(--accent-orange); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 15px; margin: 0; opacity: 0.6; }

/* Адаптив */
@media (max-width: 992px) {
    .hero { padding: 120px 0 80px; text-align: center; }
    .hero h1 { font-size: 36px; }
    .hero-list { text-align: left; max-width: 520px; margin: 0 auto 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 320px; }
    .trust-badges { justify-content: center; }
    .badge-item { text-align: center; }
    .hero-audio-players { flex-direction: column; align-items: center; }
    .stat-number { font-size: 44px; }
    .section-title { font-size: 30px; }
    .contact-form-box { padding: 30px; }
    .comparison-table, .spec-table { font-size: 15px; }
    .comparison-table thead th, .comparison-table tbody td,
    .spec-table thead th, .spec-table tbody td { padding: 10px 12px; }
    .server-box { padding: 30px; }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .spec-table, .comparison-table { font-size: 14px; }
    .spec-table thead th, .comparison-table thead th { padding: 10px 8px; font-size: 14px; }
    .spec-table tbody td, .comparison-table tbody td { padding: 10px 8px; }
    .section-title { font-size: 28px; margin-bottom: 14px; }
    .section-lead { font-size: 17px; margin-bottom: 35px; }
    .hero h1 { font-size: 30px; }
    .trust-badges { flex-direction: column; gap: 15px; }
    .stat-number { font-size: 38px; }
    .beta-box { padding: 24px; }
    .contact-form-box { padding: 25px; }
}
