/* ==================== ГЛОБАЛЬНЫЕ СТИЛИ ==================== */
*,
*::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;
}

@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }
}

/* ==================== КОНТЕЙНЕР ==================== */
.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;
    }

    body {
        font-size: 18px;
    }
}

/* ==================== ШАПКА ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.header-row {
     display: -webkit-box;
     display: -webkit-flex;
     display: -ms-flexbox;
     display: flex;
     -webkit-box-pack: justify;
     -webkit-justify-content: space-between;
     -ms-flex-pack: justify;
     justify-content: space-between;
     -webkit-box-align: center;
     -webkit-align-items: center;
     -ms-flex-align: center;
     align-items: center;
    
}

.logo-area {
     display: -webkit-box;
     display: -webkit-flex;
     display: -ms-flexbox;
     display: flex;
     -webkit-box-align: center;
     -webkit-align-items: center;
     -ms-flex-align: center;
     align-items: center;
     gap: 0.5rem;
    
}

.logo-img {
     width: 36px;
     height: 36px;
     -o-object-fit: contain;
     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;
}

@media (min-width: 1025px) {
    .nav-list {
        gap: 2rem;
    }
}

.nav-link {
     color: #4b5563;
     font-weight: 500;
     text-decoration: none;
     -webkit-transition: color 0.2s;
     -o-transition: color 0.2s;
     transition: color 0.2s;
     font-size: 0.9rem;
    
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 1rem;
    }
}

.nav-link:hover {
    color: #000000;
}

/* ==================== РЕКВИЗИТЫ ==================== */
.requisites-section {
    padding: 3rem 0;
    background: #f9fafb;
}

@media (min-width: 768px) {
    .requisites-section {
        padding: 4rem 0;
    }
}

.requisites-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    /* max-width: 60%; */
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* @media (min-width: 640px) {
    .requisites-card { max-width: 640px; padding: 2rem; }
}
@media (min-width: 768px) {
    .requisites-card { max-width: 768px; padding: 2.5rem; }
}
@media (min-width: 1025px) {
    .requisites-card { max-width: 1024px; padding: 3rem; }
}
@media (min-width: 1280px) {
    .requisites-card { max-width: 1280px; padding: 3rem; }
}
@media (min-width: 1440px) {
    .requisites-card { max-width: 1400px; padding: 3.5rem; }
}
@media (min-width: 1920px) {
    .requisites-card { max-width: 1600px; padding: 4rem; }
} */

@media (min-width: 640px) {
    .requisites-card {
        max-width: 640px;
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .requisites-card {
        max-width: 768px;
        padding: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .requisites-card {
        max-width: 1024px;
        padding: 3rem;
    }
}

@media (min-width: 1280px) {
    .requisites-card {
        max-width: 1280px;
        padding: 3rem;
    }
}

@media (min-width: 1440px) {
    .requisites-card {
        width: 70%;
    }
}

@media (min-width: 1920px) {
    .requisites-card {
        width: 70%;
    }
}

.requisites-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .requisites-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1025px) {
    .requisites-title {
        font-size: 2.25rem;
    }
}

.requisites-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #4b5563;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.requisites-subtitle:first-of-type {
    margin-top: 0;
}

@media (min-width: 768px) {
    .requisites-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .requisites-subtitle {
        font-size: 1.875rem;
    }
}

.requisites-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.requisites-table th,
.requisites-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
}

@media (min-width: 640px) {

    .requisites-table th,
    .requisites-table td {
        padding: 10px 12px;
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    .requisites-table {
        font-size: 0.875rem;
    }

    .requisites-table th,
    .requisites-table td {
        padding: 6px 4px;
    }
}

.requisites-table th {
    background: #f9fafb;
    font-weight: 600;
    width: 40%;
    color: #4b5563;
}

.requisites-table td {
    color: #4b5563;
}



@media (max-width: 400px) {
    .bank {
        font-size: 0.8rem !important;
    }
}

.back-link {
     display: -webkit-inline-box;
     display: -webkit-inline-flex;
     display: -ms-inline-flexbox;
     display: inline-flex;
     -webkit-box-align: center;
     -webkit-align-items: center;
     -ms-flex-align: center;
     align-items: center;
     gap: 0.5rem;
     color: #4b5563;
     text-decoration: none;
     font-weight: 500;
     margin-bottom: 1.5rem;
     font-size: 0.95rem;
    
}

@media (min-width: 768px) {
    .back-link {
        font-size: 1.1rem;
    }
}

.back-link:hover {
    text-decoration: underline;
}

/* ==================== ФУТЕР ==================== */
.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.7rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 2rem;
        font-size: 0.875rem;
    }
}

.phone-link {
     color: #4b5563;
     text-decoration: none;
     -webkit-transition: color 0.2s;
     -o-transition: color 0.2s;
     transition: color 0.2s;
     font-size: 0.85rem;
    
}

@media (min-width: 768px) {
    .phone-link {
        font-size: 0.95rem;
    }
}

.phone-link:hover {
    color: #000000;
}

/* ==================== 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;
        line-height: 1.5;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
     max-width: 1280px;
     margin: 0 auto;
     display: -webkit-box;
     display: -webkit-flex;
     display: -ms-flexbox;
     display: flex;
     -webkit-flex-direction: column;
     -ms-flex-direction: column;
     flex-direction: column;
     gap: 0.5rem;
     -webkit-box-align: center;
     -webkit-align-items: center;
     -ms-flex-align: center;
     align-items: center;
     text-align: center;
    
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        gap: 0.75rem;
    }
}

.cookie-banner-text {
    margin: 0;
    flex: 1;
}

.cookie-banner-btn {
    background: #ffffff;
    color: #1f2937;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .cookie-banner-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
}

.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;
}

/* ==================== ПРОЧИЕ ==================== */
i.fa,
i.fas,
i.far {
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== КНОПКА ПЕЧАТИ ==================== */
.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: 1rem auto 2rem;
    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 {
    body {
        font-size: 12pt;
        background: white !important;
        color: #000 !important;
        /* line-height: 1.4; */
		 line-height: 0.8;
    }
    
    .site-header,
    .site-footer,
    .desktop-nav,
    #cookie-banner,
    .print-btn {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .requisites-section {
        background: white !important;
        padding: 0 !important;
    }
    
    .requisites-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;
    }
    
    .requisites-title {
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin: 1cm 0 0.5cm;
        page-break-after: avoid;
    }
    
    .requisites-subtitle {
        font-size: 14pt;
        font-weight: 600;
        margin: 1cm 0 0.5cm;
        padding-bottom: 0.3cm;
        border-bottom: 1pt solid #000;
        page-break-after: avoid;
    }
    
    .requisites-table {
        width: 100% !important;
        border-collapse: collapse;
        margin-bottom: 0.5cm;
        page-break-inside: avoid;
    }
    
    .requisites-table th,
    .requisites-table td {
        padding: 0.4cm 0.3cm;
        border-bottom: 1pt solid #333;
        font-size: 11pt;
        text-align: left;
        vertical-align: top;
		 color: #000 !important;
    }
    
    .requisites-table th {
        background: #f5f5f5 !important;
        font-weight: bold;
        width: 35%;
        color: #000 !important;
    }
    
    /* .bank { */
        /* font-family: "Courier New", Courier, monospace; */
        /* font-size: 10pt; */
        /* word-break: break-all; */
    /* } */
    
    .phone-link,
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    /* Logo for print */
    .logo-img {
        display: block;
        margin: 0 auto 0.5cm;
        width: 60px !important;
        height: auto !important;
    }
}
