/*
Theme Name: idance
Author: Serhii
Description: Основна тема
Tested up to: 7.0
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: idance
*/

/* ШРИФТИ */
.manrope-400 {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.manrope-500 {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.unbounded-300 {
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.unbounded-400 {
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.unbounded-500 {
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* BASE STYLES */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    background-color: #FFFFFF;
    color: #080808;
    line-height: 1.5;
}

strong {
    font-weight: 500;
}

img {
    width: 100%;
    display: block;
}

/* GRID SYSTEM */

.container {
    width: 100%;
    max-width: 1740px;
    margin: 0 auto;
    padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-0.5 * 1.5rem);
    margin-left: calc(-0.5 * 1.5rem);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5);
}

.col-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3  { flex: 0 0 auto; width: 25%; }
    .col-sm-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6  { flex: 0 0 auto; width: 50%; }
    .col-sm-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9  { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3  { flex: 0 0 auto; width: 25%; }
    .col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6  { flex: 0 0 auto; width: 50%; }
    .col-md-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9  { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3  { flex: 0 0 auto; width: 25%; }
    .col-lg-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6  { flex: 0 0 auto; width: 50%; }
    .col-lg-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9  { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-xl-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-xl-3  { flex: 0 0 auto; width: 25%; }
    .col-xl-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-xl-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-xl-6  { flex: 0 0 auto; width: 50%; }
    .col-xl-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-xl-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-xl-9  { flex: 0 0 auto; width: 75%; }
    .col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* HERO SECTION */
.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d3d3d3;
    background-image: url('/wp-content/uploads/2026/07/IMG_9884.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.hero-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #d3d3d3;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

#header-overlay{
    position: fixed;
    z-index: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 80px;
    background-color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.content-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 80px;
}

#header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo-link {
    font-weight: 800;
    font-size: 24px;
    text-decoration: none;
    color: #000;
    letter-spacing: -1px;
}

.ul-inline {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-menu-link {
    text-decoration: none;
    color: #004E8B;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-menu-link:hover {
    opacity: 0.7;
}

.hero-main {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #FEF9F9;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 24px;
    color: #FEF9F9;
    margin-bottom: 70px;
}

.btn-cta {
    display: inline-block;
    background-color: #FFFFFF;
    color: #0A4D84;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 16px;
    letter-spacing: -0.05em;
    transition: background-color 0.6s, transform 0.4s;
}

.btn-cta:hover {
    background-color: #0A4D84;
    color: #FFFFFF;
}

.menu-toggle-cb,
.burger-menu {
    display: none;
}

/* Адаптивність хедера */
@media (max-width: 991px) {
    .content-overlay, #header-overlay, #header-overlay.header-sticky {
        padding: 20px 24px;
    }

    .hero-title {
        font-size: 52px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .btn-cta {
        padding: 16px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 315px;
        text-align: center;
        box-sizing: border-box;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        cursor: pointer;
        position: relative;
        z-index: 100;
    }

    .burger-menu span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .ul-inline {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(247, 247, 247, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 99;
        transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    }

    .main-menu-link {
        font-size: 22px;
        font-weight: 600;
    }

    .menu-toggle-cb:checked ~ .ul-inline {
        right: 0;
    }

    .menu-toggle-cb:checked + .burger-menu span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle-cb:checked + .burger-menu span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-cb:checked + .burger-menu span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 767px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .hero-poster {
        background-image: url('/wp-content/uploads/2026/07/IMG_9883.jpeg');
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle{
        font-size: 16px;
    }
    .hero-main{
        margin-left: auto;
        margin-right: auto;
    }
}

/* EVENTS TICKER */

.events-ticker {
    display: flex;
    width: 100%;
    background-color: #BDBDBD;
}

.ticker-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 24px;
    min-height: 80px;
    color: white;
    border: 1px solid white;
}

.ticker-item:nth-child(1){
    background-color: #FDADC8;
}

.ticker-item:nth-child(2){
    background-color: #004E8B;
}

.ticker-item:nth-child(3){
    background-color: #FDADC8;
}

.ticker-text {
    font-size: 16px;
    line-height: 1.3;
    text-transform: uppercase;
}

.ticker-date {
    margin-top: 29px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

@media (max-width: 991px) {
    .ticker-item{
        flex-wrap: wrap;
        padding: 15px 13px;
    }
    .ticker-text {
        width: 100%;
        height: 42px;
    }
    .ticker-date{
        margin-top: 15px;
        font-size: 16px;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .events-ticker {
        flex-direction: column;
    }
    .ticker-item {
        min-height: auto;
        padding: 10px 15px;
    }

    .ticker-text {
        font-size: 12px;
    }
    .ticker-date{
        margin-top: 0px;
        font-size: 12px;
    }
}

/* ABOUT SECTION */

.about-section {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.about-bg-split .bg-left {
    width: 40%;
    height: 100%;
    background-color: #004e8b;
}

.about-bg-split .bg-right {
    width: 60%;
    height: 100%;
    background-color: #FFFFFF;
}

.about-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-visual-box {
    position: relative;
    width: 558px;
    height: 479px;
    flex-shrink: 0;
}

.about-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    font-size: 96px;
    line-height: 0.9;
    color: #004e8b;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.about-text-box {
    padding-top: 126px;
    width: 558px;
    height: 479px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.about-lead {
    font-size: 24px;
    line-height: 1.3;
    color: #080808;
    font-weight: 500;
    margin: 0;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #080808;
}

@media (max-width: 1146px) {
    .about-section {
        height: auto;
        padding: 60px 24px;
        background-color: #F7F7F7;
    }

    .about-bg-split {
        display: none;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .about-visual-box,
    .about-text-box {
        width: 100%;
        height: auto;
    }

    .about-image-wrapper {
        aspect-ratio: 1.2 / 1;
    }

    .about-text-box {
        padding-top: 40px;
    }

    .about-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        font-size: 64px;
        margin-bottom: 24px;
        white-space: normal;
    }
}

@media (max-width: 479px) {
    .about-title {
        font-size: 40px;
    }

    .about-lead {
        font-size: 18px;
    }
}

/* BRANCHES SECTION */

.branches-section {
    width: 100%;
    background-color: #FFFFFF;
    padding-top: 160px;
}

.branches-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.branches-info {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.branches-title {
    font-size: 64px;
    line-height: 110%;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: -3.2px;
    margin: 0;
}

.branches-text {
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 0;
}

.branches-list {
    width: 860px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.branch-item {
    position: relative;
    width: 100%;
    display: flex;
    cursor: pointer;
    transition: width 0.6s ease, margin-left 0.6s ease;
}

.branch-item.branch-hovered {
    width: calc(100% - 213px);
    margin-left: 213px;
}

.branch-item.branch-hovered .branch-content-wrapper > img {
    opacity: 0;
}

.hiddentext {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.hiddentext::after{
    content: url("/wp-content/themes/dance/img/branch_arrow.svg");
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
}


.branch-item.branch-hovered .hiddentext {
    opacity: 1;
}

#branch-item-1{
    background-color: #004E8B;
}

#branch-item-2{
    background-color: #FDADC8;
}

.branch-image-wrapper {
    width: 213px;
    height: auto;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    overflow: hidden;
}

.branch-number {
    font-size: 24px;
    color: white;
    font-weight: 500;
    z-index: 2;
}

.branch-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.branch-content-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    width: auto;
    max-width: 100%;
    transition: max-width 0.6s ease;
}

.branch-content-wrapper > img {
    width: 218px;
    height: 194px;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}


.branch-name {
    position: absolute;
    bottom: 15px;
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.012em;
    margin: 0;
    line-height: 110%;
}

@media (max-width: 1200px) {
    .branches-container {
        flex-direction: column;
        gap: 60px;
    }

    .branches-info {
        width: 100%;
        gap: 30px;
    }

    .branches-list {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .branches-section {
        padding-top: 80px;
    }

    .branches-title {
        font-size: 44px;
    }

    .branch-item {
        flex-direction: column;
    }

    .branch-image-wrapper {
        width: 100%;
        height: 180px;
    }

    .branch-content-wrapper {
        padding: 20px;
    }
}

/* DANCE STYLES SECTION */

.dance-section {
    padding-top: 160px;
    width: 100%;
}

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

.section-title {
    font-size: 64px;
    text-transform: uppercase;
    line-height: 110%;
    letter-spacing: -0.032em;
    margin-bottom: 40px;
}

/* Акордеон */
.accordion {
    border-top: 1px solid #000000;
}

.accordion-item {
    border-bottom: 1px solid #000000;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #000000;
    transition: background-color 0.2s ease;
}



.accordion-item-number {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.5;
    width: 50px;
    flex-shrink: 0;
}

.accordion-item-title {
    font-size: 24px;
    line-height: 110%;
    text-transform: uppercase;
    letter-spacing: -0.012em;
    flex-grow: 1;
    margin-left: calc(50% - 53px);
}

.accordion-item-icon {
    width: 16px;
    height: 16px;
    border: 1px solid #FDADC8;
    border-radius: 50%;
    background-color: #FDADC8;
    transition: background-color 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.accordion-item.active .accordion-item-icon {
    background-color: #004E8B;
    border: 1px solid #004E8B;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    opacity: 1;
}

.accordion-item.active .accordion-item-title{
    font-weight: 500;
}

.content-inner {
    padding: 10px 0 40px 0;
}

.style-description {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
    justify-content: flex-end;
}

.style-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #111111;
    max-width: 50%;
}

.style-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    background-color: #D9D9D9;
    aspect-ratio: 4 / 5;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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


@media (max-width: 768px) {
    .dance-section {
        padding-top: 80px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .accordion-item-title {
        font-size: 18px;
    }

    .accordion-item-number {
        width: 35px;
        font-size: 12px;
    }

    .style-description {
        flex-direction: column;
        gap: 12px;
    }

    .style-description p {
        max-width: 100%;
        font-size: 14px;
    }

    .style-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

/*PROSTIR SECTION */

#prostir-section {
    margin-top: 160px;
    width: 100%;
    display: flex;
}

#prostir-section-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 50%;
    height: 100%;
}

.prostir-kvadrat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


#prostir-section-right {
    width: 50%;
    background-color: #004E8B;
    padding: 35px;
}

#prostir-title {
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -0.048em;
    text-transform: uppercase;
    margin-bottom: 40px;
    color:#FEF9F9;
    width: 100%;
    max-width: 420px;
}

#prostir-section-right p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    color:#FEF9F9;
}



@media (max-width: 991px) {
    #prostir-section {
        flex-direction: column;
        margin-top: 80px;
    }

    #prostir-section-left,
    #prostir-section-right {
        width: 100%;
    }

    .prostir-kvadrat-img {
        width: 100%;
        height: auto;
    }

    #prostir-title {
        font-size: 44px;
    }
}

@media (max-width: 479px) {
    #prostir-title {
        font-size: 32px;
    }
}

/* WHY US SECTION */

#np-ctm-section {
    margin-top: 160px;
}

.np-ctm-container {
    max-width: 1380px;
    padding: 0 20px;
    margin: 0 auto;
}

.np-ctm-title-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#np-ctm-container-first {
    margin-bottom: 85px;
}

.np-ctm-title {
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -0.032em;
    text-transform: uppercase;
}

.np-ctm-subtitle {
    font-size: 16px;
    line-height: 110%;
    margin-left: 15px;
    max-width: 400px;
}

.np-ctm-item-title {
    font-size: 24px;
    line-height: 110%;
    letter-spacing: -1.2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.np-ctm-item-desc {
    font-size: 16px;
    line-height: 1.5;
}

#np-ctm-line {
    background: black;
    height: 0.5px;
    margin: 40px 0;
}

.np-ctm-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: black;
    margin-top: -5px;
}

