@font-face {
    font-family: 'Bergamasco';
    src: url('../../font/Bergamasco-Light.woff') format('woff'),
         url('../../font/Bergamasco-Bold.woff') format('woff');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --background-color: #FFF5EB;
    --primary-color: #E9AC7A;
    --text-color: #2F2F2F;
    --accent-color: #E76F51;
    --border-color: #E76F51;
    --border-bottom: 0.3125rem solid var(--border-color);
    --border-radius-large: 2.5rem;
    --border-radius-small: 1.25rem;
    --border-radius-bottom: 6.25rem;
    --header-padding: 2rem 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 5rem;
    font-family: 'Bergamasco', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    overflow-x: hidden;
}

h1 {
    font-family: 'Bergamasco', sans-serif;
    font-weight: 200;
    font-size: 3.75rem;
    line-height: 1.2;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    max-height: 5rem;
    padding: var(--header-padding);
    background-color: var(--background-color);
    z-index: 1000;
    font-weight: 600;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo a:hover {
    color: var(--accent-color);
}

.logo img {
    width: 5.5rem;
    height: auto;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.logo a:hover img {
    transform: scale(1.05);
}

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

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    font-weight: 600;
}

.main-nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    white-space: nowrap;
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav .active-page {
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius-large);
    border-bottom: var(--border-bottom);
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    border-radius: var(--border-radius-large);
    border-bottom: var(--border-bottom);
}

.language-selector {
    position: relative;
    background-color: var(--primary-color);
    padding: 0.9375rem 1rem;
    border-radius: var(--border-radius-small);
    text-align: center;
    margin: 1vw;
    cursor: pointer;
    font-weight: bold;
    min-width: 8rem;
}

.current-lang {
    cursor: pointer;
    font-weight: 500;
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border-radius: 0 0 var(--border-radius-bottom) var(--border-radius-bottom);
    padding-bottom: 1.25rem;
    border-bottom: var(--border-bottom);
    text-align: center;
}


.lang-options div {
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-weight: 500;
}

.language-selector:hover .lang-options {
    display: block;
}

.language-selector:hover {
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
}

   main {
    position: relative;
    margin: 0;
    padding-top: 5rem; 
    min-height: calc(100vh - 5rem); 
    overflow: hidden;
}

.index-main {
    position: relative;
    margin: 0;
    padding: 0;
    height: auto;
    overflow: hidden;
}

.page-main {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    padding: 2rem;
}

.angels-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18.75rem;
    min-width: 6rem;
    z-index: 100;
}

.angels-decoration img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    margin-bottom: 3.75rem;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 9999;
}

.preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preloader.hidden {
    display: none;
}

/*INDEX*/

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
}

.angels-block {
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    text-align: center;
}

.angels-image {
    width: 100%;
    height: auto;
}

.welcome-block {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 75rem;
    margin: -3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.welcome-block h1 {
    font-family: 'Bergamasco', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 4;
}

.description-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-top: -10rem;
    position: relative;
}

.image-content {
    position: absolute;
    top: 45%;
    left: -45%;
    transform: translateY(-50%);
    opacity: 0.9;
    z-index: 1;
}

.columns-block {
    overflow: hidden;
}

.columns-image {
    content: url('../../main/images/index_big.png');
    width: 100%;
    height: auto;
    padding-bottom: 4rem;
}

.description-block .text-content {
    position: relative;
    z-index: 3;
    flex: 1 1 50%;
    max-width: fit-content;
    padding-top: 10rem;
    padding-left: 38%;
    text-align: justify;
}

.description-block .text-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;

}
/*About*/
.about-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 14rem;
    margin: 10vh 0; 
}

.about-text {
    flex: 1;
    max-width: 37.5rem;
}

.about-text .birth {
    margin: 1.25rem 0 0.3125rem; 
}

.author-photo {
    align-self: flex-end;
    width: 28.125rem;
    margin-top: -3.125rem;
}

.author-photo img {
    width: 100%;
    height: auto;
    border-radius: 500px 500px 1.25rem 1.25rem;
    object-fit: cover;
}
/* Listen */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem 2.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding-bottom: 6.25rem;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container,
.main-image {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    transform: translateX(-100%) rotate(0deg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.image-container:hover .hover-image {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) rotate(360deg);
}

.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 37.5rem;
    margin: 0 auto;
}

