/* =========================
   DiveTime clean styles
========================= */

:root {
    --navy: #061b33;
    --deep: #082946;
    --ocean: #0b5f8a;
    --turquoise: #20d3c2;
    --aqua: #a8f2ff;
    --white: #ffffff;
    --mist: #eaf8fb;
    --text: #123047;
    --muted: #5f7485;
    --shadow: 0 24px 70px rgba(6, 27, 51, 0.18);
    --radius-lg: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #f8fdff;
    line-height: 1.6;
}

main {
    background:
        radial-gradient(1100px 620px at 13% 8%, rgba(32, 211, 194, 0.12), transparent 68%),
        radial-gradient(1000px 620px at 88% 30%, rgba(168, 242, 255, 0.16), transparent 70%),
        radial-gradient(900px 560px at 16% 68%, rgba(32, 211, 194, 0.07), transparent 72%),
        radial-gradient(860px 560px at 84% 88%, rgba(168, 242, 255, 0.11), transparent 72%),
        linear-gradient(180deg, #f8fdff 0%, #eef9fc 28%, #f7fdff 52%, #edf8fb 76%, #f8fdff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 96px 0;
}

.section-light,
#about,
#courses,
#instructors,
#gallery,
#faq,
#contacts {
    background: transparent;
}

.section-deep {
    color: var(--white);
    background:
        radial-gradient(circle at 20% 10%, rgba(32, 211, 194, 0.18), transparent 30%),
        radial-gradient(circle at 80% 90%, rgba(168, 242, 255, 0.12), transparent 32%),
        linear-gradient(135deg, #041529 0%, #083a5a 48%, #062237 100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--turquoise);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.08;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 8vw, 5.9rem);
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

p {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.section-heading {
    width: min(720px, 100%);
    margin-bottom: 42px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-deep .section-heading p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

/* =========================
   Header
========================= */

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    backdrop-filter: blur(18px);
    background: rgba(5, 24, 43, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--navy);
    background: linear-gradient(135deg, var(--aqua), var(--turquoise));
    box-shadow: 0 12px 30px rgba(32, 211, 194, 0.32);
}

.logo-image {
    width: 160px;
    height: auto;
    display: block;
}

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

.nav-links a {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 650;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links .nav-cta {
    margin-left: 6px;
    color: var(--navy);
    background: var(--white);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--white);
}

/* =========================
   Hero
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 150px;
    color: var(--white);
    background:
        linear-gradient(rgba(6, 27, 51, 0.38), rgba(6, 27, 51, 0.74)),
        radial-gradient(circle at 75% 20%, rgba(32, 211, 194, 0.28), transparent 25%),
        radial-gradient(circle at 25% 80%, rgba(168, 242, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #041326 0%, #06416a 45%, #061b33 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background:
        radial-gradient(80% 120px at 50% 100%, #f8fdff 0%, #f8fdff 55%, transparent 56%);
    opacity: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 60px;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--navy);
    background: linear-gradient(135deg, var(--aqua), var(--turquoise));
    box-shadow: 0 18px 42px rgba(32, 211, 194, 0.28);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats div {
    min-width: 136px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-stats strong {
    display: block;
    color: var(--aqua);
    font-size: 1.4rem;
    line-height: 1;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.diver-card {
    position: relative;
    width: min(430px, 100%);
    overflow: hidden;
    border-radius: 42px;
    background:
        linear-gradient(180deg, rgba(168, 242, 255, 0.18), rgba(32, 211, 194, 0.04)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.diver-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px);
    opacity: 0.38;
    pointer-events: none;
    z-index: 1;
}

.hero-card-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-card-content {
    position: relative;
    z-index: 2;
    padding: 28px 34px 34px;
}

.hero-card-content h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.hero-card-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.hero-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.28;
}

.hero-bg-shape-one {
    width: 280px;
    height: 280px;
    top: 16%;
    right: 5%;
    background: var(--turquoise);
}

.hero-bg-shape-two {
    width: 220px;
    height: 220px;
    left: 7%;
    bottom: 14%;
    background: var(--aqua);
}

/* =========================
   About
========================= */

.two-column {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
}

.text-block {
    color: var(--muted);
    font-size: 1.08rem;
}

/* =========================
   Shared cards
========================= */

.cards-grid,
.benefits-grid,
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.course-card,
.benefit-card,
.instructor-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 55px rgba(8, 41, 70, 0.08);
}

/* =========================
   Courses
========================= */

#courses {
    background: transparent;
}

#courses .section-heading {
    margin-bottom: 54px;
}

