@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* === Базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #1e293b;
    background: #ffffff;
    font-optical-sizing: auto;
}

/* Контейнер */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* === Типография === */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { color: #334155; margin-bottom: 1rem; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    border-radius: 0;
}

.btn-primary {
    background-color: #0f172a;
    color: white;
}
.btn-primary:hover {
    background-color: #1e293b;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #1e293b;
}
.btn-outline:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.btn-block {
    width: 100%;
}

/* === Шапка === */
.site-header {
    border-bottom: 1px solid #e2e8f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #0f172a;
    text-decoration: none;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f4f9;
    border-radius: 50%;
    color: #1e293b;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* === Главный экран (Hero) с веером сертификатов === */
.hero-section {
    padding: 4rem 0 0 0;
    position: relative;
    margin-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-veil {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-main {
    width: 80%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 40;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.4);
    border: 1px solid #e9eef2;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.certificate-main:hover {
    transform: scale(1.02) rotate(0deg);
}

/* Эффект веера - дополнительные сертификаты */
.certificate-veil-1,
.certificate-veil-2,
.certificate-veil-3 {
    position: absolute;
    width: 75%;
    max-width: 380px;
    height: auto;
    opacity: 0.5;
    border: 1px solid #e9eef2;
    box-shadow: 0 20px 30px -15px rgba(0,0,0,0.3);
    pointer-events: none;
}

.certificate-veil-1 {
    z-index: 10;
    transform: rotate(-8deg) translateX(-30px) translateY(10px);
    opacity: 0.3;
}

.certificate-veil-2 {
    z-index: 20;
    transform: rotate(-4deg) translateX(-15px) translateY(5px);
    opacity: 0.4;
}

.certificate-veil-3 {
    z-index: 30;
    transform: rotate(5deg) translateX(20px) translateY(-5px);
    opacity: 0.25;
}

/* Анимация при наведении на блок */
.hero-image:hover .certificate-veil-1 {
    transform: rotate(-10deg) translateX(-35px) translateY(12px);
    transition: transform 0.4s ease;
}

.hero-image:hover .certificate-veil-2 {
    transform: rotate(-5deg) translateX(-18px) translateY(7px);
    transition: transform 0.4s ease 0.05s;
}

.hero-image:hover .certificate-veil-3 {
    transform: rotate(7deg) translateX(25px) translateY(-7px);
    transition: transform 0.4s ease 0.1s;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Сетка преимуществ - 4 блока в 2 ряда */
.feature-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.feature-mini-item {
    display: flex;
    gap: 1rem;
}

.feature-mini-icon {
    width: 40px;
    height: 40px;
    background: #f1f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1e293b;
    border-radius: 0;
    flex-shrink: 0;
}

.feature-mini-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-mini-text p {
    font-size: 0.9rem;
    margin: 0;
    color: #64748b;
}

/* === Анимированная стрелка вниз (посередине) === */
.scroll-down-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem 0 4rem 0;
}

.scroll-down {
    animation: bounce 2s infinite ease-in-out;
}

.scroll-link {
    display: inline-block;
    color: #64748b;
    transition: color 0.2s ease;
}

.scroll-link:hover {
    color: #2563eb;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* === ИНФО БЛОК - ПИСЬМО ЗА КРАЯ, ПЕЧАТЬ НАСЛАИВАЕТСЯ === */
#info-panel {
    scroll-margin-top: 2rem;
}

.info-panel {
    padding: 2rem;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    align-items: center;
    background: url('../img/fon1.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    border: none;
    position: relative;
    overflow: visible;
    border-radius: 0;
    min-height: 500px;
}

.info-docs {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
    min-height: 450px;
    z-index: 5;
}

.info-docs img {
    cursor: pointer;
    transition: none;
}

/* Стили для письма */
.document-letter {
    width: 310px !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 30px 40px -15px rgba(0,0,0,0.7);
    position: relative;
    z-index: 10;
    transform: scale(1.3) translateX(-25px);
    margin-left: 45px;
    margin-top: -30px;
    margin-bottom: -30px;
}

/* Стили для печати */
.document-stamp {
    width: 180px !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    position: absolute;
    z-index: 1000 !important;
    top: -100px;
    right: 20px;
    transform: scale(1.4) rotate(8deg);
    margin: 0;
    pointer-events: auto;
}

/* Белая плашка для текста */
.info-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 2.0rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 40;
    margin-left: -30px;
    width: calc(100% + 30px);
    justify-self: end;
    border-radius: 0;
}

.info-content p {
    color: #1e293b !important;
    text-shadow: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.info-content p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
}

.info-content p:nth-child(2) {
    font-size: 1.1rem;
}

.info-content p:last-child {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a !important;
}

/* Стиль для ссылки на реестр */
.info-content .reestr-link {
    margin: 1.2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.info-content .reestr-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
}

.info-content .reestr-link a:hover {
    text-decoration: underline;
}

/* Знак СДС на белом фоне */
.sds-sign {
    margin: 1.2rem 0;
}

.sds-sign img {
    height: 50px !important;
    width: auto;
}

/* === НОВАЯ КОМПАКТНАЯ СЕТКА ДЛЯ КОНТЕНТНЫХ БЛОКОВ === */
.content-grid-compact {
    margin: 5rem 0 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #2563eb;
}

/* Сетка 3x2 для верхних блоков */
.grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Сетка 2x2 для нижних блоков */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Компактные карточки */
.compact-card {
    padding: 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.compact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    color: inherit;
}

.compact-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
}

.compact-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: inherit;
    opacity: 0.9;
}

