:root{
  --m-max: 1400px;
  --m-pad: 20px;
  --m-text: #111;
  --m-muted: rgba(17,17,17,.7);
  --m-line: rgba(0,0,0,.12);
  --m-accent: #21c6c3; /* turquoise */
  --m-accent-hover: #18b4b1;
  --m-dark: #121212;
  --m-dark-2: #0c0c0c;
  --m-white: #fff;
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--m-text);
  background:#fff;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto}

.m-container{
  max-width:var(--m-max);
  margin:0 auto;
  padding:0 var(--m-pad);
}

.m-main{min-height:60vh}

/* Header: sticky */
.m-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.m-header__top{padding:14px 0}
.m-header__top-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:16px;
  align-items:center;
}

.m-header__logo{
  font-weight:800;
  letter-spacing:.04em;
  font-size:24px;
  text-transform:uppercase;
}

.m-header__contacts{
  justify-self:end;
  text-align:right;
  font-size:14px;
  line-height:1.3;
}
.m-header__addr{color:var(--m-muted)}
.m-header__phone{font-weight:600}

.m-header__divider{
  height:1px;
  background:rgba(0,0,0,.10);
}

/* Social */
.m-social{display:flex; gap:10px; align-items:center}
.m-social__link{
  width:28px; height:28px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  background:rgba(0,0,0,.04);
  transition:transform .2s ease, background .2s ease;
}
.m-social__link svg{width:16px; height:16px; fill:currentColor}
.m-social__link:hover{transform:translateY(-1px); background:rgba(0,0,0,.07)}

/* Primary nav (stretched items) */
.m-header__nav{padding:10px 0}
.m-nav__list{
  list-style:none;
  margin:0; padding:0;
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  gap:10px;
}
.m-nav__item{display:flex; justify-content:center}
.m-nav__link{
  display:block;
  width:100%;
  text-align:center;
  padding:10px 8px;
  border-radius:999px;
  font-weight:600;
  font-size:18px;
  transition:background .2s ease, color .2s ease;
}
/* hover + active page */
.m-nav__link:hover,
.m-nav__item.current-menu-item > .m-nav__link,
.m-nav__item.current_page_item > .m-nav__link{
  background: rgba(33,198,195,.12);
  color: #0d5e5d;
}

/* ACTIVE menu item — works for BOTH: fallback and WP menu */
.m-nav__link:hover,
.m-nav__item.current-menu-item > .m-nav__link,
.m-nav__item.current_page_item > .m-nav__link,
.m-nav__item.current-menu-ancestor > .m-nav__link,

.m-nav__list > li.current-menu-item > a,
.m-nav__list > li.current_page_item > a,
.m-nav__list > li.current-menu-ancestor > a{
  background: rgba(33,198,195,.12);
  color: #0d5e5d;
}



/* Hero slider */
.m-hero{
  position:relative;
  overflow:hidden;
}

.m-hero__swiper{
  width:100%;
}

.m-hero__slide{
  position:relative;
  min-height:740px;
  overflow: hidden;
  background: none;
}

/* слой с картинкой */
.m-hero__slide::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--m-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease;
  will-change: transform;
}

/* затемнение/градиент как было */
.m-hero__slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.10) 100%),
              radial-gradient(60% 80% at 20% 50%, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 70%);
  pointer-events:none;
}

/* активный слайд — медленно приближается */
.swiper-slide-active.m-hero__slide::before{
  transform: scale(1.12);
}



.m-hero__slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(60% 80% at 20% 50%, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 70%);
  pointer-events:none;
}

.m-hero__content{
  position:relative;
  z-index:2;
  min-height:540px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  max-width:900px;
  padding:40px 0;
}

.m-hero__small{
  font-size:20px;
  font-weight:500;
  color:rgba(255,255,255,.92);
  margin-bottom:16px;
}

