/* ================================
   КАЛЬКУЛЯТОР — стили
   ================================ */

#calculator {
    padding: 60px 0;
    background: #f7f9fc;
}

.calc-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.calc-step {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.calc-step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f6;
}

.calc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #42a5f5;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}

.calc-step-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.calc-step-body {
    padding: 24px;
}

/* Шаг 1. Схема */
.calc-scheme {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.house-scheme {
    flex: 0 0 480px;
    max-width: 100%;
}

.scheme-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.scheme-container svg {
    display: block;
    width: 100%;
    height: auto;
    background: #eaf5ea;
    border-radius: 6px;
}

.calc-scheme-info {
    flex: 1;
    min-width: 220px;
}

.calc-counter {
    font-size: 20px;
    font-weight: bold;
    color: #212121;
    margin-bottom: 14px;
}

.calc-counter b {
    color: #42a5f5;
    font-size: 24px;
}

.house-size-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.house-size-field label {
    display: block;
    font-size: 12px;
    color: #546e7a;
    margin-bottom: 4px;
}

.house-size-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 5px;
    font-size: 14px;
}

.house-size-field input:focus {
    outline: none;
    border-color: #42a5f5;
}

.size-group-title {
    font-size: 12px;
    font-weight: bold;
    color: #37474f;
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-group-title:first-child {
    margin-top: 0;
}

.calc-hint {
    font-size: 14px;
    color: #78909c;
    line-height: 1.5;
}

.calc-hint-small {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.cable-details {
    margin-top: 16px;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 6px;
    font-size: 13px;
}

.cable-total {
    font-size: 15px;
    margin-bottom: 8px;
}

.cable-total b {
    color: #42a5f5;
    font-size: 17px;
}

.cable-note {
    font-size: 12px;
    color: #78909c;
    line-height: 1.5;
    margin: 8px 0 0;
    padding: 8px 10px;
    background: #fff8e1;
    border-left: 3px solid #ff9800;
    border-radius: 4px;
}

/* Карточки */
.calc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.calc-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.calc-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-card-body {
    display: block;
    padding: 16px 18px;
    border: 2px solid #e0e6ec;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
}

.calc-card:hover .calc-card-body {
    border-color: #b3d9f7;
}

.calc-card input:checked + .calc-card-body {
    border-color: #42a5f5;
    background: #f0f8ff;
    box-shadow: 0 2px 10px rgba(66,165,245,0.15);
}

.calc-card-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
    color: #212121;
}

.calc-card-text {
    display: block;
    font-size: 13px;
    color: #78909c;
    line-height: 1.4;
}

.calc-cards-compact .calc-card-body {
    padding: 10px 14px;
}

.calc-cards-compact .calc-card-title {
    font-size: 15px;
    margin-bottom: 2px;
}

.calc-cards-compact .calc-card-text {
    font-size: 12px;
}

.calc-subgroup-title {
    font-size: 14px;
    font-weight: bold;
    color: #37474f;
    margin: 0 0 10px;
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-options-compact .calc-option {
    padding: 8px 10px;
}

.calc-options-compact .calc-option input {
    margin-top: 2px;
}

.calc-options-compact .calc-option span {
    font-size: 14px;
}

.calc-options-compact .calc-option small {
    display: block;
    margin-top: 2px;
    color: #90a4ae;
    font-size: 12px;
    line-height: 1.4;
}

.calc-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e0e6ec;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.calc-option:hover {
    border-color: #b3d9f7;
}

.calc-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.calc-option span {
    font-size: 14px;
    color: #37474f;
}

.calc-option small {
    color: #90a4ae;
    font-size: 12px;
}

/* Результат */
.calc-result {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-top: 4px solid #42a5f5;
}

.calc-result-price {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f6;
}

.calc-result-label {
    font-size: 15px;
    color: #78909c;
    margin-bottom: 8px;
}

.calc-result-value {
    font-size: 22px;
    color: #212121;
}

.calc-result-value b {
    font-size: 32px;
    color: #42a5f5;
    font-weight: bold;
}

.calc-result-compose {
    margin-bottom: 16px;
}

.calc-result-compose-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #37474f;
}

.calc-result-compose ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-result-compose li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: #546e7a;
    border-bottom: 1px dashed #eef2f6;
}

