/* CSS переменные для цветовой палитры */
:root {
    --bg-light: #F5F6F7;          /* глобальный светлый фон */
    --bg-secondary: #C1C4C8;      /* второстепенные секции и карточки */
    --text-secondary: #7B7F85;    /* второстепенный текст и элементы */
    --accent-dark: #2B2E33;       /* заголовки, навигация, кнопки и ключевые акценты */
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F5F6F7 0%, #E3E5E9 45%, #C1C4C8 100%);
    color: var(--accent-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Скрытие SEO блока от пользователей (доступен для поисковых систем) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Прозрачная навигация */
.navbar {
    background-color: transparent;
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 80px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-dark);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Большая форма-фон для первого экрана */
.hero-bg-shape {
    position: fixed;
    top: -5%;
    left: 50%;
    transform: translateX(-50%) rotate(-12deg);
    width: 1800px;
    height: 1000px;
    background: linear-gradient(
        135deg,
        rgba(245, 246, 247, 0.96) 0%,
        rgba(227, 229, 233, 0.98) 45%,
        rgba(193, 196, 200, 1) 100%
    );
    border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%;
    box-shadow: 0 60px 120px rgba(43, 46, 51, 0.25);
    z-index: 0;
    pointer-events: none;
    animation: heroBgFloat 18s ease-in-out infinite alternate;
}

@keyframes heroBgFloat {
    0% {
        transform: translateX(-50%) translateY(0) rotate(-12deg) scale(1);
    }
    100% {
        transform: translateX(-50%) translateY(-14px) rotate(-8deg) scale(1.03);
    }
}

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 20px 4rem;
    z-index: 1; /* выше фон-формы */
}

/* Левая часть Hero */
.hero-left {
    flex: 1;
    max-width: 540px;
}

/* Правая часть Hero */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1rem;
}

/* начальные состояния для анимаций (плавный вход) */
.hero-label,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-tag,
.hero-card {
    opacity: 0;
    transform: translateY(20px);
}

/* Лейбл над заголовком */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(43, 46, 51, 0.06);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    margin-left: 0;
}

/* Заголовок */
.hero-title {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    margin-left: 0;
    color: var(--accent-dark);
    position: relative;
    z-index: 30;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark) 0%, transparent 100%);
    border-radius: 2px;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    margin-left: 0;
    max-width: 32rem;
    line-height: 1.7;
}

/* Блок с действием */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    margin-left: 0;
    flex-wrap: wrap;
}

/* Прозрачная (ghost) кнопка */
.btn-ghost {
    padding: 1.2rem 3rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #3a3e45 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(43, 46, 51, 0.3);
    transition: transform 0.3s ease;
    animation: emergencyFlash 2s ease-in-out infinite;
}

.btn-ghost:hover {
    transform: translateY(-3px) scale(1.05);
    animation: emergencyFlashFast 1s ease-in-out infinite;
}