.m-hero__title{
  margin:0 0 28px;
  font-weight:800;
  line-height:1.4;
  color:#fff;
  font-size:56px;
  letter-spacing: 0em;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-weight: 700;
    background: #3e3e3e;
    color: #fff;
    font-size: 16px;
    font-family: Montserrat;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.m-btn--primary{
  background:var(--m-accent);
  color:#003c3b;
  box-shadow:0 10px 24px rgba(33,198,195,.25);
}
.m-btn--primary:hover{
  background:var(--m-accent-hover);
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(33,198,195,.32);
}

/* Controls bottom-left on image */
.m-hero__controls{
  position:absolute;
  left: calc((100vw - var(--m-max)) / 2 + var(--m-pad));
  bottom:26px;
  z-index:5;
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  user-select:none;
}

@media (max-width: 1440px){
  .m-hero__controls{ left: var(--m-pad); }
}

.m-hero__arrow{
    width: 44px;
    height: 44px;
    background: rgb(0 0 0 / 0%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-style: none;
}
.m-hero__arrow svg{width:20px; height:20px}

span.swiper-pagination-current {
    padding-right: 2px;
}

span.swiper-pagination-total {
    padding-left: 2px;
}

.m-hero__fraction {
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 14px;
    text-align: center;
}

/* Content base */
.m-content{padding:48px 0}
.m-article__title{margin:0 0 18px; font-size:40px; font-weight:800}
.m-article__body{font-size:18px; line-height:1.7}

/* Footer */
.m-footer{
  background:var(--m-dark);
  color:rgba(255,255,255,.92);
  padding:56px 0 0;
}
.m-footer__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:28px;
}
.m-footer__title{
  margin:0 0 16px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
}
.m-footer__links{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.m-footer__links a{
  color:rgba(255,255,255,.82);
  font-size:14px;
  transition:color .2s ease, transform .2s ease;
}
.m-footer__links a:hover{color:#fff; transform:translateX(2px)}
.m-footer__contact{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:14px;
  color:rgba(255,255,255,.82);
}
.m-footer__contact a{color:rgba(255,255,255,.92)}
.m-footer__social-label{margin-top:10px; font-weight:700; color:#fff}

.m-social--footer .m-social__link{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
}
.m-social--footer .m-social__link:hover{
  background:rgba(255,255,255,.14);
}

.m-footer__bottom{
  margin-top:42px;
  padding:16px 0;
  background:var(--m-dark-2);
  border-top:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:rgba(255,255,255,.70);
}

/* =========================
   MOBILE BAR + OFFCANVAS
========================= */

.m-header__mobilebar{
  display:none;
  background:#fff;
}

.m-header__mobilebar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
}

.m-header__mobilelogo{
  font-weight:800;
  letter-spacing:.04em;
  font-size:20px;
  text-transform:uppercase;
  color:var(--m-text);
}

/* burger: two thin lines */
.m-burger{
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.m-burger span{
  display:block;
  width:28px;
  height:2px;
  background:#111;
  border-radius:2px;
}

/* offcanvas */
.m-offcanvas{
  position:fixed;
  inset:0;
  z-index:3000;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}

.m-offcanvas__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
  opacity:0;
  transition:opacity .25s ease;
}

.m-offcanvas__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width: 100%;
  background:#fff;
  transform:translateX(110%);
  transition:transform .28s ease;
  display:flex;
  flex-direction:column;
  padding:22px 20px 18px;
}

/* offcanvas header row */
.m-offcanvas__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 14px;
}

.m-offcanvas__title{
  font-size:16px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#111;
}


.m-offcanvas__close{
  align-self:flex-end;
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  cursor:pointer;
  position:relative;
}
.m-offcanvas__close:before,
.m-offcanvas__close:after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:22px;
  height:2px;
  background:#111;
  border-radius:2px;
  transform-origin:center;
}
.m-offcanvas__close:before{ transform:translate(-50%,-50%) rotate(45deg); }
.m-offcanvas__close:after{  transform:translate(-50%,-50%) rotate(-45deg); }

.m-offcanvas__nav{
  margin-top:10px;
  flex:1;
  overflow:auto;
}

/* menu inside panel (when WP menu assigned) */
.m-offcanvas__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.m-offcanvas__menu a{
  color:#111;
  font-size:18px;
  font-weight:700;
}

/* if fallback outputs .m-nav__list/.m-nav__link, still make it pretty inside panel */
.m-offcanvas .m-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.m-offcanvas .m-nav__item{justify-content:flex-start}
.m-offcanvas .m-nav__link{
  width:auto;
  text-align:left;
  padding-bottom:3px;
  border-radius:0;
  font-size:23px;
  font-weight:700;
}