.compact-card ul, 
.compact-card ol {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0.75rem 0;
    font-size: 0.9rem;
    color: inherit;
}

.compact-card li {
    margin-bottom: 0.4rem;
    color: inherit;
    opacity: 0.9;
}

.compact-card .card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: inherit;
}

/* Цветовая гамма для карточек - строгие неяркие цвета */
.card-slate {
    background: #f8fafc;
    color: #1e293b;
    border-left: 4px solid #475569;
}

.card-gray {
    background: #f1f5f9;
    color: #1e293b;
    border-left: 4px solid #64748b;
}

.card-blue-light {
    background: #eef2ff;
    color: #1e293b;
    border-left: 4px solid #4f6f8f;
}

.card-teal-light {
    background: #ecfdf5;
    color: #1e293b;
    border-left: 4px solid #2c6e6e;
}

.card-amber-light {
    background: #fffbeb;
    color: #1e293b;
    border-left: 4px solid #9b7b4b;
}

.card-rose-light {
    background: #fff1f2;
    color: #1e293b;
    border-left: 4px solid #a15c6e;
}

.card-indigo-light {
    background: #eef2ff;
    color: #1e293b;
    border-left: 4px solid #4b556b;
}

.card-mauve-light {
    background: #faf5ff;
    color: #1e293b;
    border-left: 4px solid #7a6a8c;
}

.card-stone-light {
    background: #f5f5f4;
    color: #1e293b;
    border-left: 4px solid #78716c;
}

/* === Стили для аккордеона === */
.directions-section {
    margin: 5rem 0;
}

.directions-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.directions-list {
    border-top: 1px solid #e2e8f0;
}

.direction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.direction-item:hover {
    background-color: #f8fafc;
}

.direction-item.active {
    background-color: #f1f5f9;
    border-bottom: none;
}

.direction-icon {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 400;
    width: 30px;
    text-align: center;
}

.direction-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.direction-content-inner {
    padding: 1.5rem 1rem;
    color: #334155;
    font-size: 0.95rem;
}

.direction-content-inner p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.direction-content-inner ul {
    padding-left: 2rem;
    margin: 0.75rem 0;
}

.direction-content-inner li {
    margin-bottom: 0.35rem;
}

.direction-content-inner strong {
    color: #1e293b;
}

/* === Цены === */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: white;
    border-radius: 0;
}

.pricing-image {
    height: 220px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-content {
    padding: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0;
}

/* === Горизонтальные шаги (Как мы работаем) === */
.steps-section {
    margin: 3rem 0 5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-item p {
    font-size: 0.95rem;
    margin: 0;
    color: #334155;
}

/* === КОНТАКТНАЯ ФОРМА - СВЕТЛЫЙ И КОМПАКТНЫЙ ВАРИАНТ С ВЕЕРОМ === */
.contact-section {
    background: #f8fafc;
    padding: 2.5rem;
    margin: 4rem 0;
    color: #1e293b;
    border-radius: 0;
    border: 1px solid #e2e8f0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.contact-form h2 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 0.95rem;
    color: #1e293b;
    font-family: inherit;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1.2rem 0;
    color: #475569;
    font-size: 0.85rem;
}

.checkbox-group input {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
}

.checkbox-group a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #2563eb;
}

.checkbox-group a:hover {
    color: #1d4ed8;
    border-bottom: 1px solid #1d4ed8;
}

/* Сообщения формы */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    font-size: 0.95rem;
    border-radius: 0;
}

.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Состояние загрузки кнопки */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

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

/* Мини-веер сертификатов */
.contact-certificate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.mini-veil {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-mini-main {
    width: 75%;
    max-width: 300px;
    height: auto;
    position: relative;
    z-index: 30;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.25);
    border: 1px solid #e2e8f0;
}

.certificate-mini-1,
.certificate-mini-2 {
    position: absolute;
    width: 70%;
    max-width: 280px;
    height: auto;
    opacity: 0.6;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 25px -12px rgba(0,0,0,0.2);
    pointer-events: none;
}

.certificate-mini-1 {
    z-index: 10;
    transform: rotate(-6deg) translateX(-20px) translateY(8px);
    opacity: 0.6;
}

.certificate-mini-2 {
    z-index: 20;
    transform: rotate(4deg) translateX(15px) translateY(-5px);
    opacity: 0.5;
}

.certificate-caption {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 1.2rem;
    font-style: italic;
}

