/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'JetBrains Mono', monospace;
    background: #0a0c0a;
    color: #b3d9b3;
    line-height: 1.6;
    overflow-x: hidden;
}
::selection {
    background: #00ff41;
    color: #000;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #00ff41;
    text-decoration: none;
}
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -1px;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #fff;
}
h2 .cmd {
    color: #00ff41;
    margin-right: 10px;
}
.green {
    color: #00ff41;
}
.red {
    color: #ff4d4d;
}
.highlight {
    color: #00ff41;
    text-shadow: 0 0 30px rgba(0,255,65,0.3);
}

/* --- MATRIX CANVAS (ФОН) --- */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* --- SCROLL BAR --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #00ff41;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    color: #00ff41;
    box-shadow: 0 0 20px rgba(0,255,65,0.1);
}
.btn-primary {
    background: #00ff41;
    color: #0a0c0a;
    box-shadow: 0 0 40px rgba(0,255,65,0.2);
}
.btn-primary:hover {
    background: transparent;
    color: #00ff41;
    box-shadow: 0 0 80px rgba(0,255,65,0.4);
    transform: scale(1.02);
}
.btn-secondary {
    border-color: #555;
    color: #888;
}
.btn-secondary:hover {
    border-color: #00ff41;
    color: #00ff41;
}

/* --- HEADER --- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #00ff4133;
    background: #0a0c0ad9;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.prompt {
    color: #00ff41;
}
.logo-cursor {
    animation: blink 1s infinite;
    color: #00ff41;
}
.logo-highlight {
    color: #00ff41;
    text-shadow: 0 0 30px #00ff41;
}
.nav {
    display: flex;
    gap: 25px;
}
.nav a {
    color: #b3d9b3;
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav a:hover {
    color: #00ff41;
    text-shadow: 0 0 20px #00ff41;
}
.header-phone a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 0px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #00ff41;
    background: #00ff41;
    color: #0a0c0a;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
    transition: 0.3s;
    text-decoration: none;
}

.header-phone a:hover {
    background: transparent;
    color: #00ff41;
    box-shadow: 0 0 80px rgba(0, 255, 65, 0.4);
    transform: scale(1.03);
}

.header-phone a:active {
    transform: scale(0.96);
}

/* --- HERO --- */
.hero {
    padding: 30px 0 100px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
}
.status-bar {
    color: #00ff41;
    font-size: 0.8rem;
    margin-bottom: 20px;
    background: #111;
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid #00ff4133;
}
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00ff41;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-dot 1.5s infinite;
}
.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 30px;
}
.hero-content h1 .cmd {
    color: #00ff41;
}
.terminal-window {
    background: #0d100d;
    border: 1px solid #00ff4133;
    border-radius: 8px;
    margin: 25px 0;
    overflow: hidden;
}
.terminal-header {
    background: #1a1f1a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #00ff4111;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
    margin-left: 12px;
    color: #888;
    font-size: 0.8rem;
}
.terminal-body {
    padding: 16px 20px;
    font-size: 0.9rem;
}
.terminal-body p {
    margin: 4px 0;
}
.blink {
    animation: blink 1s step-end infinite;
    color: #ff4d4d;
}
.hero-features {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.hero-features span {
    border: 1px solid #00ff4133;
    padding: 6px 16px;
    font-size: 0.85rem;
}
.hero-ascii pre {
    color: #00ff41;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border: 1px solid #00ff4133;
    text-align: center;
}

/* --- SERVICES --- */
.services {
    padding: 80px 0;
    border-top: 1px solid #00ff4111;
    border-bottom: 1px solid #00ff4111;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.service-card {
    background: rgba(255,255,255,0.02);
    padding: 30px 20px;
    border: 1px solid #00ff4111;
    transition: 0.4s;
    position: relative;
}
.service-card:hover {
    border-color: #00ff41;
    transform: translateY(-5px);
    background: rgba(0,255,65,0.03);
}
.service-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff4133;
    line-height: 1;
}
.service-card h3 {
    color: #fff;
    margin: 10px 0;
}

