/* ========== СОВРЕМЕННЫЙ ДИЗАЙН ПТО ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    background: var(--white);
}

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

/* ===== ШАПКА ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 18px;
}

.logo i {
    font-size: 28px;
    color: var(--primary);
}

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

.nav-list a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    background: var(--light);
    border-radius: 40px;
    transition: all 0.2s;
}

.header-phone:hover {
    background: var(--primary);
    color: white;
}

.header-phone i {
    color: var(--primary);
}

.header-phone:hover i {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
}

.mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 18px;
}

/* ===== ГЕРОЙ ===== */
.hero {
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f0fe;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}
h1 span {
	font-size: 32px;
	line-height: 1;
}
.hero-title-accent {
    color: var(--primary);
}

.hero-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-large {
    padding: 16px 32px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26,86,219,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-label {
    color: var(--gray);
    font-size: 14px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.hero-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.hero-image-badge i {
    color: var(--primary);
    font-size: 24px;
}

/* ===== СЕКЦИИ ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* ===== КАТЕГОРИИ ===== */
/* ===== ОБЛАСТЬ АККРЕДИТАЦИИ ===== */
.categories {
    padding: 80px 0;
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon i {
    font-size: 28px;
    color: white;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Сводка аккредитации */
.accreditation-summary {
    margin-top: 50px;
    background: linear-gradient(135deg, #1a56db, #1e429f);
    border-radius: 24px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.summary-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 40px;
    color: #fbbf24;
}

.summary-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.summary-content p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.accreditation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accred-badge {
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.accred-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* Адаптив */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accreditation-summary {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .accreditation-badges {
        justify-content: center;
    }
	section {
		padding: 40px 0 !important;
	}
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .accred-badge {
        font-size: 14px;
        padding: 6px 14px;
    }
	section {
		padding: 20px 0 !important;
	}
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
}

/* ===== CTA ===== */
.cta {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.cta-card-small {
    padding: 40px 50px;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-image i {
    font-size: 120px;
    opacity: 0.2;
}

.cta-action {
    flex-shrink: 0;
}

/* ===== СТРАНИЦЫ ===== */
.page-header {
    background: linear-gradient(135deg, var(--light), white);
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.breadcrumbs {
    color: var(--gray);
}

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

.breadcrumbs span {
    margin: 0 8px;
}

/* ===== КОНТАКТЫ ===== */
.contact-info {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-card-icon i {
    font-size: 32px;
    color: white;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.contact-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.contact-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 4px;
}

.contact-text-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.map-section {
    padding: 20px 0 60px;
}

.map-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
}

.map-placeholder i {
	font-size: 34px;
	color: var(--white);
	margin: 5px 0;
}

.map-placeholder h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.map-placeholder p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* ===== ДОКУМЕНТЫ ===== */
.documents-section {
    padding: 60px 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.document-card {
    background: var(--light);
    padding: 40px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.document-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow);
}

.document-icon i {
    font-size: 36px;
    color: var(--primary);
}

.document-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.document-card p {
    color: var(--gray);
}

.certificate-section {
    padding: 20px 0 60px;
}

.certificate-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius);
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.certificate-icon i {
    font-size: 80px;
    color: var(--accent);
}

.certificate-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.certificate-content p {
    color: var(--dark);
    margin-bottom: 12px;
}

.certificate-number {
    font-family: monospace;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0,0,0,0.05);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-light);
    font-size: 32px;
}

.footer-desc {
    color: #9ca3af;
    max-width: 300px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #9ca3af;
}

.footer-contacts i {
    color: var(--primary-light);
    width: 20px;
}

.footer-contacts a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #6b7280;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .documents-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-phone span { display: none; }
    .header-phone { padding: 10px; }
    .mobile-menu-btn { display: block; }
    
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 32px; }
    .hero-text { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image-badge { left: 10px; bottom: -10px; padding: 12px 16px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .documents-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .cta-card { flex-direction: column; text-align: center; padding: 40px 24px; }
    .cta-buttons { justify-content: center; }
    .cta-text { max-width: 100%; }
    
    .certificate-card { flex-direction: column; text-align: center; padding: 30px; }
    
    .section-title { font-size: 28px; }
    .page-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .btn-large { padding: 14px 20px; }
}

.booking {
	padding: 80px 0;
	background: var(--white);
}

/* ===== ФОРМА ЗАПИСИ ===== */
.booking-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

/* Блок ошибок */
.error-block {
    display: flex;
    gap: 12px;
    background: #fef2f2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #fecaca;
}

.error-icon {
    color: #ef4444;
    font-size: 20px;
}

.error-title {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.error-list {
    margin: 0;
    padding-left: 20px;
    color: #dc2626;
    font-size: 14px;
}

/* Сетка формы */
.form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.form-col-full {
    grid-column: span 6;
}

.form-col-half {
    grid-column: span 3;
}

@media (max-width: 640px) {
    .form-col-half {
        grid-column: span 6;
    }
}

/* Лейблы */
.form-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.required {
    color: #ef4444;
}

.optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
}

/* Поля ввода */
.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    outline: none;
}

.form-grid input:disabled,
.form-grid select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.form-grid input:disabled::placeholder {
    color: #d1d5db;
}

/* Согласие */
.consent-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.consent-block input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.consent-block label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.consent-block a {
    color: #3b82f6;
    text-decoration: none;
}

.consent-block a:hover {
    text-decoration: underline;
}

/* Автодополнение */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.autocomplete-item.other-option {
    color: #3b82f6;
    border-top: 1px solid #e5e7eb;
}

/* Кнопка отправки */
.form-actions {
    margin-top: 28px;
    text-align: center;
}

#submitBtn {
    min-width: 250px;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Успешная отправка */
.booking-success-block {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.booking-success-block h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.booking-success-block p {
    color: #6b7280;
    margin-bottom: 8px;
}

.request-number {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 16px 0;
}
/* Блок с режимом работы */
.footer-schedule {
	display: flex;
	align-items: flex-start;
	gap: 0px;
	color: var(--gray);
	font-size: 14px;
	margin-bottom: 8px;
	flex-direction: column;
	margin-top: 5px;
}

.footer-schedule span {
    color: #d1d5db;
}

/* Выходной день */
.footer-weekend {
    color: #f87171;
    font-size: 13px;
    font-style: italic;
	display: block;
}

/* При наведении на весь блок */
.footer-schedule:hover i {
    color: #60a5fa;
}

.footer-schedule:hover span {
    color: #f3f4f6;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {

    .footer-schedule {
        justify-content: center;
    }
    
    .footer-weekend {
        text-align: center;
        margin-left: 0;
    }
}

/* ========== ПОЛНЫЙ БЛОК КОНТАКТОВ ========== */
.contacts-full {
    padding: 60px 0;
    background: var(--light);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Карточка с контактами */
.contacts-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contacts-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.contacts-title i {
    color: var(--primary);
    font-size: 28px;
}

/* Список контактов */
.contacts-list {
    flex: 1;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #e8f0fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 18px;
    color: var(--primary);
}

.contact-content {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 4px;
}

.contact-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(26,86,219,0.3);
    transition: all 0.2s;
}

.contact-link:hover {
    border-bottom-color: var(--primary);
}

.contact-text {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.5;
}

/* Футер карточки контактов */
.contacts-footer {
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.contacts-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.contacts-message i {
    color: #fbbf24;
    font-size: 22px;
}

.contacts-schedule {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.contacts-schedule i {
    color: #10b981;
    width: 20px;
}

.contacts-weekend {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ef4444;
    font-size: 14px;
}

.contacts-weekend i {
    color: #ef4444;
    width: 20px;
}
/* Карта */
.contacts-map {
    height: 100%;
    min-height: 500px;
}

.map-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.maps {
    flex: 1;
    min-height: 400px;
}

#yandex-map {
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

/* Кастомная метка на карте */
.pto-maps-label {
    position: absolute;
    width: 150px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    color: #fff;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    left: 30px;
    box-shadow: 0 8px 16px rgba(26,86,219,0.3);
    top: -26px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid white;
}

.pto-maps-label:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #3b82f6;
}

/* Кнопки под картой */
.map-links {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.map-links .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-map {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .contacts-full {
        padding: 40px 0;
    }
    
    .contacts-card {
        padding: 24px;
    }
    
    .map-links {
        flex-direction: column;
        padding: 12px 16px;
    }
    
    .pto-maps-label {
        width: 130px;
        font-size: 12px;
        padding: 6px 10px;
        left: 25px;
    }
}

@media (max-width: 480px) {
    .contacts-map {
        min-height: 400px;
    }
    
    .maps {
        min-height: 350px;
    }
}

/* Адаптив */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contacts-full {
        padding: 40px 0;
    }
    
    .contacts-card {
        padding: 24px;
    }
    
    .contacts-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .contact-item {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-link,
    .contact-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacts-message {
        font-size: 16px;
    }
}
/* Банковские реквизиты */
.contact-item-bank {
    align-items: flex-start;
}

.contact-item-bank .contact-content {
    flex: 1;
}

.bank-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.bank-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.bank-row:last-child {
    margin-bottom: 0;
}

.bank-label {
    width: 50px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--gray);
}

.bank-value {
    color: var(--dark);
    font-family: 'Courier New', monospace;
    font-weight: 500;
    word-break: break-word;
}

/* При наведении на реквизиты */
.bank-details:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Адаптив */
@media (max-width: 768px) {
    .bank-details {
        padding: 12px;
    }
    
    .bank-row {
        flex-direction: column;
        margin-bottom: 12px;
    }
    
    .bank-label {
        width: 100%;
        margin-bottom: 2px;
        color: var(--gray);
        font-size: 12px;
    }
    
    .bank-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bank-value {
        font-size: 12px;
        word-break: break-all;
    }
}

/* Серый стиль для занятого времени */
#time option:disabled,
#time option.time-disabled,
#time option[disabled] {
    color: #9ca3af !important;
    background-color: #f3f4f6 !important;
    font-style: italic;
    opacity: 0.7;
}

/* Для Firefox */
#time option:disabled {
    color: #999 !important;
}

/* Для Chrome/Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #time option:disabled {
        color: #9ca3af !important;
        background: #f3f4f6 !important;
    }
}

/* Сам селект */
#time {
    color: var(--dark);
}

#time:has(option:checked:disabled) {
    color: #9ca3af;
}

.time-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.time-select-display.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.time-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.time-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.time-option:hover:not(.disabled) {
    background: #e8f0fe;
}

.time-option.disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-option.selected {
    background: var(--primary);
    color: white;
}

#day option:disabled,
#day option.date-disabled {
    color: #9ca3af !important;
    background-color: #f3f4f6 !important;
}

#day:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Валидация госномера */
#car_number.valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

#car_number.valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

#car_number.invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

#car_number.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Плавное появление подсказки */
#car_number::placeholder {
    color: #9ca3af;
    font-size: 14px;
    transition: opacity 0.3s;
}

#car_number:focus::placeholder {
    opacity: 0.5;
}

