    :root{
      --ivory:#f4f1e0;
      --ivory-light:#fbf8ee;
      --burgundy:#4f0007;
      --burgundy-deep:#3d0005;
      --tab-bg:#f3ead8;
      --tab-line:#dfd3bf;
      --tab-active:#3e342d;
      --text:#15191d;
      --muted:#70695f;
      --accent:#0c7e7d;
    }

    *{box-sizing:border-box;}
    html{scroll-behavior:smooth;}
    body{
      margin:0;
      background:var(--ivory);
      color:var(--text);
      font-family:"Montserrat", Arial, sans-serif;
      font-weight:500;
      line-height:1.42;
      overflow-x:hidden;
    }
    a{color:inherit;text-decoration:none;}
    img{display:block;max-width:100%;}
    .page-width{width:80%;max-width:none;margin:0 auto;}

    /* ===== Общая шапка сайта из файла музея ===== */
    .header-area{
      background:#fff;
      position:relative;
      z-index:80;
      box-shadow:0 2px 10px rgba(0,0,0,.05);
    }
    .header-area .container,
    .footer-area .container{width:80%;max-width:none;}
    .header-right{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;}
    .header-search{flex:0 0 auto;}
    .header-search form{position:relative;display:flex;align-items:center;margin:0;}
    .header-search input{
      width:220px;height:36px;padding:0 36px 0 12px;border-radius:8px;border:1px solid #e5e7eb;
      background:#f3f4f6;color:#111827;font-size:13px;font-weight:500;transition:border-color .15s ease, background .15s ease;
    }
    .header-search input::placeholder{color:#6b7280;}
    .header-search input:focus{outline:none;background:#fff;border-color:var(--accent);}
    .header-search button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#6b7280;cursor:pointer;font-size:14px;padding:0;}
    .header-search button:hover{color:var(--accent);}
    .mainmenu #navigation{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin:0;}
    .mainmenu #navigation > li{list-style:none;}
    .nav-icon-link img{display:block;width:36px;height:36px;object-fit:contain;}
    .access-panel{display:none;gap:10px;padding:10px;margin-top:8px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;position:absolute;right:0;min-width:520px;box-shadow:0 12px 30px rgba(0,0,0,.12);z-index:90;}
    .access-panel.is-open{display:flex;flex-wrap:wrap;}
    .access-block{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#222;}
    .access-block button{border:1px solid #e5e7eb;background:#f3f4f6;border-radius:6px;padding:6px 8px;cursor:pointer;font-weight:600;}
    .access-block button.active{border-color:var(--accent);background:#e7f6f6;}

    /* Верхняя графическая плашка краеведения */
    .krai-strip{width:100%;background:var(--ivory);overflow:hidden;}
    .krai-strip img{width:100%;height:112px;object-fit:cover;object-position:center bottom;}

    /* Вкладки раздела + выпадающее меню Имен */
    .museum-tabs-wrap{width:100%;background:var(--tab-bg);border-bottom:1px solid rgba(79,0,7,.12);position:relative;z-index:45;}
    .museum-tabs{width:80%;margin:0 auto;display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));align-items:stretch;}
    .museum-tab-holder{position:relative;min-width:0;}
    .museum-tab,
    .museum-tab-holder > .museum-tab{
      min-height:56px;display:flex;align-items:center;justify-content:center;text-align:center;padding:9px 10px;background:#f7eedc;
      border-left:1px solid var(--tab-line);color:#111;font-size:14px;line-height:1.08;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
      width:100%;height:100%;
    }
    .museum-tabs > .museum-tab:last-child{border-right:1px solid var(--tab-line);}
    .museum-tab.is-active,.museum-tab-holder > .museum-tab.is-active{background:var(--tab-active);color:#fff;}
    .museum-tab:hover,.museum-tab-holder:hover > .museum-tab{background:var(--burgundy);color:#fff;}
    .names-dropdown{
      position:absolute;left:0;top:100%;width:430px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
      background:#fffaf0;border:1px solid var(--tab-line);box-shadow:0 16px 28px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(8px);
      transition:opacity .18s ease, transform .18s ease, visibility .18s ease;z-index:99;padding:8px;
    }
    .museum-tab-holder:hover .names-dropdown,.museum-tab-holder:focus-within .names-dropdown{opacity:1;visibility:visible;transform:translateY(0);}
    .names-dropdown a{display:block;padding:10px 12px;color:#231b16;font-size:14px;line-height:1.15;font-weight:700;border-radius:6px;text-transform:none;letter-spacing:0;}
    .names-dropdown a:hover{background:var(--burgundy);color:#fff;}

    .museum-breadcrumb{display:flex;align-items:center;gap:8px;padding:19px 0 16px;color:var(--muted);font-size:15px;line-height:1.2;font-weight:500;margin:0;}
    .museum-breadcrumb a{color:#686158;}
    .museum-breadcrumb a:hover{color:var(--burgundy);}
    .museum-breadcrumb span{color:#423c35;}
    .museum-graphic-hero{width:100%;margin:0 auto 36px;overflow:hidden;background:var(--burgundy);}
    .museum-graphic-hero img{width:100%;height:auto;object-fit:cover;}

    /* ===== Страница музея ===== */
    .museum-page{width:100%;padding:8px 0 72px;background:var(--ivory);}
    .intro-layout{width:100%;display:grid;grid-template-columns:minmax(0, 1fr) 160px;gap:46px;align-items:start;}
    .intro-main h2{max-width:850px;margin:0 0 13px;color:var(--text);font-size:34px;line-height:1.15;font-weight:700;letter-spacing:.01em;}
    .intro-main h3,.section-title{margin:0 0 10px;color:var(--text);font-size:22px;line-height:1.2;font-weight:700;}
    .intro-top{display:grid;grid-template-columns:minmax(390px,.92fr) minmax(390px,.72fr);gap:40px;align-items:start;margin-bottom:26px;}
    .intro-text p,.intro-main > p,.museum-section p,.red-copy p,.cloud-card p,.bottom-red p{margin:0 0 14px;color:var(--text);font-size:18px;line-height:1.42;font-weight:500;}
    .intro-main > p{max-width:1180px;margin-top:0;}
    .intro-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:7px;}
    .photo{width:100%;height:128px;object-fit:cover;background:#e5ddca;}
    .intro-photos .photo{height:148px;}
    .photo--bw{filter:grayscale(1);}
    .intro-bw-gallery{width:100%;max-width:950px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px;}
    .intro-bw-gallery .photo{height:130px;}
    .side-arrows{display:flex;justify-content:center;align-items:flex-start;padding-top:4px;}
    .side-arrows__img{width:150px;max-width:100%;height:auto;object-fit:contain;}
    .exp-note{margin:31px 0 14px;color:#2b261f;font-size:18px;line-height:1.35;font-weight:500;}
    .museum-block{margin-top:22px;}
    .block-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;margin:30px 0;}
    .gallery-4,.gallery-3,.gallery-2{display:grid;gap:16px;align-items:center;}
    .gallery-4{grid-template-columns:repeat(4,minmax(0,1fr));}
    .gallery-3{grid-template-columns:repeat(3,minmax(0,1fr));}
    .gallery-2{grid-template-columns:repeat(2,minmax(0,1fr));}
    .gallery-4 .photo{height:112px;}.gallery-3 .photo{height:128px;}.gallery-2 .photo{height:142px;}
    .museum-section h3{margin:0 0 9px;color:var(--text);font-size:28px;line-height:1.12;font-weight:700;}
    .museum-section p{font-size:18px;}

    .story-band{
      width:100%;display:grid;grid-template-columns:44% 56%;gap:0;align-items:center;margin:14px 0 31px;min-height:258px;
      background-image:url("/assets/img/Краеведение/графика/музей ф24 арт 4.png");background-repeat:no-repeat;background-position:center;background-size:100% 100%;
      padding:54px 64px;
    }
    .red-copy{min-height:146px;padding:0 24px 0 0;background:transparent;color:#fff;display:flex;flex-direction:column;justify-content:center;}
    .red-copy h3{margin:0 0 12px;color:#fff;font-size:26px;line-height:1.16;font-weight:700;}
    .red-copy p{color:#fff;font-size:17px;line-height:1.35;margin:0;font-weight:600;}
    .red-gallery{min-height:146px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:center;background:transparent;padding:0 0 0 22px;}
    .red-gallery .photo{height:104px;}

    .cloud-card{
      position:relative;min-height:190px;padding:48px 48px 42px;background:transparent;color:var(--text);
      background-image:url("/assets/img/Краеведение/графика/музей ф24 рамка.png");background-repeat:no-repeat;background-position:center;background-size:100% 100%;
    }
    .cloud-card h3{position:relative;margin:0 0 12px;color:var(--text);font-size:25px;line-height:1.14;font-weight:700;z-index:1;}
    .cloud-card p{position:relative;z-index:1;margin:0;font-size:18px;}

    .russian-row{width:100%;display:grid;grid-template-columns:42% 58%;gap:0;align-items:center;margin:34px 0 30px;}
    .russian-row .gallery-4{background:var(--ivory);padding:0 24px 0 0;}
    .style-panel{
      width:100%;min-height:250px;display:flex;align-items:center;background:transparent;color:#fff;padding:58px 68px;
      background-image:url("/assets/img/Краеведение/графика/музей ф24 арт 2.png");background-repeat:no-repeat;background-position:center;background-size:100% 100%;
    }
    .style-panel h3{margin:0 0 10px;color:#fff;font-size:27px;line-height:1.12;font-weight:700;}
    .style-panel p{margin:0;color:#fff;font-size:17px;line-height:1.36;font-weight:600;}

    .bottom-red-wrap{
      width:100%;display:grid;grid-template-columns:31% 69%;gap:0;align-items:center;margin-top:38px;min-height:260px;background:transparent;
      background-image:url("/assets/img/Краеведение/графика/музей ф24 арт 3.png");background-repeat:no-repeat;background-position:center;background-size:100% 100%;
    }
    .bottom-ornament-row{min-height:220px;background:transparent;}
    .bottom-red{min-height:220px;background:transparent;color:#fff;padding:62px 60px 58px 18px;display:flex;flex-direction:column;justify-content:center;}
    .bottom-red p{margin:0 0 11px;color:#fff;font-size:17px;line-height:1.36;font-weight:600;}
    .bottom-red p:last-child{margin-bottom:0;}

    /* ===== Страницы проекта Имена ===== */
    .project-area{background:var(--ivory);padding:0 0 28px;}
    .project-card{width:100%;background:rgba(255,255,255,.34);border-radius:0;border:0;border-left:8px solid var(--burgundy);padding:25px 34px 25px;box-shadow:none;}
    .project-card h2{margin:0 0 12px;color:var(--burgundy);font-size:30px;line-height:1.12;font-weight:800;}
    .project-card p{margin:0 0 12px;color:#111;font-size:17px;line-height:1.42;font-weight:500;}
    .project-card p:last-child{margin-bottom:0;}
    .names-page{background:var(--ivory);padding:8px 0 72px;}
    .name-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:46px;align-items:start;}
    .name-grid--bottom{margin-top:34px;}
    .poster-card{margin:0;padding:0;background:transparent;}
    .poster-card img{width:100%;height:auto;object-fit:contain;box-shadow:none;}
    .text-column{min-width:0;}
    .text-block{margin:0 0 23px;}
    .text-block:last-child{margin-bottom:0;}
    .text-block h3{margin:0 0 10px;color:#050505;font-size:22px;line-height:1.24;font-weight:800;}
    .text-block p{margin:0 0 14px;color:#050505;font-size:17px;line-height:1.42;font-weight:500;}
    .text-block p:last-child{margin-bottom:0;}
    .photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-content:start;}
    .photo-gallery a{display:block;background:#e1d7c7;overflow:hidden;border:0;min-height:136px;}
    .photo-gallery img{width:100%;height:136px;object-fit:cover;filter:saturate(.9);transition:.2s ease;}
    .photo-gallery a:hover img{transform:scale(1.03);}
    .no-photos{font-size:15px;color:var(--muted);font-weight:600;}

    /* ===== Важные ссылки перед футером ===== */
    .museum-important-links{background:#eef6f9;padding:38px 0 34px;}
    .museum-important-links h2{margin:0 0 28px;color:#15191d;font-size:27px;line-height:1.2;font-weight:700;text-align:center;}
    .important-links-shell{width:80%;max-width:none;margin:0 auto;position:relative;overflow:hidden;border-radius:15px;}
    .important-links-track{display:flex;gap:18px;transition:transform .3s ease-in-out;padding:6px 0;will-change:transform;}
    .important-links-track a{width:25%;min-width:25%;min-height:86px;flex:0 0 25%;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px 22px;background:#f9fbfb;border-radius:2px;color:#6b7280;font-size:16px;line-height:1.25;font-weight:700;text-decoration:none;transition:color .25s ease, background .25s ease;}
    .important-links-track a:hover{color:#008080;background:#e0f0f0;}
    .important-link-button{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(0,0,0,.35);color:#fff;cursor:pointer;z-index:5;font-size:28px;line-height:1;}
    .important-link-button--left{left:8px;}.important-link-button--right{right:8px;}
    #scrollToTop{position:fixed;bottom:20px;right:20px;width:42px;height:42px;background-color:#008080;color:#fff;border:0;padding:10px;border-radius:50%;cursor:pointer;display:none;z-index:1000;}
    #scrollToTop img{width:20px;height:20px;display:block;margin:auto;}

    .footer-area{background:#282b2f;color:#d9d9d9;padding:46px 0 24px;}
    .footer-area a{color:#d9d9d9;}
    .footer-area a:hover{color:#fff;}
    .footer-wid h3,.footer-wid h4{color:#fff;margin:0 0 18px;font-weight:800;}
    .footer-wid p{font-size:14px;line-height:1.5;font-weight:500;}
    .footer-wid ul{list-style:none;padding:0;margin:0;}
    .footer-wid li{margin:0 0 8px;}
    .footer-copyright{margin-top:24px;color:#d8d8d8;font-size:14px;font-weight:500;}

    @media (max-width:1280px){
      .page-width,.museum-tabs,.header-area .container,.footer-area .container,.important-links-shell{width:86%;}
      .intro-top{grid-template-columns:1fr 460px;gap:34px;}
      .intro-main h2{font-size:31px;}
      .intro-text p,.intro-main > p,.museum-section p,.cloud-card p,.text-block p{font-size:16px;}
      .red-copy p,.style-panel p,.bottom-red p{font-size:15px;}
      .story-band{padding:48px 54px;}
    }
    @media (max-width:1080px){
      .header-search{display:none;}
      .header-right{justify-content:flex-start;}
      .access-panel{position:static;min-width:0;width:100%;}
      .museum-tabs{overflow-x:auto;display:flex;scrollbar-width:thin;}
      .museum-tab,.museum-tab-holder > .museum-tab{min-width:165px;}
      .museum-tab-holder{flex:0 0 auto;}
      .names-dropdown{width:360px;}
      .intro-layout{grid-template-columns:1fr;}
      .side-arrows{display:none;}
      .intro-top{grid-template-columns:1fr;}
      .intro-photos{max-width:680px;}
      .story-band,.russian-row,.bottom-red-wrap,.block-row,.name-grid{grid-template-columns:1fr;}
      .red-gallery{padding:14px 0 0;}
      .russian-row .gallery-4{padding:0 0 20px;}
      .bottom-red-wrap{background-size:cover;}
      .bottom-ornament-row{display:none;}
      .bottom-red{padding:68px 60px;}
      .poster-card{max-width:820px;}
      .photo-gallery{grid-template-columns:repeat(4,minmax(0,1fr));}
      .important-links-track a{flex-basis:50%;min-width:50%;width:50%;}
    }
    @media (max-width:760px){
      .page-width,.museum-tabs,.header-area .container,.footer-area .container,.important-links-shell{width:92%;}
      .krai-strip img{height:84px;}
      .museum-tab,.museum-tab-holder > .museum-tab{min-width:142px;font-size:12px;min-height:50px;}
      .names-dropdown{width:300px;grid-template-columns:1fr;}
      .museum-breadcrumb{font-size:13px;}
      .museum-graphic-hero{margin-bottom:28px;}
      .museum-page{padding-top:4px;}
      .intro-main h2{font-size:27px;}
      .intro-main h3{font-size:20px;}
      .intro-photos,.intro-bw-gallery,.gallery-4,.gallery-3,.gallery-2,.red-gallery,.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
      .photo,.intro-photos .photo,.intro-bw-gallery .photo,.gallery-4 .photo,.gallery-3 .photo,.gallery-2 .photo,.red-gallery .photo,.photo-gallery img{height:165px;}
      .story-band,.style-panel,.bottom-red{padding:38px 28px;}
      .story-band,.style-panel,.bottom-red-wrap{background-size:cover;}
      .red-copy h3,.style-panel h3,.museum-section h3{font-size:24px;}
      .cloud-card{padding:34px 28px;}
      .project-card{padding:22px 22px 22px;border-left-width:6px;}
      .project-card h2{font-size:25px;}
      .text-block h3{font-size:20px;}
      .important-links-track a{flex-basis:100%;min-width:100%;width:100%;}
    }
    @media (max-width:520px){
      .intro-photos,.intro-bw-gallery,.gallery-4,.gallery-3,.gallery-2,.red-gallery,.photo-gallery{grid-template-columns:1fr;}
      .photo,.intro-photos .photo,.intro-bw-gallery .photo,.gallery-4 .photo,.gallery-3 .photo,.gallery-2 .photo,.red-gallery .photo,.photo-gallery img{height:210px;}
      .intro-text p,.intro-main > p,.museum-section p,.cloud-card p,.text-block p{font-size:15px;}
      .red-copy p,.style-panel p,.bottom-red p{font-size:14px;}
    }


    .side-arrows{
      align-self:stretch;
      display:flex;
      align-items:stretch;
      justify-content:center;
      padding-top:0;
      min-height:100%;
    }
    .side-arrows__img{
      width:150px;
      max-width:100%;
      height:100%;
      min-height:100%;
      object-fit:fill;
      object-position:center top;
    }
    .story-band{
      grid-template-columns:46% 54%;
      min-height:250px;
      padding:48px 62px;
    }
    .red-copy{padding-right:30px;}
    .red-gallery{padding-left:16px;}
    .red-gallery .photo{height:98px;}
    .russian-row{grid-template-columns:43% 57%;}
    .style-panel{
      min-height:235px;
      padding:52px 76px 50px 40px;
    }
    .bottom-red-wrap{
      grid-template-columns:38% 62%;
      min-height:248px;
    }
    .bottom-ornament-row{min-height:210px;}
    .bottom-red{
      min-height:210px;
      padding:52px 58px 50px 26px;
    }

     .names-page{padding-top:16px;}
    .names-page .name-grid--top{
      display:block;
      overflow:visible;
      margin:0 0 30px;
    }
    .names-page .name-grid--top::after{
      content:"";
      display:block;
      clear:both;
    }
    .names-page .name-grid--top .poster-card{
      float:left;
      width:48%;
      max-width:760px;
      margin:0 44px 24px 0;
    }
    .names-page .name-grid--top .poster-card img{
      width:100%;
      height:auto;
    }
    .names-page .name-grid--top .text-column{
      display:block;
      min-width:0;
    }
    .names-page .name-grid--bottom{
      display:grid;
      grid-template-columns:minmax(0,1fr) minmax(320px,.55fr);
      gap:34px;
      align-items:start;
      margin-top:16px;
    }
    .names-page .text-block{margin-bottom:20px;}
    .names-page .photo-gallery{
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:14px;
    }
    .names-page .photo-gallery a{min-height:128px;}
    .names-page .photo-gallery img{height:128px;}
    .project-area{padding-bottom:18px;}
    .project-card{margin-bottom:4px;}

    @media (max-width:1280px){
      .side-arrows__img{width:130px;}
      .story-band{padding:44px 52px;}
      .style-panel{padding:48px 64px 46px 34px;}
      .bottom-red{padding:48px 48px 46px 20px;}
      .names-page .name-grid--top .poster-card{width:48%;margin-right:36px;}
      .names-page .name-grid--bottom{grid-template-columns:minmax(0,1fr) minmax(300px,.5fr);}
    }
    @media (max-width:1080px){
      .side-arrows{display:none;}
      .story-band,.russian-row,.bottom-red-wrap{grid-template-columns:1fr;}
      .bottom-red{padding:62px 54px;}
      .names-page .name-grid--top .poster-card{
        float:none;
        width:100%;
        max-width:820px;
        margin:0 0 28px;
      }
      .names-page .name-grid--bottom{grid-template-columns:1fr;}
      .names-page .photo-gallery{grid-template-columns:repeat(4,minmax(0,1fr));}
    }
    @media (max-width:760px){
      .story-band,.style-panel,.bottom-red{padding:38px 28px;}
      .names-page .photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
      .names-page .photo-gallery img{height:165px;}
      .names-page .photo-gallery a{min-height:165px;}
    }
    @media (max-width:520px){
      .names-page .photo-gallery{grid-template-columns:1fr;}
      .names-page .photo-gallery img{height:210px;}
      .names-page .photo-gallery a{min-height:210px;}
    }

  

    /* ===== Финальная правка блока музея: без растянутой графики, все декоративные элементы собраны стилями ===== */
    .museum-page .intro-layout{
      grid-template-columns:minmax(0,1fr) 118px !important;
      gap:34px !important;
      align-items:stretch !important;
    }

    .museum-page .side-arrows{
      display:flex !important;
      flex-direction:column !important;
      justify-content:space-between !important;
      align-items:center !important;
      align-self:stretch !important;
      padding:36px 0 48px !important;
      min-height:100% !important;
    }

    .museum-page .side-arrows__img{display:none !important;}

    .museum-page .side-arrow{
      width:76px;
      height:86px;
      display:block;
      background:var(--burgundy);
      clip-path:polygon(20% 0, 38% 0, 38% 42%, 50% 42%, 50% 0, 68% 0, 68% 42%, 84% 42%, 84% 58%, 68% 58%, 68% 74%, 58% 74%, 58% 100%, 42% 100%, 42% 74%, 32% 74%, 32% 58%, 16% 58%, 16% 42%, 20% 42%);
    }

    .museum-page .story-band{
      background:var(--burgundy) !important;
      background-image:none !important;
      grid-template-columns:minmax(0,42%) minmax(0,58%) !important;
      gap:24px !important;
      align-items:center !important;
      min-height:auto !important;
      padding:30px 36px !important;
      margin:28px 0 42px !important;
      overflow:hidden !important;
    }

    .museum-page .red-copy{
      min-height:auto !important;
      padding:0 !important;
      background:transparent !important;
      color:#fff !important;
    }

    .museum-page .red-copy h3,
    .museum-page .style-panel h3{
      color:#fff !important;
      margin:0 0 12px !important;
      font-size:25px !important;
      line-height:1.18 !important;
      font-weight:800 !important;
    }

    .museum-page .red-copy p,
    .museum-page .style-panel p,
    .museum-page .bottom-red p{
      color:#fff !important;
      font-size:16px !important;
      line-height:1.42 !important;
      font-weight:600 !important;
    }

    .museum-page .red-gallery{
      min-height:auto !important;
      padding:0 !important;
      gap:18px !important;
      background:transparent !important;
      align-items:center !important;
    }

    .museum-page .red-gallery .photo{height:112px !important;}

    .museum-page .cloud-card{
      position:relative !important;
      min-height:auto !important;
      padding:38px 44px 36px !important;
      background:#fbf8ee !important;
      background-image:none !important;
      color:var(--text) !important;
      border-radius:26px !important;
      overflow:hidden !important;
    }

    .museum-page .cloud-card::before{
      content:"";
      position:absolute;
      inset:0;
      border:4px solid var(--burgundy);
      border-radius:26px;
      pointer-events:none;
    }

    .museum-page .cloud-card::after{
      content:"";
      position:absolute;
      inset:12px;
      border:2px solid rgba(79,0,7,.72);
      border-radius:18px;
      pointer-events:none;
    }

    .museum-page .cloud-card h3,
    .museum-page .cloud-card p{
      position:relative;
      z-index:1;
    }

    .museum-page .cloud-card h3{
      margin:0 0 12px !important;
      color:var(--text) !important;
      font-size:25px !important;
      line-height:1.18 !important;
      font-weight:800 !important;
    }

    .museum-page .cloud-card p{
      color:var(--text) !important;
      font-size:17px !important;
      line-height:1.42 !important;
      font-weight:500 !important;
    }

    .museum-page .russian-row{
      grid-template-columns:minmax(0,42%) minmax(0,58%) !important;
      gap:28px !important;
      align-items:center !important;
      margin:40px 0 38px !important;
    }

    .museum-page .russian-row .gallery-4{
      padding:0 !important;
      background:transparent !important;
    }

    .museum-page .style-panel{
      background:var(--burgundy) !important;
      background-image:none !important;
      min-height:auto !important;
      padding:30px 38px !important;
      color:#fff !important;
      display:flex !important;
      align-items:center !important;
      overflow:hidden !important;
    }

    .museum-page .bottom-red-wrap{
      display:block !important;
      grid-template-columns:1fr !important;
      min-height:0 !important;
      margin-top:42px !important;
      background:transparent !important;
      background-image:none !important;
    }

    .museum-page .bottom-ornament-row{display:none !important;}

    .museum-page .bottom-red{
      min-height:auto !important;
      background:var(--burgundy) !important;
      color:#fff !important;
      padding:32px 46px !important;
      display:block !important;
      overflow:hidden !important;
    }

    .museum-page .bottom-red p:last-child{margin-bottom:0 !important;}

    @media (max-width:1080px){
      .museum-page .intro-layout{grid-template-columns:1fr !important;}
      .museum-page .side-arrows{display:none !important;}
      .museum-page .story-band,
      .museum-page .russian-row{grid-template-columns:1fr !important;gap:20px !important;}
      .museum-page .red-gallery{padding:0 !important;}
      .museum-page .style-panel,
      .museum-page .bottom-red{padding:30px 32px !important;}
    }

    @media (max-width:760px){
      .museum-page .story-band,
      .museum-page .style-panel,
      .museum-page .bottom-red{padding:28px 24px !important;}
      .museum-page .cloud-card{padding:34px 28px !important;}
      .museum-page .red-copy h3,
      .museum-page .style-panel h3,
      .museum-page .cloud-card h3{font-size:23px !important;}
    }

  

    /* ===== Финальные правки по макету: кегли 11/16/24 pt, Ч/Б фото, адаптивный орнамент, lightbox ===== */
    :root{
      --museum-font-main:11pt;
      --museum-font-heading:16pt;
      --museum-font-title:24pt;
      --museum-ornament:url("/assets/img/Краеведение/графика/музей ф24 элемент.png");
    }

    .project-card h2,
    .museum-page .intro-main h2{
      font-size:var(--museum-font-title) !important;
      line-height:1.12 !important;
      font-weight:800 !important;
      letter-spacing:.01em !important;
      margin-bottom:14px !important;
    }

    .text-block h3,
    .museum-page .intro-main h3,
    .museum-page .section-title,
    .museum-page .museum-section h3,
    .museum-page .red-copy h3,
    .museum-page .style-panel h3,
    .museum-page .cloud-card h3{
      font-size:var(--museum-font-heading) !important;
      line-height:1.22 !important;
      font-weight:700 !important;
      letter-spacing:.005em !important;
      margin-bottom:10px !important;
    }

    .project-card p,
    .names-page .text-block p,
    .museum-page .intro-text p,
    .museum-page .intro-main > p,
    .museum-page .museum-section p,
    .museum-page .red-copy p,
    .museum-page .style-panel p,
    .museum-page .cloud-card p,
    .museum-page .bottom-red p,
    .museum-page .exp-note{
      font-size:var(--museum-font-main) !important;
      line-height:1.38 !important;
      font-weight:500 !important;
    }

    .names-page .text-block{margin-bottom:17px !important;}
    .names-page .text-block p{margin-bottom:10px !important;}
    .project-card{padding:22px 30px 22px !important;}
    .project-card p{margin-bottom:9px !important;}

    .museum-page .intro-top{gap:32px !important;margin-bottom:22px !important;}
    .museum-page .intro-photos{
      grid-template-columns:minmax(0,1fr) !important;
      max-width:520px !important;
      gap:12px !important;
      align-self:start !important;
    }
    .museum-page .intro-photos .photo{height:clamp(145px, 16vw, 210px) !important;}

    .museum-page img.photo,
    .names-page .photo-gallery img{
      filter:grayscale(1) contrast(1.04) !important;
      cursor:zoom-in !important;
    }
    .museum-page img.photo:hover,
    .names-page .photo-gallery a:hover img{
      transform:scale(1.025) !important;
      filter:grayscale(1) contrast(1.08) !important;
    }
    .names-page .photo-gallery a{cursor:zoom-in !important;}

    .museum-page .museum-graphic-hero,
    .museum-page .story-band,
    .museum-page .style-panel,
    .museum-page .bottom-red{
      position:relative !important;
      overflow:hidden !important;
    }
    .museum-page .museum-graphic-hero::before{
      content:"";
      position:absolute;
      left:clamp(18px, 6vw, 88px);
      top:50%;
      width:clamp(76px, 15vw, 178px);
      aspect-ratio:1/1;
      transform:translateY(-50%);
      background:var(--museum-ornament) center/contain no-repeat;
      z-index:2;
      pointer-events:none;
    }
    .museum-page .style-panel::after,
    .museum-page .bottom-red::after{
      content:"";
      position:absolute;
      right:clamp(10px, 2.4vw, 32px);
      bottom:clamp(8px, 1.7vw, 22px);
      width:clamp(54px, 8vw, 96px);
      aspect-ratio:1/1;
      background:var(--museum-ornament) center/contain no-repeat;
      opacity:.96;
      pointer-events:none;
    }
    .museum-page .story-band::after{
      content:"";
      position:absolute;
      left:clamp(10px, 1.8vw, 24px);
      top:clamp(10px, 1.8vw, 22px);
      width:clamp(48px, 7vw, 88px);
      aspect-ratio:1/1;
      background:var(--museum-ornament) center/contain no-repeat;
      opacity:.9;
      pointer-events:none;
    }
    .museum-page .red-copy,
    .museum-page .style-panel > *,
    .museum-page .bottom-red > *,
    .museum-page .red-gallery{
      position:relative !important;
      z-index:1 !important;
    }

    .site-photo-lightbox{
      position:fixed;
      inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      padding:34px;
      background:rgba(0,0,0,.86);
      z-index:99999;
    }
    .site-photo-lightbox.is-open{display:flex;}
    .site-photo-lightbox__img{
      max-width:92vw;
      max-height:88vh;
      width:auto;
      height:auto;
      object-fit:contain;
      filter:none !important;
      box-shadow:0 18px 60px rgba(0,0,0,.45);
      background:#111;
    }
    .site-photo-lightbox__close{
      position:absolute;
      top:18px;
      right:22px;
      width:44px;
      height:44px;
      border:0;
      border-radius:50%;
      background:rgba(255,255,255,.95);
      color:#1f1f1f;
      font-size:32px;
      line-height:42px;
      cursor:pointer;
      font-family:Arial, sans-serif;
    }
    .site-photo-lightbox__caption{
      position:absolute;
      left:30px;
      right:30px;
      bottom:16px;
      color:#fff;
      text-align:center;
      font-size:11pt;
      line-height:1.3;
      font-weight:500;
      text-shadow:0 1px 4px rgba(0,0,0,.8);
    }

    @media (max-width:1280px){
      .project-card h2,
      .museum-page .intro-main h2{font-size:22pt !important;}
      .text-block h3,
      .museum-page .intro-main h3,
      .museum-page .section-title,
      .museum-page .museum-section h3,
      .museum-page .red-copy h3,
      .museum-page .style-panel h3,
      .museum-page .cloud-card h3{font-size:15pt !important;}
    }
    @media (max-width:760px){
      .project-card h2,
      .museum-page .intro-main h2{font-size:20pt !important;}
      .text-block h3,
      .museum-page .intro-main h3,
      .museum-page .section-title,
      .museum-page .museum-section h3,
      .museum-page .red-copy h3,
      .museum-page .style-panel h3,
      .museum-page .cloud-card h3{font-size:14pt !important;}
      .project-card p,
      .names-page .text-block p,
      .museum-page .intro-text p,
      .museum-page .intro-main > p,
      .museum-page .museum-section p,
      .museum-page .red-copy p,
      .museum-page .style-panel p,
      .museum-page .cloud-card p,
      .museum-page .bottom-red p,
      .museum-page .exp-note{font-size:10.5pt !important;}
      .museum-page .museum-graphic-hero::before{width:clamp(56px, 20vw, 92px);left:12px;}
      .site-photo-lightbox{padding:18px;}
      .site-photo-lightbox__close{top:10px;right:10px;}
    }


    /* ===== Правка: цветные фото и орнамент по макету ===== */
    .museum-page img.photo,
    .museum-page img.photo.photo--bw,
    .names-page .photo-gallery img,
    .photo--bw{
      filter:none !important;
      -webkit-filter:none !important;
      cursor:zoom-in !important;
    }

    .museum-page img.photo:hover,
    .museum-page img.photo.photo--bw:hover,
    .names-page .photo-gallery a:hover img{
      filter:none !important;
      -webkit-filter:none !important;
      transform:scale(1.025) !important;
    }

    .site-photo-lightbox__img{
      filter:none !important;
      -webkit-filter:none !important;
    }

    .museum-page .museum-graphic-hero::before{
      display:block !important;
      left:clamp(24px, 6vw, 86px) !important;
      top:50% !important;
      width:clamp(78px, 14vw, 166px) !important;
      max-height:82% !important;
      background:var(--museum-ornament) center/contain no-repeat !important;
      opacity:1 !important;
    }

    .museum-page .story-band::after{
      display:none !important;
    }

    .museum-page .style-panel::after{
      right:clamp(12px, 2.2vw, 32px) !important;
      bottom:clamp(10px, 1.8vw, 24px) !important;
      width:clamp(58px, 8.2vw, 104px) !important;
      background:var(--museum-ornament) center/contain no-repeat !important;
    }

    .museum-page .bottom-red-wrap{
      display:grid !important;
      grid-template-columns:minmax(240px, 38%) minmax(0, 62%) !important;
      align-items:stretch !important;
      gap:0 !important;
      min-height:0 !important;
      background:transparent !important;
      background-image:none !important;
      margin-top:42px !important;
    }

    .museum-page .bottom-ornament-row{
      display:flex !important;
      align-items:flex-end !important;
      justify-content:flex-start !important;
      gap:clamp(6px, .8vw, 13px) !important;
      min-height:0 !important;
      padding:0 clamp(12px, 1.8vw, 26px) 0 0 !important;
      background:transparent !important;
      overflow:hidden !important;
    }

    .museum-page .bottom-ornament-row .ornament-tile{
      display:block !important;
      flex:0 0 auto !important;
      width:clamp(64px, 8.4vw, 118px) !important;
      aspect-ratio:1 / 1 !important;
      background:var(--museum-ornament) center/contain no-repeat !important;
    }

    .museum-page .bottom-red::after{
      display:none !important;
    }

    @media (max-width:1080px){
      .museum-page .bottom-red-wrap{
        display:block !important;
      }
      .museum-page .bottom-ornament-row{
        justify-content:center !important;
        padding:0 0 20px 0 !important;
      }
      .museum-page .bottom-ornament-row .ornament-tile{
        width:clamp(58px, 12vw, 92px) !important;
      }
    }

    @media (max-width:760px){
      .museum-page .museum-graphic-hero::before{
        left:clamp(12px, 4vw, 24px) !important;
        width:clamp(54px, 18vw, 92px) !important;
      }
      .museum-page .style-panel::after{
        width:clamp(48px, 16vw, 76px) !important;
      }
      .museum-page .bottom-ornament-row{
        gap:6px !important;
      }
      .museum-page .bottom-ornament-row .ornament-tile{
        width:clamp(48px, 18vw, 78px) !important;
      }
    }

  

    /* ===== Правка 27.05: мобильные вкладки, фото без скачка страницы, листание внутри блока ===== */
    .museum-tab-holder.is-open .names-dropdown{
      opacity:1 !important;
      visibility:visible !important;
      transform:translateY(0) !important;
    }

    .site-photo-lightbox{
      overscroll-behavior:contain;
    }
    .site-photo-lightbox__close,
    .site-photo-lightbox__nav{
      -webkit-tap-highlight-color:transparent;
    }
    .site-photo-lightbox__nav{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      width:48px;
      height:64px;
      border:0;
      border-radius:14px;
      background:rgba(255,255,255,.92);
      color:#1f1f1f;
      font-size:44px;
      line-height:1;
      cursor:pointer;
      display:flex;
      align-items:center;
      justify-content:center;
      z-index:2;
      font-family:Arial, sans-serif;
      box-shadow:0 8px 24px rgba(0,0,0,.28);
    }
    .site-photo-lightbox__nav:hover{background:#fff;}
    .site-photo-lightbox__nav--prev{left:22px;}
    .site-photo-lightbox__nav--next{right:22px;}
    .site-photo-lightbox__counter{
      position:absolute;
      top:20px;
      left:50%;
      transform:translateX(-50%);
      padding:6px 12px;
      border-radius:999px;
      background:rgba(0,0,0,.48);
      color:#fff;
      font-size:11pt;
      line-height:1.2;
      font-weight:600;
      z-index:2;
      font-family:"Montserrat", Arial, sans-serif;
    }
    .site-photo-lightbox.is-single .site-photo-lightbox__nav,
    .site-photo-lightbox.is-single .site-photo-lightbox__counter{
      display:none !important;
    }

    @media (max-width:760px){
      .museum-tabs-wrap{overflow:visible !important;}
      .museum-tabs{
        width:100% !important;
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        overflow:visible !important;
      }
      .museum-tab-holder{
        min-width:0 !important;
        width:100% !important;
      }
      .museum-tab,
      .museum-tab-holder > .museum-tab{
        min-width:0 !important;
        width:100% !important;
        min-height:52px !important;
        padding:8px 6px !important;
        font-size:11px !important;
        line-height:1.08 !important;
      }
      .museum-tab-holder.is-open{
        grid-column:1 / -1 !important;
      }
      .museum-tab-holder.is-open > .museum-tab{
        width:100% !important;
      }
      .names-dropdown{
        position:static !important;
        width:100% !important;
        display:none !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
        box-shadow:none !important;
        border-left:0 !important;
        border-right:0 !important;
        padding:8px !important;
        z-index:20 !important;
      }
      .museum-tab-holder.is-open .names-dropdown{
        display:grid !important;
      }
      .names-dropdown a{
        font-size:12px !important;
        padding:10px 8px !important;
        text-align:center !important;
      }
      .site-photo-lightbox{padding:18px 64px !important;}
      .site-photo-lightbox__nav{
        width:42px;
        height:58px;
        border-radius:12px;
        font-size:38px;
      }
      .site-photo-lightbox__nav--prev{left:10px;}
      .site-photo-lightbox__nav--next{right:10px;}
      .site-photo-lightbox__counter{top:12px;font-size:10pt;}
      .site-photo-lightbox__caption{bottom:12px !important;font-size:10pt !important;}
    }
    @media (max-width:480px){
      .museum-tabs{grid-template-columns:1fr !important;}
      .museum-tab-holder.is-open{grid-column:auto !important;}
      .names-dropdown{grid-template-columns:1fr !important;}
      .site-photo-lightbox{padding:58px 14px 48px !important;}
      .site-photo-lightbox__nav{
        top:auto;
        bottom:10px;
        transform:none;
        width:44px;
        height:38px;
        font-size:32px;
      }
      .site-photo-lightbox__nav--prev{left:18px;}
      .site-photo-lightbox__nav--next{right:18px;}
      .site-photo-lightbox__close{top:10px !important;right:10px !important;}
    }