:root {
    --bg-black: #1a1a1a;
    --pink-main: #d81b60;
    --pink-light: #f06292;
    --pink-dark: #880e4f;
    --text-gray: #a0a0a0;
    --navbar-height: 85px; /* ← ДОБАВИТЬ */
}

body {
    background: var(--bg-black);
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

.header-container {
    display: flex;
    align-items: center;
}

/* =========================
   NAVBAR
========================= */

.custom-navbar {
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 100;
    padding-top: 20px;
}

.navbar-brand img {
    height: 65px;
    margin-right: 0;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 12px;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--pink-light);
}

.navbar-nav .nav-link.active {
    background: var(--pink-main);
    border-radius: 25px;
    padding: 8px 20px;
    color: white;
}

.navbar-actions {
    align-items: center;
}

/* HEADER BUTTONS */

.circle-btn {
    background: var(--pink-main);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.circle-btn:hover {
    background: var(--pink-light);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
}

.hero-row {
    min-height: 100vh;
    /* Убираем жёсткий align-items:center на уровне row,
       пусть колонки сами управляют своим выравниванием */
}


.hero-content {
    padding-left: 10%;
    padding-top: calc(var(--navbar-height) + 40px); /* ← ДОБАВИТЬ */
    padding-bottom: 40px; /* ← ДОБАВИТЬ */
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hero-content h1 {
    font-size: 30px;
}

.hero-content h2 {
    color: var(--pink-main);
    margin: 20px 0;
}

.hero-content p {
    color: var(--text-gray);
    max-width: 520px;
    line-height: 1.7;
}

.hero-content ul {
    color: var(--text-gray);
    margin-bottom: 30px;
}


/* CTA BUTTON */

.btn-now {
    background: var(--pink-main);
    color: white;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 40px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.4);
    transition: 0.3s;
}

.btn-now:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(216, 27, 96, 0.6);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual-wrapper {
    position: relative;
    height: 100vh;
}

.wave-layer-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--pink-dark);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 70%, 5% 30%);
}

.wave-layer-main {
    position: absolute;
    left: 40px;
    width: 100%;
    height: 100%;
    background: var(--pink-light);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%, 18% 72%, 8% 35%);
}

.image-container {
    position: absolute;
    left: 80px;
    width: 100%;
    height: 100%;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%, 20% 75%, 10% 40%);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   INSTAGRAM FEED
========================= */
.instagram-feed {
    padding: 100px 10%;
}

.posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.post {
    background: var(--bg-black);
    padding: 15px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    transition: 0.3s;

    /* добавлено */
    display: flex;
    flex-direction: column;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.4);
}


.post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.post:hover img {
    transform: scale(1.05);
}

.post p {
    font-size: 12px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify; /* текст растягивается по ширине */
    text-justify: inter-word;
    /* добавлено */
    min-height: 60px;
    margin-top: 10px
}

.post a {
    color: var(--pink-main);
    text-decoration: none;
    font-weight: 600;

    /* добавлено */
    margin-top: auto;
}


.media-wrapper {
    position: relative;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--pink-main);
    border-radius: 50%;
}

.video-icon::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 15px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
}


/* =========================
  instagram page
========================= */

.instagram-post {
    max-width: 800px;
    margin: 0 auto; /* центрирование */
    padding-top: 100px; /* чтобы не заходило под фиксированный хедер */
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    position: relative; /* чтобы видео-иконка работала */
}


.instagram-post .media-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.instagram-post img {
    width: 100%;
    max-width: 800px; /* ограничение ширины */
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--pink-main);
    border-radius: 50%;
}

.video-icon::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 18px;
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent white;
}

.caption {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: left; /* текст по левому краю */
    margin-bottom: 25px;
    word-wrap: break-word;
}

.instagram-post a.instagram-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--pink-main);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.instagram-post a.instagram-link:hover {
    background: rgba(216, 27, 96, 0.8);
}


/* =========================
   PAGING
========================= */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-weight: 600;
}