/* Иконка статуса (опционально) */
.input-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#car_number.valid ~ .input-status .fa-check-circle {
    display: block;
    color: #10b981;
}

#car_number.invalid ~ .input-status .fa-exclamation-circle {
    display: block;
    color: #ef4444;
}

.input-status i {
    display: none;
    font-size: 16px;
}

/* ========== СЕКЦИЯ ЦЕН И ВРЕМЕНИ ========== */
.prices-section {
    padding: 80px 0;
    background: var(--light);
}

.prices-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.prices-table-wrapper {
    overflow-x: auto;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.prices-table thead {
    background: linear-gradient(135deg, #1a56db, #1e429f);
}

.prices-table th {
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 18px 16px;
    text-align: left;
    white-space: nowrap;
}

.prices-table th:first-child {
    border-radius: 24px 0 0 0;
}

.prices-table th:last-child {
    border-radius: 0 24px 0 0;
}

.prices-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.prices-table tbody tr:hover {
    background: #f8fafc;
}

.prices-table tbody tr:last-child td {
    border-bottom: none;
}

.prices-table .subtitle {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.price-main {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 4px;
}

.price-repeat {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

/* Карточка времени */
.time-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.time-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.time-title i {
    color: #1a56db;
    font-size: 24px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.time-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s;
}

.time-item:hover {
    background: #e8f0fe;
    transform: translateY(-2px);
}

.time-category {
    font-weight: 700;
    font-size: 18px;
    color: #1a56db;
    min-width: 60px;
}

.time-desc {
    flex: 1;
    color: #4b5563;
    font-size: 14px;
    padding: 0 12px;
}

.time-value {
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
    white-space: nowrap;
}

.time-note {
    margin-top: 24px;
    padding: 14px 18px;
    background: #f0fdf4;
    border-radius: 12px;
    color: #166534;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #10b981;
}

.time-note i {
    color: #10b981;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 992px) {
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prices-section {
        padding: 50px 0;
    }
    
    .prices-table th {
        font-size: 13px;
        padding: 12px 10px;
    }
    
    .prices-table td {
        padding: 12px 10px;
    }
    
    .price-main {
        font-size: 15px;
    }
    
    .time-card {
        padding: 20px;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .time-item {
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    /* Карточный вид для таблицы цен на мобильных */
    .prices-table,
    .prices-table thead,
    .prices-table tbody,
    .prices-table tr,
    .prices-table td {
        display: block;
    }
    
    .prices-table thead {
        display: none;
    }
    
    .prices-table tr {
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
        background: white;
    }
    
    .prices-table td {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border: none;
    }
    
    .prices-table td:before {
        content: attr(data-label);
        font-weight: 600;
        width: 130px;
        color: #6b7280;
    }
}
.certificate-actions {
    margin-top: 20px;
}

.certificate-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f5ff;
    border-radius: 10px;
    color: #1a56db;
    font-size: 14px;
}

.certificate-hint i {
    font-size: 18px;
}

.certificate-hint strong {
    background: #1a56db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.btn-copy {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 8px;
}

.btn-copy:hover {
    background: #e5e7eb;
    color: #1a56db;
}

/* Модалка инструкции */
.modal-small {
    max-width: 450px !important;
}

.rsa-instruction {
    padding: 10px 0;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #1a56db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.copy-number-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 8px;
}

.copy-number-block code {
    font-size: 24px;
    font-weight: 700;
    color: #1a56db;
    background: none;
    padding: 0;
    letter-spacing: 2px;
}

/* Адаптив */
@media (max-width: 768px) {
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-number {
        justify-content: center;
    }
}
/* ========== МОДАЛКА РСА ========== */
.modal-small {
    max-width: 480px !important;
}

#rsaModal .modal-content {
    padding: 0;
}

#rsaModal h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e0e6ed;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

#rsaModal h3 i {
    color: #1a56db;
    font-size: 22px;
}

.rsa-instruction {
    padding: 24px 30px;
}

.instruction-step {
    margin-bottom: 24px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(26, 86, 219, 0.2);
}

.instruction-step > span:last-child {
    display: block;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

.copy-number-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f5ff;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 12px;
    border: 1.5px dashed #1a56db;
}

.copy-number-block code {
    font-size: 28px;
    font-weight: 700;
    color: #1a56db;
    background: none;
    padding: 0;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #1a56db;
    border-color: #1a56db;
    color: white;
}

.btn-copy i {
    font-size: 16px;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* Кнопка в футере */
#rsaModal .form-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 2px solid #e0e6ed;
    display: flex;
    justify-content: flex-end;
}

#rsaModal .form-actions .btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

#rsaModal .form-actions .btn i {
    font-size: 16px;
}

/* Сертификат на странице документов */
.certificate-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.certificate-icon i {
    font-size: 40px;
    color: #f59e0b;
}

.certificate-content {
    flex: 1;
}

.certificate-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.certificate-content p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.certificate-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a56db;
    margin: 20px 0 16px;
    padding: 12px 20px;
    background: white;
    border-radius: 40px;
    display: inline-flex;
}

.certificate-number i {
    color: #f59e0b;
    font-size: 18px;
}

.certificate-number .btn-copy {
    margin-left: 5px;
}

.certificate-actions {
    margin-top: 20px;
}

.certificate-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    color: #1a56db;
    font-size: 14px;
    border-left: 4px solid #1a56db;
}