.calc-result-compose li:before {
    content: '\2713';
    color: #42a5f5;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.calc-result-note {
    font-size: 12px;
    color: #90a4ae;
    margin-bottom: 12px;
}

.calc-result-discount {
    font-size: 14px;
    color: #37474f;
    background: #fff8e1;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #ff9800;
}

.calc-result-discount a {
    color: #ff9800;
    font-weight: bold;
    text-decoration: none;
}

.calc-result-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: #42a5f5;
}

.btn-primary:hover {
    background: #1e88e5;
}

.btn-outline {
    background: transparent;
    border: 2px solid #42a5f5;
    color: #42a5f5;
}

.btn-outline:hover {
    background: #42a5f5;
    color: #fff;
}

/* ================================
   ПЕРЕКЛЮЧАТЕЛЬ ОБЪЕКТОВ
   ================================ */
.object-switcher {
    margin: 0 0 20px;
    padding: 0;
    max-width: none;
}

.object-switcher-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.object-switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #fff;
    border: 2px solid #e0e6ec;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #37474f;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.object-switcher-btn:hover {
    border-color: #b3d9f7;
    background: #f0f8ff;
}

.object-switcher-btn.active {
    background: #42a5f5;
    border-color: #42a5f5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(66,165,245,0.3);
}

/* ================================
   ЧТО ВХОДИТ В СИСТЕМУ (компактно)
   ================================ */
.included-compact {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e0e6ec;
    text-align: center;
}

.included-compact-title {
    font-size: 13px;
    font-weight: bold;
    color: #37474f;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.included-compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: #546e7a;
    justify-content: center;
}

.included-compact-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.included-compact-list span:before {
    content: '\2713';
    color: #42a5f5;
    font-weight: bold;
}

.included-compact-list b {
    color: #212121;
}

/* ================================
   ПЛАШКА "НЕТИПОВАЯ СИСТЕМА"
   ================================ */
.nonstandard-block {
    display: none;
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #5d4037;
    line-height: 1.5;
}

.nonstandard-block b {
    color: #e65100;
}

.nonstandard-block i {
    color: #ff9800;
    margin-right: 6px;
}

/* Hero */
.preview-calc {
    background-image: url('/images/bg1.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: 170px;
    padding-bottom: 80px;
}

.hero-calc {
    background: rgba(21,21,21,0.85);
}

.hero-cameras {
    margin-bottom: 16px;
    text-align: left;
}

.hero-cameras label {
    display: block;
    font-size: 13px;
    color: #cfd8dc;
    margin-bottom: 6px;
}

.cam-buttons {
    display: flex;
    gap: 6px;
}

.cam-buttons button {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #546e7a;
    background: transparent;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.cam-buttons button:hover {
    border-color: #42a5f5;
}

.cam-buttons button.active {
    background: #42a5f5;
    border-color: #42a5f5;
    font-weight: bold;
}

/* Зона обслуживания */
#area-served {
    padding: 60px 0;
    background: #ffffff;
}

#area-served .container {
    max-width: 1000px;
}

#area-served h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 16px;
    text-align: center;
    color: #212121;
}

#area-served p {
    font-size: 15px;
    color: #546e7a;
    line-height: 1.7;
    margin: 0;
}

/* FAQ */
#faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e6ec;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #212121;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '\002B';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #42a5f5;
    font-weight: normal;
}

.faq-item[open] summary:after {
    content: '\2212';
}

.faq-item summary:hover {
    background: #f7f9fc;
}

.faq-item p {
    padding: 0 24px 20px;
    color: #546e7a;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* Модалки */
#pdfModal .form-group {
    margin-bottom: 12px;
}

#pdfModal input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 15px;
}

#pdfModal input:focus {
    outline: none;
    border-color: #42a5f5;
}