.m-offcanvas__separator{
  height:1px;
  background: rgba(0,0,0,.10);
  margin-top: 16px;
}



.m-offcanvas .m-nav__link:hover{
  background:transparent;
  color:#111;
}

.m-offcanvas__bottom{
  padding-top:14px;
}

.m-offcanvas__phone{
  display:inline-block;
  font-size:18px;
  font-weight:800;
  color:#111;
}

/* open state */
.m-offcanvas.is-open{
  opacity:1;
  pointer-events:auto;
}
.m-offcanvas.is-open .m-offcanvas__backdrop{ opacity:1; }
.m-offcanvas.is-open .m-offcanvas__panel{ transform:translateX(0); }

body.m-no-scroll{ overflow:hidden; }

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

@media (max-width: 980px){
  /* show mobile, hide desktop header */
  .m-header__mobilebar{ display:block; }
  .m-header__desktop{ display:none; }

  /* остальной responsive из твоего архива */
  .m-header__top-inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand contacts"
      "social social";
    row-gap:10px;
  }
  .m-header__social{grid-area:social}
  .m-header__brand{grid-area:brand}
  .m-header__contacts{grid-area:contacts}
  .m-nav__list{grid-template-columns: repeat(4, 1fr)}
  .m-hero__title{font-size:52px}
  .m-hero__content{max-width:720px}
  .m-footer__grid{grid-template-columns: repeat(2, 1fr)}
}

@media (max-width: 560px){
  :root{--m-pad:16px}
  .m-header__top{padding:12px 0}
  .m-header__logo{font-size:20px}
  .m-header__contacts{font-size:13px}
  .m-nav__list{grid-template-columns: repeat(2, 1fr); gap:8px}
  .m-nav__link{font-size:13px; padding:10px 6px}
  .m-hero__slide,
  .m-hero__content{min-height:70vh}
  .m-hero__small{font-size:18px}
  .m-hero__title{font-size:34px}
  .m-hero__controls{bottom:18px}
  .m-footer{padding-top:44px}
  .m-footer__grid{grid-template-columns: 1fr}
}


/* =========================
   PARTNERS
========================= */

.m-partners{
  padding: 30px 0;
}

.m-partners__swiper{
  width: 100%;
}

.m-partners .swiper-wrapper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
}

.m-partners__item{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
}

.m-partners__item img{
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;

  /* серая маска */
  filter: grayscale(100%);
  opacity: .6;

  transition:
    filter .3s ease,
    opacity .3s ease;
}


.m-partners__item img:hover{
}


/* =========================
   PARTNERS — MOBILE NO SLIDER
========================= */
@media (max-width: 768px){
  .m-partners__swiper{
    overflow: visible;
  }

  .m-partners__swiper .swiper-wrapper{
  }

  .m-partners__swiper .swiper-slide{
    width: 100% !important;
    margin-bottom: 16px;
  }
}



/* =========================
   TICKETS PAGE
========================= */

.m-tickets{
  padding: 30px 0;
}

.m-page-title{
  margin: 0 0 30px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.m-tickets__prices{
  display: grid;
  gap: 20px;
  max-width: 520px;
}

.m-tickets__item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(0,0,0,.03);
}

.m-tickets__label{
  font-size: 18px;
  font-weight: 500;
  color: var(--m-muted);
}

.m-tickets__price{
  font-size: 22px;
  font-weight: 800;
  color: var(--m-text);
}

.m-tickets__action{
  margin-top: 30px;
}

.m-tickets__text{
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,.82);
}

.m-tickets__text p{
  margin: 0 0 14px;
}


/* mobile */
@media (max-width: 560px){
  .m-page-title{
    font-size: 36px;
  }

  .m-tickets__item{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .m-tickets__price{
    font-size: 20px;
  }
}


/* =========================
   LEGAL / PAYMENT PAGES
========================= */

.m-legal{
  padding: 30px 0;
}

.m-legal__text{
  max-width: 820px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--m-text);
}

.m-legal__text h2{
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 800;
}

.m-legal__text p{
  margin: 0 0 14px;
}

@media (max-width: 560px){
  .m-legal__text{
    font-size: 16px;
  }

  .m-legal__text h2{
    font-size: 20px;
  }
}


/* =========================
   REFUND FORM
========================= */

.m-refund-form{
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(0,0,0,.10);
  max-width: 820px;
}

