@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

html {
  height: 100%;
  background: 50% 50% no-repeat
    url('data:image/svg+xml,<svg viewBox="-20 -5 60 40" width="140" xmlns="http://www.w3.org/2000/svg" opacity="0.2"><path d="M1 8l11-7 11 7v8l-11 7-11-7zm0 0l11 8 11-8m0 8L12 8 1 16M12 1v7m0 8v7" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="2"/><text x="-12" y="32" font-size="5" font-family="monospace" fill="currentColor">Built on CodePen</text></svg>');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f0e8;
    --bg-dark: #2a2318;
    --ink: #2a2318;
    --ink-soft: #6b6152;
    --gold: #9a7b4f;
    --gold-light: #d9b98a;
    --line: #d8cfbe;
    --white: #faf7f2;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ============================================
   ЭКРАН 1 — ГЛАВНОЕ ФОТО
   ============================================ */
.hero-screen {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background: url('hero.jpg') center/cover no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    background: radial-gradient(ellipse at center, rgba(20, 15, 8, 0.55) 0%, rgba(20, 15, 8, 0.25) 60%, transparent 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 22px;
    font-weight: 400;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============================================
   ОБЩИЕ СЕКЦИИ
   ============================================ */
.screen {
    padding: 100px 0;
}

.screen-dark {
    background: var(--bg-dark);
    color: var(--bg);
}

.screen-contact {
    background: var(--bg-dark);
    color: var(--bg);
    text-align: center;
    padding: 120px 0;
}

.screen-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 14px;
    line-height: 1.15;
}

.screen-title.light {
    color: var(--bg);
}

.screen-subtitle {
    text-align: center;
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}

.screen-subtitle.light {
    color: rgba(245, 240, 232, 0.65);
}

/* Фото-карточка */
.photo-card {
    margin: 0 auto 48px;
    max-width: 700px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px -20px rgba(42, 35, 24, 0.35);
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Текст-лид */
.lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    text-align: center;
    color: var(--ink);
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.lead strong {
    color: var(--gold);
    font-weight: 600;
}

.lead-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.underline {
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    color: var(--ink);
}

/* Сноска со звёздочкой */
.note {
    display: flex;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 32px;
    background: var(--white);
    border-left: 3px solid var(--gold);
    box-shadow: 0 10px 30px -15px rgba(42, 35, 24, 0.2);
}

.asterisk {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
}

.note-body p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
    line-height: 1.6;
}

.note-body p:last-child {
    margin-bottom: 0;
}

.note-body strong {
    color: var(--ink);
    font-weight: 500;
}

.price-inline {
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   ВИДЕО КАК ГИФКА — БЕЗ РАМКИ
   ============================================ */
.video-inline {
    max-width: 400px;
    margin: 32px auto;
}

.video-inline video {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   ПРАЙС-КАРТОЧКИ
   ============================================ */
.price-card {
    max-width: 640px;
    margin: 0 auto;
}

.price-card.simple {
    background: var(--white);
    padding: 8px 32px;
    border: 1px solid var(--line);
}

.screen-dark .price-card.simple {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.price-row {
    display: flex;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid rgba(42, 35, 24, 0.12);
    gap: 12px;
}

.screen-dark .price-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.price-name {
    font-size: 1rem;
    font-weight: 400;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.price-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(42, 35, 24, 0.25);
    margin-bottom: 5px;
    min-width: 20px;
}

.screen-dark .price-dots {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.screen-dark .price-amount {
    color: var(--gold-light);
}

.price-amount em {
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--ink-soft);
    font-weight: 300;
    margin-left: 2px;
}

.screen-dark .price-amount em {
    color: rgba(245, 240, 232, 0.55);
}

.fine-print {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 24px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.fine-print.light {
    color: rgba(245, 240, 232, 0.55);
}

/* ============================================
   КОНТАКТЫ И ФУТЕР
   ============================================ */
.contact-line {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: rgba(245, 240, 232, 0.85);
    letter-spacing: 0.5px;
}

.contact-line a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.contact-line a:hover {
    border-bottom-color: var(--gold-light);
}

.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    padding: 28px 0;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
    letter-spacing: 2px;
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 22px;
    }

    .screen {
        padding: 64px 0;
    }

    .screen-contact {
        padding: 80px 0;
    }

    .hero-subtitle {
        letter-spacing: 5px;
        font-size: 0.75rem;
    }

    .note {
        flex-direction: column;
        gap: 10px;
        padding: 22px;
    }

    .asterisk {
        font-size: 1.8rem;
    }

    .price-name {
        font-size: 0.9rem;
    }

    .price-amount {
        font-size: 1.1rem;
    }

    .price-card.simple {
        padding: 4px 20px;
    }

    .photo-card {
        margin-bottom: 32px;
    }

    .video-inline {
        margin: 24px auto;
    }
}

/* ============================================
   ФОН С ФОТО ДЛЯ БЛОКА «КОННЫЕ ПРОГУЛКИ»
   ============================================ */
.screen-photo {
    position: relative;
    background: linear-gradient(rgba(20, 15, 8, 0.65), rgba(20, 15, 8, 0.65)),
                url('https://i.ibb.co/wFhBdXTB/162d3c68-4b4e-4343-a76e-282bc5088519.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.screen-photo .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   ЭКРАН 7: ГАЛЕРЕЯ — АВТОПРОКРУТКА
   ============================================ */
.gallery-section {
    padding: 70px 0 50px;
    overflow: hidden;
    background: var(--bg);
}

.gallery-track-wrap {
    overflow: hidden;
    width: 100%;
    margin-top: 24px;
}

.gallery-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: galleryScroll 75s linear infinite;
    will-change: transform;
    align-items: center;
}

.gallery-item {
    position: relative;
    width: 520px;
    height: 470px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px -20px rgba(42, 35, 24, 0.4);
    transition: transform 0.5s ease;
    background: #1a140c;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Размытый фон — сзади */
.gallery-bg {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: cover;
    filter: blur(15px) brightness(0.75);
    transform: scale(1.05);
    z-index: 0;
}

/* Чёткое фото — сверху */
.gallery-main {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: block;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes galleryScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
    .gallery-item {
        width: 420px;
        height: 380px;
    }
    .gallery-track {
        gap: 14px;
        animation-duration: 60s;
    }
}

@media (max-width: 640px) {
    .gallery-item {
        width: 300px;
        height: 280px;
    }
    .gallery-track {
        gap: 10px;
        animation-duration: 50s;
    }
    .gallery-section {
        padding: 45px 0 35px;
    }
}

/* ============================================
   НОВЫЙ ПРОДАЮЩИЙ ДИЗАЙН БЕСЕДОК
   ============================================ */
.pavilions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pavilion-card {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pavilion-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.pavilion-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #1a140c;
}

.pavilion-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pavilion-card:hover .pavilion-img-wrap img {
    transform: scale(1.05);
}

.pavilion-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(20, 15, 8, 0.8);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.pavilion-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--bg); 
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.pavilion-desc {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px; 
}

.pavilion-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-light);
}

.pavilion-note {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.5);
    font-style: italic;
    margin-bottom: 50px;
}

/* КАРУСЕЛЬ БЕСЕДОК (УВЕЛИЧЕННАЯ) */
.fence-gallery-wrap {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    padding: 10px 0;
}

.fence-gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: fenceScroll 40s linear infinite;
    will-change: transform;
    align-items: center;
}

.fence-gallery-item {
    position: relative;
    width: 320px;  
    height: 240px; 
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px -15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    background: #1a140c;
}

.fence-gallery-item:hover {
    transform: scale(1.05);
}

.fence-gallery-bg {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: cover;
    filter: blur(12px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}

.fence-gallery-main {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: block;
}

.fence-gallery-track:hover {
    animation-play-state: paused;
}

@keyframes fenceScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .pavilions-grid {
        grid-template-columns: 1fr; 
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .fence-gallery-item {
        width: 260px;
        height: 200px;
    }
    .fence-gallery-track {
        gap: 10px;
        animation-duration: 30s;
    }
}

/* ============================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ (ПРОЖИВАНИЕ)
   ============================================ */
.reveal-block {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-block.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-block.visible .price-card,
.reveal-block.visible .fine-print {
    animation: fadeUpText 1s ease forwards;
    opacity: 0;
    animation-delay: 0.4s; 
}

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

/* ============================================
   НОВЫЕ ДОБАВЛЕНИЯ: КАРТА, КНОПКИ, ДОКУМЕНТЫ
   ============================================ */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(42, 35, 24, 0.4);
    border: 1px solid var(--line);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-light);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
}

/* ============================================
   БЛОК ДОКУМЕНТОВ (ВЕЕР)
   ============================================ */
.documents-block {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.doc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--bg);
    margin-bottom: 10px;
}

