:root {
    --primary-color: #326273;
    --secondary-color: #5C9EAD;
    --accent-color: #4a6cfa;
    --text-color: #333;
    --light-bg: #f9fafc;
    --white: #ffffff;
    --gray-light: #f5f7ff;
    --success-color: #28a745;
}

html {
    scroll-padding-top: 120px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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



/* ===== БЛОК 2: HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    min-height: 60px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 0;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 0;
    width: 40px;
    height: 40px;
}

.logo span:last-child {
    display: none;
}

/* Центральное меню */
nav {
    display: flex;
    justify-content: center;
    flex: 2;
    margin: 0 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 15px;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Правая группа кнопок */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Базовая стилизация всех кнопок */
.download-btn, .access-btn, .web-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

/* Кнопка Веб-версия - светлая */
.web-btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.web-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 98, 115, 0.25);
}

/* Кнопка Скачать - светлая */
.download-btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 98, 115, 0.25);
}

/* Кнопка Получить доступ - темная */
.access-btn {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.access-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 98, 115, 0.25);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Адаптация для средних экранов */
@media (max-width: 1200px) {
    nav ul {
        gap: 30px;
    }
}

@media (max-width: 1100px) {
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .header-buttons {
        gap: 10px;
    }
    
    .download-btn, .access-btn, .web-btn {
        padding: 6px 15px;
        font-size: 13px;
        min-height: 36px;
    }
}

@media (max-width: 900px) {
    nav ul {
        gap: 15px;
    }
    
    nav ul li a {
        font-size: 13px;
    }
    
    .download-btn, .access-btn, .web-btn {
        padding: 5px 12px;
        font-size: 12px;
        min-height: 32px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .header-left {
        width: auto;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo span:last-child {
        display: inline;
        margin-left: 8px;
        font-size: 1rem;
    }
    
    .logo img {
        margin-right: 10px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        display: none;
        width: 100%;
        margin: 15px 0 0;
        flex: none;
        order: 3;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px;
        width: 100%;
        font-size: 15px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    .header-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
        gap: 10px;
        order: 4;
    }
    
    .header-buttons.active {
        display: flex;
    }
    
    .download-btn, .access-btn, .web-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}






/* Instructions Main Page */
.instructions-main {
    padding: 100px 0 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-light) 100%);
}

.instructions-main h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
}

.instructions-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 60px 0;
}

.instruction-category {
    text-align: center;
}

.instruction-category h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--secondary-color);
}

.instruction-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.instruction-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(92, 158, 173, 0.1), transparent);
    transition: left 0.5s ease;
}

.instruction-card:hover::before {
    left: 100%;
}

.instruction-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(92, 158, 173, 0.15);
}

.instruction-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.instruction-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

.instruction-card ul, .instruction-card li {
    text-align: justify;
}

.instruction-card .feature-list {
    text-align: justify;
    margin: 10px 0;
    padding: 0 0 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.instruction-card .feature-list p {
    margin-bottom: 8px;
    text-align: justify;
    padding: 0;
    width: 100%;
}

.instruction-card .feature-list ul {
    padding: 0;
    margin: 0;
    width: 100%;
}

.instruction-card .feature-list li {
    text-align: justify;
    position: relative;
    padding: 0;
    width: 100%;
    list-style-position: outside;
    margin-left: 20px;
}

/* Instruction Article Page */
.instruction-article {
    margin-top: 60px !important;
    padding-top: 10px;
    background: var(--white);
}

.article-header {
    position: relative;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 30px;
    padding-top: 30px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #f8fdff 0%, #f0f9ff 100%);
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
    box-shadow: 0 5px 20px rgba(92, 158, 173, 0.1);
}

.article-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-meta {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 10;
    font-size: 0.9rem;
    color: #777;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
}

.article-navigation-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
}

.nav-link {
    padding: 4px 0;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    transition: all 0.2s ease;
    width: auto;
    text-align: left;
    box-shadow: none;
    position: relative;
    padding-left: 20px;
}

.nav-link::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nav-link:hover {
    color: var(--secondary-color);
    padding-left: 25px;
}

.nav-link:hover::before {
    color: var(--secondary-color);
}