.course-group {
    margin-top: 72px;
}

.course-group:first-of-type {
    margin-top: 0;
}

.course-group-heading {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 34px;
    padding-bottom: 22px;
}

.course-group-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--aqua), var(--turquoise));
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 24px rgba(32, 211, 194, 0.18);
}

.course-group-heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.course-group-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(440px, 72%);
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(6, 27, 51, 0),
        rgba(32, 211, 194, 0.24),
        rgba(6, 27, 51, 0.18),
        rgba(32, 211, 194, 0.24),
        rgba(6, 27, 51, 0)
    );
}

#courses .courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(8, 41, 70, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 75px rgba(8, 41, 70, 0.14);
}

.course-photo {
    width: 100%;
    height: 190px;
    margin-bottom: 20px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    background:
        linear-gradient(135deg, rgba(168, 242, 255, 0.35), rgba(32, 211, 194, 0.12));
}

.course-tag {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ocean);
    background: rgba(32, 211, 194, 0.11);
    border: 1px solid rgba(32, 211, 194, 0.18);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-card h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 1.18rem;
    line-height: 1.15;
}

.course-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.course-meta {
    margin: 18px 0;
    color: var(--ocean);
    font-size: 0.86rem;
    font-weight: 900;
}

.card-link {
    display: inline-flex;
    margin-top: auto;
    color: var(--navy);
    font-weight: 900;
}

.card-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.18s ease;
}

.card-link:hover::after {
    transform: translateX(4px);
}

#course-trial .course-photo,
#course-rescue .course-photo {
    object-position: center 42%;
}

#course-open-water .course-photo,
#course-divemaster .course-photo {
    object-position: center 35%;
}

#course-buoyancy .course-photo,
#course-deep .course-photo {
    object-position: center 40%;
}

/* =========================
   Benefits
========================= */

#benefits .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card {
    min-height: 225px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 18px;
    color: var(--aqua);
    background: rgba(168, 242, 255, 0.10);
    border: 1px solid rgba(168, 242, 255, 0.24);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================
   Instructors
========================= */

.instructors-section {
    padding-bottom: 110px;
}

.instructors-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    gap: 60px;
}

.instructors-intro p:last-child {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.08rem;
}

.instructor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instructor-card {
    padding: 26px;
    background: var(--white);
    border: 1px solid rgba(8, 41, 70, 0.08);
}

.instructor-photo {
    width: 100%;
    aspect-ratio: 1.25;
    display: block;
    margin-bottom: 22px;
    border-radius: 22px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, var(--ocean), var(--navy));
}

.instructor-photo-placeholder {
    display: grid;
    place-items: center;
    color: rgba(168, 242, 255, 0.95);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.instructor-role {
    margin-bottom: 12px;
    color: var(--ocean);
    font-weight: 850;
}

.instructor-card p:last-child {
    color: var(--muted);
}

/* =========================
   Gallery
========================= */

#gallery {
    padding-top: 110px;
    padding-bottom: 110px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 210px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: flex;
    align-items: end;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--deep);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 27, 51, 0.05),
        rgba(6, 27, 51, 0.72)
    );
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item span {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
}

#gallery .gallery-training {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-training.webp");
}

#gallery .gallery-pool {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-pool.webp");
}

#gallery .gallery-gear {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-gear.webp");
}

#gallery .gallery-team {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-team.webp");
}

#gallery .gallery-underwater {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-underwater.webp");
}

