/* ===================================
   NEUROLOGY-DECOR.CSS
   Декоративные паттерны для «Детской неврологии»
   Тема: нейронные связи, импульсы, ЭЭГ-волны, точность
   =================================== */

:root {
    --neuro-doodle-synapse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='50' viewBox='0 0 70 50'%3E%3Cline x1='6' y1='40' x2='34' y2='16' stroke='%2325A9B8' stroke-width='1.6' stroke-opacity='0.3'/%3E%3Cline x1='34' y1='16' x2='64' y2='34' stroke='%2325A9B8' stroke-width='1.6' stroke-opacity='0.3'/%3E%3Ccircle cx='6' cy='40' r='3.5' fill='%2325A9B8' fill-opacity='0.3'/%3E%3Ccircle cx='34' cy='16' r='4' fill='%2325A9B8' fill-opacity='0.3'/%3E%3Ccircle cx='64' cy='34' r='3.5' fill='%2325A9B8' fill-opacity='0.3'/%3E%3C/svg%3E");
    --neuro-doodle-eeg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='30' viewBox='0 0 140 30'%3E%3Cpath d='M2 15 L20 15 L26 4 L34 26 L40 15 L60 15 L66 8 L72 22 L78 15 L140 15' fill='none' stroke='%2325A9B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --neuro-doodle-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='18' viewBox='0 0 44 18'%3E%3Ccircle cx='4' cy='9' r='2.4' fill='%2352CC9A' fill-opacity='0.35'/%3E%3Ccircle cx='18' cy='6' r='1.8' fill='%2352CC9A' fill-opacity='0.35'/%3E%3Ccircle cx='30' cy='11' r='2.2' fill='%2352CC9A' fill-opacity='0.35'/%3E%3Ccircle cx='40' cy='5' r='1.6' fill='%2352CC9A' fill-opacity='0.35'/%3E%3C/svg%3E");
    --neuro-doodle-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 4v20M4 14h20' stroke='%23EE7A5D' stroke-width='2.6' stroke-linecap='round' stroke-opacity='0.28'/%3E%3C/svg%3E");
    --neuro-doodle-brain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='54' viewBox='0 0 60 54'%3E%3Cpath d='M22 4c-8 0-14 6-14 13 0 3 1 5 3 7-3 2-5 5-5 9 0 7 6 12 13 12h1c1 4 5 7 10 7s9-3 10-7h1c7 0 13-5 13-12 0-4-2-7-5-9 2-2 3-4 3-7 0-7-6-13-14-13-3 0-6 1-8 3-2-2-5-3-8-3z' fill='none' stroke='%2325A9B8' stroke-width='1.6' stroke-opacity='0.25'/%3E%3C/svg%3E");
    --neuro-doodle-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40L0 20C60 4 120 36 180 20C240 4 300 36 360 20C420 4 480 36 540 20C600 4 660 36 720 20C780 4 840 36 900 20C960 4 1020 36 1080 20C1110 12 1140 28 1200 20L1200 40Z' fill='white'/%3E%3C/svg%3E");

    --neuro-doodle-check-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='30' viewBox='0 0 36 30'%3E%3Cpath d='M4 16L14 25L32 4' fill='none' stroke='rgba(82,204,154,0.32)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --neuro-doodle-question-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='40' viewBox='0 0 26 40'%3E%3Cpath d='M6 12C6 5 12 2 17 5C22 8 21 15 16 18C13 20 13 22 13 25' stroke='rgba(37,169,184,0.28)' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='13' cy='33' r='2.4' fill='rgba(37,169,184,0.28)'/%3E%3C/svg%3E");
    --neuro-doodle-exclaim-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='40' viewBox='0 0 24 40'%3E%3Cpath d='M12 3C10 14 11 20 12 26' stroke='rgba(245,158,11,0.35)' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='12' cy='34' r='2.4' fill='rgba(245,158,11,0.35)'/%3E%3C/svg%3E");
}

@keyframes neuroDoodleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(5deg); }
}

@keyframes neuroDoodleFloatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(8px) rotate(-6deg); }
}

