*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #fffaf5;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f0d7c3;
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --accent: #fff1e6;
    --card: #ffffff;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.mobile-nav-open {
    overflow: hidden;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 1.2rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 230px;
    height: auto;
    animation: none;
    image-rendering: auto;
}

.brand-subtitle {
    max-width: 150px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-link {
    color: #334155;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.nav-link.is-active {
    color: var(--brand-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.header-contacts {
    display: grid;
    gap: 0.12rem;
    justify-items: end;
    font-size: 0.9rem;
    min-width: 0;
}

.phone-link,
.email-link {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.email-link {
    color: var(--brand-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 6rem;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    background: #0a0f1a;
    border-bottom: 1px solid var(--line);
}

/* Кинематографичный фон нанесения дорожной разметки */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #05070f;
}

.hero-background svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Плавное кинематографичное нанесение разметки */
.white-lines .left-line,
.white-lines .right-line {
    stroke-dashoffset: 420;
    animation: cinematicMarking 12s linear infinite;
    filter: drop-shadow(0 0 25px rgba(186, 230, 253, 0.65));
}

@keyframes cinematicMarking {
    to {
        stroke-dashoffset: -260;
    }
}

/* Атмосферное дыхание жёлтой линии */
.yellow-line {
    animation: cinematicYellow 7s ease-in-out infinite;
}

@keyframes cinematicYellow {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 0.98; }
}

/* Лёгкое движение атмосферного света */
.light-beams {
    animation: lightDrift 25s linear infinite;
}

@keyframes lightDrift {
    0%   { transform: translateX(-60px) rotate(0deg); }
    100% { transform: translateX(90px) rotate(1deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(15, 23, 42, 0.68) 28%,
        rgba(15, 23, 42, 0.48) 50%,
        rgba(234, 88, 12, 0.22) 72%,
        rgba(255, 243, 232, 0.65) 88%,
        rgba(255, 255, 255, 0.75) 100%
    );
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.25), rgba(234, 88, 12, 0));
    pointer-events: none;
    z-index: 2;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.45), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    animation: fadeUp 0.8s ease both;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 3;
    max-width: 760px;
}

.media-section img,
.card-image {
    display: block;
    width: 100%;
    object-fit: cover;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
    font-weight: 700;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.8rem;
}

h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.8rem);
    max-width: 38ch;
    line-height: 1.1;
    color: inherit;
    text-shadow: none;
}

/* Белый заголовок только на главной странице */
.hero h1 {
    color: #ffffff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.75);
}

[data-typewriter] {
    min-height: 2.4em;
}

.typewriter-active::after {
    content: "|";
    display: inline-block;
    margin-left: 0.08em;
    color: var(--brand-dark);
    animation: caretBlink 0.75s step-end infinite;
}

h2 {
    font-size: clamp(1.4rem, 3.6vw, 2rem);
}

h3 {
    font-size: 1.1rem;
}

.hero-text,
.section-lead {
    max-width: 58ch;
    color: var(--brand-dark);
    font-size: clamp(1.1rem, 1.25vw, 1.25rem);
    font-weight: 500;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    display: inline-block;
    padding: 0.72rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

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

.btn-secondary {
    color: var(--brand-dark);
    border-color: #fdba74;
    background: #fff7ed;
}

.section {
    padding: 3.6rem 0;
}

.mini-list {
    margin: 0.8rem 0 1rem;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.links-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.media-section {
    display: grid;
    gap: 1.35rem;
    align-items: center;
}

.media-section img {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.card-image {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    margin-bottom: 0.85rem;
}

.section-accent {
    background: var(--accent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-dark {
    background: #0f172a;
    color: #e2e8f0;
}

.section-dark .section-lead {
    color: #cbd5e1;
}

.lead-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.66)),
        url("/uploads/lead-form-road-logo.webp") center / cover no-repeat;
}

.lead-section .container {
    position: relative;
    z-index: 1;
}

.contact-lead-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.7)),
        url("/uploads/contact-form-road-logo.webp") center / cover no-repeat;
}

.contact-lead-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid,
.cards-grid {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.feature-card,
.case-card,
.gallery-card {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 12px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stat-card:hover,
.feature-card:hover,
.case-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.12);
    border-color: #fdba74;
}