/* =========================
   FAQ
========================= */

.faq-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

details {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(8, 41, 70, 0.08);
    box-shadow: 0 16px 44px rgba(8, 41, 70, 0.06);
}

summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 900;
}

details p {
    margin: 14px 0 0;
    color: var(--muted);
}

/* =========================
   Booking
========================= */

.booking-section {
    color: var(--white);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 123, 102, 0.18), transparent 24%),
        radial-gradient(circle at 80% 100%, rgba(32, 211, 194, 0.24), transparent 34%),
        linear-gradient(135deg, #061b33, #075176 60%, #061b33);
}

.booking-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.booking-grid > div > p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
}

.booking-note {
    margin-top: 28px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.booking-form {
    display: grid;
    gap: 16px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.booking-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--white);
    background: rgba(6, 27, 51, 0.42);
    outline: none;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.booking-form option {
    color: var(--text);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(32, 211, 194, 0.14);
}

.form-message {
    min-height: 24px;
    margin: 0;
    color: var(--aqua);
    font-weight: 800;
}

/* =========================
   Contacts
========================= */

.contacts-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: stretch;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    color: var(--muted);
}

.contact-list p {
    margin: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(8, 41, 70, 0.08);
}

.map-placeholder {
    min-height: 340px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    color: var(--white);
    font-weight: 900;
    background:
        linear-gradient(rgba(6, 27, 51, 0.1), rgba(6, 27, 51, 0.58)),
        radial-gradient(circle at 30% 20%, rgba(168, 242, 255, 0.7), transparent 24%),
        linear-gradient(135deg, var(--ocean), var(--navy));
    box-shadow: var(--shadow);
}

/* =========================
   Footer
========================= */

.site-footer {
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #041326;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--aqua);
    font-weight: 850;
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: rgba(6, 27, 51, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 13px 14px;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .hero-grid,
    .two-column,
    .faq-layout,
    .booking-grid,
    .contacts-grid,
    .instructors-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-visual {
        justify-content: start;
    }

    .cards-grid,
    .benefits-grid,
    .instructor-grid,
    #courses .courses-grid,
    #benefits .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero::after {
        height: 70px;
        background:
            radial-gradient(90% 60px at 50% 100%, #f8fdff 0%, #f8fdff 55%, transparent 56%);
    }

    .course-group {
        margin-top: 56px;
    }

    .course-group-heading {
        gap: 10px;
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .course-group-number {
        min-width: 40px;
        height: 26px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .course-group-heading h3 {
        font-size: 1.35rem;
    }

    .course-group-heading::after {
        width: 82%;
    }

    #benefits .benefit-card {
        min-height: auto;
        padding: 22px;
        border-radius: 22px;
    }

    .benefit-number {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
        border-radius: 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .container,
    .navbar {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 72px;
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .hero-actions,
    .hero-stats {
        flex-direction: column;
    }

    .btn,
    .hero-stats div {
        width: 100%;
    }

    .diver-card {
        border-radius: 30px;
    }

    .hero-card-photo {
        height: 220px;
    }

    .hero-card-content {
        padding: 24px;
    }

    .hero-card-content h2 {
        font-size: 1.7rem;
    }

    .cards-grid,
    .benefits-grid,
    .instructor-grid,
    #courses .courses-grid,
    #benefits .benefits-grid,
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .course-card,
    .instructor-card {
        padding: 20px;
        border-radius: 22px;
    }

    .course-photo {
        height: 180px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .course-card h3 {
        font-size: 1.15rem;
    }

    .gallery-grid {
        grid-auto-rows: 190px;
    }

    .booking-form {
        padding: 22px;
        border-radius: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   Google Map
========================= */

.map-card {
    min-height: 420px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(8, 41, 70, 0.08);
    background: var(--white);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: saturate(0.9) contrast(0.95);
}

@media (max-width: 768px) {
    .map-card {
        min-height: 320px;
        border-radius: 24px;
    }
}

/* =========================
   Final fixes
   1) one smooth light background
   2) bigger hero trial photo
   3) centered course rows
   4) full-width course divider line
   5) gallery supports both old background HTML and new <img> HTML
========================= */

.section-light,
#about,
#courses,
#instructors,
#gallery,
#faq,
#contacts {
    background: transparent !important;
}

#about {
    padding-top: 110px;
}

.diver-card.photo-card,
.diver-card {
    width: min(500px, 100%);
}

.hero-card-photo {
    height: 360px;
    object-fit: cover;
    object-position: center;
}

.hero-card-content {
    padding: 30px 36px 36px;
}

#courses .courses-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

#courses .course-card {
    flex: 0 1 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    min-width: 280px;
}

#courses .course-photo {
    height: 190px;
}

.course-group-heading {
    position: relative;
    margin-bottom: 38px;
    padding-bottom: 28px;
}

.course-group-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 1px;
    transform: none !important;
    background: linear-gradient(
        90deg,
        rgba(6, 27, 51, 0.04) 0%,
        rgba(6, 27, 51, 0.18) 18%,
        rgba(32, 211, 194, 0.26) 50%,
        rgba(6, 27, 51, 0.18) 82%,
        rgba(6, 27, 51, 0.04) 100%
    );
}

.course-group-heading > span,
.course-group-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--aqua), var(--turquoise));
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 24px rgba(32, 211, 194, 0.18);
}