@keyframes emergencyFlash {
    0% {
        box-shadow:
            0 8px 24px rgba(255, 0, 0, 0.4),
            0 0 30px rgba(255, 0, 0, 0.3),
            inset 0 0 40px rgba(255, 0, 0, 0.2);
        background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    }
    25% {
        box-shadow:
            0 10px 28px rgba(255, 0, 0, 0.6),
            0 0 40px rgba(255, 0, 0, 0.5),
            inset 0 0 60px rgba(255, 0, 0, 0.3);
        background: linear-gradient(135deg, #d62839 0%, #a01f30 100%);
    }
    50% {
        box-shadow:
            0 8px 24px rgba(0, 120, 255, 0.4),
            0 0 30px rgba(0, 120, 255, 0.3),
            inset 0 0 40px rgba(0, 120, 255, 0.2);
        background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    }
    75% {
        box-shadow:
            0 10px 28px rgba(0, 120, 255, 0.6),
            0 0 40px rgba(0, 120, 255, 0.5),
            inset 0 0 60px rgba(0, 120, 255, 0.3);
        background: linear-gradient(135deg, #0077dd 0%, #0055bb 100%);
    }
    100% {
        box-shadow:
            0 8px 24px rgba(255, 0, 0, 0.4),
            0 0 30px rgba(255, 0, 0, 0.3),
            inset 0 0 40px rgba(255, 0, 0, 0.2);
        background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    }
}

@keyframes emergencyFlashFast {
    0% {
        box-shadow:
            0 12px 32px rgba(255, 0, 0, 0.6),
            0 0 50px rgba(255, 0, 0, 0.5),
            inset 0 0 60px rgba(255, 0, 0, 0.3);
        background: linear-gradient(135deg, #e02a3f 0%, #b01f30 100%);
    }
    25% {
        box-shadow:
            0 14px 36px rgba(255, 0, 0, 0.7),
            0 0 60px rgba(255, 0, 0, 0.6),
            inset 0 0 80px rgba(255, 0, 0, 0.4);
        background: linear-gradient(135deg, #ff3347 0%, #cc2838 100%);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(0, 120, 255, 0.6),
            0 0 50px rgba(0, 120, 255, 0.5),
            inset 0 0 60px rgba(0, 120, 255, 0.3);
        background: linear-gradient(135deg, #0088ee 0%, #0066cc 100%);
    }
    75% {
        box-shadow:
            0 14px 36px rgba(0, 120, 255, 0.7),
            0 0 60px rgba(0, 120, 255, 0.6),
            inset 0 0 80px rgba(0, 120, 255, 0.4);
        background: linear-gradient(135deg, #0099ff 0%, #0077dd 100%);
    }
    100% {
        box-shadow:
            0 12px 32px rgba(255, 0, 0, 0.6),
            0 0 50px rgba(255, 0, 0, 0.5),
            inset 0 0 60px rgba(255, 0, 0, 0.3);
        background: linear-gradient(135deg, #e02a3f 0%, #b01f30 100%);
    }
}

/* Призыв к действию */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-cta-text {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-dark);
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: rgba(43, 46, 51, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Краткие преимущества в виде чипов */
.hero-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 540px;
    margin-left: 0;
}

.hero-tag {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 246, 247, 0.9) 100%);
    border: 1.5px solid rgba(43, 46, 51, 0.2);
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 500;
    box-shadow:
        0 2px 8px rgba(43, 46, 51, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.hero-tag::before {
    content: '•';
    font-size: 1.2rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

/* Блоки с рейтингом */
.rating-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    z-index: 20;
    position: relative;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 246, 247, 0.98) 100%);
    border: 2px solid rgba(43, 46, 51, 0.25);
    border-radius: 14px;
    box-shadow:
        0 4px 12px rgba(43, 46, 51, 0.12),
        0 8px 24px rgba(43, 46, 51, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.rating-badge:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(43, 46, 51, 0.15),
        0 10px 28px rgba(43, 46, 51, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(43, 46, 51, 0.4);
}

.rating-badge__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.rating-badge__score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.rating-badge__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.rating-badge__star {
    width: 100px;
    height: 28px;
    object-fit: contain;
}

.rating-badge__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Обертка для карточки и веера */
.hero-card-wrapper {
    position: relative;
    max-width: 520px;
    width: 100%;
}

/* Веер из изображений и видео */
.hero-gallery-fan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.fan-item {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    opacity: 0;
    transform-origin: center center;
    padding: 0.7rem;
    box-shadow:
        0 20px 60px rgba(43, 46, 51, 0.15),
        0 8px 24px rgba(43, 46, 51, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Левая верхняя карточка - выглядывает слева сверху */
.fan-item--1 {
    top: -15%;
    left: -25%;
    transform: rotate(-15deg) scale(0.85);
    z-index: 1;
}

/* Левая нижняя карточка - выглядывает слева снизу */
.fan-item--2 {
    bottom: -15%;
    left: -20%;
    transform: rotate(-8deg) scale(0.88);
    z-index: 2;
}

/* Правая нижняя карточка - выглядывает справа снизу */
.fan-item--3 {
    bottom: -12%;
    right: -20%;
    transform: rotate(8deg) scale(0.88);
    z-index: 2;
}

/* Правая верхняя карточка - выглядывает справа сверху */
.fan-item--4 {
    top: -18%;
    right: -25%;
    transform: rotate(15deg) scale(0.85);
    z-index: 1;
}

.fan-image,
.fan-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Карточка с картинкой справа */
.hero-card {
    position: relative;
    max-width: 720px;
    height: 720px;
    border-radius: 32px;
    padding: 1rem;
    background: #ffffff;
    overflow: hidden;
    z-index: 10;
    box-shadow:
        0 30px 80px rgba(43, 46, 51, 0.2),
        0 12px 32px rgba(43, 46, 51, 0.12),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Бейдж поверх картинки */
.hero-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Блок с текстом внизу картинки */
.hero-meta {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(245, 246, 247, 0.96);
    font-size: 0.85rem;
    color: var(--accent-dark);
}

.hero-meta-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-meta-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Адаптивность */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 0;
    }

    .logo-image {
        height: 70px;
    }

    .hero {
        flex-direction: column;
        padding-top: 5rem;
        gap: 2.5rem;
    }

    .hero-right {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-card-wrapper {
        max-width: 100%;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-bg-shape {
        width: 1200px;
        height: 700px;
        top: -15%;
    }

    /* Адаптация веера на планшетах */
    .fan-item--1 {
        top: -8%;
        left: -12%;
        transform: rotate(-12deg) scale(0.88);
    }

    .fan-item--2 {
        bottom: -8%;
        left: -10%;
        transform: rotate(-6deg) scale(0.9);
    }

    .fan-item--3 {
        bottom: -6%;
        right: -10%;
        transform: rotate(6deg) scale(0.9);
    }

    .fan-item--4 {
        top: -10%;
        right: -12%;
        transform: rotate(12deg) scale(0.88);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-image {
        height: 55px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .hero {
        overflow: hidden;
        padding: 5rem 16px 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-phone-block {
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    /* Адаптация веера на мобильных */
    .fan-item {
        width: 80%;
        height: 80%;
    }

    .fan-item--1 {
        top: -6%;
        left: -10%;
        transform: rotate(-10deg) scale(0.9);
    }

    .fan-item--2 {
        bottom: -6%;
        left: -8%;
        transform: rotate(-5deg) scale(0.92);
    }

    .fan-item--3 {
        bottom: -5%;
        right: -8%;
        transform: rotate(5deg) scale(0.92);
    }

    .fan-item--4 {
        top: -8%;
        right: -10%;
        transform: rotate(10deg) scale(0.9);
    }
}

/* Кнопка "Информация для пациентов" */
.info-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(43, 46, 51, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(43, 46, 51, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(43, 46, 51, 0.08);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.5;
    animation: infoBtnPulse 3s ease-in-out infinite;
}

.info-btn:hover {
    opacity: 1;
    background: rgba(43, 46, 51, 0.25);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(43, 46, 51, 0.15);
    animation: none;
}

.info-btn__icon {
    width: 16px;
    height: 16px;
    animation: infoIconRotate 4s ease-in-out infinite;
}

.info-btn:hover .info-btn__icon {
    animation: infoIconSpin 0.6s ease-in-out;
}

@keyframes infoBtnPulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 2px 8px rgba(43, 46, 51, 0.08);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 4px 16px rgba(43, 46, 51, 0.15);
    }
}

@keyframes infoIconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

@keyframes infoIconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 46, 51, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal__content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f5f6f7 100%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(43, 46, 51, 0.3);
    animation: slideUp 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 46, 51, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: rgba(43, 46, 51, 0.12);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 20px;
    height: 20px;
    color: var(--accent-dark);
}

.modal__title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.modal__documents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Элемент документа */
.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid rgba(43, 46, 51, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.doc-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(43, 46, 51, 0.12);
    border-color: var(--accent-dark);
}

.doc-item__icon {
    width: 32px;
    height: 32px;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.doc-item__content {
    flex: 1;
}

.doc-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.25rem;
}

.doc-item__meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.doc-item__arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.doc-item:hover .doc-item__arrow {
    transform: translateX(4px);
}

/* Ссылка на основной сайт */
.modal__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #4a4f57 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 46, 51, 0.3);
}

.modal__link svg {
    width: 18px;
    height: 18px;
}

/* PDF просмотрщик */
.pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-viewer.active {
    display: flex;
}

.pdf-viewer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 46, 51, 0.95);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.pdf-viewer__content {
    position: relative;
    width: 95%;
    height: 95%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.3s ease;
}

.pdf-viewer__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pdf-viewer__close:hover {
    background: #f5f6f7;
    transform: rotate(90deg);
}

.pdf-viewer__close svg {
    width: 24px;
    height: 24px;
    color: var(--accent-dark);
}

.pdf-viewer__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .info-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 0.85rem;
        font-size: 0.7rem;
    }

    .info-btn__icon {
        width: 14px;
        height: 14px;
    }

    .modal__content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .modal__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .doc-item {
        padding: 1rem;
    }

    .doc-item__title {
        font-size: 0.9rem;
    }

    .pdf-viewer__content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pdf-viewer__close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .info-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.65rem;
    }

    .modal__title {
        font-size: 1.3rem;
    }

    .doc-item__icon {
        width: 28px;
        height: 28px;
    }
}