@media (max-width: 991px) {
    #np-ctm-section {
        margin-top: 80px;
    }

    #np-ctm-container-first {
        margin-bottom: 40px;
    }

    .np-ctm-title-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .np-ctm-title {
        font-size: 44px;
    }

    .np-ctm-subtitle {
        display: none;
    }

    #np-ctm-line {
        display: none;
    }

    #np-ctm-section .col-lg-4 {
        margin-bottom: 30px;
    }

    #np-ctm-section .col-lg-6,
    #np-ctm-section .col-lg-7 {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .np-ctm-title {
        font-size: 32px;
    }

    .np-ctm-item-title {
        font-size: 18px;
    }
}

/* SCHEDULE SECTION */

#rozklad-section {
    margin-top: 160px;
    background: #004E8B;
    padding-top: 80px;
    padding-bottom: 80px;
    color: #FEF9F9;
}

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

#rozklad-title {
    font-size: 64px;
    text-transform: uppercase;
    letter-spacing: -0.032em;
    line-height: 90%;
    margin: 0 auto 40px auto;
    width: fit-content;
}

#rozklad-select {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 10px 0px 10px 0px;
    background: none;
    color: white;
    border: none;
    border-bottom: 1px solid white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

#rozklad-select option {
    background: white;
    color: #0A4D84;
}