/* --- PRICES --- */
.prices {
    padding: 80px 0;
}
.prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.price-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid #00ff4133;
    padding: 40px;
    text-align: center;
    transition: 0.4s;
}
.price-card:hover {
    border-color: #00ff41;
}
.price-card-main {
    border-color: #00ff41;
    background: rgba(0,255,65,0.03);
}
.price-glow {
    font-size: 4rem;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 60px rgba(0,255,65,0.2);
}
.price-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 15px 0;
}
.price-card ul {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}
.price-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #00ff4111;
}
.price-warning {
    margin-top: 15px;
    color: #ff4d4d;
    font-size: 0.85rem;
    border: 1px solid #ff4d4d33;
    padding: 6px;
}

/* --- ABOUT --- */
.about {
    padding: 80px 0;
    border-top: 1px solid #00ff4111;
    border-bottom: 1px solid #00ff4111;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.about-block p {
    font-size: 1.1rem;
    margin: 12px 0;
}
.ascii-art pre {
    color: #00ff41;
    font-size: 0.9rem;
    background: #0d100d;
    padding: 20px;
    border: 1px solid #00ff4133;
}

/* --- CONTACTS --- */
.contacts {
    padding: 80px 0;
}
.contacts-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contacts-info p {
    font-size: 1.2rem;
    margin: 15px 0;
}
.contacts-info a {
    color: #fff;
    border-bottom: 2px solid #00ff41;
}
.contacts-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.soc-btn {
    border: 1px solid #00ff4133;
    padding: 6px 16px;
    transition: 0.3s;
}
.soc-btn:hover {
    background: #00ff41;
    color: #000;
}
.contacts-form {
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border: 1px solid #00ff4133;
}
.contacts-form h3 {
    color: #fff;
    margin-bottom: 20px;
}
.contacts-form input,
.contacts-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #0d100d;
    border: 1px solid #00ff4133;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
}
.contacts-form input:focus,
.contacts-form textarea:focus {
    border-color: #00ff41;
    outline: none;
}
.alert {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-success {
    border-color: #00ff41;
    color: #00ff41;
    background: rgba(0,255,65,0.05);
}
.alert-error {
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: rgba(255,0,0,0.05);
}
.form-agree {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
}

/* --- FOOTER --- */
.footer {
    padding: 30px 0;
    border-top: 1px solid #00ff4111;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links a {
    color: #666;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: #00ff41;
}

/* --- COOKIE --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0c0af5;
    backdrop-filter: blur(10px);
    border-top: 2px solid #00ff41;
    padding: 18px 0;
    z-index: 999;
    display: none;
}
.cookie-banner.active {
    display: block;
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.cookie-content p {
    color: #b3d9b3;
    margin: 0;
}
.cookie-buttons {
    display: flex;
    gap: 12px;
}
.cookie-buttons .btn {
    padding: 8px 24px;
    font-size: 0.8rem;
}

/* --- TOP BTN --- */
.top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #00ff41;
    color: #000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    border: 0;
}
.top-btn.show {
    opacity: 1;
    visibility: visible;
}
.top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #00ff41;
}

/* --- ANIMATIONS --- */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .prices-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contacts-flex {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        gap: 12px;
    }
    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .price-glow {
        font-size: 2.8rem;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
/* --- ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ (4 в ряд) --- */
.extra-services {
    padding: 80px 0;
    border-top: 1px solid #00ff4111;
    border-bottom: 1px solid #00ff4111;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.extra-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #00ff4133;
    padding: 30px 25px;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.extra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00ff41;
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.extra-card:hover::before {
    transform: scaleX(1);
}

.extra-card:hover {
    border-color: #00ff41;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.08);
    background: rgba(0, 255, 65, 0.03);
}

.extra-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.15);
    margin-bottom: 12px;
    line-height: 1.1;
    font-family: 'JetBrains Mono', monospace;
}

.extra-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
    min-height: 48px;
}

.extra-card p {
    color: #b3d9b3;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.extra-tag {
    display: inline-block;
    font-size: 0.6rem;
    color: #00ff41aa;
    border: 1px solid #00ff4122;
    padding: 2px 14px;
    border-radius: 0px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 255, 65, 0.04);
}

/* АДАПТИВ ДЛЯ 4-Х ПЛИТОК */
@media (max-width: 992px) {
    .extra-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .extra-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .extra-price {
        font-size: 2.2rem;
    }
    .extra-card {
        padding: 20px;
    }
}
/* Скрытые элементы при "под ключ" */
.service-item-app.hidden-item {
    display: none;
}

/* Увеличиваем высоту калькулятора */
.calc-app-body {
    min-height: 520px;
    max-height: 620px;
}

.calc-app-services {
    max-height: 420px;
}