.m-refund-form__title{
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
}

.m-form{
  display: grid;
  gap: 14px;
}

.m-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.m-form__field{
  display: grid;
  gap: 8px;
}

.m-form__label{
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.72);
}

.m-form__input,
.m-form__textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.m-form__textarea{
  resize: vertical;
  min-height: 120px;
}

.m-form__input:focus,
.m-form__textarea:focus{
  border-color: rgba(33,198,195,.55);
  box-shadow: 0 0 0 4px rgba(33,198,195,.12);
}

.m-form__note{
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

@media (max-width: 560px){
  .m-form__grid{
    grid-template-columns: 1fr;
  }
}


/* =========================
   REQUISITES
========================= */

.m-requisites{
  padding: 30px 0;
}

.m-requisites__list{
  margin-top: 24px;
  max-width: 820px;
  display: grid;
  gap: 14px;
}

.m-requisites__item{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0,0,0,.03);
  border-radius: 14px;
}

.m-requisites__label{
  font-weight: 700;
  color: rgba(0,0,0,.65);
}

.m-requisites__value{
  font-weight: 500;
  color: var(--m-text);
  line-height: 1.4;
}

@media (max-width: 560px){
  .m-requisites__item{
    grid-template-columns: 1fr;
  }

  .m-requisites__label{
    font-size: 14px;
  }

  .m-requisites__value{
    font-size: 15px;
  }
}


/* =========================
   SHOP (placeholder)
========================= */

.m-shop{
  padding: 30px 0;
}

.m-shop__wrap{
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-shop__box{
  text-align: center;
  max-width: 760px;
  padding: 26px 22px;
}

.m-shop__title{
  margin-bottom: 12px;
}

.m-shop__text{
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--m-muted);
}

@media (max-width: 560px){
  .m-shop__wrap{
    min-height: 50vh;
  }
  .m-shop__text{
    font-size: 16px;
  }
}


























/* ===== О музее ===== */

.pm-about-wrap {
  width: 100%;
}

/* HERO 16:9 */
.pm-about-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pm-about-hero::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.pm-about-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Затемнение поверх картинки */
.pm-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Контент */
.pm-about-content {
  width: 100%;
}

.pm-about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 20px;
}

.pm-about-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #111;
}

/* Адаптив */
@media (max-width: 768px) {
  .pm-about-container {
    padding: 64px 16px;
  }
}


/* =========================
   EXCURSIONS PAGE
========================= */

.m-excursions-hero{
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.m-excursions{
  padding: 30px 0;
}

.m-excursions__intro{
  max-width: 980px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--m-text);
  margin: 0 0 22px;
}

.m-excursions__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.m-excursions__card{
  padding: 22px 22px;
  border-radius: 18px;
  background: rgba(0,0,0,.03);
}

.m-excursions__title{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.m-excursions__list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(0,0,0,.78);
  line-height: 1.6;
  font-size: 16px;
}

.m-excursions__note{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.10);
  color: rgba(0,0,0,.75);
  line-height: 1.6;
  font-size: 16px;
}

.m-excursions__link{
  color: var(--m-text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,.35);
}

.m-excursions__link:hover{
  border-bottom-color: rgba(0,0,0,.75);
}

.m-excursions__muted{
  color: rgba(0,0,0,.55);
}

/* mobile */
@media (max-width: 980px){
  .m-excursions__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .m-excursions__intro{
    font-size: 16px;
  }
  .m-excursions__card{
    padding: 18px 16px;
  }
}



/* =========================
   CONTACTS
========================= */
.m-contacts { padding: 30px 0 0; }
.m-contacts__title{
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.m-contacts__top{
  padding-bottom: 18px;
}
.m-contacts__line{
  font-size: 18px;
  line-height: 1.45;
  color: rgba(0,0,0,.85);
}
.m-contacts__link{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.22);
}
.m-contacts__link:hover{ border-bottom-color: rgba(0,0,0,.55); }

