  :root{
    --deep:#071A26;
    --mid:#0F3A52;
    --tide:#1D5E7D;
    --surface:#8FB9C4;
    --sand:#E3A857;
    --sand-soft:#F0C88A;
    --text-light:#EAF3F3;
    --text-muted:#C4D9DF;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  html.menu-open, html.menu-open body{overflow:hidden;}
  body{
    font-family:var(--sans);
    background:var(--deep);
    color:var(--text-light);
    line-height:1.5;
    overflow-x:hidden;
  }
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;height:auto;display:block;}
  button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}

  .wrap{max-width:1120px;margin:0 auto;padding:0 32px;}

  /* focus visibility */
  a:focus-visible, button:focus-visible{outline:2px solid var(--sand);outline-offset:3px;}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important;transition-duration:0.001ms !important;}
  }

  /* ---------- Header ---------- */
  header{
    position:fixed;top:0;left:0;right:0;z-index:100;
    display:flex;align-items:center;justify-content:space-between;
    padding:12px 32px;
    background:transparent;
    transition:background 0.3s ease;
  }
  header.scrolled{background:rgba(7,26,38,0.92);backdrop-filter:blur(8px);}
  header.menu-open{background:transparent;backdrop-filter:none;}
  .logo{
    display:flex;align-items:center;
  }
  .logo img{
    height:64px;
    width:auto;
    display:block;
  }
  @media (max-width:600px){
    .logo img{height:46px;}
  }
  @media (max-width:420px){
    .logo img{height:38px;}
  }
  nav{display:flex;align-items:center;gap:36px;}
  nav ul{list-style:none;display:flex;gap:32px;}
  nav a{font-size:15px;color:var(--text-light);transition:color 0.2s;}
  nav a:hover{color:var(--sand-soft);}
  .lang-toggle{
    display:flex;align-items:center;gap:2px;position:relative;z-index:110;
    font-size:13px;color:var(--text-muted);
    border:1px solid rgba(159,192,201,0.35);
    border-radius:999px;padding:4px 4px;
  }
  .lang-toggle button{
    min-width:44px;min-height:44px;padding:5px 12px;border-radius:999px;font-size:13px;color:var(--text-light);
  }
  .lang-toggle button.active{background:var(--sand);color:var(--deep);font-weight:600;}
  .menu-btn{display:none;min-width:44px;min-height:44px;font-size:26px;color:var(--text-light);background:none;z-index:110;position:relative;line-height:1;}
  .nav-backdrop{display:none;}
  .nav-socials{display:none;}

  /* пунктов меню стало больше — на средних экранах немного сжимаем шапку */
  nav a{white-space:nowrap;}
  @media (min-width:1401px) and (max-width:1540px){
    nav{gap:20px;}
    nav ul{gap:20px;}
    nav a{font-size:14px;}
  }
  .logo{flex-shrink:0;}
  /* бургер включается раньше (было 860px), чтобы 10 пунктов не переполняли шапку */
  @media (max-width:1400px){
    nav{gap:14px;}
    nav ul{
      display:flex;flex-direction:column;
      position:fixed;top:0;right:0;
      height:auto;max-height:100vh;max-height:100dvh;width:min(88vw,360px);
      overflow-y:auto;overscroll-behavior:contain;
      background:rgba(7,26,38,0.8);
      -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
      border-left:1px solid rgba(234,243,243,0.08);border-bottom:1px solid rgba(234,243,243,0.08);
      border-bottom-left-radius:22px;
      padding:92px 24px 22px;
      gap:0;
      transform:translateX(100%);
      visibility:hidden;pointer-events:none;
      transition:transform 0.35s ease, visibility 0.35s;
      box-shadow:-10px 0 34px rgba(0,0,0,0.35);
      z-index:105;
    }
    nav ul.open{transform:translateX(0);visibility:visible;pointer-events:auto;}
    nav ul li{border-bottom:1px solid rgba(234,243,243,0.1);}
    nav ul li.nav-socials{border-bottom:0;}
    nav ul li a{display:block;min-height:48px;padding:14px 2px;font-size:17px;font-weight:500;white-space:normal;overflow-wrap:anywhere;}
    .menu-btn{display:block;}
    nav ul li.nav-socials{display:flex;gap:8px;padding-top:18px;}
    nav ul li.nav-socials a{
      flex:1 1 0;min-width:0;min-height:44px;padding:10px 6px;
      display:flex;align-items:center;justify-content:center;gap:6px;
      font-size:12px;font-weight:500;
      border:1px solid rgba(234,243,243,0.22);border-radius:999px;
      background:rgba(234,243,243,0.04);
    }
    nav ul li.nav-socials a:hover{border-color:var(--sand);color:var(--sand-soft);}
    nav ul li.nav-socials svg{width:16px;height:16px;flex-shrink:0;}
    .nav-backdrop{
      display:block;
      position:fixed;inset:0;
      background:rgba(7,26,38,0.6);
      opacity:0;pointer-events:none;
      transition:opacity 0.3s ease;
      z-index:90;
    }
    .nav-backdrop.open{opacity:1;pointer-events:auto;}
  }
  @media (max-width:600px){
    header{padding:12px 16px;}
    nav{gap:8px;}
  }

  /* ---------- Главный экран: составное изображение под размер экрана ---------- */
  .home-page header nav a{text-shadow:0 1px 4px #031F30, 0 0 12px #031F30;}
  .home-page header .lang-toggle{background:rgba(3,31,48,0.3);}
  .home-page .menu-btn{filter:drop-shadow(0 1px 3px #031F30);}
  .hero{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:flex;
    min-height:max(760px, 100svh);
    padding:140px 0 44px;
    background:#011424;
  }
  .hero-background{position:absolute;z-index:0;inset:0;pointer-events:none;}
  .hero-background img{width:100%;height:100%;object-fit:cover;object-position:center 60%;}
  .hero::after{
    content:"";position:absolute;z-index:0;inset:0;pointer-events:none;
    background:linear-gradient(90deg, rgba(1,20,36,0.12), transparent 60%), linear-gradient(0deg, rgba(1,20,36,0.25), transparent 30%);
  }
  .hero-grid{
    position:relative;
    z-index:1;
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:flex-start;
    gap:32px;
    width:100%;
    max-width:1280px;
    padding-inline:48px;
  }
  .hero-copy{width:48%;max-width:580px;}
  .hero h1{
    font-family:var(--serif);
    font-size:clamp(56px, 5.5vw, 84px);
    font-weight:400;
    line-height:1.04;
    letter-spacing:-0.025em;
    color:#fff;
    text-shadow:0 2px 16px rgba(1,20,36,0.3);
  }
  .hero h1 span, .hero h1 em{display:block;}
  .hero h1 em{color:#88D4F3;font-weight:400;}
  .hero-wave{display:block;width:clamp(180px, 21vw, 280px);height:auto;margin-top:20px;stroke:#88D4F3;stroke-width:1;}
  .hero p.lead{max-width:360px;margin-top:20px;color:#D5E7EE;font-size:16px;line-height:1.65;}
  .hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:auto;padding-top:24px;}
  .hero-actions a{
    display:inline-flex;align-items:center;justify-content:center;gap:18px;
    min-height:52px;padding:14px 26px;font-size:15px;font-weight:500;
  }
  .hero-actions svg{flex-shrink:0;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;}
  .hero .btn-ghost{background:rgba(1,20,36,0.25);border-color:#8EADB9;}
  .hero .btn-ghost:hover{background:rgba(1,20,36,0.65);border-color:var(--text-light);}
  .depth-ruler{
    position:absolute;z-index:1;top:36%;right:32px;
    display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;
    height:240px;gap:0;
  }
  .depth-mark{display:flex;align-items:center;gap:10px;}
  .depth-mark .line{width:22px;height:1px;background:rgba(234,243,243,0.6);}
  .depth-mark .num{font-size:13px;color:var(--text-light);font-variant-numeric:tabular-nums;text-shadow:0 1px 5px #031F30;}
  @media (min-width:701px) and (max-width:1100px) and (orientation:portrait){
    .hero{padding-top:136px;}
    .hero-grid{padding-inline:40px;}
    .hero h1{font-size:clamp(56px, 7.8vw, 78px);}
    html[lang="en"] .hero h1 em{font-size:0.8em;}
    .hero p.lead{max-width:300px;}
    .hero-background img{object-position:right bottom;}
    .depth-ruler{right:20px;}
  }
  @media (max-width:700px){
    .home-page header{padding-inline:clamp(16px, 5.5vw, 32px);}
    .home-page .logo img{height:clamp(40px, 11vw, 64px);}
    .hero{min-height:max(760px, 100svh);padding:108px 0 28px;}
    .hero-grid{padding-inline:clamp(24px, 7vw, 42px);gap:24px;}
    .hero-copy{width:100%;max-width:none;}
    .hero h1{font-size:clamp(40px, 10.5vw, 62px);line-height:1.04;}
    .hero h1 em{font-size:1.04em;}
    html[lang="en"] .hero h1 em{font-size:0.8em;}
    .hero-wave{width:180px;margin-top:14px;}
    .hero p.lead{max-width:46%;margin-top:16px;font-size:13px;line-height:1.6;}
    .hero-actions{display:grid;grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);width:100%;max-width:380px;gap:10px;}
    .hero-actions a{min-width:0;min-height:52px;padding:14px 10px;font-size:clamp(12px, 3.6vw, 14px);gap:8px;white-space:nowrap;}
    .hero-actions svg{width:18px;}
    .hero-background img{object-position:70% bottom;}
    .depth-ruler{display:none;}
  }
  @media (max-width:360px){
    .hero-grid{padding-inline:20px;}
    .hero p.lead{max-width:58%;font-size:12px;line-height:1.5;}
    .hero-actions{gap:8px;}
    .hero-actions a{padding-inline:12px;font-size:12px;}
    .hero-actions svg{width:16px;}
  }
  @media (min-width:601px) and (max-height:600px){
    .hero{min-height:680px;padding-top:112px;}
    .hero-grid{padding-inline:32px;}
    .hero h1{font-size:52px;}
    .hero p.lead{max-width:290px;font-size:14px;}
    .depth-ruler{right:16px;height:180px;}
  }
  @media (min-width:1101px){
    .depth-ruler{top:45%;right:calc(32px + 13vw);}
  }
  .btn-primary{
    background:var(--sand);
    color:var(--deep);
    padding:15px 30px;
    border-radius:4px;
    font-size:15px;
    font-weight:600;
    transition:background 0.2s;
  }
  .btn-primary:hover{background:var(--sand-soft);}
  .btn-ghost{
    padding:15px 26px;
    border-radius:4px;
    font-size:15px;
    border:1px solid rgba(234,243,243,0.3);
    color:var(--text-light);
    transition:border-color 0.2s;
  }
  .btn-ghost:hover{border-color:var(--text-light);}

  /* ---------- Section shell ---------- */
  section{padding:110px 0;}
  .section-head{max-width:56ch;margin-bottom:56px;}
  .section-head .kicker{font-size:14px;color:var(--sand);margin-bottom:10px;}
  .section-head h1,
  .section-head h2{
    font-family:var(--serif);
    font-weight:500;
    font-size:clamp(28px,3.4vw,40px);
    color:var(--text-light);
  }
  .section-head p{margin-top:16px;color:var(--text-muted);font-size:16px;max-width:52ch;}
  .about-heading{font-size:clamp(38px,5.5vw,64px)!important;color:#fff!important;}

  /* ---------- Courses ---------- */
  .courses{background:var(--mid);}
  .course-row{
    display:grid;
    grid-template-columns:100px 1fr 220px;
    gap:28px;
    align-items:start;
    padding:34px 0;
    border-top:1px solid rgba(234,243,243,0.14);
  }
  .course-row:last-child{border-bottom:1px solid rgba(234,243,243,0.14);}
  .course-depth{
    font-family:var(--serif);
    font-size:30px;
    color:var(--sand);
    line-height:1;
  }
  .course-depth small{display:block;font-family:var(--sans);font-size:12px;color:var(--text-muted);margin-top:6px;}
  .course-body h3{font-size:20px;font-weight:600;margin-bottom:8px;color:var(--text-light);}
  .course-body p{color:var(--text-muted);font-size:15px;max-width:52ch;}
  .course-tracks{font-size:14px;color:var(--text-muted);text-align:left;}
  .course-tracks .track{margin-bottom:6px;}
  .course-tracks .track b{color:var(--text-light);font-weight:600;}
  @media (max-width:720px){
    .course-row{grid-template-columns:1fr;gap:12px;}
    .course-depth{display:flex;align-items:baseline;gap:10px;}
  }

  /* ---------- Course cards ---------- */
  .course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:24px;
  }
  .course-card{
    position:relative;
    background:rgba(234,243,243,0.04);
    border:1px solid rgba(234,243,243,0.14);
    border-radius:10px;
    padding:30px 26px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:14px;
    transition:border-color 0.2s, background 0.2s, transform 0.2s;
    cursor:pointer;
  }
  .course-card:hover{border-color:rgba(227,168,87,0.5);background:rgba(234,243,243,0.06);transform:translateY(-2px);}
  .course-card.trial{background:rgba(227,168,87,0.07);border-color:rgba(227,168,87,0.35);}
  .course-card-tag{
    position:absolute;top:16px;right:16px;
    font-size:11px;text-transform:uppercase;letter-spacing:0.04em;
    background:var(--sand);color:var(--deep);
    padding:4px 11px;border-radius:20px;font-weight:600;
    z-index:3;
  }
  .course-group-label{
    font-size:13px;text-transform:uppercase;letter-spacing:0.08em;
    color:var(--sand);margin:48px 0 18px;
  }
  .course-group-label:first-child{margin-top:0;}
  .course-trial-wrap{display:flex;justify-content:center;}
  .course-trial-wrap .course-card{max-width:360px;width:100%;}
  .course-card-media{position:relative;width:100%;aspect-ratio:1;margin-bottom:16px;}
  .course-card-media .course-card-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px;background:rgba(234,243,243,0.06);}
  .course-card-media .course-badge{position:absolute;left:14px;bottom:-14px;width:56px;height:56px;margin:0;}
  .course-badge{
    width:76px;height:76px;
    background:#fff;
    border-radius:50%;
    padding:6px;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 4px 14px rgba(0,0,0,0.25);
    margin:0 auto;
    overflow:hidden;
  }
  .course-badge img{width:100%;height:100%;object-fit:contain;}
  .course-card h3{font-size:19px;font-weight:600;color:var(--text-light);}

  /* ---------- Trip cards (fun dives) ---------- */
  .trip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-top:40px;}
  .trip-card{
    display:block;background:rgba(234,243,243,0.04);
    border:1px solid rgba(234,243,243,0.14);border-radius:14px;overflow:hidden;
    transition:border-color 0.2s,transform 0.2s;
  }
  .trip-card:hover{border-color:rgba(227,168,87,0.5);transform:translateY(-2px);}
  .trip-card-media{position:relative;width:100%;aspect-ratio:4/3;}
  .trip-card-media img{width:100%;height:100%;object-fit:cover;display:block;}
  .trip-card-body{padding:22px 24px 26px;}
  .trip-card h3{font-family:var(--serif);font-weight:500;font-size:21px;color:var(--text-light);margin-bottom:8px;}
  .trip-card-ad{color:var(--text-muted);font-size:14.5px;font-style:italic;margin-bottom:16px;}
  .trip-card-meta{font-size:13px;color:var(--text-muted);border-top:1px solid rgba(234,243,243,0.12);padding-top:14px;margin-bottom:12px;}
  .trip-card-price{font-family:var(--serif);font-size:23px;color:var(--sand-soft);}
  .course-card .course-text{color:var(--text-muted);font-size:14.5px;}
  .course-card .course-benefit{color:var(--sand-soft);font-size:13.5px;font-style:italic;}
  .course-card .course-track{color:var(--text-muted);font-size:13px;margin-top:auto;padding-top:10px;border-top:1px solid rgba(234,243,243,0.12);width:100%;}
  .course-card .course-price{
    font-family:var(--serif);font-size:24px;color:var(--sand);
  }
  .courses-note{margin-top:36px;font-size:13px;color:var(--text-muted);}

  /* ---------- Home courses carousel ---------- */
  .home-courses{padding:70px 0 90px;}
  .home-courses .section-head{margin-bottom:34px;}
  .course-scroll-wrap{position:relative;}
  .course-scroll{
    display:flex;
    gap:22px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:4px 4px 16px;
    scrollbar-width:none;
    -ms-overflow-style:none;
    -webkit-overflow-scrolling:touch;
  }
  .course-scroll::-webkit-scrollbar{display:none;}
  .course-scroll .course-card{
    flex:0 0 250px;
    scroll-snap-align:start;
  }
  .course-scroll-arrow{
    position:absolute;top:calc(50% - 12px);transform:translateY(-50%);
    width:46px;height:46px;border-radius:50%;
    background:rgba(7,26,38,0.9);border:1px solid rgba(234,243,243,0.25);
    color:var(--text-light);font-size:20px;line-height:1;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background 0.2s, border-color 0.2s, opacity 0.2s;
    z-index:2;
  }
  .course-scroll-arrow:hover{background:var(--tide);border-color:rgba(227,168,87,0.5);}
  .course-scroll-arrow.is-disabled{opacity:0.3;pointer-events:none;}
  .course-scroll-arrow.prev{left:-10px;}
  .course-scroll-arrow.next{right:-10px;}
  .home-courses-more{
    display:inline-block;margin-top:8px;font-size:14px;color:var(--sand-soft);font-weight:600;
  }
  .home-courses-more::after{content:" →";}
  @media (max-width:900px){
    .course-scroll-arrow{width:38px;height:38px;font-size:17px;}
    .course-scroll-arrow.prev{left:2px;}
    .course-scroll-arrow.next{right:2px;}
    .course-scroll{padding-left:2px;padding-right:2px;}
  }
  @media (max-width:480px){
    .course-scroll .course-card{flex-basis:220px;}
  }

  /* ---------- Course detail page ---------- */
  .course-detail-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;margin-bottom:50px;}
  .course-photo{width:100%;max-height:420px;object-fit:cover;border-radius:16px;margin-bottom:50px;display:block;}
  .course-detail-head .course-badge{width:104px;height:104px;}
  .course-detail-head h1,
  .course-detail-head h2{font-family:var(--serif);font-weight:500;font-size:clamp(28px,3.4vw,40px);color:var(--text-light);}
  .course-detail-head .course-price{font-size:30px;}
  .back-link{display:inline-block;margin-bottom:28px;font-size:14px;color:var(--text-muted);}
  .back-link:hover{color:var(--text-light);}
  .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;}
  .detail-block h4{font-size:14px;text-transform:uppercase;letter-spacing:0.04em;color:var(--sand);margin-bottom:14px;}
  .detail-block ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0 0 30px;padding:0;}
  .detail-block ul li{font-size:15px;color:var(--text-muted);padding-left:18px;position:relative;}
  .detail-block ul li::before{content:"—";position:absolute;left:0;color:var(--sand);}
  @media (max-width:720px){.detail-grid{grid-template-columns:1fr;gap:30px;}}
  @media (max-width:720px){.course-photo{max-height:260px;margin-bottom:30px;}}

  /* ---------- Course quick-view modal ---------- */
  .course-modal-backdrop{
    position:fixed;inset:0;
    background:rgba(6,14,14,0.72);
    backdrop-filter:blur(2px);
    opacity:0;visibility:hidden;
    transition:opacity 0.25s ease;
    z-index:200;
  }
  .course-modal-backdrop.open{opacity:1;visibility:visible;}
  .course-modal{
    position:fixed;
    top:50%;left:50%;
    transform:translate(-50%,-50%) scale(0.92);
    width:min(720px, 92vw);
    max-height:86vh;
    overflow-y:auto;
    background:var(--deep, #0c1f1f);
    border:1px solid rgba(234,243,243,0.14);
    border-radius:18px;
    padding:44px 40px 40px;
    opacity:0;visibility:hidden;
    transition:opacity 0.25s ease, transform 0.25s ease;
    z-index:201;
    box-shadow:0 30px 80px rgba(0,0,0,0.45);
  }
  .course-modal.open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1);}
  .course-modal-panel{display:none;}
  .course-modal-panel.active{display:block;}
  .course-modal-close{
    position:sticky;top:0;left:100%;
    width:36px;height:36px;
    border-radius:50%;
    border:1px solid rgba(234,243,243,0.2);
    background:rgba(234,243,243,0.06);
    color:var(--text-light);
    font-size:16px;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:-36px;
    transition:background 0.2s;
  }
  .course-modal-close:hover{background:rgba(234,243,243,0.14);}
  .course-modal .course-detail-head{margin-bottom:36px;}
  .course-modal .course-detail-head .course-badge{width:88px;height:88px;}
  .course-modal .course-detail-head h1,
  .course-modal .course-detail-head h2{font-size:clamp(24px,3vw,32px);}
  .course-modal-cta{text-align:center;padding-top:36px;}
  @media (max-width:720px){
    .course-modal{padding:36px 22px 30px;border-radius:14px;}
    .course-modal .detail-grid{grid-template-columns:1fr;gap:26px;}
  }

  /* ---------- Fun dives ---------- */
  .fundives .wrap{display:grid;grid-template-columns:1.1fr 0.9fr;gap:70px;align-items:center;}
  .fundives-copy p{color:var(--text-muted);font-size:16px;margin-top:16px;max-width:48ch;}
  .fundives-list{margin-top:28px;display:flex;flex-direction:column;gap:14px;}
  .fundives-list li{list-style:none;display:flex;gap:14px;font-size:15px;color:var(--text-light);}
  .fundives-list li::before{content:"—";color:var(--sand);}
  .fundives-visual{
    aspect-ratio:4/5;
    border-radius:4px;
    background:linear-gradient(160deg, var(--tide), var(--deep) 70%);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:14px;
    border:1px dashed rgba(234,243,243,0.25);
  }
  @media (max-width:860px){
    .fundives .wrap{grid-template-columns:1fr;}
    .fundives-visual{order:-1;}
  }

  /* ---------- Pricing ---------- */
  .price-table{border-top:1px solid rgba(234,243,243,0.14);}
  .price-row{
    display:grid;grid-template-columns:1.4fr 1.6fr 0.6fr;
    gap:20px;align-items:center;
    padding:20px 0;
    border-bottom:1px solid rgba(234,243,243,0.14);
    font-size:15px;color:var(--text-muted);
  }
  .price-row span:first-child{color:var(--text-light);font-weight:600;font-size:16px;}
  .price-row span:last-child{color:var(--sand);font-family:var(--serif);font-size:20px;text-align:right;}
  .price-head{
    color:var(--text-muted);font-size:13px;text-transform:uppercase;letter-spacing:0.04em;
    padding-bottom:14px;
  }
  .price-head span:first-child, .price-head span:last-child{color:var(--text-muted);font-weight:400;font-size:13px;}
  @media (max-width:600px){
    .price-row{grid-template-columns:1fr;gap:4px;padding:18px 0;}
    .price-row span:last-child{text-align:left;}
    .price-head{display:none;}
  }

  /* ---------- Calendar ---------- */
  .calendar{background:var(--mid);}
  .calendar-box{
    min-height:220px;border-radius:4px;
    border:1px dashed rgba(234,243,243,0.25);
    background:rgba(234,243,243,0.03);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:14px;
  }

  /* ---------- Gallery ---------- */
  .gallery-grid{
    display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  }
  .gallery-item{
    aspect-ratio:1;border-radius:4px;
    border:1px dashed rgba(234,243,243,0.25);
    background:rgba(234,243,243,0.03);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:13px;
  }
  @media (max-width:720px){
    .gallery-grid{grid-template-columns:repeat(2,1fr);}
  }

  /* ---------- About ---------- */
  .about .wrap{display:grid;grid-template-columns:0.85fr 1.15fr;gap:70px;align-items:start;}
  .about-heading{margin-top:0!important;line-height:1.1;}
  .about-photo{
    aspect-ratio:3/4;
    border-radius:4px;
    overflow:hidden;
    background:linear-gradient(200deg, var(--tide), var(--mid));
  }
  .about-photo img{
    width:100%;height:100%;
    object-fit:cover;
    display:block;
  }
  .about-copy p{color:var(--text-muted);font-size:16px;margin-top:16px;max-width:58ch;}
  .about-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin-top:36px;max-width:58ch;}
  .about-stats div b{display:block;font-family:var(--serif);font-size:26px;color:var(--sand);}
  .about-stats div span{font-size:13px;color:var(--text-muted);}
  .about-closing{margin-top:20px;}
  @media (max-width:860px){
    .about .wrap{grid-template-columns:1fr;}
  }

  /* ---------- Contact ---------- */
  .contact{background:linear-gradient(180deg, var(--mid), var(--deep));}
  .contact .wrap{display:grid;grid-template-columns:1fr 1fr;gap:70px;}
  .contact-info h1,
  .contact-info h2{font-family:var(--serif);font-weight:500;font-size:clamp(28px,3.4vw,38px);max-width:12ch;}
  .contact-info p{color:var(--text-muted);margin-top:18px;max-width:44ch;}
  .contact-channels{margin-top:32px;display:flex;flex-direction:column;gap:16px;}
  .contact-channels a{
    display:flex;justify-content:space-between;align-items:center;
    padding:16px 0;border-bottom:1px solid rgba(234,243,243,0.16);
    font-size:16px;color:var(--text-light);
  }
  .contact-channels a small{color:var(--text-muted);font-weight:400;}
  .map-box{
    border-radius:4px;
    border:1px dashed rgba(234,243,243,0.25);
    background:rgba(234,243,243,0.03);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:14px;min-height:280px;
  }
  @media (max-width:860px){.contact .wrap{grid-template-columns:1fr;}}

  footer{
    padding:36px 0;
    border-top:1px solid rgba(234,243,243,0.12);
    display:flex;justify-content:space-between;align-items:center;
    flex-wrap:wrap;gap:12px;
    font-size:13px;color:var(--text-muted);
  }
  footer.wrap{flex-direction:column;align-items:flex-start;gap:14px;padding-top:32px;padding-bottom:36px;}
  .footer-links{display:flex;flex-wrap:wrap;gap:8px 28px;}
  .footer-links a{color:var(--text-light);transition:color 0.2s;}
  .footer-links a:hover{color:var(--sand-soft);}

  /* ---------- Юридические страницы ---------- */
  .legal-body{max-width:760px;}
  .legal-updated{font-size:13px;color:var(--text-muted);margin-bottom:8px;}
  .legal-body h3{font-family:var(--serif);font-weight:400;font-size:22px;color:var(--text-light);margin-top:36px;}
  .legal-body p, .legal-body li{color:var(--text-muted);font-size:16px;line-height:1.7;margin-top:12px;}
  .legal-body ul{margin-top:4px;padding-left:22px;}

  /* ---------- Nav active state ---------- */
  nav a.active{color:var(--text-light);}
  nav a.active::after{content:"";display:block;height:1px;background:var(--sand);margin-top:4px;}

  /* ---------- Explore grid (home) ---------- */
  .explore{background:var(--mid);}
  .explore-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:rgba(234,243,243,0.12);}
  .explore-card{
    background:var(--mid);
    padding:38px 32px;
    display:flex;flex-direction:column;gap:14px;
    transition:background 0.2s;
  }
  .explore-card:hover{background:var(--tide);}
  .explore-card .kicker{font-size:13px;color:var(--sand);}
  .explore-card h3{font-family:var(--serif);font-weight:500;font-size:22px;color:var(--text-light);}
  .explore-card p{font-size:14px;color:var(--text-muted);flex:1;}
  .explore-card .more{font-size:14px;color:var(--sand-soft);font-weight:600;}
  .explore-card .more::after{content:" →";}
  @media (max-width:860px){
    .explore-grid{grid-template-columns:repeat(2,1fr);}
  }
  @media (max-width:560px){
    .explore-grid{grid-template-columns:1fr;}
  }

  /* ---------- Reviews ---------- */
  .reviews{background:var(--deep);}
  .reviews-summary{display:flex;align-items:baseline;gap:12px;margin-bottom:36px;}
  .reviews-summary .score{font-family:var(--serif);font-size:40px;color:var(--sand);}
  .reviews-summary .stars{color:var(--sand);font-size:18px;letter-spacing:2px;}
  .reviews-summary .count{color:var(--text-muted);font-size:14px;}
  .reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  .review-card{
    background:var(--mid);border-radius:12px;padding:26px;
    display:flex;flex-direction:column;gap:12px;
  }
  .review-head{display:flex;align-items:center;gap:12px;}
  .review-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--tide);flex-shrink:0;}
  .review-name{font-size:14px;font-weight:600;color:var(--text-light);}
  .review-time{font-size:12px;color:var(--text-muted);}
  .review-stars{color:var(--sand);font-size:14px;letter-spacing:1px;}
  .review-text{font-size:14px;line-height:1.55;color:var(--text-muted);}
  .reviews-loading, .reviews-error{color:var(--text-muted);font-size:14px;grid-column:1/-1;}
  .reviews-link{display:inline-block;margin-top:28px;font-size:14px;color:var(--sand-soft);font-weight:600;}
  .reviews-attribution{margin-top:10px;font-size:12px;color:var(--text-muted);}
  @media (max-width:860px){.reviews-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:560px){.reviews-grid{grid-template-columns:1fr;}}

  /* ---------- Contact interest box ---------- */
  .interest-box{margin-top:28px;padding-top:24px;border-top:1px solid rgba(234,243,243,0.14);}
  .interest-box label{display:block;font-size:13px;color:var(--text-muted);margin-bottom:8px;}
  .interest-box select{
    width:100%;max-width:340px;padding:10px 12px;border-radius:8px;border:1px solid rgba(234,243,243,0.25);
    background:var(--mid);color:var(--text-light);font-size:14px;margin-bottom:14px;
  }
  .interest-box .btn-primary{display:inline-block;}

  /* ---------- Page CTA band ---------- */
  .page-cta{
    background:linear-gradient(180deg, var(--mid), var(--deep));
    text-align:center;
  }
  .page-cta h3{
    font-family:var(--serif);font-weight:500;
    font-size:clamp(24px,3vw,32px);color:var(--text-light);
    margin-bottom:24px;
  }

  /* ---------- Sub-page top spacing (clears fixed header) ---------- */
  .page-top{padding-top:170px;}
  @media (max-width:600px){
    .page-top{padding-top:140px;}
  }

  /* ---------- Scroll reveal (главная) ---------- */
  .js .reveal.is-pending,
  .js .reveal-group > .is-pending,
  .js .reveal-row > .is-pending{opacity:0;}
  .js .reveal.is-visible,
  .js .reveal-group > .is-visible,
  .js .reveal-row > .is-visible{
    opacity:1;
    animation:revealUp 0.8s cubic-bezier(0.2,0.7,0.2,1) backwards;
    animation-delay:var(--reveal-delay, 0ms);
  }
  .js .reveal.is-initial,
  .js .reveal-group > .is-initial,
  .js .reveal-row > .is-initial{opacity:1;animation:none;}
  @keyframes revealUp{
    from{opacity:0;translate:0 28px;}
    to{opacity:var(--reveal-opacity,1);translate:0 0;}
  }
  /* сетка «Что внутри»: линии-разделители рисуем на карточках, а не на подложке,
     иначе пока карточки скрыты, подложка просвечивает светлой плашкой */
  .js .explore-grid{background:none;gap:0;}
  .js .explore-card{box-shadow:inset 0 0 0 1px rgba(234,243,243,0.06);}
  @media (prefers-reduced-motion: reduce){
    .js .reveal,
    .js .reveal-group > *,
    .js .reveal-row > *{opacity:1;animation:none !important;}
  }


  /* ---------- FAQ / Частые вопросы ---------- */
  .home-faq{padding:70px 0 90px;}
  .home-faq .section-head{margin-bottom:34px;}
  .faq-list{border-top:1px solid rgba(234,243,243,0.14);}
  .faq-item{border-bottom:1px solid rgba(234,243,243,0.14);}
  .faq-h{font:inherit;margin:0;}
  .faq-q{
    width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;
    padding:24px 0;text-align:left;
    font-family:var(--serif);font-weight:500;font-size:20px;line-height:1.35;color:var(--text-light);
    transition:color 0.2s;
  }
  .faq-q:hover{color:var(--sand-soft);}
  .faq-icon{
    position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:50%;
    border:1px solid rgba(234,243,243,0.25);
    transition:transform 0.3s ease, border-color 0.2s, background 0.2s;
  }
  .faq-icon::before,.faq-icon::after{
    content:"";position:absolute;left:50%;top:50%;
    width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:1px;background:var(--sand);
  }
  .faq-icon::after{transform:rotate(90deg);}
  .faq-q:hover .faq-icon{border-color:rgba(227,168,87,0.6);}
  .faq-item.is-open .faq-icon{transform:rotate(45deg);border-color:var(--sand);}
  .faq-a{
    display:grid;grid-template-rows:0fr;visibility:hidden;
    transition:grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
  }
  .faq-item.is-open .faq-a{grid-template-rows:1fr;visibility:visible;transition-delay:0s;}
  .faq-a-clip{overflow:hidden;min-height:0;}
  .faq-a-body{padding:0 60px 26px 0;max-width:78ch;}
  .faq-a-body p{font-size:16px;color:var(--text-muted);}
  .faq-a-body p + p{margin-top:14px;}
  @media (max-width:600px){
    .faq-q{font-size:17px;padding:20px 0;gap:16px;}
    .faq-icon{flex-basis:32px;width:32px;height:32px;}
    .faq-a-body{padding-right:0;}
    .faq-a-body p{font-size:15px;}
  }
  @media (prefers-reduced-motion: reduce){
    .faq-a,.faq-icon{transition:none !important;}
  }


  /* ---------- Reviews carousel (home) ---------- */
  .home-reviews{padding:70px 0 90px;}
  .home-reviews .section-head{margin-bottom:34px;}
  .review-scroll{align-items:flex-start;}
  .review-card{
    flex:0 0 340px;scroll-snap-align:start;
    background:var(--mid);border:1px solid rgba(234,243,243,0.1);border-radius:6px;
    padding:26px 26px 22px;display:flex;flex-direction:column;gap:16px;
    min-height:475px;
  }
  .review-head{display:flex;align-items:center;gap:14px;}
  .review-avatar{
    flex:0 0 44px;width:44px;height:44px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:var(--tide);color:#fff;font-weight:600;font-size:18px;
  }
  .review-name{font-family:var(--serif);font-weight:500;font-size:17px;color:var(--text-light);line-height:1.25;}
  .review-stars{color:var(--sand);font-size:14px;letter-spacing:2px;margin-top:3px;}
  .review-text{
    font-size:15px;line-height:1.6;color:var(--text-muted);white-space:pre-line;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;overflow:hidden;
  }
  .review-card.is-expanded .review-text{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;}
  .review-toggle{align-self:flex-start;margin-top:auto;font-size:14px;font-weight:600;color:var(--sand-soft);padding:2px 0;}
  .review-toggle:hover{color:var(--sand);}
  .review-toggle[hidden]{display:none;}
  @media (max-width:600px){
    .review-card{flex-basis:84%;padding:22px 20px 18px;min-height:440px;}
  }

  .reviews-widget{margin-bottom:44px;}


  /* ---------- Карусель курсов на главной: карточки шире, целиком помещаются в экран ---------- */
  .course-scroll .course-card{flex:0 0 calc((100% - 44px) / 3);}
  .course-scroll .course-card-media{aspect-ratio:4/3;}
  .course-scroll .course-card-photo{position:absolute;inset:0;}
  @media (max-width:900px){
    .course-scroll .course-card{flex-basis:calc((100% - 22px) / 2);}
  }
  @media (max-width:560px){
    .course-scroll .course-card{flex-basis:82%;}
  }

  /* стрелки каруселей не должны выходить за край экрана на средних ширинах */
  @media (max-width:1180px){
    .course-scroll-arrow.prev{left:2px;}
    .course-scroll-arrow.next{right:2px;}
  }

  /* ---------- Разделение блоков на главной ---------- */
  :root{--band:#0B2E43;}
  .home-courses, .home-trips, .home-faq, .home-reviews{position:relative;}
  /* чередование фона: курсы — тёмный, поездки — светлее, FAQ — тёмный, отзывы — светлее */
  .home-trips, .home-reviews{
    background:linear-gradient(180deg, #0B2E43 0%, #0D3550 100%);
  }
  .home-courses, .home-faq{background:var(--deep);}
  /* тонкая песочная линия на стыке блоков */
  .home-courses::before, .home-trips::before, .home-faq::before, .home-reviews::before, .explore::before{
    content:"";position:absolute;top:0;left:0;right:0;height:1px;
    background:linear-gradient(90deg, transparent 0%, rgba(227,168,87,0.55) 50%, transparent 100%);
  }
  .explore{position:relative;}
  /* у блока «Фридайв путешествия» отступы как у остальных главных блоков */
  .home-trips{padding:80px 0 90px;}
  .home-trips .section-head{margin-bottom:34px;}
  .home-trips .trip-grid{margin-top:0;}
  .home-trips .home-courses-more{margin-top:32px;}
  /* карточки на светлом фоне чуть заметнее */
  .home-trips .trip-card{background:rgba(7,26,38,0.45);}

  @media (max-width:860px){
    .btn-primary,.btn-ghost{padding:12px 20px;font-size:14px;}
  }


/* Floating WhatsApp button */
.wa-float{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:90;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--sand);color:var(--deep);box-shadow:0 6px 20px rgba(0,0,0,.35);transition:transform .2s,background .2s;}
.wa-float:hover{transform:translateY(-2px);background:var(--sand-soft);}
.wa-float svg{width:28px;height:28px;}
@media (prefers-reduced-motion:reduce){.wa-float{transition:none;}}
.error-page{min-height:60vh;display:flex;align-items:center;text-align:center;}
.error-page h2{font-family:var(--serif);font-size:clamp(32px,6vw,56px);margin-bottom:16px;}
.error-page p{color:var(--text-muted);max-width:480px;margin:0 auto 28px;}