@media (max-width: 992px) {
    .calc-app-body {
        min-height: 450px;
        max-height: none;
    }
    .calc-app-services {
        max-height: 320px;
    }
}
/* ============================================
   КАЛЬКУЛЯТОР — ПРИЛОЖЕНИЕ
   ============================================ */

.calculator-app {
    padding: 40px 0 60px;
    background: rgba(0, 255, 65, 0.01);
    border-top: 1px solid #00ff4111;
    border-bottom: 1px solid #00ff4111;
}

.calc-app-wrapper {
    background: rgba(10, 12, 10, 0.85);
    border: 1px solid #00ff4144;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 255, 65, 0.04);
    backdrop-filter: blur(10px);
}

/* --- ШАПКА ПРИЛОЖЕНИЯ --- */
.calc-app-header {
    background: rgba(0, 255, 65, 0.04);
    padding: 14px 24px;
    border-bottom: 1px solid #00ff4122;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-app-title .calc-app-icon {
    font-size: 1.4rem;
}

.calc-app-badge {
    font-size: 0.75rem;
    color: #b3d9b3;
    background: rgba(0, 255, 65, 0.06);
    padding: 4px 16px;
    border-radius: 0px;
    border: 1px solid #00ff4122;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-app-badge .status-dot {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

/* --- ТЕЛО ПРИЛОЖЕНИЯ --- */
.calc-app-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 480px;
    max-height: 580px;
}

/* --- ЛЕВАЯ КОЛОНКА: КАТЕГОРИИ --- */
.calc-app-categories {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid #00ff4111;
    padding: 8px 0;
    overflow-y: auto;
}

.calc-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #888;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
}

.calc-cat-btn:hover {
    background: rgba(0, 255, 65, 0.03);
    color: #b3d9b3;
}

.calc-cat-btn.active {
    color: #00ff41;
    border-left-color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
}

.calc-cat-btn .cat-icon {
    font-size: 1.1rem;
    min-width: 24px;
}

.calc-cat-btn .cat-name {
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- ПРАВАЯ КОЛОНКА: УСЛУГИ + ИТОГ --- */
.calc-app-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Блок услуг (скролл) */
.calc-app-services {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 8px;
    max-height: 380px;
}

.calc-app-services::-webkit-scrollbar {
    width: 4px;
}

.calc-app-services::-webkit-scrollbar-track {
    background: transparent;
}

.calc-app-services::-webkit-scrollbar-thumb {
    background: #00ff4144;
    border-radius: 4px;
}

/* --- СТИЛИ УСЛУГ ВНУТРИ ПРИЛОЖЕНИЯ --- */
.service-group {
    display: none;
    animation: fadeSlide 0.3s ease;
}

.service-group.active {
    display: block;
}

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

.service-item-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.service-item-app:hover {
    background: rgba(0, 255, 65, 0.03);
    border-color: #00ff4122;
}

.service-item-app.selected {
    background: rgba(0, 255, 65, 0.04);
    border-color: #00ff4144;
}

.service-item-app .s-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #00ff4166;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 11px;
    color: transparent;
}

.service-item-app .s-check.radio {
    border-radius: 50%;
}

.service-item-app input:checked + .s-check {
    background: #00ff41;
    border-color: #00ff41;
    color: #0a0c0a;
}

.service-item-app input:checked + .s-check::after {
    content: '✓';
    color: #0a0c0a;
    font-weight: 900;
}

.service-item-app input {
    display: none;
}

.service-item-app .s-name {
    flex: 1;
    font-size: 0.82rem;
    color: #b3d9b3;
}

.service-item-app .s-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.service-item-app .s-price .old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.7rem;
    font-weight: 400;
    margin-right: 4px;
}