.m-contacts-map{ padding: 0 0 30px; }
.m-contacts-map__wrap{
  height: 450px;
  display: grid;
  grid-template-columns: 1fr 4fr; /* 1/5 + 4/5 */
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.m-contacts-map__list{
  height: 450px;
  overflow: auto;
  border-right: 1px solid rgba(0,0,0,.10);
  padding-right: 14px;
}

/* Accordion */
.m-acc{ padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.10); }
.m-acc__btn{
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: inherit;
}
.m-acc__title{ font-weight: 700; font-size: 16px; color: rgba(0,0,0,.92); }
.m-acc__chev{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(0,0,0,.55);
  border-bottom: 2px solid rgba(0,0,0,.55);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.m-acc__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.m-acc__text{ padding: 0 0 6px; color: rgba(0,0,0,.75); font-size: 14px; }
.m-acc__small{ padding-bottom: 10px; color: rgba(0,0,0,.55); font-size: 12px; }

.m-acc.is-active .m-acc__panel{ max-height: 120px; }
.m-acc.is-active .m-acc__chev{ transform: rotate(45deg); }

.m-contacts-map__map{ height: 450px; }
.m-ymap{
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}
.m-ymap-fallback{
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.7);
  padding: 20px;
  text-align: center;
}

/* Mobile */
@media (max-width: 980px){
  .m-contacts__title{ font-size: 34px; }
  .m-contacts-map__wrap{
    grid-template-columns: 1fr;
    height: auto;
  }
  .m-contacts-map__list{
    height: auto;
    border-right: 0;
    padding-right: 0;
  }
  .m-contacts-map__map,
  .m-ymap,
  .m-ymap-fallback{
    height: 360px;
  }
}


/* =========================
   CONTACTS — TOP BLOCK
========================= */

.m-contacts__card{
  margin: 18px 0 26px;
  max-width: 620px;
  padding: 22px 24px;
  background: rgba(0,0,0,.03);
  border-radius: 18px;
  display: grid;
  gap: 14px;
}

.m-contacts__item{
  display: grid;
  gap: 4px;
}

.m-contacts__label{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.55);
}

.m-contacts__value{
  font-size: 18px;
  font-weight: 500;
  color: rgba(0,0,0,.9);
}

.m-contacts__value a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

.m-contacts__value a:hover{
  border-bottom-color: rgba(0,0,0,.6);
}

/* mobile */
@media (max-width: 560px){
  .m-contacts__card{
    padding: 18px 16px;
  }
  .m-contacts__value{
    font-size: 16px;
  }
}


/* =========================
   CONTACTS MAP — MOBILE SELECT
========================= */

.m-contacts-map__select{
  display: none;
  margin-bottom: 14px;
}

.m-contacts-map__select-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
}

.m-contacts-map__select-el{
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  font-family: inherit;
}

/* Mobile only */
@media (max-width: 980px){
  .m-contacts-map__select{
    display: block;
  }

  .m-contacts-map__list{
    display: none;
  }
}


/* =========================
   ABOUT PAGE
========================= */