@keyframes neuroDoodlePulse {
    0%, 100% { opacity: .25; transform: scale(1); }
    50%      { opacity: .45; transform: scale(1.08); }
}

/* ===================================
   HERO
   =================================== */
.neuro-hero {
    position: relative;
    isolation: isolate;
}

.neuro-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--neuro-doodle-synapse), var(--neuro-doodle-brain), var(--neuro-doodle-dots);
    background-repeat: no-repeat;
    background-position: 4% 70%, 92% 18%, 88% 78%;
    background-size: 90px 64px, 100px 90px, 48px 20px;
    opacity: .5;
}

.neuro-hero .container {
    position: relative;
    z-index: 1;
}

.service-tag:nth-child(odd)  { transform: rotate(-1.2deg); }
.service-tag:nth-child(even) { transform: rotate(1deg); }
.service-tag {
    display: inline-flex;
    transition: transform var(--transition-base, .3s), box-shadow var(--transition-base, .3s);
}
.service-tag:hover {
    transform: rotate(0deg) translateY(-2px);
}

.service-hero__image {
    outline: 2px dashed rgba(37, 169, 184, .32);
    outline-offset: 8px;
}

/* ===================================
   ВОЛНИСТЫЕ РАЗДЕЛИТЕЛИ
   =================================== */
.hero__divider {
    position: relative;
    overflow: hidden;
}

.hero__divider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 200%;
    background: currentColor;
    -webkit-mask-image: var(--neuro-doodle-wave-mask);
    mask-image: var(--neuro-doodle-wave-mask);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: .06;
    pointer-events: none;
}

/* ===================================
   ВВОДНАЯ СЕКЦИЯ
   =================================== */
.neuro-intro {
    position: relative;
    isolation: isolate;
}

.neuro-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(37, 169, 184, .12) 1.4px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: .55;
}

.neuro-intro > .container {
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    display: block;
}

.principle-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.principle-box::after {
    content: '';
    position: absolute;
    right: 3%;
    bottom: 6%;
    width: 70px;
    height: 26px;
    background: var(--neuro-doodle-eeg) no-repeat center / contain;
    opacity: .3;
    pointer-events: none;
    z-index: 0;
}

.feature-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--neuro-doodle-dots) no-repeat center / contain;
    opacity: .3;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.feature-card:hover::after {
    transform: translateY(-4px) scale(1.15);
}

/* ===================================
   ПРОБЛЕМЫ
   =================================== */
.neuro-problems {
    position: relative;
    isolation: isolate;
}

.neuro-problems::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 6%;
    right: 4%;
    width: 50px;
    height: 36px;
    background: var(--neuro-doodle-synapse) no-repeat center / contain;
    opacity: .3;
    animation: neuroDoodleFloat 10s ease-in-out infinite;
}

.neuro-problems > .container {
    position: relative;
    z-index: 1;
}

.problem-group {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.problem-group::after {
    content: '';
    position: absolute;
    right: 6%;
    bottom: 6%;
    width: 26px;
    height: 26px;
    background: var(--neuro-doodle-check-w) no-repeat center / contain;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    z-index: 0;
}

.problem-group:hover::after {
    opacity: .9;
    transform: scale(1);
}

/* ===================================
   ЭТАПЫ ПРИЁМА
   =================================== */
.neuro-process {
    position: relative;
    isolation: isolate;
}

.neuro-process::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(37, 169, 184, .08) 31px 32px);
    opacity: .5;
}

.neuro-steps {
    position: relative;
    z-index: 1;
}

.neuro-step__marker {
    position: relative;
}

.neuro-step__marker::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 2px dashed rgba(37, 169, 184, .3);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.neuro-step:nth-child(2n) .neuro-step__marker::after { transform: rotate(6deg); }
.neuro-step:nth-child(2n+1) .neuro-step__marker::after { transform: rotate(-4deg); }

/* ===================================
   ПОЧЕМУ ВЫБИРАЮТ / КОГДА СРОЧНО
   =================================== */
.neuro-why {
    position: relative;
    isolation: isolate;
}