.service-item-app .s-discount {
    color: #ff4d4d;
    font-size: 0.6rem;
    background: rgba(255, 0, 0, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
}

.service-item-app .s-sub {
    margin-left: 28px;
    font-size: 0.75rem;
    color: #666;
    padding: 2px 0 4px 0;
}

.service-item-app .s-hint {
    font-size: 0.65rem;
    color: #555;
    margin-left: 28px;
    padding: 2px 0 6px 0;
    font-style: italic;
}

/* --- СПЕЦ. ПО (счётчик) --- */
.special-control-app {
    display: flex;
    align-items: center;
    gap: 4px;
}

.special-control-app button {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid #00ff4133;
    color: #00ff41;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.special-control-app button:hover {
    background: #00ff41;
    color: #0a0c0a;
}

.special-control-app .s-count {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

.special-control-app .s-total-label {
    font-size: 0.7rem;
    color: #666;
    margin-left: 2px;
}

/* --- ПЛЕЙСХОЛДЕР ДЛЯ АУТСОРСА --- */
.placeholder-app {
    padding: 20px;
    text-align: center;
    background: rgba(0, 255, 65, 0.02);
    border: 1px dashed #00ff4133;
    border-radius: 12px;
    margin: 10px 0;
}

.placeholder-app .p-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.placeholder-app .p-title {
    color: #00ff41;
    font-weight: 700;
    font-size: 1rem;
}

.placeholder-app .p-desc {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* --- БЛОК ИТОГА (фиксирован внизу) --- */
.calc-app-total {
    border-top: 1px solid #00ff4122;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.calc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-total-label {
    font-size: 0.85rem;
    color: #b3d9b3;
    font-weight: 600;
}

.calc-total-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
    font-family: 'JetBrains Mono', monospace;
}

.calc-total-details {
    font-size: 0.7rem;
    color: #666;
    padding: 4px 0 8px 0;
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
}

.calc-total-details span {
    display: inline-block;
    background: rgba(0, 255, 65, 0.04);
    padding: 1px 10px;
    border-radius: 0px;
    margin: 2px 4px 2px 0;
    border: 1px solid #00ff4111;
    font-size: 0.7rem;
    color: #b3d9b3;
}

.calc-total-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.calc-total-actions .btn {
    font-size: 0.75rem;
    padding: 8px 20px;
    flex: 1;
    text-align: center;
    justify-content: center;
}

.calc-total-actions .btn-secondary {
    border-color: #444;
    color: #888;
    background: transparent;
}

.calc-total-actions .btn-secondary:hover {
    border-color: #00ff41;
    color: #00ff41;
}

/* --- АДАПТИВ --- */
@media (max-width: 992px) {
    .calc-app-body {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    .calc-app-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #00ff4111;
        padding: 6px 12px;
        gap: 4px;
    }
    .calc-cat-btn {
        flex-shrink: 0;
        width: auto;
        padding: 8px 14px;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 0.75rem;
    }
    .calc-cat-btn.active {
        border-left: none;
        border-bottom-color: #00ff41;
    }
    .calc-app-services {
        max-height: 300px;
    }
    .calc-app-content {
        height: auto;
    }
}

@media (max-width: 600px) {
    .calc-app-header {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-app-title {
        font-size: 1rem;
    }
    .calc-app-badge {
        font-size: 0.65rem;
    }
    .calc-app-services {
        padding: 8px 10px;
        max-height: 250px;
    }
    .service-item-app {
        padding: 5px 8px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .service-item-app .s-name {
        font-size: 0.75rem;
        min-width: 120px;
    }
    .service-item-app .s-price {
        font-size: 0.7rem;
    }
    .calc-total-price {
        font-size: 1.4rem;
    }
    .calc-total-actions .btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    .calc-app-body {
        min-height: 380px;
    }
}
/* --- МАСКОТ (без рамки) --- */
.mascot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mascot-image {
    max-width: 400px;
    height: auto;
    transition: 0.4s;
    /* Неоновая подсветка */
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.15))
            drop-shadow(0 0 60px rgba(0, 255, 65, 0.05));
}

.mascot-image:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.3))
            drop-shadow(0 0 80px rgba(0, 255, 65, 0.1));
}

/* Неоновая пульсация */
.mascot-wrapper {
    position: relative;
    display: inline-block;
}

.mascot-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* Адаптив */
@media (max-width: 768px) {
    .mascot-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .mascot-image {
        max-width: 300px;
    }
}
/* --- ИКОНКИ СОЦСЕТЕЙ (из папки image) --- */
.soc-icon {
    width: 28px;
    height: 28px;
    transition: 0.3s;
    flex-shrink: 0;
    
    /* Делаем иконки белыми/серыми по умолчанию */
    filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(80%);
}

/* === TELEGRAM — синий при наведении === */
.soc-btn.telegram:hover .soc-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

