/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1E2A3A;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-inner {
    width: 48px;
    height: 48px;
    border: 2px solid #E9ECEF;
    border-top-color: #1A4D8C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Typography */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A4D8C;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0B1C2E;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E9ECEF;
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    color: #0B1C2E;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1A4D8C;
    color: #FFFFFF;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.logo-text {
    font-weight: 500;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: #4A5B6E;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #1A4D8C;
}

.nav-contacts {
    display: none;
}

@media (min-width: 992px) {
    .nav-contacts {
        display: block;
    }
}

.nav-phone {
    color: #1A4D8C;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #1E2A3A;
    transition: 0.2s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F8FAFE 0%, #FFFFFF 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1A4D8C;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0B1C2E;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-accent {
    color: #1A4D8C;
}

.hero-description {
    font-size: 1rem;
    color: #5A6B7E;
    line-height: 1.6;
    max-width: 560px;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #FFFFFF;
}

.about-grid {
    display: grid;
    gap: 64px;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }
}

.about-text {
    color: #4A5B6E;
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #1A4D8C;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #8A9AAC;
}

/* Legitimacy FSSP */
.legitimacy-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #E9ECEF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.legitimacy-card:hover {
    border-color: #D0D8E3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.legitimacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFE;
    padding: 6px 14px;
    border-radius: 60px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1A4D8C;
    letter-spacing: 0.3px;
    border: 1px solid #E9ECEF;
}

.legitimacy-badge svg {
    width: 18px;
    height: 18px;
    color: #1A4D8C;
}

.legitimacy-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0B1C2E;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.legitimacy-date {
    font-size: 0.875rem;
    color: #8A9AAC;
    margin-bottom: 20px;
}

.legitimacy-divider {
    height: 1px;
    background: #E9ECEF;
    margin: 20px 0;
}

.legitimacy-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.legitimacy-detail:last-of-type {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #8A9AAC;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 500;
    color: #4A5B6E;
    text-align: right;
    overflow-wrap: anywhere;
}

.legitimacy-insurance {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #F8FAFE;
    padding: 16px;
    border-radius: 20px;
    margin: 20px 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4A5B6E;
    border: 1px solid #E9ECEF;
}

.legitimacy-insurance svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #1A4D8C;
}

.legitimacy-insurance strong {
    color: #0B1C2E;
    font-weight: 600;
}

.insurance-period {
    font-size: 0.75rem;
    color: #1A4D8C;
    font-weight: 500;
}

/* Общий стиль для футеров карточек */
.legitimacy-footer,
.software-certificate-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E9ECEF;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8A9AAC;
}

.legitimacy-footer svg,
.software-certificate-footer svg {
    width: 12px;
    height: 12px;
    color: #8A9AAC;
}

/* Directions Section */
.directions {
    padding: 100px 0;
    background: #F8FAFE;
}

.directions-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .directions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.direction-card {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.direction-card:hover {
    border-color: #D0D8E3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.direction-icon {
    color: #1A4D8C;
    margin-bottom: 24px;
}

.direction-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #0B1C2E;
    margin-bottom: 16px;
}

.direction-text {
    color: #5A6B7E;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Product Section */
.product {
    padding: 100px 0 80px 0;
    background: #FFFFFF;
}

.product-grid {
    display: grid;
    gap: 64px;
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }
}

.product-description {
    color: #4A5B6E;
    margin-bottom: 32px;
    line-height: 1.7;
}

.product-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #4A5B6E;
    line-height: 1.4;
}

.product-feature-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #1A4D8C;
}

.software-certificate-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #E9ECEF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.software-certificate-card:hover {
    border-color: #D0D8E3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.software-certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFE;
    padding: 6px 14px;
    border-radius: 60px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1A4D8C;
    letter-spacing: 0.3px;
    border: 1px solid #E9ECEF;
}

.software-certificate-badge svg {
    width: 18px;
    height: 18px;
    color: #1A4D8C;
}

.software-certificate-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0B1C2E;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.software-certificate-date {
    font-size: 0.875rem;
    color: #8A9AAC;
    margin-bottom: 20px;
}

.software-certificate-divider {
    height: 1px;
    background: #E9ECEF;
    margin: 20px 0;
}

.software-certificate-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.software-certificate-detail:last-of-type {
    margin-bottom: 0;
}

.software-certificate-detail .detail-label {
    font-weight: 500;
    color: #8A9AAC;
    flex-shrink: 0;
}

.software-certificate-detail .detail-value {
    font-weight: 500;
    color: #4A5B6E;
    text-align: right;
    overflow-wrap: anywhere;
}

.software-certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1A4D8C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.software-certificate-link:hover {
    color: #0E3A6B;
    text-decoration: underline;
}

.software-certificate-link svg {
    width: 14px;
    height: 14px;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: #FFFFFF;
}

.contacts-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.contact-item {
    margin-bottom: 32px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8A9AAC;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: #0B1C2E;
}

.contact-value a {
    color: #1A4D8C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: #0E3A6B;
}

.map-placeholder {
    background: #FFFFFF;
    border-radius: 24px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #1A4D8C;
    border: 1px solid #E9ECEF;
}