#rozklad-subtitle {
    margin: 0 auto;
    width: 100%;
    max-width: 530px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.rozklad-table-wrapper {
    margin-top: 100px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#rozklad-table {
    width: 100%;
    min-width: 600px;
}

#rozklad-table th {
    color: #FEF9F9;
    font-size: 16px;
    line-height: 90%;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    text-align: left;
    padding: 15px;
}

#rozklad-table tr {
    border-bottom: 1px solid #FEF9F9;
}

#rozklad-table td {
    padding: 15px;
    font-size: 16px;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
}

.td-first {
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 110%;
    text-transform: uppercase;
    font-family: "Unbounded", sans-serif !important;
}

.td-last {
    text-align: right !important;
}

.td-last a {
    color: #FEF9F9;
    font-weight: bold;
    white-space: nowrap;
}

@media (max-width: 991px) {
    #rozklad-section {
        margin-top: 80px;
    }

    #rozklad-title {
        font-size: 44px;
    }

    #rozklad-subtitle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .rozklad-table-wrapper {
        margin-top: 50px;
    }

    #rozklad-table td{
        min-width: 80px;
        padding: 10px;
    }
    .td-first{
        font-size: 16px!important;
    }
}

@media (max-width: 479px) {
    #rozklad-title {
        font-size: 32px;
    }
}

