/* =========================================================
   ЛОЦМАН ТЕНДЕРОВ — Основные стили
   ========================================================= */

:root {
    --bg-dark: #0B2545;
    --bg-card: #13315C;
    --accent: #22C7B8;
    --accent-blue: #2AABEE;
    --accent-amber: #FFB703;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-dark: #102A43;
    --text-light: #FFFFFF;
    --text-muted: #5A6B7B;
    --border-light: #E5EAF0;
    --border-dark: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 4px 20px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 720px;
}

/* =========================================================
   ЛОГОТИП
   ========================================================= */

.logo {
    margin-bottom: 32px;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(42, 171, 238, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   КНОПКИ
   ========================================================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #1FB3A5;
    border-color: #1FB3A5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 199, 184, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Outline-кнопка на светлом фоне */
.section .btn-outline,
.pricing-card .btn-outline {
    color: var(--text-dark);
    border-color: var(--border-light);
}

.section .btn-outline:hover,
.pricing-card .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================================
   TENDER CARD PREVIEW
   ========================================================= */

.tender-card-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tender-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-power {
    background: #FF6B35;
    color: white;
}

.badge-cctv {
    background: var(--accent-blue);
    color: white;
}

.tender-date {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.tender-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.4;
}

.tender-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.tender-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-dark);
    font-size: 13px;
}

.source {
    color: rgba(255, 255, 255, 0.5);
}

.tender-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* =========================================================
   СЕКЦИИ
   ========================================================= */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-white);
}

.section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   СЕТКИ
   ========================================================= */

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   КАРТОЧКИ
   ========================================================= */

.card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* =========================================================
   НАПРАВЛЕНИЯ
   ========================================================= */

.direction-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.direction-card:hover {
    box-shadow: var(--shadow-md);
}

.direction-header {
    margin-bottom: 20px;
}

.direction-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.direction-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-dark);
    font-size: 15px;
}

.direction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent);
    font-weight: 700;
}

.okpd-list {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    letter-spacing: 0.3px;
}

/* =========================================================
   ШАГИ
   ========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-num {
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(34, 199, 184, 0.3);
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================
   ПРЕИМУЩЕСТВА
   ========================================================= */

.benefit-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================================
   ТАРИФЫ
   ========================================================= */

.pricing-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(34, 199, 184, 0.15);
    transform: scale(1.04);
}

.pricing-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-dark);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card li {
    padding: 8px 0 8px 26px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent);
    font-weight: 700;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 4px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
    color: var(--text-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 0 20px 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================================
   ФОРМА
   ========================================================= */

.lead-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: #A0AEC0;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 199, 184, 0.1);
}

.lead-form textarea {
    resize: vertical;
    min-height: 90px;
    margin-bottom: 16px;
}

.lead-form select {
    margin-bottom: 16px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6B7B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.form-consent {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.form-consent a {
    color: var(--accent-blue);
    text-decoration: none;
}

.form-consent a:hover {
    text-decoration: underline;
}

.form-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.success-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.form-success p {
    color: var(--text-muted);
    font-size: 16px;
}

/* =========================================================
   BRAND STRIP (logo-dark на белом фоне)
   ========================================================= */

.brand-strip {
    background: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.brand-strip-logo {
    height: 72px;
    width: auto;
    display: inline-block;
    margin-bottom: 16px;
}

.brand-strip-tagline {
    font-size: 15px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* =========================================================
   ФУТЕР
   ========================================================= */

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo-img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-requisites p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-copy {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 60px 0 70px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .pricing-card-featured {
        transform: none;
    }
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
    .section h2 {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 56px 0;
    }
    .hero h1 {
        font-size: 30px;
    }
    .logo-img {
        height: 48px;
    }
    .brand-strip {
        padding: 40px 0;
    }
    .brand-strip-logo {
        height: 56px;
    }
    .grid-2,
    .grid-4,
    .steps {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .lead-form {
        padding: 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pricing-card {
        padding: 28px 22px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}