.share-url-wrap {
    display: flex;
    gap: 8px;
}

.share-url-wrap input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    background: #f7f9fc;
}

.share-url-wrap .btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
}

#shareModal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    background: #f7f9fc;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    margin-top: 8px;
}

.share-messengers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-vk { background: #4a76a8; }
.share-max { background: #8b5cf6; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }

/* Адаптив */
@media (max-width: 991px) {
    .calc-scheme {
        flex-direction: column;
        align-items: stretch;
    }
    .house-scheme {
        flex: none;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    #calculator,
    #faq,
    #area-served {
        padding: 40px 0;
    }

    .object-switcher {
        margin: 0 0 16px;
    }

    .object-switcher-buttons {
        justify-content: center;
    }

    .included-compact-list {
        flex-direction: column;
        gap: 4px;
    }

    .included-compact-list span {
        white-space: normal;
    }

    .nonstandard-block {
        padding: 14px 16px;
        font-size: 13px;
    }

    #area-served h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    #area-served p {
        font-size: 14px;
        line-height: 1.6;
    }

    .calc-step-head {
        padding: 14px 16px;
        gap: 10px;
    }
    .calc-step-head h3 {
        font-size: 16px;
    }
    .calc-step-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .calc-step-body {
        padding: 16px;
    }

    .calc-cards,
    .calc-cards-3,
    .house-size-fields {
        grid-template-columns: 1fr;
    }

    .calc-cards-compact {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .calc-cards-compact .calc-card-body {
        padding: 8px 10px;
    }
    .calc-cards-compact .calc-card-title {
        font-size: 13px;
    }
    .calc-cards-compact .calc-card-text {
        font-size: 11px;
    }

    .calc-result {
        padding: 20px 16px;
    }
    .calc-result-value {
        font-size: 17px;
    }
    .calc-result-value b {
        font-size: 24px;
    }
    .calc-result-buttons {
        flex-direction: column;
    }
    .calc-result-buttons .btn,
    .calc-result-buttons button {
        width: 100%;
        text-align: center;
    }

    .preview-calc {
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .hero-calc {
        margin-top: 20px;
        padding: 20px;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 15px;
    }
    .faq-item summary:after {
        right: 16px;
    }
    .faq-item p {
        padding: 0 16px 16px;
        font-size: 13px;
    }

    .share-url-wrap {
        flex-direction: column;
    }

    .share-messengers {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .calc-result-value b {
        font-size: 22px;
    }
    .cam-buttons button {
        font-size: 14px;
        padding: 7px 0;
    }
    .object-switcher-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* ================================
   SEO-ТЕКСТ (задачи видеонаблюдения)
   ================================ */
#seo-text {
    padding: 60px 0;
    background: #ffffff;
}

#seo-text .container {
    max-width: 900px;
}

#seo-text h2 {
    font-size: 24px;
    font-weight: bold;
    color: #212121;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.3;
}

.seo-text-content {
    font-size: 15px;
    line-height: 1.7;
    color: #37474f;
}

.seo-text-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1565c0;
    margin: 28px 0 12px;
    line-height: 1.3;
}

.seo-text-content h3:first-child {
    margin-top: 0;
}

.seo-text-content p {
    margin: 0 0 14px;
}

.seo-text-content ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.seo-text-content ul li {
    position: relative;
    padding: 6px 0 6px 28px;
    line-height: 1.6;
}

.seo-text-content ul li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 6px;
    color: #42a5f5;
    font-weight: bold;
    font-size: 16px;
}

.seo-text-content strong {
    color: #212121;
    font-weight: bold;
}

/* Адаптив для SEO-текста */
@media (max-width: 767px) {
    #seo-text {
        padding: 40px 0;
    }

    #seo-text h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .seo-text-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .seo-text-content h3 {
        font-size: 16px;
        margin: 22px 0 10px;
    }

    .seo-text-content ul li {
        padding-left: 24px;
        font-size: 14px;
    }

    .seo-text-content ul li:before {
        font-size: 14px;
    }
}