.article-content {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

.article-content h2 {
    color: var(--primary-color);
    margin: 35px 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
    min-height: 60px;
    display: flex;
    align-items: flex-end;
}

.article-content h3 {
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 45px;
    display: flex;
    align-items: flex-end;
}

.article-content p {
    margin-bottom: 15px;
    color: #555;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #555;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* Step blocks */
.step {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.6;
}

.step h3 {
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    font-size: 1.1rem !important;
}

.step p {
    text-indent: 30px;
    line-height: 1.5; 
}

.step ul {
    margin-left: 0px;
    text-indent: 30px;
    padding-left: 0;
    list-style-position: inside;
}

.step-max {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
}

.step-max .images-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.step-max .images-row img {
    width: 35%;
    height: auto;
    margin: 0 !important;
}

.step img,
.step-max img,
.step .large-image {
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 15px;
    margin: 15px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: block;
}

@media (min-width: 769px) {
    .step img {
        max-width: 50%;
    }
    .step-max img {
        max-width: 70%;
    }
    .step .large-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .step-max .images-row {
        flex-direction: column;
    }
    .step-max .images-row img {
        width: 100%;
    }
}

/* Note blocks */
.important-note {
    background: #fff3e0;
    border-left: 5px solid #e65100;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
}

.important-note strong {
    color: #e65100;
}

.important-note ul {
    margin: 10px 0 0 20px;
    padding-left: 20px;
}

.useful-note {
    background: #caf9b7;
    border-left: 5px solid #04aa0c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
}

.useful-note strong {
    color: #04aa0c;
}

/* Version Switcher */
.version-switcher-final {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.version-title {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.version-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 25px auto;
    max-width: 700px;
}

.version-buttons-large {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.version-btn-large {
    width: 280px;
    padding: 12px 25px;
    border: 2px solid var(--secondary-color);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    justify-content: center;
}

.version-btn-large.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 98, 115, 0.3);
}

.version-btn-large:hover:not(.active) {
    background: rgba(92, 158, 173, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.version-icon-large {
    font-size: 2rem;
}

.version-btn-text {
    font-size: 1.1rem;
}

.version-content {
    display: none;
}

.version-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.version-text {
    display: none;
}

.version-text.active {
    display: inline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Template Cards */
.template-grid-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.template-card-horizontal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    width: 100%;
}

.template-card-horizontal:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.template-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.template-text {
    width: 100%;
}

.template-text p {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
}

.template-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.template-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: contain;
}

.template-action {
    width: 100%;
}

.template-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
    border: none;
    cursor: pointer;
    width: 80%;
    max-width: 250px;
}

.template-download-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(50, 98, 115, 0.4);
    color: white;
}

/* Video Demo Block */
.video-demo-block {
    text-align: center;
    margin: 25px 0;
}

.video-title {
    margin-bottom: 8px;
    font-weight: 600;
    color: #326273;
}

.video-demo-block video {
    width: 85% !important;
    height: 60vh !important;
    border-radius: 15px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: block;
    background: #000;
    object-fit: cover !important;
    clip-path: inset(0 5% 0 5%);
    transform: scale(1.1);
    border: 3px solid #5C9EAD;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    padding-top: 25px;
    border-top: 2px solid var(--gray-light);
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 158, 173, 0.3);
}

/* CTA блок инструкций */
.instructions-cta {
    background: var(--white);
    padding: 30px 25px 25px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 8px 30px rgba(50, 98, 115, 0.08);
    border: 1px solid #e9ecef;
}

.instructions-cta h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.instructions-cta p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.cta-buttons .download-btn,
.cta-buttons .access-btn,
.cta-buttons .web-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 160px;
    border: 2px solid var(--primary-color);
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 3px 8px rgba(50, 98, 115, 0.2);
}

.cta-buttons .download-btn::before,
.cta-buttons .access-btn::before,
.cta-buttons .web-btn::before,
.cta-buttons .download-btn::after,
.cta-buttons .access-btn::after,
.cta-buttons .web-btn::after {
    display: none !important;
}

.cta-buttons .download-btn:hover,
.cta-buttons .access-btn:hover,
.cta-buttons .web-btn:hover {
    background: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(50, 98, 115, 0.25);
}

.cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.feature-item {
    padding: 0 15px;
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #e9ecef;
}

.feature-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

/* Access Form */
.access-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-top: 80px;
    box-sizing: border-box;
}

.access-form-container.show {
    display: flex;
    opacity: 1;
}

.access-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin: 0 auto;
}

.form-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.form-close:hover {
    color: var(--primary-color);
    background: #f5f5f5;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.form-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #5C9EAD;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.document-option {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 16px !important;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 16px !important;
    line-height: 1.4;
}