.certificate-hint i {
    font-size: 20px;
    color: #1a56db;
}

.certificate-hint strong {
    background: #1a56db;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    margin: 0 5px;
    font-weight: 600;
}

/* Адаптив для модалки */
@media (max-width: 600px) {
    .modal-small {
        width: 95%;
        margin: 20px auto;
    }
    
    #rsaModal h3 {
        padding: 20px;
        font-size: 18px;
    }
    
    .rsa-instruction {
        padding: 20px;
    }
    
    .copy-number-block {
        flex-direction: column;
        gap: 12px;
    }
    
    .copy-number-block code {
        font-size: 24px;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
    
    #rsaModal .form-actions {
        padding: 16px 20px;
    }
    
    #rsaModal .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Адаптив для сертификата */
@media (max-width: 768px) {
    .certificate-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    
    .certificate-number {
        justify-content: center;
    }
    
    .certificate-hint {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .certificate-content h2 {
        font-size: 22px;
    }
    
    .certificate-number {
        font-size: 18px;
        padding: 10px 16px;
    }
    
    .copy-number-block code {
        font-size: 20px;
        letter-spacing: 2px;
    }
}
/* ========== СУПЕР-СОВРЕМЕННАЯ МОДАЛКА РСА ========== */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modern-modal.active {
    visibility: visible;
    opacity: 1;
}

.modern-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modern-modal__wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.modern-modal.active .modern-modal__wrapper {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modern-modal__content {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Кнопка закрытия */
.modern-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.modern-modal__close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

/* Шапка */
.modern-modal__header {
    padding: 32px 28px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.modern-modal__badge i {
    font-size: 12px;
}

.modern-modal__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.title-icon {
    font-size: 32px;
}

.modern-modal__subtitle {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Тело с прокруткой */
.modern-modal__body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

/* Карточка шага */
.step-card {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.step-card__number {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-card__number span {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(26, 86, 219, 0.2);
}

.step-card__line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, #3b82f6, #e5e7eb);
    margin-top: 8px;
    min-height: 20px;
}

.step-card:last-child .step-card__line {
    display: none;
}

.step-card__content {
    display: flex;
    gap: 14px;
    flex: 1;
    padding-bottom: 8px;
}

.step-card__icon {
    width: 44px;
    height: 44px;
    background: #f0f5ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card__icon i {
    font-size: 20px;
    color: #1a56db;
}

.step-card__text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.step-card__text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Блок с номером */
.number-block {
    background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 8px 0 24px 52px;
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.25);
}

.number-block__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.number-block__label i {
    font-size: 14px;
}

.number-block__value {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.number-block__value code {
    font-size: 36px;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 14px;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: white;
    color: #1a56db;
    transform: scale(1.02);
}

.copy-btn i {
    font-size: 16px;
}

.number-block__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.number-block__hint i {
    animation: pointPulse 1.5s infinite;
}

@keyframes pointPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Футер */
.modern-modal__footer {
    padding: 20px 28px 28px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-glow {
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.4);
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(26, 86, 219, 0.4); }
    50% { box-shadow: 0 12px 30px rgba(26, 86, 219, 0.6); }
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 600px) {
    .modern-modal__wrapper {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: translate(0, 0) scale(0.9);
    }
    
    .modern-modal.active .modern-modal__wrapper {
        transform: translate(0, 0) scale(1);
    }
    
    .modern-modal__content {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    .modern-modal__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
    
    .modern-modal__header {
        padding: 28px 20px 20px;
    }
    
    .modern-modal__title {
        font-size: 22px;
    }
    
    .modern-modal__body {
        padding: 20px;
    }
    
    .step-card__content {
        gap: 12px;
    }
    
    .step-card__icon {
        width: 40px;
        height: 40px;
    }
    
    .number-block {
        margin-left: 36px;
        padding: 16px;
    }
    
    .number-block__value {
        flex-direction: column;
    }
    
    .number-block__value code {
        font-size: 28px;
        width: 100%;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modern-modal__footer {
        padding: 16px 20px 20px;
        flex-direction: column-reverse;
    }
    
    .modern-modal__footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .modern-modal__header {
        padding: 24px 16px 16px;
    }
    
    .modern-modal__body {
        padding: 16px;
    }
    
    .step-card {
        gap: 12px;
    }
    
    .step-card__number span {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .number-block__value code {
        font-size: 24px;
        letter-spacing: 2px;
    }
}

/* ========== КРАСИВЫЕ TOAST-УВЕДОМЛЕНИЯ ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s;
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(120%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(120%) scale(0.9);
    }
}

/* Иконка в уведомлении */
.toast__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast--info .toast__icon {
    background: linear-gradient(135deg, #1a56db, #3b82f6);
}

.toast--warning .toast__icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast--error .toast__icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast__icon i {
    font-size: 20px;
    color: white;
}

/* Содержимое */
.toast__content {
    flex: 1;
}

.toast__title {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
}

.toast__message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Номер в уведомлении */
.toast__number {
    display: inline-block;
    background: #1a56db;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* Кнопка закрытия */
.toast__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast__close:hover {
    opacity: 1;
}

/* Индикатор прогресса */
.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.toast__progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: progressShrink 5s linear forwards;
}

.toast--success .toast__progress-bar {
    background: #10b981;
}

.toast--info .toast__progress-bar {
    background: #1a56db;
}

.toast--warning .toast__progress-bar {
    background: #f59e0b;
}

.toast--error .toast__progress-bar {
    background: #ef4444;
}

@keyframes progressShrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Тёмная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #1f2937;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .toast__title {
        color: #f3f4f6;
    }
    
    .toast__message {
        color: #9ca3af;
    }
}

/* ========== НОВЫЙ БЛОК PDF-ДОКУМЕНТОВ (БЕЗ КОНФЛИКТОВ) ========== */
.docs-pdf-section {
    padding: 60px 0 80px;
    background: var(--light);
}

.docs-pdf-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.doc-pdf-card {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.doc-pdf-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.doc-pdf-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-pdf-icon i {
    font-size: 32px;
    color: #dc2626;
}

.doc-pdf-icon--blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.doc-pdf-icon--blue i {
    color: var(--primary);
}

.doc-pdf-icon--yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.doc-pdf-icon--yellow i {
    color: #d97706;
}

.doc-pdf-content {
    flex: 1;
}

.doc-pdf-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doc-pdf-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.doc-pdf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.doc-pdf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.doc-pdf-badge i {
    font-size: 12px;
}

.doc-pdf-badge--new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.doc-pdf-badge--new i {
    color: #fbbf24;
}

.doc-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.doc-pdf-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3);
}

.doc-pdf-btn i {
    font-size: 16px;
}

.docs-pdf-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding: 16px 24px;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #6b7280;
    font-size: 14px;
    border: 1px dashed #cbd5e1;
}

.docs-pdf-note i {
    color: var(--primary);
    font-size: 20px;
}

.docs-pdf-note p {
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .docs-pdf-section {
        padding: 40px 0 60px;
    }
    
    .doc-pdf-card {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .doc-pdf-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    
    .doc-pdf-icon i {
        font-size: 28px;
    }
    
    .doc-pdf-title {
        font-size: 18px;
    }
    
    .doc-pdf-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .doc-pdf-card {
        padding: 16px;
    }
    
    .doc-pdf-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .doc-pdf-badge {
        width: fit-content;
    }
    
    .docs-pdf-note {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}
/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: var(--white, #ffffff);
    border-radius: 16px;
    padding: 36px 28px 28px;
    max-width: 460px;
    width: 92%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 36px;
    color: #10b981;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.modal-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}

.modal-request-number {
    display: inline-block;
    background: #eff6ff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 16px;
    border: 1px solid #dbeafe;
}

.modal-request-number span {
    font-weight: 700;
    color: #1a56db;
}

.modal-details {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    gap: 12px;
}

.modal-detail-row:last-child {
    border-bottom: none;
}

.modal-detail-label {
    color: #6b7280;
    flex-shrink: 0;
    font-weight: 500;
}

.modal-detail-value {
    color: #111827;
    text-align: right;
    word-break: break-word;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    justify-content: center;
    gap: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.modal-actions .btn-outline {
    background: #ffffff;
    color: #6b7280;
    border-color: #e5e7eb;
}

.modal-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.modal-actions .btn-primary {
    background: #1a56db;
    color: #ffffff;
    border-color: #1a56db;
}

.modal-actions .btn-primary:hover {
    background: #1e429f;
    border-color: #1e429f;
}

@media (max-width: 640px) {
    .modal-container {
        padding: 28px 20px 20px;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        min-width: 100%;
    }
}
/* ========== ЗЕЛЁНАЯ ОБВОДКА ДЛЯ ЗАПОЛНЕННЫХ ПОЛЕЙ ========== */
.form-grid input.field-valid,
.form-grid select.field-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

/* При фокусе убираем зелёный — делаем синий */
.form-grid input.field-valid:focus,
.form-grid select.field-valid:focus {
    border-color: #3b82f6 !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Чекбокс с зелёной галочкой */
.consent-block input[type="checkbox"].field-valid {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

.consent-block input[type="checkbox"].field-valid::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Автозаполнение Chrome + field-valid */
.form-grid input:-webkit-autofill.field-valid {
    -webkit-box-shadow: 0 0 0 1000px #f0fdf4 inset !important;
    -webkit-text-fill-color: #065f46 !important;
    border-color: #10b981 !important;
}

/* Автозаполнение Firefox + field-valid */
.form-grid input:-moz-autofill.field-valid {
    box-shadow: 0 0 0 1000px #f0fdf4 inset !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
}