/* ============================================================
   ФОН В НОРМЕ — стиль в духе прибора МКС-151
   Палитра: графит #1a1a1a, жёлтый #ffcc00, экран #0a0a0a
   ============================================================ */

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
}
.section-title .accent { color: #ffcc00; }

.section-desc {
    font-size: 16px;
    color: #999;
    max-width: 700px;
    margin-bottom: 50px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background: #ffcc00;
    color: #1a1a1a;
    border-color: #ffcc00;
}
.btn-primary:hover {
    background: #e6b800;
    border-color: #e6b800;
}

.btn-outline {
    background: transparent;
    color: #ffcc00;
    border-color: #ffcc00;
}
.btn-outline:hover {
    background: #ffcc00;
    color: #1a1a1a;
}

/* ===== ШАПКА ===== */
.header {
    background: #111;
    border-bottom: 3px solid #ffcc00;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}
.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;    /* ← обрезает белые углы у картинки */
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.nav a:hover { color: #ffcc00; }
.nav .btn {
    padding: 10px 20px;
    font-size: 12px;
}

/* ===== КНОПКА В ШАПКЕ — ЧЁРНЫЙ ТЕКСТ ===== */
.nav .btn,
.nav .btn-primary {
    color: #1a1a1a;
}
.nav .btn:hover,
.nav .btn-primary:hover {
    color: #1a1a1a;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 900px) {
    .burger { display: flex; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 20px;
        border-top: 2px solid #333;
        margin-top: 15px;
    }
    .nav.open { display: flex; }
    .nav a { font-size: 15px; }
    .nav .btn { width: 100%; text-align: center; }
}

/* ===== HERO + СВЕТОФОР ===== */
.hero {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.hero h1 .accent { color: #ffcc00; }

.hero p {
    font-size: 17px;
    color: #aaa;
    margin-bottom: 35px;
    max-width: 480px;
}
.hero .btn { margin-right: 15px; margin-bottom: 10px; }

/* Светофор */
.traffic {
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: stretch;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.1);
}

.leds {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}
.led {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.led.active.red    { background: #ff3b30; box-shadow: 0 0 18px #ff3b30; }
.led.active.orange { background: #ff9500; box-shadow: 0 0 18px #ff9500; }
.led.active.yellow { background: #ffcc00; box-shadow: 0 0 18px #ffcc00; }
.led.active.green  { background: #34c759; box-shadow: 0 0 18px #34c759; }

.traffic-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.traffic-screen {
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 18px 15px 30px;
    text-align: right;
    position: relative;
}
.traffic-screen .value {
    font-family: 'Roboto Mono', monospace;
    font-size: 40px;
    font-weight: 700;
    color: #34c759;
    text-shadow: 0 0 12px rgba(52, 199, 89, 0.6);
    line-height: 1;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.traffic-screen .unit {
    font-size: 12px;
    color: #666;
    font-family: 'Roboto Mono', monospace;
    position: absolute;
    bottom: 10px;
    left: 15px;
    letter-spacing: 1px;
}

.traffic-info .status {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}
.traffic-info .range {
    font-size: 12px;
    color: #888;
    font-family: 'Roboto Mono', monospace;
    transition: color 0.2s ease;
}

#trafficBtn {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
}

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 30px; }
    .traffic { padding: 20px; gap: 18px; }
    .traffic-screen .value { font-size: 34px; }
}

/* ===== КАК РАБОТАЕМ ===== */
.how {
    background: #111;
    padding: 70px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.how .grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}
.how h2 {
    font-size: 32px;
    font-weight: 900;
    color: #ffcc00;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.how .subtitle {
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.how .desc p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 16px;
}
.how .desc strong { color: #ffcc00; }

@media (max-width: 768px) {
    .how .grid { grid-template-columns: 1fr; gap: 25px; }
    .how h2 { font-size: 24px; }
}

/* ===== ЦЕНЫ ===== */
.prices {
    padding: 80px 0;
    background: #1a1a1a;
}
.prices .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.price-card {
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 35px 25px 25px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    border-color: #555;
    transform: translateY(-4px);
}
.price-card.popular {
    border-color: #ffcc00;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.15);
    position: relative;
}
.price-card.popular .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #1a1a1a;
    padding: 5px 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.price-card .name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
}
.price-card .price {
    font-family: 'Roboto Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #ffcc00;
    line-height: 1;
    margin-bottom: 5px;
}
.price-card .price small {
    font-size: 16px;
    font-weight: 400;
}
.price-card .sub-price {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.price-card .features {
    list-style: none;
    text-align: left;
    margin: 0 0 20px;
    padding: 20px 0 0;
    flex: 1;
    border-top: 1px solid #333;
}
.price-card .features li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: #ccc;
}
.price-card .features li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-weight: 700;
}

.price-card .zone-note {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    border-left: 2px solid #ffcc00;
    padding-left: 10px;
    text-align: left;
}

.price-card .btn { width: 100%; }

@media (max-width: 900px) {
    .prices .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .prices .grid { grid-template-columns: 1fr; }
    .price-card.popular { order: -1; }
}

/* ===== БЛОК ДОВЕРИЯ ===== */
.trust {
    padding: 80px 0;
    background: #111;
    border-top: 1px solid #222;
}
.trust .block-title {
    font-size: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 600;
    color: #ddd;
    line-height: 1.5;
}
.trust .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.trust .card {
    background: #222;
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: box-shadow 0.2s;
}
.trust .card:hover {
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.15);
}

/* Фото в блоке доверия — прямоугольные, без обрезки */
.trust .card img {
    width: 220px;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #333;
    background: #333;
    flex-shrink: 0;
    padding: 6px;
}

.trust .card-content h3 {
    font-size: 15px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust .card-content h3 svg { flex-shrink: 0; }
.trust .card-content p {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 6px;
    line-height: 1.5;
}
.trust .highlight {
    color: #ffcc00;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

@media (max-width: 768px) {
    .trust .grid { grid-template-columns: 1fr; }
    .trust .card {
        flex-direction: column;
        text-align: center;
    }
    .trust .card img {
        width: 100%;
        max-width: 280px;
        height: 180px;
    }
    .trust .card-content h3 { justify-content: center; }
}

/* ===== УСЛУГИ ===== */
.services {
    padding: 80px 0;
    background: #1a1a1a;
}
.services .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 25px 20px;
    transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
    border-color: #ffcc00;
    transform: translateY(-4px);
}
.service-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ffcc00;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-card .icon svg { display: block; }
.service-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-family: 'Roboto Mono', monospace;
}
.service-card p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

@media (max-width: 1024px) { .services .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services .grid { grid-template-columns: 1fr; } }

/* ===== ОТЗЫВЫ ===== */
.reviews {
    padding: 80px 0;
    background: #111;
    border-top: 1px solid #222;
}
.reviews .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.review-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.review-card:hover { border-color: #555; }

.review-card .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    background: none;
    border: none;
    padding: 0;
    position: static;
}
.review-card .header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}
.review-card .name { font-weight: 700; color: #fff; font-size: 15px; }
.review-card .date { font-size: 12px; color: #888; }

.review-card .stars {
    color: #ffcc00;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.review-card .text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}
.review-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 12px;
    font-size: 11px;
    font-family: 'Roboto Mono', monospace;
    gap: 10px;
    flex-wrap: wrap;
}
.review-card .status {
    color: #34c759;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.review-card .link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.review-card .link:hover { text-decoration: underline; }

@media (max-width: 900px) { .reviews .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews .grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: #1a1a1a;
}
.faq-list { margin-top: 20px; }
.faq-item {
    border-top: 1px solid #333;
    padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid #333; }

.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: #ffcc00;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 5px 0;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.faq-question .icon {
    font-size: 22px;
    transition: transform 0.3s;
    color: #ffcc00;
    flex-shrink: 0;
    font-family: 'Roboto Mono', monospace;
}
.faq-question.active .icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}
.faq-answer.open {
    max-height: 400px;
    padding-top: 15px;
}

/* ===== КОНТАКТЫ ===== */
.contact {
    padding: 80px 0;
    background: #111;
    border-top: 1px solid #222;
}
.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffcc00;
    object-fit: cover;
    background: #333;
    margin-bottom: 20px;
}
.contact-info .name {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.contact-info .role {
    font-size: 13px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}
.contact-info .details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-info .detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #ccc;
}
.contact-info .detail-row svg {
    color: #ffcc00;
    flex-shrink: 0;
}
.contact-info .detail-row a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.contact-info .detail-row a:hover { color: #ffcc00; }

.contact-form {
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 35px;
}
.contact-form h3 {
    font-size: 20px;
    font-weight: 900;
    color: #ffcc00;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.contact-form .sub {
    color: #888;
    margin-bottom: 25px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: 2px solid #333;
    background: #111;
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #ffcc00;
}
.contact-form textarea {
    resize: vertical;
    min-height: 90px;
}
.contact-form select option { background: #111; }
.contact-form .btn { width: 100%; }
.contact-form .agreement {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.form-success {
    display: none;
    background: #34c759;
    color: #fff;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact .container { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 25px; }
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #0a0a0a;
    color: #666;
    padding: 25px 0;
    border-top: 3px solid #ffcc00;
    font-size: 13px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer .social a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}
.footer .social a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ПЛАВНОЕ ПОЯВЛЕНИЕ СЕКЦИЙ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}