/* TEAM SECTION */

#team-section {
    margin-top: 160px;
}

#team-container {
    max-width: 1380px;
    padding: 0 20px;
    margin: 0 auto;
}

.team-title {
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -3.2px;
    text-transform: uppercase;
}

.team-subtitle {
    font-size: 16px;
    line-height: 1.5;
}

#team-row {
    margin-top: 20px;
}

.team-img {
    height: 305px;
    width: 100%;
    background: #D9D9D9;
    margin-top: 20px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.team-img:hover img {
    filter: grayscale(0%);
    transform: scale(1.07);
}




.team-name {
    font-size: 16px;
    margin-top: 10px;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 991px) {
    #team-section {
        margin-top: 80px;
    }

    .team-title {
        font-size: 44px;
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    #team-row .col-lg-2 {
        width: 33.33333333%;
    }
}

@media (max-width: 575px) {
    .team-title {
        font-size: 32px;
    }

    #team-row .col-lg-2 {
        width: 50%;
    }

    #team-row .col-lg-2:empty {
        display: none;
    }
}

/* ABONEMENTS SECTION */

#abonement-section {
    margin-top: 160px;
}

#abonement-container {
    max-width: 1380px;
    padding: 0 20px;
    margin: 0 auto;
}

#abonement-title {
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -3.2px;
    text-transform: uppercase;
}

#abonement-text {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 60px;
    max-width: 425px;
}

#abonement-text p {
    margin-bottom: 16px;
}

#abonement-table {
    width: 100%;
}

#abonement-table tr {
    border-bottom: 1px solid black;
}

#abonement-table td {
    padding-top: 15px;
    padding-bottom: 15px;
    vertical-align: middle;
}

#abonement-table td:nth-child(1) {
    width: 60px;
    color: #8E8E8E;
    font-size: 14px;
}

#abonement-table td:nth-child(2) {
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 110%;
    letter-spacing: -1.2px;
    text-transform: uppercase;
}

#abonement-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 991px) {
    #abonement-section {
        margin-top: 80px;
    }

    #abonement-title {
        font-size: 44px;
        letter-spacing: -2px;
    }

    #abonement-text {
        margin-top: 30px;
        max-width: 100%;
        margin-bottom: 40px;
    }

    #abonement-table td:nth-child(2) {
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    #abonement-title {
        font-size: 32px;
    }
}

/* CONTACTS SECTION */

#contacts-section {
    margin-top: 160px;
    background: url("/wp-content/themes/dance/img/feedback.png");
    padding-top: 80px;
    padding-bottom: 80px;
}

#contacts-container {
    max-width: 1380px;
    padding: 0 20px;
    margin: 0 auto;
}

#contacts-title {
    font-size: 96px;
    line-height: 110%;
    letter-spacing: -4.8px;
    text-transform: uppercase;
    max-width: 900px;
    color:#FEF9F9;
}

#contacts-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 50px;
    max-width: 470px;
}

#contacts-form {
    display: flex;
    flex-direction: column;
}

#contacts-form button {
    background: #FFF;
    height: 55px;
    padding: 0 20px;
    text-align: center;
    color: #0A4D84;
    font-size: 16px;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    border: none;
    width: 100%;
    max-width: 426px;
    box-sizing: border-box;
    text-transform: uppercase;
    transition: background-color 0.6s, transform 0.4s;
}

#contacts-form button:hover {
    background: #0A4D84;
    color: #FFF;
}

#contacts-img{
    margin-top: -180px;
    width: fit-content;
}