.m-about-hero{
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.m-about{
  padding: 30px 0;
}

.m-about__title{
  margin: 0 0 14px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.m-about__text{
  max-width: 1400px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,.82);
}

.m-about__text p{
  margin: 0 0 14px;
}

/* facts block */
.m-about-facts{
  background: #244855;
  padding: 40px 0;
  color: #fff;
}

.m-about-facts__title{
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.m-about-facts__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.m-fact{
  padding: 6px 0;
  text-align: left;
}


.m-fact__icon{
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

.m-fact__icon svg{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.m-fact__num{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.m-fact__txt{
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 220px;
}


/* responsive */
@media (max-width: 980px){
  .m-about__title{ font-size: 34px; }
  .m-about__text{ font-size: 16px; }
  .m-about-facts__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .m-about-hero{ height: 320px; }
  .m-about-facts{ padding: 30px 0; }
  .m-about-facts__title{ font-size: 26px; }
  .m-about-facts__grid{
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 20px;
}

}



/* =========================
   GRANT PAGE
========================= */

.m-grant-hero{
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* gradient block */
.m-grant{
  padding: 40px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #b5efdd 100%);
}

.m-grant__box{
  max-width: 980px;
}

.m-grant__title{
  margin: 0 0 14px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.m-grant__text{
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,.82);
  margin-bottom: 18px;
}

.m-grant__btn{
  padding-left: 28px;
  padding-right: 28px;
}

/* =========================
   MODAL (generic)
========================= */

.m-modal{
  position: fixed;
  inset: 0;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.m-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.m-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.m-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.m-modal__close{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  cursor: pointer;
}

.m-modal__close:before,
.m-modal__close:after{
  content:"";
  position:absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: rgba(0,0,0,.75);
  transform-origin: center;
}

.m-modal__close:before{ transform: translate(-50%,-50%) rotate(45deg); }
.m-modal__close:after{  transform: translate(-50%,-50%) rotate(-45deg); }

.m-modal__title{
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
}

.m-modal__text{
  margin: 0 0 16px;
  color: rgba(0,0,0,.75);
  line-height: 1.6;
}

/* form */
.m-form{
  display: grid;
  gap: 12px;
}

.m-form__row{
  display: grid;
  gap: 6px;
}

.m-form__label{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.55);
}

.m-form__input,
.m-form__textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.m-form__input:focus,
.m-form__textarea:focus{
  border-color: rgba(0,0,0,.35);
}

.m-form__submit{
  margin-top: 6px;
}

/* mobile */
@media (max-width: 560px){
  .m-grant-hero{ height: 320px; }
  .m-grant__title{ font-size: 32px; }
  .m-grant__text{ font-size: 16px; }
  .m-modal__panel{ padding: 18px 16px; }
}


/* =========================
   SINGLE POST (NEWS)
========================= */

.m-single{
  padding: 30px 0;
}

.m-single__title{
  margin: 0 0 14px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.m-single__content{
  max-width: 980px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,.82);
}

.m-single__content p{
  margin: 0 0 14px;
}

.m-single__content img{
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

@media (max-width: 980px){
  .m-single__title{ font-size: 24px; }
  .m-single__content{ font-size: 16px; }
}


/* =========================
   HOME: STRIP + STORY BLOCK
========================= */

.m-gradient-strip{
  width: 100%;
  height: 15px;
  background: linear-gradient(to right, #afecda 0%, #020202 100%);
}

/* Block */
.m-story{
  padding: 30px 0 40px;
}

.m-story__title{
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 1080px;
  margin: 15px auto 12px auto;
}

/* Filter row */
.m-story__filter{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.m-story__filter-label{
  font-weight: 700;
  color: rgba(0,0,0,.7);
}

.m-story__tag{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(0,0,0,.75);
  transition: transform .18s ease, color .18s ease;
}
.m-story__tag:hover{ transform: translateY(-1px); color: rgba(0,0,0,1); }

/* Active tag: gradient like strip */
.m-story__tag.is-active{
  background: linear-gradient(to right, #afecda 0%, #020202 100%);
  color: #fff;
}

/* Swiper area */
.m-story__swiper{
  width: 100%;
  padding-bottom: 60px; /* место под контролы */
}

.m-story__slide{
  /* без лишнего фона */
}

.m-story__card{
  display: flex;
  flex-direction: column;
  align-items: center;      /* центр по горизонтали */
  text-align: center;       /* текст по центру */
  gap: 18px;
  padding: 10px 0 0;
}


.m-story__headline{
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.m-story__text{
  max-width: 720px;   /* чтобы текст не растягивался */
}


.m-story__sub{
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,.8);
  margin-bottom: 14px;
}

.m-story__metro{
  margin-bottom: 14px;
  display: inline-block; /* чтобы центрировалось */
  text-align: left;      /* но текст внутри был слева */
}


.m-metro{
  position: relative;
  padding-left: 18px;
  margin: 0 0 6px;
  font-size: 16px;
  color: rgba(0,0,0,.85);
}

.m-metro:before{
  content:"";
  position:absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
}

/* Цвета веток (можешь поменять под реальные) */
.m-metro--blue:before{ background: #0078d7; }
.m-metro--green:before{ background: #2bb673; }

.m-story__hours{
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,.75);
  margin-bottom: 12px;
}

.m-story__media img{
  width: 100%;
  max-width: 900px;   /* ограничение ширины */
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 auto;     /* центр */
}


/* Controls */
.m-story__controls{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.m-story__fraction{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  color: rgba(0,0,0,.8);
  min-width: 64px;
  text-align: center;
}

/* Swiper fraction by default can be width:100%, we override */
.m-story__fraction.swiper-pagination-fraction{
  width: auto !important;
}

.m-story__arrow{
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.m-story__arrow svg{ width: 20px; height: 20px; }
.m-story__arrow:hover{ transform: translateY(-1px); background: rgba(0,0,0,.08); }

/* Responsive */
@media (max-width: 980px){
  .m-story__title{ font-size: 28px; }
  .m-story__card{ grid-template-columns: 1fr; }
  .m-story__media img{ height: 320px; }
  .m-story__headline{ font-size: 24px; }
}

@media (max-width: 560px){
  .m-story{ padding: 24px 0 36px; }
  .m-story__tag{ font-size: 15px; }
  .m-story__media img{ height: 260px; border-radius: 16px; }
}


/* =========================
   HOME: ONLINE COLLECTION
========================= */

.m-collection{
  background: #0b0b0b; /* очень тёмно-серый */
  padding: 46px 0;
  color: #fff;
}

.m-collection__head{
  margin-bottom: 22px;
}

.m-collection__title{
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.m-collection__subtitle{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 720px;
}

/* grid */
.m-collection__grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}

/* card */
.m-collection-card{
  display: flex;
  flex-direction: column;
  background: transparent;
}

.m-collection-card__img img{
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.m-collection-card__name{
  margin: 12px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.m-collection-card__line{
  height: 1px;
  background: rgba(255,255,255,.18);
  width: 100%;
  margin-bottom: 10px;
  width: 70%;
    margin: auto;
}

.m-collection-card__meta{
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
  margin-top: 10px;
  text-align: center;
}

/* button */
.m-collection-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    max-width: 220px;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    background: #38c6c3;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: transform .18s ease, filter .18s ease;
    margin: auto;
}

.m-collection-card__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* responsive */
@media (max-width: 980px){
  .m-collection__grid{
    grid-template-columns: 1fr;
  }
  .m-collection__title{
    font-size: 32px;
  }
  .m-collection-card__img img{
    height: auto;
    border-radius: 16px;
  }
}


/* =========================
   HOME: NEWS
========================= */

.m-home-news{
  background: #fff;
  padding: 40px 0;
}

.m-home-news__title{
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.92);
}

.m-home-news__list{
  display: grid;
  gap: 16px;
}

.m-news-item{
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.m-news-item__name{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: rgba(0,0,0,.92);
}

.m-news-item__date{
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin-bottom: 12px;
}

.m-news-item__btn {
    display: inline-flex;
    height: 44px;
    padding: 0 8px;
    width: 200px;
    margin: auto;
}

.m-news-empty{
  color: rgba(0,0,0,.6);
  padding: 12px 0;
}

/* responsive */
@media (max-width: 980px){
  .m-home-news__title{ font-size: 32px; }
  .m-news-item__name{ font-size: 20px; }
}


/* =========================
   HOME: GRANT BLOCK
========================= */

.m-home-grant{
  padding: 50px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #b3eedc 100%);
}

.m-home-grant__inner{
  text-align: center;
}

.m-home-grant__logo img{
  width: 240px;
  max-width: 70vw;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.m-home-grant__title{
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.92);
}

.m-home-grant__line{
  width: 220px;
  height: 2px;
  background: rgba(0,0,0,.75);
  margin: 0 auto 12px;
}

.m-home-grant__subtitle{
  font-size: 16px;
  font-weight: 700;
  color: rgba(0,0,0,.75);
  margin-bottom: 16px;
}

/* текст левым краем, но ограничен 800px */
.m-home-grant__text{
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,.82);
}

.m-home-grant__text p{
  margin: 0;
}

.m-home-grant__btn-wrap{
  margin-top: 22px;
  text-align: center;
}


/* responsive */
@media (max-width: 980px){
  .m-home-grant__title{ font-size: 32px; }
  .m-home-grant__text{ font-size: 16px; }
}



/* =========================
   COLLECTION: slider only on mobile
========================= */

/* ПК: делаем как сетку (Swiper нам не мешает) */
@media (min-width: 769px){
  #mCollectionSwiper .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    transform: none !important;
  }

  #mCollectionSwiper .swiper-slide{
    width: auto !important;
    margin: 0 !important;
  }
}

/* Моб: обычный Swiper */
@media (max-width: 768px){
  #mCollectionSwiper{
    overflow: hidden;
  }

  #mCollectionSwiper .swiper-slide{
    height: auto;
  }

  /* чтобы карточки не прилипали к краям */
  #mCollectionSwiper{
    padding: 0 6px;
  }
}