.doc-subtitle {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 40px;
}

.doc-fan {
    position: relative;
    display: flex;
    justify-content: center;
    height: 250px;
    margin-top: 20px;
}

.doc-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 160px;
    height: 210px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(calc(var(--i) * 15deg)) translateY(calc(abs(var(--i)) * 20px));
    z-index: 10;
    border: 2px solid transparent; 
    box-sizing: border-box;
    text-align: center;
}

.doc-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 50px;
    margin-bottom: 15px;
    background-color: var(--bg);
    border: 2px solid var(--gold);
    border-radius: 4px;
    position: relative;
    box-shadow: 3px 3px 0 rgba(154, 123, 79, 0.2);
}

.doc-card::after {
    content: '';
    position: absolute;
    top: 60px; 
    width: 20px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 6px 0 var(--gold), 0 12px 0 var(--gold);
}

.doc-card-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.doc-fan:hover .doc-card {
    transform: translateX(-50%) rotate(calc(var(--i) * 25deg)) translateY(0) translateX(calc(var(--i) * 80px));
}

.doc-card:hover {
    transform: translateX(-50%) rotate(0deg) translateY(-20px) scale(1.1) !important;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

/* ============================================
   СОЦИАЛЬНЫЕ СЕТИ И БЫСТРАЯ СВЯЗЬ
   ============================================ */
.social-section {
    margin-top: 50px;
    text-align: center;
}

.social-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.social-icon svg {
    width: 26px;
    height: 26px;
}

/* Цвета по умолчанию */
.social-icon.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.vk { background: #0077FF; }
.social-icon.tg { background: #229ED9; }
.social-icon.max { background: #00C9A7; }
.social-icon.ya { background: #FC3F1D; }
.social-icon.2gis { background: #18A955; }
.social-icon.wa { background: #25D366; }

/* Исправленный блок подписей */
.social-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important; /* Убираем подчеркивание у всей ссылки */
    transition: transform 0.3s ease;
}

.social-icon-wrapper:hover {
    transform: translateY(-5px);
}

.social-label {
    font-size: 0.75rem;
    color: #ffffff !important; /* Принудительно белый цвет */
    text-decoration: none !important; /* Принудительно без подчеркивания */
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================
   НОВЫЕ ДОБАВЛЕНИЯ: КАРТА, КНОПКИ, ДОКУМЕНТЫ
   ============================================ */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(42, 35, 24, 0.4);
    border: 1px solid var(--line);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-light);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
}

.documents-block {
    margin-top: 80px;
    text-align: center;
}

.doc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--bg);
    margin-bottom: 10px;
}

.doc-subtitle {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 40px;
}

.doc-fan {
    position: relative;
    display: flex;
    justify-content: center;
    height: 220px;
    margin-top: 20px;
}

.doc-card {
    position: absolute;
    top: 0;
    width: 160px;
    height: 200px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
    transform: rotate(calc(var(--i) * 15deg)) translateY(calc(abs(var(--i)) * 20px));
    z-index: 10;
}

.doc-card .doc-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.doc-card span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.doc-fan:hover .doc-card {
    transform: rotate(calc(var(--i) * 25deg)) translateY(0) translateX(calc(var(--i) * 80px));
}

.doc-card:hover {
    transform: rotate(0deg) translateY(-20px) scale(1.1) !important;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
