:root {
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 20px 60px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 16px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.rtsp-link {
    color: inherit;
    text-decoration-color: var(--primary);
    text-underline-offset: 3px;
}

.rtsp-link:hover {
    color: var(--primary);
}

/* Sections */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #111827;
}

.section h3 {
    font-size: 1.2rem;
    margin: 20px 0 12px;
    color: #1f2937;
}

.section p {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.section ul, .section ol {
    margin: 16px 0 16px 24px;
    color: var(--text-muted);
}

.section li {
    margin-bottom: 8px;
}

/* Diagram / Scheme */
.scheme-box {
    background: #f0f7ff;
    border: 1px dashed var(--primary);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin: 20px 0;
    font-size: 1.05rem;
}

/* Camera Stream Examples */
.cameras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.camera-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.camera-media {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.camera-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.camera-overlay-info {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #f3f4f6;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.camera-caption {
    padding: 16px;
    background: #ffffff;
}

.camera-caption h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.camera-caption p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CTA Bottom */
.cta-bottom {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 40px 24px;
    margin-top: 40px;
}

.cta-bottom h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

/* rtsp.ru landing visual language */
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../../public/landing/fonts/IBMPlexSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../../public/landing/fonts/IBMPlexSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../../public/landing/fonts/IBMPlexSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --primary: #f93822;
    --primary-hover: #c72d1b;
    --text-main: #171717;
    --text-muted: #666666;
    --bg-page: #fefefe;
    --bg-card: #fefefe;
    --border: #aaaaab;
    --radius: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    background: var(--bg-page);
}

.container {
    max-width: 1312px;
    padding: 0 24px 80px;
}

.hero {
    position: relative;
    min-height: 620px;
    margin: 0 calc(50% - 50vw) 0;
    padding: 112px max(24px, calc((100vw - 1264px) / 2));
    overflow: hidden;
    text-align: left;
    color: #fefefe;
    background:
        linear-gradient(90deg, rgba(23, 23, 23, 0.97) 0%, rgba(23, 23, 23, 0.88) 48%, rgba(23, 23, 23, 0.26) 100%),
        url("../../public/landing/img/main/camera-bg.webp") center right / cover no-repeat;
    border: 0;
    border-radius: 0;
}

.hero::after {
    content: "MARINA / LIVE";
    position: absolute;
    right: max(24px, calc((100vw - 1264px) / 2));
    bottom: 28px;
    color: #aaaaab;
    font: 500 12px/1 "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 24px;
    color: #fefefe;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero .subtitle {
    max-width: 700px;
    margin-bottom: 32px;
    color: #fefefe;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 400;
}

.hero p {
    max-width: 650px;
    margin: 0 0 14px;
    color: #aaaaab;
    font-size: 16px;
}

.btn {
    min-height: 56px;
    padding: 16px 26px;
    margin-top: 24px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
}

.section {
    display: grid;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.45fr);
    column-gap: 72px;
    padding: 72px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.section > h2 {
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: start;
    padding-top: 4px;
    margin: 0;
    color: #171717;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    font-weight: 500;
    text-transform: uppercase;
}

.section > h2::before {
    content: "RTSP /";
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.section > :not(h2) {
    grid-column: 2;
}

.section h3 {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

.section p,
.section ul,
.section ol {
    color: #5f5f60;
    font-size: 17px;
    line-height: 1.65;
}

.section li::marker {
    color: var(--primary);
    font-weight: 700;
}

.scheme-box {
    padding: 28px;
    margin: 24px 0;
    color: #fefefe;
    background: #171717;
    border: 0;
    border-left: 5px solid var(--primary);
    border-radius: 0;
    text-align: left;
    font-family: monospace;
}

.cameras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #2f2f2f;
    border: 1px solid #2f2f2f;
}

.camera-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.camera-media {
    aspect-ratio: 16 / 10;
}

.camera-media img {
    transition: transform 0.5s ease;
}

.camera-card:hover .camera-media img {
    transform: scale(1.025);
}

.live-badge {
    top: 16px;
    left: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.camera-caption {
    min-height: 112px;
    padding: 20px;
    background: #171717;
}

.camera-caption h3 {
    color: #fefefe;
    font-size: 17px;
}

.camera-caption p {
    color: #aaaaab;
    font-size: 14px;
}

.faq-item {
    padding: 22px 0;
    border-color: #d8d8d8;
}

.faq-question {
    color: #171717;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.cta-bottom {
    margin: 72px 0 0;
    padding: 72px max(24px, 8vw);
    color: #fefefe;
    background: #171717;
    border: 0;
    border-radius: 0;
}

.cta-bottom h2 {
    max-width: 780px;
    margin: 0 auto 24px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
}

.cta-bottom p {
    max-width: 760px;
    margin: 0 auto 12px;
    color: #aaaaab;
}

@media (max-width: 900px) {

    .hero {
        min-height: 570px;
        padding-top: 88px;
        background-position: 65% center;
    }

    .section {
        grid-template-columns: 1fr;
        row-gap: 28px;
        padding: 54px 0;
    }

    .section > h2,
    .section > :not(h2) {
        grid-column: 1;
        grid-row: auto;
    }

    .section > h2 {
        max-width: 680px;
    }
}

@media (max-width: 640px) {

    .container {
        padding: 0 16px 48px;
    }

    .hero {
        min-height: 610px;
        padding: 72px 16px 88px;
        background-position: 72% center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 19px;
    }

    .cameras-grid {
        grid-template-columns: 1fr;
    }

    .camera-overlay-info {
        font-size: 10px;
    }
}