.stat-card,
.feature-card {
    padding: 1rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.stat-label {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.case-card img,
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.case-card-body {
    padding: 0.9rem 1rem 1rem;
}

.cert-list,
.equipment-list {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.cert-list li,
.equipment-list li {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
}

.cert-list li {
    background: #fff7ed;
    border-color: #fdba74;
}

.steps-list {
    margin: 1.2rem 0 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.8rem;
}

.muted-note,
.contacts-inline {
    color: var(--muted);
}

.two-col {
    display: grid;
    gap: 1.5rem;
}

.lead-form-wrap {
    border: 1px solid #7c2d12;
    border-radius: 12px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.modal-open {
    overflow: hidden;
}

.kp-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kp-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.kp-modal.is-open .kp-modal-backdrop {
    opacity: 1;
}

.kp-modal-dialog {
    position: relative;
    width: min(920px, 94vw);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.32);
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.kp-modal.is-open .kp-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kp-modal-visual {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 1rem;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.25), transparent 34%),
        linear-gradient(145deg, #fff7ed 0%, #ffffff 48%, #ffedd5 100%);
    border-right: 1px solid var(--line);
}

.kp-modal-logo {
    display: block;
    width: min(280px, 72%);
    height: auto;
}

.kp-modal-line {
    display: block;
    width: min(260px, 76%);
    height: 10px;
    border-top: 3px solid var(--brand);
    border-bottom: 3px solid var(--brand);
    background: repeating-linear-gradient(
        90deg,
        transparent 0 16px,
        rgba(234, 88, 12, 0.45) 16px 28px
    );
    border-radius: 999px;
}

.kp-modal-visual p {
    margin: 0;
    max-width: 260px;
    color: #334155;
    font-weight: 700;
    text-align: center;
}

.kp-modal-form {
    padding: 1rem;
}

.kp-modal .lead-form-wrap {
    border: 0;
    padding: 0.2rem 0 0;
    background: transparent;
    backdrop-filter: none;
}

.kp-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    background: #fff7ed;
    color: #9a3412;
    transition: transform 0.18s ease, background 0.18s ease;
}

.kp-modal-close:hover {
    background: #ffedd5;
    transform: rotate(90deg);
}

.lead-form {
    display: grid;
    gap: 0.7rem;
}

.lead-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    padding: 0.62rem 0.72rem;
    font: inherit;
}

.lead-form button {
    justify-self: start;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.lead-form button:hover {
    background: var(--brand-dark);
}

.error {
    color: #dc2626;
    font-size: 0.82rem;
}

.notice {
    margin: 0 0 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
}

.notice.success {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.notice.error-notice {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.map-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.requisites {
    margin: 1rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.requisites div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.45rem;
}

.requisites dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: #fff3e8;
    padding: 2.2rem 0 1.1rem;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.footer-brand-logo {
    width: min(220px, 72vw);
    height: auto;
}


.footer-grid {
    display: grid;
    gap: 1rem;
}

.footer-grid h3 {
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.3rem;
}

.footer-bottom {
    margin-top: 1.1rem;
    border-top: 1px solid #d1d5db;
    padding-top: 0.8rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-body {
    background: #fff8f1;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.admin-login-main {
    width: min(460px, 92vw);
}

.admin-login-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 1.4rem;
    box-shadow: 0 8px 30px rgba(194, 65, 12, 0.1);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 241, 0.96);
    backdrop-filter: blur(10px);
}

.admin-header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.admin-brand {
    font-weight: 800;
    color: var(--brand-dark);
}

.admin-nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-nav-link {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    color: #374151;
    font-weight: 600;
}

.admin-nav-link:hover {
    background: #fff1e6;
    border-color: #fdba74;
}

.admin-nav-link.is-active {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
}

.admin-logout {
    color: #9a3412;
    font-weight: 600;
}

.admin-main {
    padding: 1.2rem 0 2.2rem;
}

.admin-container {
    display: grid;
    gap: 1rem;
}

.admin-alert {
    border: 1px solid;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    margin: 0;
}

.admin-alert-success {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.admin-alert-error {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.admin-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.admin-subsection {
    border: 1px dashed #fdba74;
    border-radius: 12px;
    background: #fff7ed;
    padding: 0.9rem;
}

.admin-form {
    display: grid;
    gap: 0.8rem;
}

.admin-form-inline {
    align-items: end;
}

.admin-field {
    display: grid;
    gap: 0.3rem;
}

.admin-field span {
    font-size: 0.9rem;
    color: #4b5563;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    border: 1px solid #d6d3d1;
    border-radius: 9px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    background: #fff;
}

.admin-code {
    min-height: 300px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
}

.admin-grid-two {
    display: grid;
    gap: 0.8rem;
}

.admin-grid-three {
    display: grid;
    gap: 0.8rem;
}

.admin-grid-four {
    display: grid;
    gap: 0.8rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-cards {
    display: grid;
    gap: 0.8rem;
}

.admin-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.admin-muted {
    color: #6b7280;
}

.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

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

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #f1e4d8;
    padding: 0.55rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #fff7ed;
    font-size: 0.85rem;
    color: #7c2d12;
}

.admin-status-form {
    display: grid;
    gap: 0.3rem;
}

.admin-media-grid {
    display: grid;
    gap: 0.8rem;
}

.admin-media-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.admin-media-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f8fafc;
}

.admin-media-body {
    padding: 0.7rem 0.8rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-0 {
    transition-delay: 0s;
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

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

@keyframes caretBlink {
    50% {
        opacity: 0;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@media (min-width: 860px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    }

    .media-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1.2fr;
    }

    .admin-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        background: #fff7ed;
    }

    .container {
        width: min(100% - 32px, 1120px);
    }

    .site-header {
        position: sticky;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
    }

    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        min-height: auto;
        padding: 0.45rem 0;
        gap: 0.5rem;
    }

    .brand {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .brand-logo {
        width: min(158px, 48vw);
    }

    .header-contacts {
        display: none;
    }

    .phone-link,
    .email-link {
        white-space: nowrap;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
        align-items: center;
        min-height: 36px;
        padding: 0.46rem 0.78rem;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(234, 88, 12, 0.1);
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        z-index: 30;
        width: auto;
        flex-direction: column;
        gap: 0.2rem;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 0.45rem;
        background: #fff;
        box-shadow: 0 12px 30px rgba(194, 65, 12, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.72rem 0.8rem;
        border-radius: 8px;
        text-align: center;
    }

    .nav-link:hover {
        transform: none;
        background: #fff7ed;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 3.2rem 0 3rem;
        align-items: start;
    }

    .hero-background svg {
        transform: scale(1.08);
        transform-origin: center;
    }

    .white-lines .left-line,
    .white-lines .right-line {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
        opacity: 1;
    }

    .yellow-line {
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(234, 179, 8, 0.65));
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.76) 0%,
            rgba(15, 23, 42, 0.58) 58%,
            rgba(194, 65, 12, 0.26) 100%
        );
    }

    .hero-grid {
        gap: 1rem;
        max-width: none;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }

    h1 {
        max-width: 13ch;
        font-size: clamp(1.95rem, 10vw, 2.75rem);
        line-height: 1.06;
    }

    .hero::before {
        width: 260px;
        height: 260px;
        right: -110px;
        top: -90px;
    }

    .section {
        padding: 2.2rem 0;
    }

    h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .hero-text,
    .section-lead {
        font-size: 0.98rem;
    }

    .hero-actions {
        gap: 0.6rem;
        margin-top: 1.25rem;
    }

    .hero-actions .btn,
    .links-row .btn,
    .admin-actions .btn {
        width: 100%;
        text-align: center;
    }

    .btn {
        padding: 0.86rem 1rem;
        border-radius: 12px;
    }

    .cards-3 {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .stat-card,
    .gallery-card {
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(194, 65, 12, 0.08);
    }

    .feature-card:hover,
    .stat-card:hover,
    .gallery-card:hover {
        transform: none;
    }

    .media-section {
        gap: 1rem;
    }

    .media-section img,
    .card-image {
        border-radius: 14px;
    }

    .lead-section,
    .contact-lead-section {
        background-position: center;
    }

    .lead-form-wrap {
        border-radius: 16px;
    }

    .lead-form button {
        width: 100%;
        justify-self: stretch;
    }

    .kp-modal {
        place-items: center;
        align-items: center;
        justify-items: center;
        padding: 0.75rem;
    }

    .kp-modal-dialog {
        width: min(92vw, 420px);
        max-height: calc(100dvh - 1.5rem);
        grid-template-columns: 1fr;
        margin: 0 auto;
        transform: translateY(10px) scale(0.98);
        border-radius: 16px;
    }

    .kp-modal-visual {
        min-height: 130px;
        padding: 1rem;
    }

    .kp-modal-logo {
        width: min(190px, 58vw);
    }

    .kp-modal-line {
        width: min(210px, 62vw);
    }

    .kp-modal-form {
        padding: 0.85rem 0.9rem 1rem;
    }

    .kp-modal-close {
        top: 0.55rem;
        right: 0.55rem;
    }

    .map-frame {
        min-height: 230px;
    }

    .requisites div {
        grid-template-columns: 1fr;
    }

    .admin-header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 0.7rem 0;
    }

    .admin-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .kp-modal,
    .kp-modal-backdrop,
    .kp-modal-dialog,
    .kp-modal-close {
        transition: none !important;
    }
}
