:root {
    --color-bg-light: #f4f6f8;      
    --color-surface: #ffffff;       
    --color-text-dark: #1a1a1a;     
    --color-text-medium: #525252;   
    --color-graphite: #3d3d3d;      
    --color-border: #e0e0e0;        
    --color-accent-hover: #007bff;  
    
    /* Специфичные переменные для блока гарантии */
    --warranty-navy: #0a192f;       
    --warranty-blue: #64ffda;       
    --warranty-g600: #525252;       
    --warranty-g400: #8b8b8b;       
    --warranty-r: 12px;             
}

/* CSS Reset & Base */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
html, body { 
    height: 100%; 
    scroll-behavior: smooth; 
    font-smoothing: antialiased; 
    -webkit-font-smoothing: antialiased; 
}
body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    display: grid;
    place-items: center;
    min-height: 100vh;
}
.mono { 
    font-family: 'JetBrains Mono', monospace; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.content-wrapper {
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeInUp { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* =============== ХЕДЕР V2 (Парящий эффект) =============== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: transparent; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--scrolled {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--color-text-medium);
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.header--scrolled .header-top-bar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header--scrolled .header-container {
    padding: 15px 0;
}

.logo {
    font-family: 'Turbo', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-graphite);
    font-weight: 400;
    z-index: 10;
    position: relative;
}

.nav .nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10;
    position: relative;
}

.nav-list a {
    color: var(--color-text-medium);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background-color: var(--color-accent-hover);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.nav-list a:hover {
    color: var(--color-graphite);
}
.nav-list a:hover::after { 
    width: 100%; 
}

/* =============== КАРУСЕЛЬ НОВОСТЕЙ (автопрокрутка) =============== */
.news-section {
    padding: 60px 0 40px;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}
.news-title { 
    font-size: 1.5rem; 
    margin-bottom: 32px; 
    text-align: center; 
    font-weight: 500; 
    color: var(--color-graphite); 
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: visible;
    padding-bottom: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    will-change: transform;
    animation: scrollNews 40s linear infinite;
}
.carousel-track::-webkit-scrollbar { 
    display: none; 
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollNews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-896px); }
}

.news-card {
    flex: 0 0 calc(100% - 48px);
    min-width: 320px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.news-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.news-image { 
    width: 100%; 
    height: 180px; 
    background-size: cover; 
    background-position: center; 
}
.news-card-content { 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    flex-grow: 1; 
}
.news-card-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin: 0; 
    color: var(--color-graphite); 
}
.news-date { 
    font-size: 0.85rem; 
    color: var(--color-text-medium); 
    font-family: 'JetBrains Mono', monospace; 
}
.news-excerpt { 
    color: var(--color-text-medium); 
    font-size: 0.95rem; 
    line-height: 1.5; 
    flex-grow: 1; 
    margin: 0; 
}
.news-link { 
    align-self: flex-start; 
    color: var(--color-accent-hover); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: color 0.2s; 
}
.news-link:hover { 
    color: var(--color-graphite); 
}

.carousel-btn { 
    display: none; 
}

/* =============== НОВАЯ ГЛАВНАЯ СЕТКА (ТАБЛИЧКИ) =============== */
.main-grid {
    display: grid;
    gap: 24px;
    margin-top: 60px;
}

@media (min-width: 900px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-card--top {
        grid-column: 1 / -1; 
    }
}

.grid-card {
    position: relative;
    height: 220px;
    background-color: var(--color-graphite);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent 60%);
    pointer-events: none;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.grid-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0 24px 16px;
    z-index: 1;
    position: relative;
    line-height: 1.2;
}

.grid-card p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    padding: 0 24px 24px;
    z-index: 1;
    position: relative;
    opacity: 0.9;
}

/* =============== БЛОК "О СИСТЕМЕ" =============== */
.about-system {
    grid-column: 1 / -1;
    margin-top: 60px;
    text-align: left;
    max-width: 800px;
    align-self: start;
}