.pagination-btn {
    background-color: var(--pink-main);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.pagination-btn:hover {
    background-color: #d31f7a;
}

/* =========================
   SERVICES
========================= */

.services-wrapper {
    scroll-snap-type: y mandatory;
}

.service-block {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
}

.service-content {
    max-width: 800px;
    width: 90%;
}

.service-title {
    font-size: 40px;
    color: var(--pink-main);
    margin-bottom: 40px;
}

.price-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.extra {
    margin-top: 40px;
    font-size: 18px;
    color: var(--pink-main);
}


/* =========================
   CONTACT PAGE
========================= */

.contact-content {
    padding-left: 8%;
    padding-right: 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    min-height: 100vh;
}

.contact-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-content h2 {
    font-size: 24px;
    color: var(--pink-main);
    margin-bottom: 20px;
}

.contact-content .lead {
    color: var(--text-gray);
    max-width: 520px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--text-gray);
}

.contact-item strong {
    color: white;
}

.contact-item a {
    color: var(--pink-main);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}


/* MAP */

.map-hero {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.map-hero iframe {
    width: 100%;
    height: 380px;
    border: 0;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {

    .hero-content {
        padding: 120px 20px;
        text-align: center;
        align-items: center;
    }

    .hero-visual-wrapper {
        height: 450px;
    }

    .wave-layer-bg,
    .wave-layer-main,
    .image-container {
        left: 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .contact-content {
        padding: 120px 20px 40px;
        text-align: center;
        align-items: center;
    }

    .map-hero iframe {
        height: 300px;
    }

    .custom-navbar {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(8px);
    }

    .navbar-collapse {
        /*   margin-top:20px;
           text-align:center;*/
        flex-grow: 0;
    }

    .navbar-actions {
        justify-content: center;
        margin-top: 15px;
    }
}

/* =========================
   TRAINING PREMIUM STYLE
========================= */

.training-page{
    padding-top:calc(var(--navbar-height) + 80px);
    padding-bottom:140px;
}


/* HERO */

.training-hero{
    max-width:900px;
    margin-bottom:110px;
}

.training-hero h1{
    font-size:46px;
    font-weight:700;
    color:var(--pink-main);
    margin-bottom:30px;
    line-height:1.2;
}

.training-hero p{
    color:var(--text-gray);
    font-size:19px;
    line-height:1.8;
}


/* SECTION */

.training-section{
    margin-bottom:130px;
}


/* GRID */

.training-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}


/* REVERSE */

.training-grid.reverse{
    direction:rtl;
}

.training-grid.reverse *{
    direction:ltr;
}


/* TEXT CARD */

.training-text{
    background:linear-gradient(
            145deg,
            #262626,
            #1f1f1f
    );

    padding:55px;
    border-radius:16px;

    transition:all .35s ease;
}

.training-text:hover{
    transform:translateY(-6px);

}

.training-text p{
    color:var(--text-gray);
    line-height:1.9;
    margin-bottom:22px;
}

.training-text ul{
    color:var(--text-gray);
    padding-left:20px;
}

.training-text li{
    margin-bottom:10px;
}


/* IMAGE */

.training-image{
    overflow:hidden;
    border-radius:16px;
}

.training-image img {
    height: 70vh;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .6s ease;
}

.training-image:hover img{
    transform:scale(1.06);
}

.training-image-inner{
    overflow:hidden;
    border-radius:16px;
}


/* BUTTON */

.training-btn{
    margin-top:30px;
    font-size:15px;
    letter-spacing:.5px;
}


/* =========================
   SCROLL ANIMATION
========================= */

.training-section{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.training-section.visible{
    opacity:1;
    transform:translateY(0);
}


/* =========================
   MOBILE
========================= */

@media(max-width:992px){

    .training-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .training-grid.reverse{
        direction:ltr;
    }

    .training-text{
        padding:38px;
    }

    .training-hero h1{
        font-size:34px;
    }
}

@media(max-width:768px){

    .training-hero p{
        font-size:17px;
    }

    .training-text p{
        font-size:16px;
    }
}