.platform-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9375rem;
    padding: 2rem;
    height: 5vh;
    background-color: #C07777;
    border-radius: 1.875rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0.3125rem 0.3125rem 0.625rem rgba(0, 0, 0, 0.15);
}

.platform-link img {
    flex-shrink: 0;
    width: 1.5625rem;
    height: 1.5625rem;
}

.platform-link span {
    flex-grow: 1;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.0625rem;
    text-align: center;
    padding-right: 2.5rem;
}

.play-button {
    position: absolute;
    top: 50%;
    right: 1.5625rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: url('../images/play.png') center/contain no-repeat;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.platform-link:hover {
    transform: scale(1.02);
    box-shadow: 0.375rem 0.375rem 0.75rem rgba(0, 0, 0, 0.2);
}

.platform-link:hover .play-button {
    opacity: 1;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 2.5rem;
    padding-bottom: 1.875rem;
}

.platforms-list {
    flex: 1;
    margin-top: 1.875rem;
}

.description {
    flex: 1;
    padding: 0.25rem;
    text-align: justify;
}/* =============================
   12. BUY
   ============================= */
.back-button {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    opacity: 0.7;
}

.buy-detail-main {
    padding: 7.5rem 3.75rem 3.125rem;
    min-height: 100vh;
}

.album-title {
    font-size: 3rem;
    margin-bottom: 0;
}

.part-number {
    text-align: right;
    font-size: 1.5rem;
    margin-top: 0;
}

.album-layout {
    display: flex;
    gap: 3.75rem;
    margin-bottom: 2.5rem;
}

.album-image {
    flex: 1;
}

.album-image img {
    width: 100%;
    height: auto;
}

.album-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.track-list {
    text-align: right;
}

.track-list h2 {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 0.9375rem 0;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.buy-button,
.listen-button,
.price-button {
    padding: 0.9375rem 3.75rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 1.5625rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.buy-button:hover,
.listen-button:hover,
.price-button:hover {
    opacity: 0.8;
}

.album-description {
    margin-top: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* products-grid (buy.css) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 12.5rem;
    margin-bottom: 1.25rem;
}

.main-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
}

.hover-image img {
    width: 100%;
    height: auto;
}

.product-item h3 {
    width: 12.5rem;
    margin: 0.9375rem 0;
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-color);
    text-align: center;
}

.product-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* =============================
   13. MUSIC
   ============================= */
.music-grid {
    margin: 1rem;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    margin: 0 auto;
}

/* Общие стили для text-block */
.text-block {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.25rem;
    width: 40.625rem;
    height: 20.3125rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Развернутое состояние */
.text-block.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    gap: 3rem;
    padding: 4rem;
    background-color: #C07777;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    animation: expandBlock 0.3s ease-out forwards;
}

.text-block.expanded .expanded-image {
    width: 140%;
    padding: 12rem;
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: none; /* По умолчанию скрыта */
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    color: #2F2F2F;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Показываем кнопку только в развернутом состоянии */
.text-block.expanded .close-button {
    display: flex;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Анимация открытия */
@keyframes expandBlock {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Стили контента в развернутом состоянии */
.text-block.expanded .text-content {
    padding: 2rem;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для text-block на главной странице */
.index-main .text-block {
    max-width: 100%;
    height: auto;
    overflow: visible;
}

/* Стили для text-block на странице About Music */
.music-grid .text-block {
    background-color: #C07777;
    height: 20.3125rem;
}

/* Остальные стили для text-block остаются без изменений */
.text-block.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.text-content {
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.additional-text {
    height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.text-block.expanded .additional-text {
    margin-top: 1.25rem;
    height: auto;
    opacity: 1;
}

.image-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20.3125rem;
    height: 20.3125rem;
    padding: 1.25rem;
    background-color: #C07777;
    border-radius: 1.25rem;
    box-shadow: 0.1875rem 0.1875rem 0.375rem rgba(0, 0, 0, 0.2);
}

.text-block h1 {
    margin: 7rem 1rem 4rem;
}

.text-block p {
    margin: 0;
}

/* При развёртывании */
.text-block.expanded .text-content {
    width: 45%;
}

.text-block.expanded .expanded-image {
    display: block;
    order: 1;
    opacity: 1;
    object-fit: contain;
}

.text-block.text-right.expanded .expanded-image {
    order: -1;
}

.text-block.text-right.expanded .text-content {
    text-align: right;
}

/* По умолчанию скрываем .expanded-image */
.expanded-image {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text-block.expanded .expanded-image {
    display: block;
    opacity: 1;
}

/* Переопределение для вложенных элементов grid-container */
.grid-container > div {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
}

/* =============================
   14. Адаптивные стили (media)
   ============================= */

/* =========================================
   (1) Очень большие экраны
   (min-width: 120rem) => ~1920px
   ========================================= */
  /* =========================================
   (9) min-width: 120rem => ~1920px
   ========================================= */
@media (min-width: 120rem) {
    .music-grid {
        padding: 10rem;
    }
    .about-content {
        margin-top: 0;
    }
    .products-grid {
        max-width: 100rem;
        padding-bottom: 0;
    }
    .description {
        padding: 0;
    }
    .action-buttons {
        justify-content: flex-end;
    }
    .price-button,
    .buy-button,
    .listen-button {
        box-shadow: 0.1875rem 0.1875rem 0.375rem rgba(0, 0, 0, 0.2);
    }
    h1,
    .page-main h1,
    .index-main h1,
    main h1 {
        font-size: 4.5rem;
        line-height: 1.2;
    }
    h3,
    .product-item h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    p {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    .main-image {
        width: max-content;
        height: auto;
    }
    .text-block.expanded {
        padding: 6rem 10rem;
        max-width: 160rem;
        margin: 0 auto;
    }
    .text-block.expanded .text-content {
        max-width: 60rem;
    }
    .text-block.expanded .expanded-image {
        display: block;
        opacity: 1;
        width: 64%;
        margin: 14rem;
    }
}
/* =========================================
   (2) Большие планшеты / маленькие ноутбуки
   (max-width: 80rem) => ~1280px
   ========================================= */
   @media (max-width: 85rem) {
    .main-nav a {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
    }
}

/* =========================================
   (8) min-width: 75rem => ~1200px
   ========================================= */
   @media (min-width: 75rem) {
    .main-nav a {
        font-size: 1.1rem;
    }
    .text-block.expanded {
        padding: 5rem 8rem;
    }
    .text-block.expanded .text-content {
        flex: 0 0 50%;
    }
}


@media (max-width: 64rem) {
    .main-nav {
        flex: 0;
        justify-content: center;
    }
    .text-block.expanded .expanded-image {
        width: 140%;
        padding: 0;
    }
}

/* =========================================
   (3) Планшеты / маленькие ноутбуки
   (max-width: 64rem) => ~1024px
   ========================================= */
@media (max-width: 64rem) {
    .hero-section {
        padding: 0;
    }
    .description-block {
        position: static;
        flex-direction: column;
        margin-top: 2rem;
        align-items: center;
        padding: 0 2rem;
    }
    .description-block .text-content {
        order: 1;
        padding: 0;
        max-width: 100%;
        margin-top: 0;
        margin-left: 0;
    }
    .image-content {
        position: static;
        order: 2;
        transform: none;
        width: 114%;
    }
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 0;
    }
    .about-text h1 {
        font-size: 2.625rem;
    }
    .about-text p {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    .author-photo {
        width: 21.875rem;
        margin-top: 2rem;
        align-self: center;
    }
    .content-wrapper {
        flex-direction: column;
        gap: 1.875rem;
    }
    .platforms-list {
        order: 1;
        width: 100%;
    }
    .description {
        order: 2;
        width: 100%;
    }
    .text-block.expanded {
        width: 100vw;
        height: 100vh;
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .grid-container {
        flex-direction: column;
        gap: 0.9375rem;
        padding: 2vw;
    }
    .album-image img {
        height: auto;
    }
    .header {
        padding: 0.9375rem 1.25rem;
        gap: 1.25rem;
    }
    .logo {
        left: 1.25rem;
    }
    .logo img {
        width: 6.25rem;
    }
    .main-nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .main-nav {
        position: relative;
        background-color: var(--primary-color);
        padding: 1rem 6rem;
        border-radius: var(--border-radius-small);
        text-align: center;
        margin: 9vw;
        cursor: pointer;
        width: 16rem;
        font-size: 0.8rem;
    }
    .album-layout {
        flex-direction: column;
        gap: 5rem;
        margin-bottom: 2.5rem;
    }
    .main-nav ul,
    .lang-options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--primary-color);
        border-radius: 0 0 var(--border-radius-bottom) var(--border-radius-bottom);
        padding-bottom: 1rem;
        border-bottom: var(--border-bottom);
        text-align: center;
        z-index: 1000;
    }
    .main-nav ul li {
        padding: 0.5rem 0;
        cursor: pointer;
        font-size: 1.2rem;
        white-space: nowrap;
    }
    .lang-options div {
        padding: 1.2rem 1rem;
    }
    .main-nav:hover ul,
    .language-selector:hover .lang-options {
        display: block;
    }
    .main-nav:hover,
    .language-selector:hover {
        border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
    }
    .main-nav::after {
        content: 'MENU';
        display: block;
        font-size: 0.8rem;
    }
    .main-nav a {
        font-size: 1rem;
        padding: 0.4rem 0.9rem;
    }
    .main-nav ul {
        gap: 1.5rem;
    }
    .music-grid {
        margin-left: 0;
    }
}
/* =========================================
   (4) max-width: 52.75rem => ~844px
   ========================================= */
   @media (max-width: 52.75rem) {
    .image-block {
        width: 100%;
        height: 20.3125rem;
        margin: 0;
    }
    .grid-container {
        padding: 0 1rem;
    }
    .text-block h1 {
        margin: 0 0 4rem 1rem;
        font-size: 3rem;
    }
    .text-block.expanded .expanded-image {
        width: 140%;
        padding: 0;
    }
}

/* =========================================
   (5) Маленькие планшеты
   (max-width: 50rem) => ~800px
   ========================================= */
@media (max-width: 50rem) {
    .logo {
        left: 1.25rem;
    }
    .logo img {
        width: 6.25rem;
    }
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .welcome-block h1,
    .listen-title h1 {
        font-size: 1.9rem;
    }
    h1,
    .page-main h1,
    .index-main h1,
    main h1,
    .dl-gdocs-top-icon,
    .dl-gdocs-top-icon-modal,
    .dl-gslides-icon {
        font-family: 'Bergamasco', sans-serif;
        font-weight: 200;
        font-size: 1.75rem;
        line-height: 1.2;
        color: var(--text-color);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .main-nav {
        position: relative;
        background-color: var(--primary-color);
        padding: 0.9375rem 4rem;
        border-radius: var(--border-radius-small);
        text-align: center;
        margin: 1vw;
        cursor: pointer;
        width: 9rem;
        font-size: 0.8rem;
    }
    .main-nav ul,
    .lang-options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        background-color: var(--primary-color);
        border-radius: 0 0 var(--border-radius-bottom) var(--border-radius-bottom);
        padding-bottom: 1rem;
        border-bottom: var(--border-bottom);
        text-align: center;
        z-index: 1000;
    }
    .main-nav ul li,
    .lang-options div {
        padding: 0.5rem 0;
        cursor: pointer;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .main-nav:hover ul,
    .language-selector:hover .lang-options {
        display: block;
    }
    .main-nav:hover,
    .language-selector:hover {
        border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
    }
    .main-nav::after {
        content: 'MENU';
        display: block;
        font-size: 0.8rem;
    }
    .text-block.expanded .expanded-image {
        width: 140%;
        padding: 0;
    }
}
/* =========================================
   (6) max-width: 48rem => ~768px
   ========================================= */
   @media (max-width: 48rem) {

    .music-block.large {

        min-height: 25rem;

    }

    .music-block.small {

        width: 10rem;

        height: 10rem;

    }

    .close-button {

        width: 1.4rem;

        height: 1.4rem;

    }

    .close-button::before,

    .close-button::after {

        width: 1.2rem;

    }

    .text-block.expanded {

        touch-action: none;

    }

    .text-block.expanded .expanded-image {

        width: 20rem;

        padding: 1rem;

    }

}/* =========================================

   (7) min-width: 48rem => ~768px

   ========================================= */@media (min-width: 48rem) {

    .text-block.expanded {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        padding: 4rem 6rem;

        gap: 4rem;

    }

    .text-block.expanded .expanded-image {

        order: 1;

        flex: 0 0 35%;

        object-fit: contain;

    }

    .text-block.expanded .text-content {

        flex: 0 0 55%;

        height: auto;

        max-height: none;

        overflow-y: visible;

        padding: 0;

    }

    .text-block.expanded h1 {

        font-size: clamp(2.5rem, 3vw, 4rem);

        margin: 0 0 2rem 0;

    }

    .text-block.expanded p {

        font-size: clamp(1rem, 1.2vw, 1.4rem);

        line-height: 1.6;

        margin: 0;

    }

}

/* =========================================
   (7) max-width: 46rem => ~736px
   ========================================= */
@media (max-width: 46rem) {
    p {
        font-size: 1rem;
        line-height: 1.4;
    }
    .page-main {
        padding: 1.25rem;
    }
    .angels-decoration {
        width: 12.5rem;
    }
    .angels-decoration img {
        margin-bottom: 1.875rem;
    }
    .buy-detail-main {
        padding: 1.25rem;
    }
    .album-image img {
        width: 90%;
        margin-left: 2%;
    }
    .album-title {
        font-size: 1.5rem;
        text-align: left;
    }
    .album-layout {
        flex-direction: column;
        gap: 1.875rem;
    }
    .part-number {
        font-size: 1.25rem;
        margin-top: 1.25rem;
    }
    .track-list h2 {
        font-size: 1rem;
        margin: 0.625rem 0;
    }
    .action-buttons {
        margin-top: 1.25rem;
    }
    .buy-button,
    .listen-button,
    .price-button {
        padding: 0.625rem 1.875rem;
        font-size: 0.71rem;
    }
    .album-description {
        font-size: 1rem;
        line-height: 1.4;
        margin-top: 1.25rem;
        max-width: 90vw;
    }
    .back-button {
        bottom: 0.3125rem;
        right: 1.25rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }
    .product-item {
        max-width: 100%;
    }
    .grid-container {
        flex-direction: column;
        gap: 0.9375rem;
        padding: 0 0.9375rem;
    }
    .text-block {
        height: 8rem;
        padding: 0.75rem 1rem;
    }
    .text-block.expanded {
        width: 100vw;
        height: 100vh;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .text-block.expanded .text-content {
        width: 100%;
        height: auto;
        padding: 0.5rem;
        text-align: justify;
        margin-left: 0 !important;
    }
    .text-block.expanded h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .text-block.expanded p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    .text-block.expanded {
        gap: 1rem !important;
    }
    .music-grid {
        margin-left: 0rem !important;
    }
    .music-grid .text-block {
        background-color: #C07777;
    }
    .text-content {
        margin: 0;
    }
    .text-block h1 {
        margin: 8rem 0 6.25rem 0;
        font-size: 8vw;
    }
    .image-block {
        width: auto;
        height: auto;
    }
    .image-block img {
        width: 10rem;
    }
    .text-block.expanded .expanded-image {
        width: 10rem;
        padding: 1rem;
    }
}/* =========================================
   (8) max-width: 30rem => ~480px (мобильные)
   ========================================= */
@media (max-width: 30rem) {
    .logo img {
        width: 5rem;
    }
    .main-nav ul {
        gap: 0.0625rem !important;
        align-items: normal;
    }
    .main-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.1rem;
    }
    .main-nav .active-page {
        padding: 0.2rem 0.1rem !important;
    }
    .cart-icon {
        font-size: 0.5rem !important;
        padding: 0rem 0.1rem !important;
    }
    .language-selector {
        font-size: 0.7rem;
        min-width: 26%;
    }
    .lang-options div {
        font-size: 0.625rem;
    }
    header {
        padding: 0.125rem 0.3125rem;
        gap: 0.25rem;
    }
    .logo {
        font-size: 0.75rem;
    }
    .columns-container {
        margin-top: 39vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .columns-image {
        width: 150%;
        padding-bottom: 10vw;
        margin-left: -34vw;
    }
    .angels-container {
        top: -2.5rem;
        width: 35%;
    }
    .angels-image {
        height: 11rem;
    }
    .welcome-container {
        top: 5.9375rem;
    }
    .welcome-container h1 {
        font-size: 1.375rem;
        line-height: 1.2;
    }
    .listen-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    .description-index {
        position: static;
        max-width: 90vw;
        margin: 1.5rem auto 0 auto;
        text-align: justify;
        height: auto;
    }
    .description-index p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .content-wrapper {
        padding: 0.625rem;
    }
    .platform-link {
        padding: 0.75rem 0.9375rem;
    }
    .platform-link span {
        font-size: 0.8rem;
        margin-right: 0rem;
    }
    .album-title {
        font-size: 1.5rem;
    }
    .grid-container {
        padding: 0 0.5rem;
    }
    .text-block {
        height: auto;
        padding: 0.5rem 0.3rem;
    }
    .text-block.expanded {
        width: 100vw;
        height: 100vh;
        padding: 1.5rem;
        border-radius: 0;
    }
    .text-block.expanded .text-content {
        padding: 1rem;
    }
    .text-block.expanded .expanded-image {
        width: 10rem;
        padding: 1rem;
    }
    .text-block.expanded h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
        margin-top: 1rem;
    }
    .text-block.expanded p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    .image-content {
        width: 180%;
        margin: 1rem -40%;
        margin-bottom: 20px;
    }
    .main-nav ul li:nth-child(2),
    .main-nav ul li:nth-child(3) {
        margin-left: 0;
    }
    .album-image img {
        width: 100%;
        max-width: 35rem;
        margin-left: 0;
    }
    .description-block,
    .text-content p {
        gap: 0;
        margin-bottom: 0;
    }
    .main-nav {
        width: 7rem;
        padding: 0.7rem 3rem;
        font-size: 0.7rem;
    }
    .music-grid {
        margin-left: 0rem !important;
    }
    .play-button {
        width: 1rem;
        height: 1rem;
        right: 0.8rem;
    }
    .music-grid .text-block {
        background-color: #C07777;
    }
    .image-block {
        width: auto;
        height: auto;
    }
    .text-content {
        margin: 0;
    }
    .text-block h1 {
        font-size: 7vw;
        margin: 8rem 3rem 7.25rem 0.4rem;
    }
    .main-nav a {
        font-size: 0.6rem;
        padding: 0.3rem 0.1rem;
    }
}

/* =========================================
   (9) max-width: 23.4375rem => ~375px
   ========================================= */
@media (max-width: 23.4375rem) {
    .action-buttons {
        gap: 0.25rem;
    }
    .grid-container {
        padding: 0rem 0.5rem;
    }
    .music-grid .text-block {
        background-color: #C07777;
    }
    .text-block h1 {
        font-size: 7vw;
        margin: 9rem 3rem 7.25rem 0.4rem;
    }
    .language-selector {
        padding: 0.9375rem 0.875rem;
    }
    .music-grid {
        margin: 0rem;
        padding-top: 2rem;
    }
    .hover-image img {
        width: 92%;
        height: auto;
    }
    .main-nav {
        width: 7rem;
        padding: 0.7rem 1rem;
        font-size: 0.7rem;
    }
    .author-photo img {
        padding: 2rem;
    }
    .main-nav a {
        font-size: 0.5rem;
        padding: 0.3rem 0.1rem;
    }
    .platform-link span {
        font-size: 0.7rem;
    }
}


/* Дополнительные оптимизации для очень больших экранов */
@media (min-width: 75rem) {
    .text-block.expanded {
        padding: 5rem 8rem;
    }

    .text-block.expanded .text-content {
        flex: 0 0 50%;
    }


}

@media (min-width: 120rem) {
    .text-block.expanded {
        padding: 6rem 10rem;
        max-width: 160rem;
        margin: 0 auto;
    }

    .text-block.expanded .text-content {
        max-width: 60rem;
    }

}










