/* Стили для индивидуального раздела - Тема: кошки и музыка */

.main-content h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Общие стили для секций хобби */
.hobby-section {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hobby-section:hover {
    /* Убираем transform и используем только тень */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Стили для обтекания картинки текстом */
.cat-story {
    position: relative;
    margin-top: 20px;
}

.cat-story p {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: justify;
    color: #5a5a5a;
    font-size: 1.05em;
}

.cat-story p:first-of-type {
    margin-top: 10px;
}

.cat-conclusion {
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 154, 118, 0.08), transparent);
    border-radius: 12px;
    border-left: 3px solid #FF9A76;
    margin-top: 25px !important;
    font-size: 1.1em;
    line-height: 1.6;
    clear: both; /* Чтобы заключение было под картинкой */
}

/* Делаем первый абзац немного выделенным */
.cat-story p:first-of-type {
    font-size: 1.05em; /* Такой же размер как у остальных */
    line-height: 1.7; /* Такой же межстрочный интервал */
}


/* Стили для музыкального текста */
.music-text-content p {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: justify;
    color: #5a5a5a;
    font-size: 1.05em;
    
}

.music-text-content strong {
    color: #5a67d8;
    font-weight: 600;
}





/* Фон с кошачьими лапками */
.cat-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 10% 20%, #ff9a76 8px, transparent 9px),
        radial-gradient(circle at 25% 80%, #ff9a76 6px, transparent 7px),
        radial-gradient(circle at 40% 40%, #ff9a76 7px, transparent 8px),
        radial-gradient(circle at 60% 15%, #ff9a76 5px, transparent 6px),
        radial-gradient(circle at 75% 65%, #ff9a76 6px, transparent 7px),
        radial-gradient(circle at 90% 35%, #ff9a76 8px, transparent 9px),
        radial-gradient(circle at 15% 90%, #ff9a76 7px, transparent 8px),
        radial-gradient(circle at 85% 75%, #ff9a76 5px, transparent 6px);
    background-size: 200px 200px;
    z-index: 0;
    pointer-events: none;
}

/* Добавляем маленькие следы лапок */
.cat-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Следы лапок - группы из 4 точек */
        radial-gradient(circle at 5% 10%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 8% 12%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 5% 17%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 8% 15%, #ff9a76 4px, transparent 5px),

        radial-gradient(circle at 95% 25%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 98% 27%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 95% 32%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 98% 30%, #ff9a76 4px, transparent 5px),

        radial-gradient(circle at 20% 85%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 23% 87%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 20% 92%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 23% 90%, #ff9a76 4px, transparent 5px),

        radial-gradient(circle at 80% 45%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 83% 47%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 80% 52%, #ff9a76 4px, transparent 5px),
        radial-gradient(circle at 83% 50%, #ff9a76 4px, transparent 5px);
    background-size: 300px 300px;
    opacity: 0.3;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.section-header i {
    font-size: 2em;
    margin-right: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.section-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #5a5a5a;
    font-size: 1.05em;
}

.text-content ul {
    margin-bottom: 10px;
    padding-left: 25px;
}

.text-content li {
    margin-bottom: 9px;
    line-height: 1.6;
    position: relative;
    color: #5a5a5a;
    padding-left: 10px;
}

.text-content li::before {
    content: '•';
    color: currentColor;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.text-content strong {
    color: #5a5a5a;
}

.compact-list {
    list-style: none;
}

.compact-list li {
    margin: 0;
    padding: 1px 1;
}

/* Картинка */
.image-content {
    float: left;
    margin: 0 25px 20px 0;
    shape-outside: margin-box;
}

.hobby-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border: 8px solid #ffb6c1;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.hobby-image:hover {
    transform: rotate(-2deg) scale(1.02);
}

/* Модальное окно для изображений */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 10001;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .modal-close {
        top: -30px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95%;
    }
    
    .modal-content img {
        max-height: 85vh;
    }
}

/* Кошачья тема */
.cat-theme {
    
    background: #fff;
}

.cat-theme .section-header {
    color: #D9534F;
}

.cat-theme .section-header i {
    color: #D9534F;
    animation: purr 2s ease-in-out infinite;
}

.cat-theme .hobby-image {
    border-color: rgb(235, 168, 144);
}

.cat-theme .text-content li::before {
    content: '🐾';
}

/* Анимация для кошачьей темы */
@keyframes purr {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}



/* Стили для анимированной кошки */
.cat_container {
    margin: 0;
    overflow: visible;
    background: transparent;
    position: relative;
    height: 40px;
    width: 60px;
    transform: scale(0.2);
    transform-origin: left center;
    margin-left: 10px;
}

.cat_container .cat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 188px;
    height: 260px;
    margin-left: -99px;
    margin-top: -130px;
    color: #ff6b35;
    /* Рыжий цвет */
}

.cat_container .cat .paw {
    position: absolute;
    top: 176px;
    left: 88px;
    width: 20px;
    height: 80px;
    background: currentcolor;
    border-radius: 20px/0 0 80px 40px;
    transform: rotate(10deg);
    animation: paw_l 0.45s infinite linear;
}

.cat_container .cat .paw:after {
    position: absolute;
    content: "";
    bottom: -5px;
    left: -4px;
    width: 20px;
    height: 26px;
    background: currentcolor;
    border-radius: 50%;
    transform: rotate(24deg);
}

.cat_container .cat .paw:nth-child(2) {
    left: 130px;
    animation: paw_r 0.45s infinite linear;
}

.cat_container .cat .shake {
    position: absolute;
    width: 100%;
    top: 0;
    animation: shake 0.45s infinite linear;
}

.cat_container .cat:before {
    position: absolute;
    content: "";
    top: 100%;
    left: 50%;
    width: 130px;
    height: 30px;
    margin-left: -50px;
    margin-top: -20px;
    background: #616161;
    opacity: 0.4;
    border-radius: 50%;
    animation: shadow 0.45s infinite linear;
    animation-delay: 0.225s;
}

.cat_container .cat:after {
    position: absolute;
    content: "";
    top: 100%;
    left: 100%;
    width: 15px;
    height: 10px;
    margin-left: -30px;
    margin-top: -10px;
    background: #616161;
    opacity: 0.3;
    border-radius: 50%;
    box-shadow: 50px 0 #616161, 100px 0 #616161, 150px 0 #616161, 200px 0 #616161, 250px 0 #616161, 300px 0 #616161;
    animation: track 0.225s infinite linear;
}

.cat_container .cat .tail {
    position: absolute;
    content: "";
    top: 0;
    right: -4px;
    width: 160px;
    height: 150px;
    border: 20px solid;
    border-color: currentcolor transparent transparent currentcolor;
    /* ВОТ ЭТО ОСТАВИТЬ */
    background: transparent !important;
    /* УБРАТЬ фон */
    transform: rotate(45deg);
    border-radius: 120px/106px 120px 0 120px;
    box-sizing: border-box;
    animation: tail 0.45s infinite linear;
}

.cat_container .cat .tail:after {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    background: currentcolor;
    border-radius: 50%;
    bottom: 0;
    box-shadow: 2px 4px currentcolor, 2px 7px currentcolor, 2px 10px currentcolor, 1px 14px currentcolor, -1px 18px currentcolor, -5px 22px currentcolor, -10px 25px currentcolor, -15px 28px currentcolor, -20px 30px currentcolor;
}

.cat_container .cat .main {
    position: absolute;
    top: 14px;
    right: 0;
    width: 144px;
    height: 216px;
    color: currentcolor;
}

.cat_container .cat .main .head {
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 104px;
    height: 180px;
    background: currentcolor;
    border-radius: 55px/100px 100px 65px 65px;
    transform: rotate(40deg);
}

.cat_container .cat .main .body {
    position: absolute;
    right: 0;
    width: 130px;
    height: 180px;
    background: currentcolor;
    border-radius: 65px/70px 70px 100px 100px;
}

.cat_container .cat .main .body .leg {
    position: absolute;
    right: -10px;
    top: 20px;
    width: 50px;
    height: 116px;
    background: currentcolor;
    border-radius: 25px/0 60px 50px 0;
}

.cat_container .cat .main .body .leg:before {
    position: absolute;
    content: "";
    bottom: -4px;
    right: 0;
    width: 20px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-left-color: #000000;
    -webkit-transform: rotate(6deg);
    -ms-transform: rotate(6deg);
    transform: rotate(6deg);
}

.cat_container .cat .main .body .leg:after {
    position: absolute;
    content: "";
    left: 3px;
    bottom: 35px;
    width: 76px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #000000;
    transform: rotate(65deg);
}

.cat_container .cat .main .face {
    position: absolute;
    bottom: 0;
    width: 76px;
    height: 80px;
}

.cat_container .cat .main .face .nose {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 18px;
    height: 9px;
    margin-left: -10px;
    background: #9c1b4d;
    border-radius: 20px/10px 10px 20px 20px;
}

.cat_container .cat .main .face .mustache_cont {
    position: absolute;
    bottom: 5px;
    width: 20px;
    height: 10px;
    animation: mustache_l 0.45s infinite linear;
}

.cat_container .cat .main .face .mustache_cont:nth-child(2) {
    right: 0;
    animation: mustache_r 0.45s infinite linear;
}

.cat_container .cat .main .face .mustache {
    position: absolute;
    top: 0;
    width: 100%;
    border: 1px solid #000000;
    transform-origin: 100% 0;
    transform: rotate(-10deg);
}

.cat_container .cat .main .face .mustache:last-child {
    top: 6px;
    transform: rotate(-20deg);
}

.cat_container .cat .main .face .eye {
    position: absolute;
    top: 28px;
    left: -8px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 50%;
    box-sizing: border-box;
}

.cat_container .cat .main .face .eye:nth-child(5) {
    top: 26px;
    left: 36px;
}

.cat_container .cat .main .face .eye:after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    right: 1px;
    top: 4px;
    background: #000;
    border-radius: 50%;
    animation: eye 0.45s infinite linear;
}

.cat_container .cat .main .face .brow_cont,
.cat_container .cat .main .face .brow_cont {
    position: absolute;
    top: 14px;
    left: 10px;
    width: 10px;
    height: 10px;
}

.cat_container .cat .main .face .brow_cont:nth-child(7),
.cat_container .cat .main .face .brow_cont:nth-child(7) {
    transform: rotateY(180deg) rotateZ(0);
    left: 38px;
}

.cat_container .cat .main .face .brow {
    position: absolute;
    top: 20%;
    height: 60%;
    border: 1px solid #000000;
    transform-origin: 100% 0;
    transform: rotate(10deg);
}

.cat_container .cat .main .face .brow:last-child {
    top: 0;
    height: 100%;
    left: 6px;
    transform: rotate(3deg);
}

.cat_container .cat .main .face .ear_l {
    position: absolute;
    top: -17px;
    width: 20px;
    height: 30px;
    background: currentcolor;
    border-radius: 20px/55px 55px 0 0;
    transform-origin: 50% 100%;
    overflow: hidden;
    transform: rotate(-20deg);
    animation: ear_l 0.45s infinite linear;
}

.cat_container .cat .main .face .ear_l .inner {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 6px;
    height: 14px;
    margin-left: -4px;
    background: #000000;
    border-radius: 7px/20px 20px 0 0;
}

.cat_container .cat .main .face .ear_r {
    position: absolute;
    right: 0;
    margin-top: -22px;
    width: 36px;
    height: 30px;
    transform-origin: 50% 100%;
    overflow: hidden;
    transform: rotate(20deg);
    animation: ear_r 0.45s infinite linear;
}

.cat_container .cat .main .face .ear_r .outer {
    position: absolute;
    width: 30px;
    height: 200%;
    border: 3px solid #000000;
    border-radius: 20px/55px 55px 0 0;
}

.cat_container .cat .main .face .ear_r .inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 26px;
    margin-left: -6px;
    background: #000000;
    border-radius: 50%;
}

@keyframes shake {
    50% {
        top: 6px;
    }
}

@keyframes shadow {
    50% {
        width: 110px;
        margin-left: -40px;
    }
}

@keyframes tail {
    50% {
        transform: rotate(38deg);
    }
}

@keyframes track {
    to {
        margin-left: 20px;
    }
}

@keyframes eye {
    50% {
        top: 2px;
    }
}

@keyframes mustache_l {
    50% {
        transform: rotate(-10deg);
    }
}

@keyframes mustache_r {

    0%,
    100% {
        transform: rotateY(180deg) rotateZ(0);
    }

    50% {
        transform: rotateY(180deg) rotateZ(-10deg);
    }
}

@keyframes ear_l {
    50% {
        transform: rotate(-30deg);
    }
}

@keyframes ear_r {
    50% {
        transform: rotate(30deg);
    }
}

@keyframes paw_l {
    50% {
        left: 130px;
        top: 176px;
    }

    70% {
        top: 160px;
    }
}

@keyframes paw_r {
    25% {
        top: 160px;
    }

    50% {
        left: 88px;
        top: 176px;
    }
}


/* Стили для следов лапок в секции */
#cat-section {
    position: relative;
    overflow: hidden;
}

#paw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Фон должен быть под канвасом */
.cat-background {
    z-index: 1;
}

/* Контент должен быть над канвасом */
.section-header,
.section-content {
    position: relative;
    z-index: 3;
}

/* Стили для нот в музыкальной секции */
#music-section {
    position: relative;
    overflow: hidden;
    display: block;
}

#music-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Стили для музыкальной секции - вертикальное расположение */
.music-text-content {
    text-align: justify;
    margin-bottom: 15px;
    width: 100%;
    line-height: 1.6;
}

.music-text-content p {
    margin-bottom: 8px;
    color: #5a5a5a;
    font-size: 1.05em;
    text-align: justify;
}

/* Стили для растягивания VK плейлистов на всю ширину */
.music-playlist {
    margin-bottom: 5px !important; 
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Принудительно растягиваем iframe VK */
#vk_playlist_korn,
#vk_playlist_mzlff {
    width: 100% !important;
    min-height: 420px !important;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Стили для iframe внутри виджета */
#vk_playlist_korn iframe,
#vk_playlist_mzlff iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

/* Контейнер VK виджета */
.vk_playlist_iframe {
    width: 100% !important;
    min-width: 100% !important;
}

/* Убираем любые ограничения по ширине */
#music-section {
    display: block !important;
    overflow: visible;
}

#music-section .hobby-section {
    overflow: visible;
}

/* Стили для секции с источниками */
.sources-section {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.sources-subsection {
    margin-bottom: 25px;
}

.sources-subsection:last-child {
    margin-bottom: 0;
}

.sources-subsection h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.sources-list {
    list-style-type: none;
    counter-reset: source-counter;
    padding: 0;
    margin: 0;
}

.sources-list li {
    counter-increment: source-counter;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.sources-list li::before {
    content: counter(source-counter) ".";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

.sources-list a {
    color: #5a67d8;
    text-decoration: none;
    border-bottom: 1px dashed #5a67d8;
    transition: all 0.3s ease;
    word-break: break-all;
    hyphens: auto;
}

.sources-list a:hover {
    color: #434190;
    border-bottom: 1px solid #434190;
}

/* Адаптация для планшетов 992px - 1200px */
@media (max-width: 1200px) {
    .hobby-section {
        padding: 25px;
    }
    
    .section-content {
        gap: 30px;
    }
    
    .hobby-image {
        width: 240px;
        height: 240px;
    }
    
    .text-content p {
        font-size: 1em;
    }
}

/* Адаптация для больших телефонов 768px - 992px */
@media (max-width: 992px) {
    .main-content h1 {
        font-size: 2em;
        margin-bottom: 35px;
    }
    
    .hobby-section {
        padding: 22px;
        margin-bottom: 35px;
    }
    
    .section-header {
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.6em;
    }
    
    .section-content {
        gap: 25px;
    }
    
    .hobby-image {
        width: 220px;
        height: 220px;
    }
    
    .text-content p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .cat-story p {
        font-size: 1.05em;
        line-height: 1.7;
    }
    
    .music-text-content p {
        font-size: 1em;
    }
}

/* Адаптация для средних телефонов 600px - 768px */
@media (max-width: 768px) {
    .main-content h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .hobby-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .section-header {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }
    
    .section-header i {
        margin-right: 15px;
        font-size: 1.8em;
    }
    
    .section-header h2 {
        font-size: 1.5em;
    }
    
    /* Сохраняем обтекание на планшетах */
    .section-content {
        flex-direction: row;
        gap: 25px;
        align-items: flex-start;
    }
    
    .image-content {
        float: left;
        margin: 0 20px 15px 0;
        shape-outside: margin-box;
    }
    
    .hobby-image {
        width: 180px;
        height: 180px;
        transform: rotate(-2deg);
    }
    
    .hobby-image:hover {
        transform: rotate(-2deg) scale(1.02);
    }
    
    .text-content p {
        font-size: 0.95em;
        line-height: 1.6;
        text-align: justify;
    }
    
    .cat-story p {
        font-size: 1em; /* Одинаковый размер для всех */
        line-height: 1.6; /* Одинаковый интервал для всех */
        margin-bottom: 16px; /* Одинаковый отступ для всех */
    }

    .cat-story p:first-of-type {
        font-size: 1em; /* Такой же как у остальных */
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .cat-conclusion {
        padding: 15px;
        font-size: 1em;
        clear: both;
    }
    
    .music-text-content p {
        font-size: 0.95em;
    }
    
    .music-playlist {
        margin-bottom: 20px;
    }
    
    #vk_playlist_korn,
    #vk_playlist_mzlff {
        min-height: 350px !important;
    }
    
    .sources-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .sources-subsection h3 {
        font-size: 1.2em;
    }
    
    .cat_container {
        transform: scale(0.15);
    }
}

/* Адаптация для маленьких телефонов 480px - 600px */
@media (max-width: 600px) {
    .main-content h1 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }
    
    .hobby-section {
        padding: 18px;
        margin-bottom: 25px;
    }
    
    .section-header {
        flex-direction: row;
        gap: 10px;
        text-align: left;
    }
    
    .section-header i {
        margin-right: 12px;
        font-size: 1.6em;
    }
    
    .section-header h2 {
        font-size: 1.4em;
    }
    
    /* Сохраняем обтекание на маленьких телефонах */
    .section-content {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }
    
    .image-content {
        float: left;
        margin: 0 15px 12px 0;
        shape-outside: margin-box;
    }
    
    .hobby-image {
        width: 150px;
        height: 150px;
        transform: rotate(-2deg);
    }
    
    .text-content p {
        font-size: 0.9em;
        line-height: 1.5;
        text-align: justify;
    }
    
    .cat-story p {
        font-size: 0.95em; /* Одинаковый размер для всех */
        line-height: 1.5; /* Одинаковый интервал для всех */
        margin-bottom: 14px; /* Одинаковый отступ для всех */
    }
    
    .cat-story p:first-of-type {
        font-size: 0.95em; /* Такой же как у остальных */
        line-height: 1.5;
        margin-bottom: 14px;
    }
    
    .music-text-content p {
        font-size: 0.9em;
    }
    
    #vk_playlist_korn,
    #vk_playlist_mzlff {
        min-height: 320px !important;
    }
    
    .sources-section {
        padding: 18px;
    }
    
    .sources-list li {
        padding-left: 25px;
        font-size: 0.9em;
        word-break: break-word;
    }

     .sources-list a {
        word-break: break-all;
        hyphens: auto;
        font-size: 0.85em;
    }
    
    .cat_container {
        transform: scale(0.12);
    }
}

/* Адаптация для очень маленьких телефонов до 480px */
@media (max-width: 480px) {
    .main-content h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .hobby-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 1.3em;
    }
    
    .section-header i {
        font-size: 1.5em;
    }
    
    /* На очень маленьких экранах убираем обтекание */
    .section-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .image-content {
        float: none;
        margin: 0 auto 15px auto;
        text-align: center;
    }
    
    .hobby-image {
        width: 160px;
        height: 160px;
        transform: none;
    }
    
    .hobby-image:hover {
        transform: scale(1.02);
    }
    
    .text-content p {
        font-size: 0.85em;
        line-height: 1.5;
        text-align: left;
    }
    
    .cat-story p {
        font-size: 0.9em; /* Одинаковый размер для всех */
        line-height: 1.5; /* Одинаковый интервал для всех */
        margin-bottom: 12px; /* Одинаковый отступ для всех */
    }
    
    .cat-story p:first-of-type {
        font-size: 0.9em; /* Такой же как у остальных */
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .cat-conclusion {
        padding: 12px;
        font-size: 0.9em;
        clear: none;
    }
    
    .music-text-content p {
        font-size: 0.85em;
    }
    
    #vk_playlist_korn,
    #vk_playlist_mzlff {
        min-height: 300px !important;
    }
    
    .sources-section {
        padding: 15px;
    }
    
    .sources-list li {
        padding-left: 20px;
        font-size: 0.85em;
        word-break: break-word;
    }
    
    .sources-list a {
        word-break: break-all;
        hyphens: auto;
        font-size: 0.8em;
        line-height: 1.4;
    }

    
    .cat_container {
        transform: scale(0.1);
    }
}

/* Особые стили для очень маленьких экранов */
@media (max-width: 360px) {
    .hobby-image {
        width: 140px;
        height: 140px;
    }
    
    .section-header h2 {
        font-size: 1.2em;
    }
    
    #vk_playlist_korn,
    #vk_playlist_mzlff {
        min-height: 280px !important;
    }
    
    .text-content p {
        font-size: 0.8em;
    }
    
    .cat-story p {
        font-size: 0.85em; /* Одинаковый размер для всех */
        line-height: 1.4; /* Одинаковый интервал для всех */
        margin-bottom: 10px; /* Одинаковый отступ для всех */
    }
    
    .cat-story p:first-of-type {
        font-size: 0.85em; /* Такой же как у остальных */
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .music-text-content p {
        font-size: 0.8em;
    }

    .sources-list a {
        font-size: 0.75em;
        word-break: break-all;
    }
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 480px) {
    .text-content p,
    .cat-story p,
    .music-text-content p {
        text-align: justify;
        hyphens: auto;
    }
}

/* Гарантия правильного обтекания на устройствах где оно поддерживается */
@media (min-width: 481px) and (max-width: 768px) {
    .cat-story {
        position: relative;
        overflow: hidden;
    }
    
    .image-content {
        shape-outside: margin-box;
    }
    
    .cat-story p {
        text-align: justify;
    }
}