.radio-option:hover {
    border-color: #5C9EAD;
    background: #f0f8fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #5C9EAD;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #5C9EAD;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 5px 0;
    font-size: 16px !important;
    line-height: 1.4;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #5C9EAD;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5C9EAD;
    font-weight: bold;
    font-size: 16px;
}

.tariff-selection {
    margin-bottom: 15px;
}

.tariff-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.tariff-option {
    cursor: pointer;
}

.tariff-option input[type="radio"] {
    display: none;
}

.tariff-features-link {
    text-align: center;
    margin: 8px 0 18px 0;
    font-size: 0.85rem;
}

.tariff-features-link a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dashed #999;
    transition: all 0.3s ease;
}

.tariff-features-link a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tariff-card {
    padding: 15px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.tariff-option input[type="radio"]:checked + .tariff-card {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #f8fdff 0%, #f0f9ff 100%);
    box-shadow: 0 5px 15px rgba(92, 158, 173, 0.2);
    transform: translateY(-2px);
}

.tariff-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.tariff-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 3px;
    line-height: 1.1;
}

.tariff-period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 7px;
    font-weight: 500;
    line-height: 1.2;
}

.tariff-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    margin-bottom: 5px;
    background: #fafafa;
}

.form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 158, 173, 0.2);
    background: white;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 98, 115, 0.4);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(50, 98, 115, 0.3);
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 80%;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #777;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: block !important;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== РАСКРЫВАЮЩЕЕСЯ МЕНЮ "УСЛУГИ" ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* Выпадающее меню — без разрыва */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 260px;
    width: max-content;
    max-width: 360px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: -4px;
    padding-top: 4px;
}

/* Прозрачный мостик */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #f0f4ff;
    color: #326273;
}

.dropdown-menu li a::after {
    display: none;
}

/* Десктоп: показываем при наведении */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: dropdownFade 0.25s ease;
    }
}

@keyframes dropdownFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Мобильные: по клику */
@media (max-width: 768px) {
    nav ul .dropdown {
        width: 100%;
        position: relative;
    }
    
    nav ul .dropdown .dropdown-toggle {
        display: block;
        padding: 12px;
        width: 100%;
        text-align: center;
        font-size: 15px;
        color: var(--text-color);
    }
    
    nav ul .dropdown.open .dropdown-menu {
        display: block;
        position: static;
        transform: none;
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border-radius: 8px;
        background: #f8f9fa;
        margin-top: 5px;
        border: 1px solid #e0e0e0;
        padding: 5px 0;
    }
    
    nav ul .dropdown.open .dropdown-menu::before {
        display: none;
    }
    
    nav ul .dropdown.open .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 15px;
        white-space: normal;
        color: #333;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }
    
    nav ul .dropdown.open .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    nav ul .dropdown.open .dropdown-menu li a:hover {
        background: #f0f4ff;
        color: #326273;
    }
}