/* === СТРАНИЦА РЕЕСТРА === */

/* Статистика */
.reestr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem 1rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Фильтры */
.reestr-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.search-box {
    flex: 2;
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-box {
    flex: 1;
    min-width: 200px;
}

.filter-box select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.filter-box select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Таблица */
.reestr-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.reestr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.reestr-table th {
    background: #f1f5f9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 2px solid #cbd5e1;
}

.reestr-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

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

.reestr-table td strong {
    color: #0f172a;
}

/* Статус */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status.inactive {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.page-link.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #94a3b8;
}

.page-link.next {
    font-size: 1.2rem;
}

/* Информационные блоки */
.reestr-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
}

.info-box h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-box ol {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: #334155;
}

/* === Футер === */
.site-footer {
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #64748b;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.footer-address {
    font-style: normal;
    margin: 1rem 0;
}

/* === Модальные окна === */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    border-radius: 0;
}

.modal-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
}

/* Модальное окно для изображений */
.image-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-modal-close {
    position: absolute;
    top: 20px; right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 0;
}

/* === Утилиты === */
.clickable-image {
    cursor: pointer;
}

/* Подсветка при переходе по якорю */
.highlight {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(37, 99, 235, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* Отступ для якорей (чтобы не перекрывало шапкой) */
#directions,
#pricing,
#apply,
#info,
#reestr,
#docs,
#info-panel,
#how-it-works {
    scroll-margin-top: 100px;
}

/* === Адаптив === */
@media (max-width: 900px) {
    .hero-grid,
    .info-panel,
    .grid-2col,
    .pricing-grid,
    .contact-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        padding: 0 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Адаптив для веера сертификатов */
    .certificate-veil-1,
    .certificate-veil-2,
    .certificate-veil-3 {
        display: none;
    }
    
    .certificate-main {
        width: 90%;
    }
    
    .hero-image {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    /* Адаптив для инфо-блока */
    .info-panel {
        background-size: cover;
        min-height: auto;
        padding: 1.5rem;
    }
    
    .info-docs {
        flex-direction: column;
        min-height: auto;
        position: relative;
        padding-top: 100px;
    }
    
    .document-letter {
        transform: none !important;
        margin: 0 auto !important;
        width: 80% !important;
        z-index: 10;
    }
    
    .document-stamp {
        position: absolute;
        top: -30px;
        right: 10px;
        transform: scale(1.2) rotate(5deg);
        width: 150px !important;
        z-index: 1000 !important;
    }
    
    .info-content {
        margin-left: 0;
        width: 100%;
        z-index: 50;
        padding: 1.5rem;
    }
    
    /* Адаптив для новых сеток */
    .grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Адаптив для горизонтальных шагов */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        width: 100%;
    }
    
    /* Адаптив для контактной формы */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-certificate {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .certificate-mini-main {
        width: 60%;
    }
    
    /* Адаптив для реестра */
    .reestr-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reestr-filters {
        flex-direction: column;
    }
    
    .reestr-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1rem;
    }
    
    .social-icons {
        gap: 5px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .grid-3x2,
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .reestr-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .certificate-mini-main {
        width: 80%;
    }
    
    .certificate-mini-1,
    .certificate-mini-2 {
        width: 75%;
    }
 
/* === КНОПКА "НАВЕРХ" - УВЕЛИЧЕННАЯ === */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px; /* Увеличено с 54px */
    height: 70px; /* Увеличено с 54px */
    background: #0f172a;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    border: 2px solid #334155;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex !important;
}

.scroll-to-top:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-8px) scale(1.15); /* Увеличен эффект */
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
}

.scroll-to-top svg {
    width: 32px; /* Увеличено с 26px */
    height: 32px; /* Увеличено с 26px */
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-6px);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 60px; /* Увеличено с 48px */
        height: 60px; /* Увеличено с 48px */
    }
    
    .scroll-to-top svg {
        width: 28px; /* Увеличено с 22px */
        height: 28px; /* Увеличено с 22px */
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 55px; /* Увеличено с 42px */
        height: 55px; /* Увеличено с 42px */
    }
    
    .scroll-to-top svg {
        width: 26px; /* Увеличено с 20px */
        height: 26px; /* Увеличено с 20px */
    }
}
/* Стили для сообщений формы */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    text-align: center;
}

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

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Контейнер для капчи - визуальная интеграция */
.captcha-wrapper {
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: #f8fafc; /* Светлый фон, подстраивается под форму */
    border: 1px solid #e2e8f0;
    border-radius: 8px; /* Скругление как у полей ввода */
    display: flex;
    justify-content: center;
    transition: border-color 0.3s ease;
}

/* Эффект при наведении - показывает активность */
.captcha-wrapper:hover {
    border-color: #cbd5e1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .captcha-wrapper {
        margin: 1rem 0;
        transform: scale(0.95); /* Немного уменьшаем на мобильных */
        transform-origin: center;
    }
}

/* Небольшой отступ для сообщения об ошибке капчи */
.h-captcha-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}
}
