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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, p, a, span {
    overflow-wrap: break-word;
    word-break: break-word;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #8c6b4f;
    padding: 15px 50px;
    flex-wrap: wrap;
    row-gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.logo-link img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px 22px;
    background: rgba(255,255,255,0.14);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: 0.25s;
}

.nav-links a:hover {
    background: #d8bea7;
    color: #14110d;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.back-link {
    color: white !important;
    opacity: 0.9;
}

/* HERO BANNER */
.course-hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.course-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,17,13,0.92), rgba(20,17,13,0.25));
}

.course-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 8%;
}

.course-kicker {
    color: #d8bea7;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 14px;
}

.course-hero h1 {
    font-size: 46px;
    letter-spacing: 1px;
}

/* DETAIL SECTION */
.course-detail {
    padding: 80px 8%;
    background: #f7f3ee;
    position: relative;
    overflow: hidden;
}

.course-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("bg1.jpg");
    background-repeat: repeat;
    background-size: 340px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.course-detail-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.course-desc {
    flex: 1 1 320px;
}

.course-desc h2 {
    font-size: 26px;
    color: #2b2117;
    margin-bottom: 20px;
}

.course-desc p {
    font-size: 16px;
    line-height: 1.85;
    color: #55493c;
    margin-bottom: 18px;
}

.course-facts {
    flex: 1 1 280px;
    background: #14110d;
    color: white;
    border-radius: 10px;
    border-top: 3px solid #d8bea7;
    padding: 36px 32px;
    align-self: flex-start;
}

.course-facts h3 {
    font-size: 18px;
    color: #d8bea7;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.course-facts ul {
    list-style: none;
}

.course-facts li {
    font-size: 15px;
    line-height: 1.9;
    color: #c9c2b8;
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.course-facts li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #d8bea7;
}

.course-price-note {
    font-size: 13.5px;
    color: #8c7c68;
    margin-top: 18px;
    font-style: italic;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.course-cta {
    display: inline-block;
    text-decoration: none;
    background-color: transparent;
    color: #8c6b4f;
    border: 1.5px solid #8c6b4f;
    padding: 13px 34px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: 0.25s;
}

.course-cta:hover {
    background-color: #8c6b4f;
    color: white;
}

.cta-call {
    background-color: #8c6b4f;
    color: white;
}

.cta-call:hover {
    background-color: #6e533d;
    border-color: #6e533d;
}

.cta-viber {
    color: #7360f2;
    border-color: #7360f2;
}

.cta-viber:hover {
    background-color: #7360f2;
    border-color: #7360f2;
    color: white;
}

/* CONTACTS SECTION (shared look) */
.contacts-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background-color: #1f1f1f;
    padding: 80px 8%;
    color: white;
    flex-wrap: wrap;
}

.contacts-info {
    width: 35%;
    min-width: 260px;
}

.contacts-info h2 {
    font-size: 44px;
    color: #d8bea7;
    margin-bottom: 30px;
}

.contacts-info p {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-box img {
    width: 35px;
    height: 35px;
}

.social-box a {
    text-decoration: none;
    color: #d8bea7;
    font-size: 22px;
    font-weight: bold;
}

.social-box a:hover {
    color: white;
}

.map-wrap {
    width: 52%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-box {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
}

.maps-link {
    align-self: flex-start;
    text-decoration: none;
    color: #d8bea7;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(216,190,167,0.4);
    padding-bottom: 2px;
    transition: 0.2s;
}

.maps-link:hover {
    color: #fff;
    border-color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .course-hero h1 { font-size: 34px; }
    .course-hero { height: 50vh; }
    .contacts-info, .map-wrap { width: 100%; }
}

@media (max-width: 600px) {
    .navbar { padding: 15px 20px; justify-content: space-between; position: relative; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8c6b4f;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        gap: 10px;
        margin-top: 0;
        z-index: 100;
        box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin-left: 0; font-size: 14px; text-align: center; width: 100%; }

    .course-hero-content { padding: 40px 6%; }
    .course-kicker { font-size: 12px; }
    .course-hero h1 { font-size: 26px; }

    .course-detail { padding: 55px 6%; }
    .course-desc h2 { font-size: 21px; }
    .course-facts { padding: 28px 24px; }

    .cta-group { flex-direction: column; }
    .course-cta { text-align: center; }

    .contacts-section { padding: 55px 6%; }
    .contacts-info h2 { font-size: 32px; }
    .contacts-info p { font-size: 17px; }
    .map-box { height: 260px; }
}

/* HERO WAVE TRANSITION */
.hero-wave {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

@media (max-width: 600px) {
    .hero-wave svg { height: 32px; }
}