/* === VK — ФИОЛЕТОВЫЙ (#8f3fff) ПРИ НАВЕДЕНИИ === */
.soc-btn.vk:hover .soc-icon {
    filter: brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(2000%) hue-rotate(260deg) brightness(110%) contrast(100%);
}
/* --- ГАЛЕРЕЯ РАБОТ (4 картинки) --- */
.gallery-section {
    margin-top: 5px;
    padding-top: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #00ff4133;
    transition: 0.4s;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover {
    border-color: #00ff41;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Оверлей с подписью */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #00ff41;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    transform: translateY(100%);
    transition: 0.4s;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #00ff4133;
    background: rgba(0, 0, 0, 0.5);
}

/* Если картинок нет — плейсхолдеры */
.gallery-item:empty {
    background: rgba(0, 255, 65, 0.03);
    border: 1px dashed #00ff4133;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

/* === АДАПТИВ === */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-overlay {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
}
/* --- КАРУСЕЛЬ ЛОГОТИПОВ --- */
.clients-section {
    padding: 5px 0 5px;
    overflow: hidden;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-track {
    display: flex;
    gap: 10px;
    animation: scrollClients 25s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: 0.3s;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Серый фильтр по умолчанию */
    filter: grayscale(100%) brightness(1.2) opacity(0.5);
    transition: 0.4s ease;
    cursor: pointer;
}

/* При наведении — цветной */
.client-logo:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.05);
}

/* ===== АНИМАЦИЯ КАРУСЕЛИ ===== */
@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .client-logo {
        width: 100px;
        height: 60px;
        padding: 8px;
    }
    .clients-track {
        gap: 25px;
    }
    .clients-section {
        padding: 30px 0 40px;
    }
}

@media (max-width: 480px) {
    .client-logo {
        width: 80px;
        height: 50px;
        padding: 5px;
    }
    .clients-track {
        gap: 15px;
    }
}
/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    background: rgba(16, 20, 16, 0.95);
    border: 1px solid #00ff4144;
    box-shadow: 0 0 60px rgba(0, 255, 65, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 28px 16px;
    border-bottom: 1px solid #00ff4111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.4rem;
    margin: 0;
    background: none;
    -webkit-text-fill-color: #fff;
    text-shadow: none;
    color: #fff;
}

.modal-header h2 .cmd {
    color: #00ff41;
    -webkit-text-fill-color: #00ff41;
}

.modal-close {
    color: #666;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    color: #b3d9b3;
    line-height: 1.8;
    margin: 8px 0;
}

.modal-body strong {
    color: #fff;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.modal-body ul li {
    color: #b3d9b3;
    padding: 4px 0;
    border-bottom: 1px solid #00ff4111;
    font-size: 0.95rem;
}

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

.modal-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #00ff4111;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.modal-footer .btn {
    font-size: 0.85rem;
    padding: 10px 28px;
}

/* Cookie настройки внутри модалки */
.cookie-setting {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 4px 16px;
    margin-top: 12px;
}

/* Адаптив */
@media (max-width: 600px) {
    .modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 14px;
    }
    .modal-header {
        padding: 14px 16px 12px;
    }
    .modal-header h2 {
        font-size: 1.1rem;
    }
    .modal-body {
        padding: 14px 16px;
    }
    .modal-footer {
        padding: 12px 16px 18px;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* ============================================
   ЧЕКБОКС СОГЛАСИЯ
   ============================================ */

.consent-checkbox-wrapper {
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid #00ff4122;
    border-radius: 10px;
    transition: 0.3s;
}

.consent-checkbox-wrapper.error {
    border-color: #ff4d4d;
    background: rgba(255, 0, 0, 0.04);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #b3d9b3;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.4;
}

.consent-label input[type="checkbox"] {
    display: none;
}

.consent-custom-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    border: 2px solid #00ff4166;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.consent-label input[type="checkbox"]:checked + .consent-custom-checkbox {
    background: #00ff41;
    border-color: #00ff41;
}

.consent-label input[type="checkbox"]:checked + .consent-custom-checkbox::after {
    content: '✓';
    color: #0a0c0a;
    font-weight: 900;
    font-size: 14px;
}

.consent-label input[type="checkbox"]:checked ~ .consent-text {
    color: #fff;
}

.consent-text a {
    color: #00ff41;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: 0.3s;
}

.consent-text a:hover {
    color: #a8f0a8;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.consent-text {
    transition: 0.3s;
}

/* Адаптив */
@media (max-width: 600px) {
    .consent-checkbox-wrapper {
        padding: 10px 12px;
    }
    .consent-label {
        font-size: 0.75rem;
        gap: 10px;
    }
    .consent-custom-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}