@media (max-width: 991px) {
    #contacts-section {
        margin-top: 80px;
    }

    #contacts-title {
        font-size: 56px;
        letter-spacing: -2.8px;
    }

    #contacts-subtitle {
        margin-top: 20px;
        margin-bottom: 30px;
        max-width: 100%;
    }

    #contacts-form input,
    #contacts-form textarea,
    #contacts-form button {
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    #contacts-title {
        font-size: 36px;
        letter-spacing: -1.8px;
    }

    #contacts-img{
        margin-top: 0;
        width: 100%;
    }

}

/* FAQ SECTION */

#faq-section {
    margin-top: 160px;
}

#faq-container {
    max-width: 1380px;
    padding: 0 20px;
    margin: 0 auto;
}

#faq-title-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.faq-title {
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -0.032em;
    text-transform: uppercase;
}

#faq-subtitle {
    font-size: 16px;
    line-height: 110%;
}

#faq-accordion-row {
    margin-top: 50px;
}

#faq-accordion-row .accordion {
    border-top: none;
}

#faq-accordion-row .accordion-header {
    padding: 30px 0 20px 0;
}

#faq-accordion-row .content-inner {
    padding: 0;
}

#faq-accordion-row .style-description {
    margin-bottom: 0;
    justify-content: flex-start;
}

#faq-accordion-row .style-description p {
    max-width: 100%;
}

.faq-accordion-item{
    border-bottom: 1px solid #004E8B;
}

.faq-accordion-title{
    margin-left: 0;
}

.accordion-ball{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #004E8B;
    border: 1px solid #004E8B;
    display: block;
    margin-bottom: -5px;
}

.faq-accordion-item.active .accordion-ball{
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 991px) {
    #faq-section {
        margin-top: 80px;
    }

    #faq-title-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .faq-title {
        font-size: 44px;
    }

    #faq-subtitle {
        display: none;
    }

    #faq-accordion-row .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .faq-title {
        font-size: 32px;
    }
}

/* INSTAGRAM SECTION */

#instagram-section {
    margin-top: 160px;
}

/* FOOTER */

footer {
    margin-top: 160px;
    background: #004E8B;
}

#footer-container {
    max-width: 1380px;
    padding: 40px 20px;
    margin: 0 auto;
}

.footer-menu-title {
    color: #FEF9F9;
    font-size: 20px;
    margin-bottom: 25px;
}

.footer-phones,
.footer-adress,
footer a {
    color: #FEF9F9;
    font-size: 16px;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    line-height: normal;
}

.footer-phones {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-adress ul {
    list-style: disc;
    margin-left: 25px;
    margin-top: 8px;
}

.footer-adress li {
    line-height: 1.8;
}

.footer-adress li a, .footer-phones li a{
    margin-bottom: 0;
}

footer a {
    margin-bottom: 14px;
    cursor: pointer;
    display: block;
}

footer a:hover {
    color: #FEF9F9;
    text-decoration: underline;
}

.footer-bottom-row {
    margin-top: 90px;
    align-items: center;
}

#copyright {
    color: #FEF9F9;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 991px) {
    #footer-container{
        text-align: center;
    }

    footer {
        margin-top: 80px;
    }

    #footer-container .col-lg-3 {
        width: 50%;
        margin-bottom: 40px;
    }

    .footer-bottom-row {
        margin-top: 40px;
    }
    .footer-adress ul{
        list-style:none;
    }

}

@media (max-width: 575px) {
    #footer-container .col-lg-3 {
        width: 100%;
    }

    #footer-container .col-lg-6 {
        width: 100%;
    }

    #copyright {
        text-align: center;
        margin-top: 16px;
    }
}

/* POPUP */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-box {
    position: relative;
    background: #fff;
    padding: 60px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-box {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.popup-close:hover {
    opacity: 1;
}

#popup-title{
    color: #0A4D84;
    font-size: 64px;
    font-style: normal;
    line-height: 110%;
    letter-spacing: -3.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#popup-subtitle{
    color: #0A4D84;
    font-size: 16px;
    font-style: normal;
    line-height: 110%;
    margin-bottom: 50px;
}

.popup-input{
    border: 1px solid #0A4D84;
    backdrop-filter: blur(5px);
    margin-bottom: 15px;
    width: 100%;
    height: 55px;
    padding-left: 20px;
    outline: none;
    color:#0A4D84;
}

.popup-input::placeholder{
    color: #0A4D84;
}

.popup-textarea{
    padding-top: 20px;
    height: 110px;
}

.btn-popup{
    display: inline-block;
    background-color: #0A4D84;
    color: #FFFFFF;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 16px;
    letter-spacing: -0.05em;
    transition: background-color 0.6s, transform 0.4s;
    width: 100%;
    text-align: center;
}

