/* ==================== БАЗОВЫЕ СТИЛИ (из requisites.css) ==================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #fff;
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 2rem;
    }
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #000;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

.logo-text-light {
    color: #4b5563;
}

.desktop-nav {
    display: block;
}

/* @media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
} */

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #000;
}



/* ==================== HERO SECTION ==================== */
.installation-hero {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

@media (min-width: 768px) {
    .installation-hero {
        padding: 1rem 0;
    }
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== INSTRUCTIONS ==================== */
.instructions-section {
    padding: 1rem 0;
    background: #f9fafb;
}

@media (min-width: 768px) {
    .instructions-section {
        padding: 1rem 0;
    }
}

.instructions-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .instructions-card {
        padding: 3rem;
    }
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #000;
}

@media (min-width: 768px) {
    .step-item {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

.step-number {
    background: #000;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
}

.step-number::before {
    content: counter(step-counter);
}

.step-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}

.step-placeholder {
    background: #e5e7eb;
    border: 2px dashed #9ca3af;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .step-content {
        font-size: 1.1rem;
    }
    
    .step-placeholder {
        min-height: 150px;
        padding: 2.5rem;
    }
}

.step-content strong {
    color: #000;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #000000;
    color: white;
    padding: 2rem 0 1.5rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 3rem 0 2rem;
    }
}

.footer-grid-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .footer-grid-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .footer-grid-cols {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.footer-col h3, .footer-col h4 {
    margin-top: 0;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .footer-logo {
        font-size: 1.5rem;
    }
}

.footer-logo-dim {
    color: #9ca3af;
}

.footer-desc {
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .footer-title {
        font-size: 1.125rem;
    }
}

.footer-links,
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .footer-link {
        font-size: 0.95rem;
    }
}

.footer-link:hover {
    color: white;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.85rem;
}

.footer-contacts i {
    width: 1.2rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-contacts li {
        font-size: 0.95rem;
    }
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: #f3f4f6;
    padding: 0.75rem;
    z-index: 100;
    font-size: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .cookie-banner {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
    }
}

.cookie-banner-text {
    margin: 0;
    flex: 1;
}

.cookie-banner-btn {
    background: #ffffff;
    color: #1f2937;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

@media (min-width: 768px) {
    .cookie-banner-btn {
        padding: 0.5rem 1.5rem;
    }
}

.cookie-banner-btn:hover {
    background: #e5e7eb;
}

.policy-banner-link {
    color: #60a5fa;
    text-decoration: underline;

    display: inline-block;
    line-height: 1.3;

    /* font-size: clamp(0.85rem, 0.6rem + 0.6vw, 1rem); */

    word-break: break-word;
    overflow-wrap: anywhere;
}

.policy-banner-link:hover {
    color: #3b82f6;
    text-decoration-thickness: 2px;
}

/* ==================== УТИЛИТЫ ==================== */
.hidden {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

i.fa, i.fas {
    pointer-events: none;
}

/* ==================== КНОПКА ПЕЧАТИ ==================== */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0rem auto 1rem;
    display: block;
    font-size: 1rem;
    transition: background 0.2s;
}

.print-btn:hover {
    background: #333;
}

.print-btn i {
    font-size: 1.1em;
}

@media (max-width: 640px) {
    .print-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ==================== ПЕЧАТЬ (A4) ==================== */
@page {
    size: A4 portrait;
    margin: 2cm;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body {
        font-size: 12pt;
        background: white !important;
        color: #000 !important;
        line-height: 1.4;
    }
    
    .site-header,
    .site-footer,
    .desktop-nav,
    #cookie-banner,
    .print-btn,
    .hero-image,
    .hero-img {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .installation-hero,
    .instructions-section {
        background: white !important;
        padding: 0 !important;
    }
    
    .instructions-card {
        box-shadow: none !important;
        border: none !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .hero-title {
        font-size: 20pt;
        font-weight: bold;
        text-align: center;
        margin: 1.5cm 0 1cm;
        page-break-after: avoid;
        padding-bottom: 0.5cm;
        border-bottom: 2pt solid #000;
    }
    
    .instructions-list {
        counter-reset: step-counter;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .step-item {
        counter-increment: step-counter;
        display: flex;
        align-items: flex-start;
        padding: 0.2cm 0.3cm;
        /* border-bottom: 1pt solid #333; */
        background: none !important;
        page-break-inside: avoid;
		border-left:none;
    }
    
    .step-item:last-child {
        border-bottom: none;
    }
    
    .step-number {
        display: inline-block;
        background: #000;
        color: white;
        width: 3em;
        height: 3em;
        border-radius: 50%;
        text-align: center;
        line-height: 3em;
        font-weight: bold;
        font-size: 14pt;
        margin-right: 0.8cm;
        vertical-align: top;
    }
    
    .step-number::before {
        content: counter(step-counter);
    }
    
    .step-content {
        display: inline-block;
        text-align: left;
        font-size: 12pt;
        line-height: 1.4;
        vertical-align: top;
        width: calc(100% - 4em);
    }
    
    .step-content strong {
        font-weight: bold;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}