.map-placeholder p {
    color: #6C7E94;
    font-size: 0.875rem;
}

/* ========== ПРИЖАТИЕ ПРАВЫХ БЛОКОВ К ПРАВОМУ КРАЮ НА ДЕСКТОПЕ ========== */
@media (min-width: 992px) {
    .about-image,
    .product-visual,
    .requisites-qr {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
    
    .about-image .legitimacy-card,
    .product-visual .software-certificate-card,
    .requisites-qr .qr-card {
        max-width: 500px;
        width: 100%;
    }
}

/* Footer */
.footer {
    border-top: 1px solid #E9ECEF;
    padding: 48px 0;
    background: #FFFFFF;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #8A9AAC;
}

.footer-link {
    color: #8A9AAC;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1A4D8C;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== Реквизиты (СБП) ========== */
.requisites {
    padding: 100px 0;
    background: #F8FAFE;
}

.requisites-grid {
    display: grid;
    gap: 64px;
}

@media (min-width: 992px) {
    .requisites-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }
}

.requisites-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requisite-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F2F5;
}

.requisite-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.requisite-label {
    color: #8A9AAC;
    min-width: 140px;
    flex-shrink: 0;
    font-weight: 500;
}

.requisite-value {
    color: #4A5B6E;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.requisite-item.payment-purpose .requisite-value {
    font-weight: 500;
    color: #4A5B6E;
}

.requisites-qr {
    height: 100%;
}

.qr-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #E9ECEF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.qr-card:hover {
    border-color: #D0D8E3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFE;
    padding: 6px 14px;
    border-radius: 60px;
    margin-bottom: 24px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1A4D8C;
    letter-spacing: 0.3px;
    border: 1px solid #E9ECEF;
    align-self: flex-start;
}

.qr-badge svg {
    width: 18px;
    height: 18px;
    color: #1A4D8C;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8FAFE;
    border-radius: 20px;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 0;
    border: 1px solid #E9ECEF;
    background: #FFFFFF;
}

.qr-instruction {
    margin-bottom: 24px;
    flex: 1;
}

.instruction-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0B1C2E;
    margin-bottom: 12px;
}

.instruction-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    color: #5A6B7E;
    line-height: 1.6;
}

.instruction-list li {
    margin-bottom: 6px;
}

.qr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E9ECEF;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8A9AAC;
}

.qr-footer svg {
    width: 14px;
    height: 14px;
    color: #8A9AAC;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 8px;
        background: #FFFFFF;
        border-top: 1px solid #E9ECEF;
        border-bottom: 1px solid #E9ECEF;
        margin-top: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        list-style: none;
    }
    
    .nav-links a {
        display: block;
        text-align: left;
        padding: 6px 0;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background: #1A4D8C;
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background: #1A4D8C;
    }
    
    .nav-phone {
        color: #1A4D8C;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
    }
    
    .requisites-grid {
        gap: 40px;
    }
    
    /* ========== ЕДИНОЕ ЦЕНТРИРОВАНИЕ ДЛЯ ВСЕХ ПРАВЫХ БЛОКОВ ========== */
    .about-image,
    .product-visual,
    .requisites-qr {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .about-image .legitimacy-card,
    .product-visual .software-certificate-card,
    .requisites-qr .qr-card {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .legitimacy-card,
    .software-certificate-card {
        padding: 24px;
        margin-top: 32px;
    }
    
    .legitimacy-number,
    .software-certificate-number {
        font-size: 1.25rem;
    }
    
    .legitimacy-detail,
    .software-certificate-detail {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .product-features-list {
        margin-top: 24px;
        gap: 14px;
    }
    
    .product-feature-item {
        font-size: 0.8rem;
    }
    
    .requisites {
        padding: 60px 0;
    }
    
    .qr-card {
        padding: 24px;
    }
    
    .requisite-item {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .requisite-label {
        min-width: auto;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        gap: 40px;
    }
}

/* ========== СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ ========== */
.privacy-page {
    padding: 140px 0 80px;
    background: #FFFFFF;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.privacy-header {
    margin-bottom: 48px;
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0B1C2E;
    margin-bottom: 16px;
}

.privacy-date {
    font-size: 0.875rem;
    color: #8A9AAC;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E9ECEF;
}

.privacy-section {
    margin-bottom: 32px;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0B1C2E;
    margin-bottom: 16px;
}

.privacy-section h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1A4D8C;
    margin: 24px 0 12px 0;
}

.privacy-section p {
    color: #4A5B6E;
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-section ul {
    margin: 16px 0 16px 24px;
    color: #4A5B6E;
    line-height: 1.7;
}

.privacy-section li {
    margin-bottom: 8px;
}

.privacy-section strong {
    color: #0B1C2E;
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E9ECEF;
    color: #1A4D8C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0E3A6B;
    text-decoration: underline;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 120px 0 60px;
    }
    
    .privacy-title {
        font-size: 1.75rem;
    }
    
    .privacy-section h2 {
        font-size: 1.25rem;
    }
    
    .privacy-section h3 {
        font-size: 1rem;
    }
}