.neuro-why::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--neuro-doodle-plus), var(--neuro-doodle-dots);
    background-repeat: no-repeat;
    background-position: 4% 12%, 92% 82%;
    background-size: 26px 26px, 44px 18px;
    opacity: .35;
}

.neuro-why > .container {
    position: relative;
    z-index: 1;
}

.neuro-why__list li {
    position: relative;
    overflow: hidden;
}

.neuro-urgent {
    position: relative;
    overflow: hidden;
}

.neuro-urgent::after {
    content: '';
    position: absolute;
    right: 5%;
    top: 8%;
    width: 20px;
    height: 34px;
    background: var(--neuro-doodle-exclaim-w) no-repeat center / contain;
    pointer-events: none;
}

/* ===================================
   СПЕЦИАЛИСТ
   =================================== */
.neuro-specialist {
    position: relative;
    isolation: isolate;
}

.neuro-specialist::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--neuro-doodle-dots), var(--neuro-doodle-eeg);
    background-repeat: no-repeat;
    background-position: 8% 20%, 85% 80%;
    background-size: 50px 20px, 130px 26px;
    opacity: .4;
}

.neuro-specialist > .container {
    position: relative;
    z-index: 1;
}

.neuro-specialist__photo {
    position: relative;
}

.neuro-specialist__card {
    position: relative;
    overflow: hidden;
}

.neuro-specialist__card::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 90px;
    height: 80px;
    background: var(--neuro-doodle-brain) no-repeat center / contain;
    opacity: .12;
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   FAQ
   =================================== */
.neuro-faq {
    position: relative;
    isolation: isolate;
}

.neuro-faq::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--neuro-doodle-question-w), var(--neuro-doodle-question-w), var(--neuro-doodle-question-w);
    background-repeat: no-repeat;
    background-position: 6% 12%, 92% 42%, 10% 86%;
    background-size: 26px 40px, 22px 34px, 24px 36px;
    opacity: .55;
}

.neuro-faq > .container {
    position: relative;
    z-index: 1;
}

.faq-item {
    position: relative;
    transition: transform .3s ease;
}

.faq-item[open] {
    transform: translateX(2px);
}

/* ===================================
   CTA
   =================================== */
.neuro-cta {
    position: relative;
    isolation: isolate;
}

.neuro-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--neuro-doodle-synapse), var(--neuro-doodle-eeg), var(--neuro-doodle-dots);
    background-repeat: no-repeat;
    background-position: 6% 22%, 40% 88%, 88% 28%;
    background-size: 70px 50px, 140px 26px, 44px 18px;
    opacity: .4;
}

.neuro-cta::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 14%;
    left: 8%;
    width: 44px;
    height: 34px;
    background: var(--neuro-doodle-brain) no-repeat center / contain;
    opacity: .3;
    animation: neuroDoodleFloatReverse 9s ease-in-out infinite;
}

.neuro-cta > .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   =================================== */
@media (max-width: 768px) {
    .neuro-hero::before,
    .neuro-cta::before,
    .neuro-faq::before,
    .neuro-specialist::before {
        opacity: .22;
    }

    .neuro-cta::after,
    .neuro-problems::after {
        width: 30px;
        height: 30px;
    }

    .principle-box::after,
    .neuro-specialist__card::after {
        opacity: .08;
        transform: scale(.8);
    }
}

/* ===================================
   ACCESSIBILITY / PRINT
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .neuro-hero__network .neuro-hero__links path,
    .neuro-hero__network .neuro-hero__nodes circle,
    .neuro-cta::after,
    .neuro-problems::after {
        animation: none;
    }
}

@media print {
    .neuro-hero::before,
    .neuro-cta::before,
    .neuro-cta::after,
    .neuro-intro::before,
    .neuro-problems::after,
    .neuro-process::before,
    .neuro-why::before,
    .neuro-specialist::before,
    .neuro-specialist__card::after,
    .neuro-faq::before,
    .principle-box::after,
    .feature-card::after,
    .problem-group::after,
    .neuro-urgent::after,
    .hero__divider::after,
    .neuro-hero__network {
        display: none !important;
    }
}