/* Gallery: old HTML version with .gallery-item */
#gallery .gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 210px;
    gap: 18px;
}

#gallery .gallery-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--deep);
    box-shadow: 0 20px 55px rgba(8, 41, 70, 0.10);
}

#gallery .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 27, 51, 0.04) 0%,
        rgba(6, 27, 51, 0.26) 44%,
        rgba(6, 27, 51, 0.78) 100%
    );
}

#gallery .gallery-item span {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

#gallery .gallery-item.large {
    grid-row: span 2;
}

#gallery .gallery-item.wide {
    grid-column: span 2;
}

#gallery .gallery-item:nth-child(1) {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-training.webp");
}

#gallery .gallery-item:nth-child(2) {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-pool.webp");
}

#gallery .gallery-item:nth-child(3) {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-gear.webp");
}

#gallery .gallery-item:nth-child(4) {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-team.webp");
}

#gallery .gallery-item:nth-child(5) {
    background-image:
        linear-gradient(rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.68)),
        url("images/gallery-underwater.webp");
}

/* Gallery: new HTML version with <article class="gallery-card"><img> */
#gallery .gallery-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 55px rgba(8, 41, 70, 0.10);
    background: var(--deep);
}

#gallery .gallery-card-large {
    grid-row: span 2;
    min-height: 438px;
}

#gallery .gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

#gallery .gallery-card-large img {
    min-height: 438px;
}

#gallery .gallery-card:hover img {
    transform: scale(1.04);
}

#gallery .gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    color: #ffffff;
    background: linear-gradient(
        180deg,
        rgba(6, 27, 51, 0.04) 0%,
        rgba(6, 27, 51, 0.32) 45%,
        rgba(6, 27, 51, 0.82) 100%
    );
}

#gallery .gallery-overlay h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

#gallery .gallery-overlay p {
    margin: 0;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 980px) {
    #courses .course-card {
        flex: 0 1 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }

    #gallery .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    #gallery .gallery-item.large,
    #gallery .gallery-item.wide,
    #gallery .gallery-card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    #gallery .gallery-card-large,
    #gallery .gallery-card-large img {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .hero-card-photo {
        height: 260px;
    }

    #courses .course-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    #courses .course-photo {
        height: 190px;
    }

    #gallery .gallery-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 220px;
    }

    #gallery .gallery-item,
    #gallery .gallery-card,
    #gallery .gallery-card-large {
        min-height: 220px;
        border-radius: 24px;
    }

    #gallery .gallery-card img,
    #gallery .gallery-card-large img {
        min-height: 220px;
    }
}

#courses {
    position: relative;
    overflow: hidden;
}

