﻿:root {
    --ink: #102033;
    --muted: #5b6877;
    --line: #dce4ea;
    --paper: #ffffff;
    --soft: #f2f6f8;
    --navy: #0d2c4a;
    --teal: #0f766e;
    --orange: #ed8130;
    --orange-dark: #cf641c;
    --shadow: 0 22px 70px rgba(16, 32, 51, .14);
    --radius: 8px;
    --max: 1180px;
    --font-base: Ubuntu, Arial, sans-serif;
    --font-display: "Ubuntu Condensed", Ubuntu, Arial, sans-serif;
    font-family: var(--font-base);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-base);
    line-height: 1.55;
    font-synthesis-weight: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 48px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(220, 228, 234, .75);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-text {
    display: grid;
    gap: 0;
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-display);
}

.brand-text strong {
    color: var(--ink);
    font-size: 14px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    background: var(--soft);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.header-cta,
.btn-primary {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 12px 30px rgba(237, 129, 48, .28);
}

.header-cta:hover,
.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
}

.btn-danger {
    color: #fff;
    background: #b42318;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 22, 35, .86) 0%, rgba(11, 22, 35, .72) 38%, rgba(11, 22, 35, .25) 100%),
        url("../images/hero-rail.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(0deg, #fff, rgba(255,255,255,0));
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    width: min(var(--max), calc(100% - 36px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 72px 0 118px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-lead,
.page-hero p,
.section-head p,
.split-section > div > p,
.cta-section p {
    color: rgba(255, 255, 255, .78);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-lead {
    max-width: 690px;
    margin: 24px 0 0;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-panel {
    display: grid;
    gap: 14px;
    align-self: end;
    padding: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    backdrop-filter: blur(20px);
}

.hero-panel div {
    padding: 18px;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.hero-panel strong {
    display: block;
    color: #fff;
    font-size: 38px;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.03;
}

.hero-panel span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.76);
    font-size: 14px;
}

.section {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(64px, 8vw, 112px) 0;
}

.section-head {
    max-width: 700px;
    margin-bottom: 34px;
}

.section-head.wide {
    max-width: 900px;
}

.section h2,
.cta-section h2,
.split-section h2,
.news-card h2,
.requisites h2 {
    margin: 0;
    font-size: clamp(30px, 4.3vw, 52px);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-head p,
.split-section > div > p {
    color: var(--muted);
}

.problem-section {
    padding-top: 72px;
}

.problem-grid,
.service-grid,
.process-grid,
.admin-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.problem-item,
.service-card,
.process-step,
.news-card,
.admin-preview article,
.contact-card,
.contact-form-card,
.requisites {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(16, 32, 51, .06);
}

.problem-item {
    min-height: 178px;
    padding: 22px;
}

.problem-item span,
.process-step span,
.admin-preview span {
    color: var(--teal);
    font-weight: 700;
}

.problem-item p {
    margin: 22px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.service-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 360px;
    padding: 26px;
}

.service-tag {
    width: fit-content;
    padding: 6px 10px;
    color: var(--teal);
    background: rgba(15, 118, 110, .1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-card h2,
.service-card h3 {
    margin: 0;
    font-size: 24px;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

.service-card p,
.service-card strong,
.process-step p,
.advantage-list p,
.news-card p,
.admin-preview p {
    margin: 0;
    color: var(--muted);
}

.service-card strong {
    display: block;
    margin-top: auto;
    color: var(--ink);
}

.process-section {
    width: 100%;
    max-width: none;
    padding-right: max(18px, calc((100% - var(--max)) / 2));
    padding-left: max(18px, calc((100% - var(--max)) / 2));
    background: var(--soft);
}

.process-step {
    padding: 24px;
    background: #fff;
}

.process-step h3,
.advantage-list h3,
.admin-preview h2 {
    margin: 14px 0 8px;
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 400;
}

.split-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.split-section.muted {
    width: 100%;
    max-width: none;
    padding-right: max(18px, calc((100% - var(--max)) / 2));
    padding-left: max(18px, calc((100% - var(--max)) / 2));
    background: #f7fafb;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.advantage-list article {
    padding: 22px;
    border-left: 3px solid var(--orange);
    background: var(--soft);
    border-radius: 0 8px 8px 0;
}

.cta-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(48px, 7vw, 76px) max(18px, calc((100% - var(--max)) / 2));
    color: #fff;
    background: linear-gradient(135deg, #0d2c4a, #0f766e);
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lead-form label,
.subscribe-form {
    display: grid;
    gap: 7px;
}

.lead-form span {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.lead-form select,
.subscribe-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.lead-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus,
.subscribe-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(237, 129, 48, .16);
}

.span-full {
    grid-column: 1 / -1;
}

.page-hero {
    padding: clamp(72px, 9vw, 120px) max(18px, calc((100% - var(--max)) / 2));
    color: #fff;
    background: linear-gradient(135deg, rgba(13,44,74,.96), rgba(15,118,110,.94)), url("../images/hero-rail.jpg") center / cover no-repeat;
}

.page-hero.compact h1 {
    max-width: 920px;
    font-size: clamp(38px, 5.8vw, 66px);
}

.page-hero.compact p:not(.eyebrow) {
    max-width: 760px;
}

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 18px 18px 18px 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 19px;
    width: 14px;
    height: 8px;
    border-bottom: 3px solid var(--teal);
    border-left: 3px solid var(--teal);
    transform: rotate(-45deg);
}

.partner-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.partner-strip span {
    display: grid;
    place-items: center;
    min-height: 120px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 28px;
    font-family: var(--font-display);
    font-weight: 700;
}

.requisites {
    padding: 32px;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-card {
    padding: 28px;
}

.news-card time {
    display: block;
    margin-bottom: 10px;
    color: var(--teal);
    font-weight: 700;
}

.news-card h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.subscribe-band {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 42px max(18px, calc((100% - var(--max)) / 2));
    background: var(--soft);
}

.subscribe-band h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
}

.subscribe-band p {
    margin: 6px 0 0;
    color: var(--muted);
}

.subscribe-form {
    grid-template-columns: minmax(260px, 360px) auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px;
}

.contact-card,
.contact-form-card {
    padding: 28px;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.contact-card a {
    color: var(--teal);
    font-weight: 800;
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 280px;
    margin: 0 max(18px, calc((100% - var(--max)) / 2)) 80px;
    color: var(--muted);
    background:
        linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,.45)),
        repeating-linear-gradient(45deg, #e9eff3 0 10px, #f6f8fa 10px 20px);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-preview article {
    padding: 24px;
}

.admin-hero {
    background: linear-gradient(135deg, #102033, #0f766e);
}

.auth-panel,
.admin-shell {
    padding-top: 48px;
}

.auth-panel {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.auth-panel > div p {
    color: var(--muted);
}

.admin-form,
.admin-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(16, 32, 51, .06);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-nav a {
    padding: 10px 14px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.admin-preview span {
    display: block;
    color: var(--orange);
    font-size: 34px;
    line-height: 1;
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-list {
    display: grid;
    gap: 18px;
}

.admin-edit-form {
    display: grid;
    gap: 12px;
}

.admin-edit-form h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.admin-edit-form label {
    display: grid;
    gap: 6px;
}

.admin-edit-form span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-edit-form input,
.admin-edit-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-card > form + form {
    margin-top: 10px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(16, 32, 51, .06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    background: var(--soft);
    font-size: 13px;
    text-transform: uppercase;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 28px;
    padding: 48px max(18px, calc((100% - var(--max)) / 2));
    color: rgba(255,255,255,.76);
    background: #0b1623;
}

.site-footer p {
    max-width: 460px;
}

.brand-footer .brand-text strong,
.brand-footer .brand-text {
    color: #fff;
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,.78);
}

.flash {
    position: fixed;
    top: 84px;
    right: 18px;
    z-index: 80;
    max-width: 420px;
    padding: 14px 18px;
    color: #fff;
    background: var(--teal);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.flash-error {
    background: #b42318;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 18px;
}

.modal.is-open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 35, .72);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
}

.modal-card p:not(.eyebrow) {
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 11px;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav,
    .header-cta {
        display: none;
    }

    .site-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 4px;
    }

    .hero-inner,
    .split-section,
    .cta-section,
    .contact-layout,
    .site-footer,
    .subscribe-band,
    .auth-panel,
    .admin-editor-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .subscribe-form {
        grid-template-columns: 1fr;
    }

    .problem-grid,
    .service-grid,
    .process-grid,
    .admin-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand-text {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 58px 0 96px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 39px;
    }

    .hero-actions,
    .lead-form,
    .partner-strip,
    .advantage-list,
    .problem-grid,
    .service-grid,
    .process-grid,
    .admin-preview {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .problem-item,
    .service-card {
        min-height: auto;
    }

    .flash {
        right: 12px;
        left: 12px;
    }
}

