/* ============================================================
   РУСТА Констракшн — style.css
   ============================================================ */

/* === VARIABLES ======================================= */
:root {
    --blue:        #1B4F8A;
    --blue-dark:   #163F6E;
    --blue-pale:   #EBF2FA;
    --blue-border: #CCDFF5;
    --text:        #1C1E21;
    --text-2:      #474C54;
    --text-muted:  #72787F;
    --text-light:  #A0A6AE;
    --bg:          #FFFFFF;
    --bg-grey:     #F4F6F9;
    --bg-grey-2:   #ECEFF4;
    --border:      #DDE1E7;
    --border-light:#EAEDF1;
    --warn-bg:     #FEF3F2;
    --warn-red:    #B91C1C;
    --warn-border: #FECACA;
    --radius-sm:   2px;
    --radius:      4px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:      0 4px 16px rgba(0,0,0,0.07);
    --ease:        0.18s ease;
}

/* === RESET =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1b1f24;
    background: #f7f7f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--ease); }
img { max-width: 100%; display: block; }
p { margin-bottom: 0; }

/* === HEADER — точная копия rusta-service.ru ========= */

/* navbar backdrop (как у них) */
.navbar {
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}

/* Brand */
.navbar-brand {
    font-weight: 700;
    letter-spacing: .2px;
}

/* Nav links */
.navbar .nav-link {
    color: #374151;
    font-size: 16px;
    transition: color var(--ease);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--blue); }

/* CTA button — btn-accent */
.btn-accent {
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 400;
    padding: 5px 16px 6px;
    border-radius: 4px;
    transition: background var(--ease), color var(--ease);
}
.btn-accent:hover { background: #2060A0; color: #fff; }

/* Scrolled shadow */
#site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

/* === INTRO =========================================== */
.intro-section {
    padding: 80px 0;
    background: var(--bg-grey);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.intro-kicker {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.intro-title {
    font-weight: 600;
    font-size: 65px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
}

.intro-sub {
    font-weight: 400;
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.intro-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.intro-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-ghost {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: all var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Intro factory image */
.intro-factory-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(27,79,138,0.12));
    animation: fadeUp 0.9s 0.35s ease both;
}

/* === WARNING ========================================= */
.warning-strip {
    background: var(--warn-bg);
    border-top: 1px solid var(--warn-border);
    border-bottom: 1px solid var(--warn-border);
    padding: 36px 0;
}

.warning-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-left: 3px solid var(--warn-red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}

.warning-icon { flex-shrink: 0; padding-top: 1px; }

.warning-body {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.65;
}
.warning-title { color: var(--warn-red); margin-right: 4px; }
.warning-body strong { color: var(--text); }
.warning-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.warning-body a:hover { color: var(--blue-dark); }

/* === SECTIONS ======================================== */
.page-section { padding: 80px 0; background: var(--bg); }
.page-section--grey { background: var(--bg-grey); }

.section-label {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.section-title {
    font-weight: 500;
    font-size: 38px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 25px;
}

.section-lead {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-top: 16px;
    max-width: 640px;
}

/* === ABOUT =========================================== */
.section-sidebar { position: sticky; top: 80px; }

/* Sidebar aerial map image */
.sidebar-map-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;
    border-radius: var(--radius);
    object-fit: contain;
}

.content-text p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 16px;
}
.content-text p:last-child { margin-bottom: 0; }

.director-block {
    margin-top: 28px;
    padding: 14px 18px;
    border-left: 3px solid var(--blue);
    background: var(--bg-grey);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.director-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 3px;
}
.director-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

@media (max-width: 767px) {
    .section-sidebar { position: static; }
    .sidebar-facts { flex-direction: row; }
    .sfact { flex: 1; }
}

/* === SERVICES ======================================== */
.svc-card {
    height: 100%;
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.svc-card:hover {
    border-color: var(--blue-border);
    box-shadow: var(--shadow-sm);
}

.svc-icon {
    color: var(--blue);
    opacity: 0.75;
    margin-bottom: 16px;
}

.svc-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.svc-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === GROUP =========================================== */
.company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
    cursor: default;
}
.company-card--current {
    border-color: var(--blue);
    border-width: 2px;
}
.company-card--link { cursor: pointer; }
.company-card--link:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(27,79,138,0.1);
}

.cc-type {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.cc-name {
    font-weight: 600;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    line-height: 1.1;
}

.cc-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
}

.cc-url {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    opacity: 0.7;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}
.cc-url--ext { opacity: 0.6; }

/* Group photo */
.group-photo-block {
    margin-top: 40px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.group-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 50%;
    filter: brightness(0.85) saturate(0.8);
    display: block;
    transition: filter 0.4s ease;
}
.group-photo-block:hover .group-photo { filter: brightness(0.92) saturate(0.9); }
.group-photo-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 22px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    background: linear-gradient(to top, rgba(28,30,33,0.7) 0%, transparent 100%);
}

/* === REQUISITES ====================================== */
.req-card {
    padding: 24px 28px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    height: 100%;
}

.req-card-title {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.req-dl { margin-bottom: 0; }

.req-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.req-row:last-child { border-bottom: none; }

.req-row dt {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    font-style: normal;
}
.req-row dd {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 479px) {
    .req-row { grid-template-columns: 1fr; gap: 2px; }
    .req-row dt { font-size: 11px; }
}

/* === CONTACTS ======================================== */
.contact-card {
    padding: 24px;
    background: var(--bg-grey);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    height: 100%;
    transition: border-color var(--ease);
}
.contact-card:hover { border-color: var(--blue-border); }

.contact-label {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-value {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    transition: color var(--ease);
    margin-bottom: 2px;
}
a.contact-value:hover { color: var(--blue); }
.contact-value--text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* === FOOTER — точная копия rusta-service.ru ========= */
#footer {
    background: #111418;
    color: #d1d5db;
}

#footer .small { font-size: 13px; line-height: 1.6; }
#footer .small-muted { color: #6b7280; }

#footer a { color: #d1d5db; }
#footer a:hover { color: #fff; }

/* === REVEAL ANIMATION ================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE ====================================== */
@media (max-width: 767px) {
    .page-section { padding: 56px 0; }
    .intro-section { padding: 60px 0; }
    .intro-title { font-size: 42px }
    .warning-strip { padding: 12px 0; }
    .warning-card { padding: 12px 14px; }
    .group-photo { height: 200px; }
    .intro-sub{line-height: 1.5;}
    .intro-kicker {font-size: 10px;}
    .section-title {font-size: 28px;margin-bottom:0px;}
    .btn-accent {margin-top:20px;}
}

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