#courses .container {
    position: relative;
    z-index: 1;
}

#courses::before {
    content: "";
    position: absolute;
    inset: 40px 0 0 0;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    border-radius: 40px;
    background:
        radial-gradient(circle at 15% 20%, rgba(32, 211, 194, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.18));
    box-shadow: 0 24px 60px rgba(12, 42, 71, 0.05);
    z-index: 0;
}

/* =========================
   Courses intro card — refined
========================= */

/* убираем точку/линию над карточкой, если они остались */
#courses::before,
#courses::after {
    display: none !important;
}

/* секция курсов */
#courses {
    padding-top: 86px;
}

/* карточка-заголовок */
#courses .section-heading {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
    grid-template-areas:
        "label label"
        "title text";

    column-gap: 72px;
    row-gap: 22px;
    align-items: end;

    margin-bottom: 62px;
    padding: 34px 42px 38px !important;

    overflow: hidden;
    border-radius: 34px;

    background:
        radial-gradient(circle at 8% 12%, rgba(32, 211, 194, 0.14), transparent 34%),
        radial-gradient(circle at 92% 85%, rgba(168, 242, 255, 0.20), transparent 38%),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.52) 100%
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow:
        0 26px 70px rgba(8, 41, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* тонкий декоративный акцент сверху внутри карточки */
#courses .section-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 42px;
    right: 42px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(32, 211, 194, 0.42),
        rgba(168, 242, 255, 0.35),
        transparent
    );
}

/* мягкое декоративное пятно справа, без грубого градиента */
#courses .section-heading::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(32, 211, 194, 0.10);
    filter: blur(2px);
    pointer-events: none;
}

/* маленькая подпись */
#courses .section-heading .section-label,
#courses .section-heading .eyebrow {
    grid-area: label !important;
    position: relative;
    z-index: 1;

    width: fit-content;
    margin: 0 !important;
    padding: 7px 12px;

    border-radius: 999px;
    color: var(--ocean);
    background: rgba(32, 211, 194, 0.11);
    border: 1px solid rgba(32, 211, 194, 0.18);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* заголовок слева */
#courses .section-heading h2 {
    grid-area: title !important;
    position: relative;
    z-index: 1;

    max-width: 560px !important;
    margin: 0 !important;

    color: var(--navy);
    font-size: clamp(2.45rem, 4.8vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

/* описание справа */
#courses .section-heading p {
    grid-area: text !important;
    position: relative;
    z-index: 1;

    max-width: 570px !important;
    margin: 0 !important;

    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

/* маленькая линия под заголовком */
#courses .section-heading h2::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--turquoise), var(--aqua));
}

/* адаптив */
@media (max-width: 900px) {
    #courses .section-heading {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "title"
            "text";

        row-gap: 18px;
        padding: 30px 28px 34px !important;
        border-radius: 30px;
    }

    #courses .section-heading p {
        max-width: 680px !important;
    }
}

@media (max-width: 640px) {
    #courses {
        padding-top: 64px;
    }

    #courses .section-heading {
        padding: 24px 20px 28px !important;
        border-radius: 24px;
        margin-bottom: 44px;
    }

    #courses .section-heading::before {
        left: 20px;
        right: 20px;
    }

    #courses .section-heading h2 {
        font-size: clamp(2.15rem, 11vw, 3.1rem);
    }

    #courses .section-heading p {
        font-size: 1rem;
        line-height: 1.62;
    }
}

/* Поднимаем правый текст в карточке курсов */
#courses .section-heading {
    align-items: center !important;
}

#courses .section-heading p {
    align-self: center !important;
    transform: translateY(-24px);
}

/* На телефоне возвращаем нормально */
@media (max-width: 900px) {
    #courses .section-heading p {
        transform: none;
    }
}


/* =========================
   Language switcher
========================= */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.language-switcher a {
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
    color: var(--navy);
    background: var(--white);
}

@media (max-width: 980px) {
    .language-switcher {
        margin-left: 0;
        justify-content: center;
    }
}