.about-system h2 {
    font-size: 1.8rem;
    color: var(--color-graphite);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-system p {
    color: var(--color-text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.system-features {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.feature-item strong {
    display: block;
    color: var(--color-graphite);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.feature-item span {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Адаптация высоты карточек на очень широких мониторах */
@media (min-width: 1200px) {
    .grid-card { 
        height: 260px; 
    }
}

/* =============== ТИПОГРАФИКА СТРАНИЦЫ ГАРАНТИЙ =============== */
.lc-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--color-graphite);
}

.lc-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-graphite);
}

.warranty-intro,
.warranty-subintro {
    font-size: 14px;
    line-height: 1.8;
    color: var(--warranty-g600);
    margin-bottom: 16px;
}

/* =============== ОФОРМЛЕНИЕ СПИСКА УСЛОВИЙ =============== */
.guarantee-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: step-counter;
}

.guarantee-list li {
    position: relative;
    padding-left: 36px;
    color: var(--warranty-g600);
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.guarantee-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--warranty-blue);
    color: var(--warranty-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.guarantee-list li a {
    color: var(--warranty-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.guarantee-list li a:hover {
    opacity: 0.8;
}

/* =============== ЛЕЙАУТ СТРАНИЦЫ ГАРАНТИЙ =============== */
.warranty-layout {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .warranty-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* =============== БОКОВАЯ ПАНЕЛЬ (SIDECARD) =============== */
.warranty-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.warranty-sidecard {
    background: var(--warranty-navy);
    border-radius: var(--warranty-r);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.sidecard-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warranty-blue);
    margin-подпись: 8px;
    display: block;
}

.sidecard-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sidecard-contact {
    font-size: 13px;
    color: var(--warranty-g400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidecard-contact:hover {
    color: #ffffff;
}

/* =============== БЛОК ОБРАЗЦОВ СЕРТИФИКАТОВ =============== */
.certs-block {
    background: var(--color-bg-light);
    border-radius: var(--warranty-r);
    padding: 24px;
    margin-top: 16px;
    border: 1px solid var(--color-border);
}

.certs-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warranty-g400);
    margin-bottom: 12px;
    display: block;
}

.certs-item {
    font-size: 13px;
    color: var(--warranty-g600);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.certs-item:hover {
    color: var(--color-accent-hover);
}

.certs-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* =============== ФОРМА И ФУТЕР (без изменений) =============== */
h1 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    font-weight: 600; 
    margin-bottom: 16px; 
    line-height: 1.1; 
    color: var(--color-graphite); 
}
.subtitle { 
    color: var(--color-text-medium); 
    font-size: 1.1rem; 
    margin-bottom: 32px; 
}
.tech-tags { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-bottom: 40px; 
}
.tech-tags span { 
    background-color: var(--color-bg-light); 
    color: var(--color-text-medium); 
    padding: 6px 12px; 
    border-radius: 999px; 
    font-size: 0.85rem; 
    font-family: 'JetBrains Mono', monospace; 
    font-weight: 500; 
    border: 1px solid var(--color-border); 
}
.notify-form { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 40px; 
    align-items: stretch; 
    flex-direction: column; 
}
@media (min-width: 420px) { 
    .notify-form { 
        flex-direction: row; 
    } 
}
.notify-form input { 
    flex: 1; 
    background-color: var(--color-surface); 
    border: 1px solid var(--color-border); 
    color: var(--color-text-dark); 
    padding: 16px 20px; 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: border-color 0.2s; 
}
.notify-form input:focus { 
    outline: none; 
    border-color: var(--color-accent-hover); 
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1); 
}
.notify-form button { 
    flex-shrink: 0; 
    background-color: var(--color-graphite); 
    color: #fff; 
    border: none; 
    padding: 0 32px; 
    font-weight: 600; 
    font-size: 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.notify-form button:hover:not(:disabled) { 
    background-color: #000; 
    transform: translateY(-1px); 
}
.form-status { 
    height: 20px; 
    margin-top: 8px; 
    font-size: 0.85rem; 
    font-style: italic; 
}
.form-status.success { 
    color: #28a745; 
}
.form-status.error { 
    color: #dc3545; 
}
.footer { 
    border-top: 1px solid var(--color-border); 
    padding-top: 32px; 
    color: var(--color-text-medium); 
    font-size: 0.9rem; 
}
.contact-line { 
    margin-top: 4px; 
}
.visually-hidden { 
    position: absolute !important; 
    width: 1px; 
    height: 1px; 
    overflow: hidden; 
    clip: rect(1px, 1px, 1px, 1px); 
    white-space: nowrap; 
}


/* =============== ПРЕМИАЛЬНАЯ КАРТОЧКА КОНТАКТОВ (ОБНОВЛЕНО ПОД ЗАКАЗ) =============== */
.contact-page-wrapper {
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.contact-master-frame {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-master-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.frame-layer {
    position: relative;
    isolation: isolate;
}

/* --- Слой карты --- */
.map-glass {
    padding: 24px;
}
.map-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-graphite);
    font-weight: 600;
    font-size: 1.1rem;
}
.label-icon {
    font-size: 1.3rem;
}
.glass-map-holder {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.glass-map-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Слой информации (обновлено под черный шрифт и удаление градиента) --- */
.info-grid-section {
    padding: 24px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.info-col .col-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #000000;
}
.col-icon {
    font-size: 1.5rem;
}
.col-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}
.detail-row, .email-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.detail-row:last-child, .email-item:last-child {
    margin-bottom: 0;
}
.detail-label, .dept-name {
    font-size: 0.85rem;
    color: #525252;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}
.detail-value, .mail-link {
    font-size: 1.1rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}
.mail-link:hover {
    color: var(--color-accent-hover);
}

/* --- Основание рамки --- */
.frame-base {
    background: var(--warranty-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 28px;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}
.base-text {
    font-size: 0.95rem;
    margin: 0 0 12px;
    opacity: 0.9;
}
.base-contact-line .mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}
.base-contact-line .mono + .mono {
    margin-left: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding-top: 10px;
    }
    .contact-master-frame {
        border-radius: 16px;
    }
    .glass-map-holder {
        height: 240px;
    }
    .info-grid-section {
        padding: 20px;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .col-title {
        font-size: 1.3rem;
    }
    .detail-value, .mail-link {
        font-size: 1rem;
    }
    .frame-base {
        padding: 24px 20px;
    }
}

/* Фиксируем глобальные стили под новую карточку */
.global-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}