/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
        padding: 0;
        width: 100%;
    }
    
    nav ul li {
        margin-left: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }

    .header-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        gap: 10px;
        padding: 15px 0;
        border-top: 1px solid #eee;
    }
    
    nav.active ~ .header-buttons {
        display: flex;
    }
    
    .download-btn, .access-btn, .web-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .instructions-main {
        padding: 80px 0 40px;
    }
    
    .instructions-main h1 {
        font-size: 2rem;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .instruction-category h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .instruction-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instruction-card {
        padding: 25px 20px;
    }

    .instruction-article {
        padding: 50px 0 40px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
        padding: 0 15px;
    }
    
    .article-navigation-links {
        flex-direction: column;
        align-items: left;
        gap: 8px;
    }
    
    .nav-link {
        width: 100%;
        max-width: 250px;
        text-align: left;
    }

    .article-content h2 {
        min-height: 50px;
        font-size: 1.2rem;
    }
    
    .article-content h3 {
        min-height: 40px;
        font-size: 1.1rem;
    }

    .step img,
    .step-max img {
        max-width: 100%;
    }

    .step-max .images-row {
        flex-direction: column;
    }
    
    .step-max .images-row img {
        width: 100%;
    }

    .version-switcher-final {
        padding: 25px 20px;
    }
    
    .version-title {
        font-size: 1.2rem;
    }
    
    .version-subtitle {
        font-size: 0.95rem;
    }
    
    .version-buttons-large {
        flex-direction: column;
        align-items: center;
    }
    
    .version-btn-large {
        width: 100%;
        max-width: 300px;
    }

    .template-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .template-card-horizontal {
        padding: 20px;
        min-height: 250px;
    }
    
    .template-text p {
        font-size: 16px;
    }
    
    .template-image img {
        max-height: 150px;
    }
    
    .template-download-btn {
        padding: 12px 25px;
        font-size: 15px;
        max-width: 200px;
    }

    .video-demo-block video {
        width: 95% !important;
        height: 40vh !important;
        clip-path: inset(0 6% 0 6%);
        transform: none;
    }

    .article-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .instructions-cta {
        padding: 25px 20px;
        margin-top: 40px;
    }
    
    .instructions-cta h2 {
        font-size: 1.3rem;
    }
    
    .instructions-cta p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .cta-buttons .download-btn,
    .cta-buttons .access-btn,
    .cta-buttons .web-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.95rem;
        min-height: 42px;
    }
    
    .cta-features {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .feature-item {
        padding: 0 12px;
    }
    
    .feature-text {
        font-size: 0.8rem;
        text-align: center;
    }

    .breadcrumbs {
        margin-bottom: 15px;
        padding: 12px 0;
        font-size: 1rem;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .breadcrumbs a {
        white-space: nowrap;
        max-width: 45%;
    }

    .access-form-container {
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .access-form {
        max-width: 100%;
        padding: 25px 20px;
        max-height: calc(100vh - 85px);
    }
    
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .tariff-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tariff-card {
        min-height: 110px;
        padding: 18px 12px;
    }
    
    .tariff-name {
        font-size: 1.2rem;
    }
    
    .tariff-price {
        font-size: 1.3rem;
    }
    
    .form-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 1rem;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .instructions-main h1 {
        font-size: 1.7rem;
        padding: 0 10px;
    }
    
    .instruction-category h2 {
        font-size: 1.3rem;
    }
    
    .instruction-card h3 {
        font-size: 1.2rem;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
        top: 60px;
    }

    .step {
        padding: 15px;
        font-size: 1rem;
    }

    .article-content h2 {
        min-height: 45px;
        font-size: 1.2rem;
    }
    
    .article-content h3 {
        min-height: 35px;
        font-size: 1rem;
    }

    .version-btn-large {
        padding: 10px 20px;
    }
    
    .version-icon-large {
        font-size: 1.8rem;
    }
    
    .version-btn-text {
        font-size: 1rem;
    }

    .template-card-horizontal {
        padding: 15px;
        min-height: 220px;
    }
    
    .template-text p {
        font-size: 15px;
    }
    
    .template-image img {
        max-height: 130px;
    }
    
    .template-download-btn {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 180px;
    }

    .video-demo-block video {
        height: 35vh !important;
    }

    .instructions-cta {
        padding: 20px 15px;
    }
    
    .instructions-cta h2 {
        font-size: 1.2rem;
    }
    
    .instructions-cta p {
        font-size: 0.85rem;
    }
    
    .cta-buttons .download-btn,
    .cta-buttons .access-btn,
    .cta-buttons .web-btn {
        max-width: 220px;
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }

    .breadcrumbs {
        font-size: 0.9rem;
        gap: 3px;
    }
    
    .breadcrumbs a {
        max-width: 35%;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}


/* ===== FAQ (АККОРДЕОН) ===== */
.faq-item {
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 10px 0;
    color: var(--primary-color);
    font-size: 1rem;
    transition: color 0.2s ease;
    user-select: none;
    margin: 0;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question span {
    font-size: 20px;
    font-weight: 300;
    color: var(--secondary-color);
    margin-left: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-answer {
    margin-top: 0;
    color: #555;
    display: none;
    padding: 0 10px 10px 10px;
    line-height: 1.6;
    font-size: 0.95rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.faq-answer p {
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin: 5px 0;
}

.faq-answer li {
    margin-bottom: 4px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .faq-question {
        font-size: 0.92rem;
        padding: 8px 0;
    }
    
    .faq-question span {
        font-size: 18px;
        margin-left: 12px;
    }
    
    .faq-answer {
        font-size: 0.88rem;
        padding-left: 12px;
        padding-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .faq-question span {
        font-size: 16px;
        margin-left: 10px;
    }
    
    .faq-answer {
        font-size: 0.82rem;
        padding-left: 10px;
        padding-bottom: 6px;
    }
}