:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #595959;
  /* из Figma: основной текст #595959 */
  --line: #e9e9e9;
  --dark: #171717;
  /* из Figma: background: #171717 для hero */
  /* Отступ слева до колонки (оранжевая зона на макете) - из Figma: left: 129px на 1280px */
  --outer-left: clamp(60px, 10vw, 129px);
  /* Ширина колонки - из Figma: 295px на 1280px */
  --sidebar-w: clamp(240px, 23vw, 295px);
  --sidebar-col: calc(var(--sidebar-w) + var(--outer-left));
  --content-offset: calc(var(--sidebar-col) + clamp(34px, 4vw, 84px));
  --gutter: clamp(16px, 2vw, 28px);
  --content-max: 1240px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 18px 60px rgba(0, 0, 0, .08);
  /* Из Figma: изображения уходят влево (left: -831px, -481px), нужен большой peek */
  /* --carousel-peek: clamp(80px, 8vw, 160px);
  --carousel-gap: clamp(16px, 2.2vw, 28px);*/
  --carousel-peek: 260px;
  --carousel-gap: 431px;
}

/* Inter Font */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.3;
  font-size: 12px;
}

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

a {
  color: inherit
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px
}

.topbar {

  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  /* background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);*/
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 84px;
  padding: 42px 56px 42px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}

.brand__title {
  font-weight: 600
}

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

.brand--sidebar {
  font-size: 10px
}

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}

.burger__lines {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.burger__lines:before,
.burger__lines:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.burger__lines:before {
  top: -6px
}

.burger__lines:after {
  top: 6px
}

.layout {
  /*min-height: 100vh;*/
}

.sidebar {
  /*position: sticky;*/
  position: fixed;
  top: 0;
  left: 129px;
  height: 100vh;
  /*width: var(--sidebar-col);*/
  z-index: 20;
  background: transparent;

  padding: 0;
}

aside.sidebar {
  width: var(--sidebar-w);
}



.hp-page-container .carousel--bleed {
  width: 100%;
  margin-left: 0;
  position: relative;
  z-index: 1;
}


.hp-page-container button.carousel__btn.carousel__btn--prev {
  left: 55.86px;
}

.hp-page-container button.carousel__btn.carousel__btn--next {
  right: 29.86px;
}

.hp-page-container button.carousel__btn {

  width: 25px;
  height: 25px;
}

header.topbar {
  background: #fff;
  transition: 0.5s ease;
}

header.topbar.transparent {
  background-color: #ffffff00;
}

.heroMedia__img {
  background: #2a2c33;
  box-shadow: none;
}

.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}






.sidebar .brand {
  transition: opacity .9s ease, transform .9s ease;
}

body.is-scrolled .sidebar .brand {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}


body.home .site-logo {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity .3s ease, transform .9s ease;
}

body.home.is-scrolled .site-logo {
  opacity: 1;
  transform: translateY(0);
}

.sidebar .brand,
body.home .site-logo {
  will-change: transform, opacity;
}



#hero {
  max-height: 100vh;
}

#hero .carousel__track {

  align-items: end;
}


#painting {
  margin-bottom: 55px;
  padding-bottom: 276px;
}

div#post-9 {
  position: relative;

}




[data-slide] figure.media {
  overflow: hidden;
}

[data-slide] img {
  display: block;
  width: 100%;
  transition: height 0.3s ease;
}


.sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  padding-top: 10px;
  background: var(--bg);
  /* сама панель колонки */

  width: var(--sidebar-w);
  margin-left: var(--outer-left);
  padding: var(--gutter);

  margin-left: 0;
}

.sidebar__brand {
  padding-top: 8px
}

.sidenav__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px
}

.sidenav__link {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: #cbc8c8;
  transition: color .2s var(--ease);
  font-weight: 200;
}

.sidenav__link:before {
  content: "";
  width: 14px;
  height: 1px;
  background: transparent;
  transition: background .2s var(--ease), width .2s var(--ease);
}

.sidenav__link.is-active {
  color: var(--ink);
  font-weight: 200;
}






















.sidebar__meta {
  display: grid;
  gap: 10px
}

.meta {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline
}

.meta__label {
  color: var(--muted);
  font-size: 11px;
  min-width: 70px
}

.meta__value {
  font-size: 12px;
  text-decoration: none
}

.meta__value:hover {
  text-decoration: underline
}

.content {
  min-width: 0;
  /*margin-top: -100vh;*/
}

.content {
  /* padding-left: var(--content-offset);*/
}

.page {
  /* max-width: calc(var(--content-max) + (var(--gutter) * 2));
  margin: 0 auto*/
}

.section {
  position: relative;
  /* padding: clamp(26px, 5vw, 64px) var(--gutter);*/
}

.section__inner {
  margin: 0 auto;
  max-width: var(--content-max);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3.2vw, 40px);
}

.h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: clamp(18px, 2.2vw, 26px);
}


.section--hero {
  padding-top: clamp(18px, 4vw, 40px);
  padding-bottom: clamp(34px, 7vw, 90px);
  overflow: hidden;
}

.section__bg--dark {
  position: absolute;
  inset: 0;
  background: var(--dark);
  z-index: -2;
  left: 80px;
}

.peek {
  position: absolute;
  left: calc(var(--sidebar-w) * -0.28);
  top: 52px;
  width: clamp(120px, 18vw, 220px);
  height: clamp(240px, 38vw, 420px);
  background:
    radial-gradient(120px 120px at 30% 20%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: -1;
  transform: translateZ(0);
  opacity: .9;
}

.heroMedia {
  margin: 0;
  display: grid;
  gap: 16px;
}

.heroMedia__img {

  /* margin-inline:auto;
 aspect-ratio: 4 / 3;
  object-fit:cover;*/
  background: #2a2c33;

  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.section__caption {
  color: #B8B8B8;
  display: grid;
  gap: 4px;
  margin-top: 14px;
  max-width: var(--content-max);
  font-size: 10px;
  line-height: 180%;
}

.section__caption .lead {
  color: rgba(255, 255, 255, .70)
}

.carousel {
  position: relative
}

.carousel--bleed {
  width: 100vw;
  /* desktop: карусель на всю ширину */
  margin-left: calc(50% - 50vw);
  /* “вырваться” из контейнера */
  position: relative;
  z-index: 1;
  /* ниже fixed-колонки */
}

/* Gallery: full-bleed на 100vw и проходит под левой колонкой */
.carousel--under-sidebar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  z-index: 1;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 31px;
  height: 31px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s var(--ease);
  transform-origin: top left;
  padding: 0;
}

.carousel__btn:hover {
  opacity: .7
}

.carousel__btn:disabled {
  opacity: .35;
  cursor: default
}

/* Из Figma: левая стрелка left: 85px (в отступе слева), правая ~1195px */
.carousel__btn--prev {
  left: clamp(60px, 6.6vw, 85px);

}

.carousel__btn--next {
  right: clamp(60px, 6.6vw, 85px);

  transform-origin: top right;
}

.carousel__viewport {
  overflow: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /*scroll-padding-left: var(--carousel-peek);
  scroll-padding-right: var(--carousel-peek);
  padding-left: var(--carousel-peek);
  padding-right: var(--carousel-peek);*/
  outline: none;
  touch-action: pan-x;
  scrollbar-width: none;
  box-sizing: border-box;
  /* Отключаем нативный bounce, используем кастомный */
  overscroll-behavior-x: contain;
  /* Для плавного bounce-эффекта при перетягивании за границы */
  will-change: transform;

}



.carousel__viewport::-webkit-scrollbar {
  display: none
}

.carousel__viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .14)
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  /*grid-auto-columns: min(78%, 980px);*/
  grid-auto-columns: max-content;
  gap: var(--carousel-gap);
  padding-inline-start: 374px;
  align-items: start;
}


.slide {
  scroll-snap-align: center;


  overflow: hidden;

}

.media {
  margin: 0;

}

.media img {
  width: 100%;

}

.carousel__viewport img {
  -webkit-user-drag: none;
  pointer-events: auto;
}

.copy {
  padding: 14px 14px 16px
}

.copy__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 68ch
}

.single {}

.note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 80ch
}

.contacts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(0, 0, 0, .05);
  max-width: 560px;
}

.contacts__row {
  margin: 0;
  display: flex;
  gap: 16px;
  padding: 8px 0
}

.contacts__label {
  min-width: 90px;
  color: var(--muted);
  font-size: 12px
}

.contacts__value {
  text-decoration: none
}

.contacts__value:hover {
  text-decoration: underline
}

/* simple reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1
  }
}




.w-100 {

  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
}

.bg-dark {}

.section--hero .carousel__track {
  padding-top: 217px;

}

.main-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
  font-family: sans-serif;
}

/* Первые 2 элемента — в одну колонку */
.main-menu li:nth-child(1) {
  grid-column: span 3;
  /* занимает всю ширину */
}

/* Последние 2 элемента — тоже в одну колонку, с большим отступом сверху */

.main-menu li:nth-last-child(2) {

  margin-top: 40px;
}

.main-menu li:nth-last-child(1),
.main-menu li:nth-last-child(2) {
  grid-column: span 3;

}

/* Выделение "живопись" — как на скриншоте */
.main-menu li:nth-child(4) {
  justify-self: end;

}

.brand img {
  width: 87px;
}

ul.top-nav {
  display: flex;
  gap: 100px;
  list-style: none;
}

ul.top-nav a {
  color: rgba(184, 184, 184, 1);
  text-decoration: none;
  display: flex;
  gap: 5px;
  font-size: 8px;
}

.carousel__track.big_gap {
  gap: clamp(80px, 12vw, 400px);
}


#about .carousel__track {
  gap: 400px;
}

#about .slide {
  /* flex: 0 0 88%;*/
}

/*
.carousel--bleed .slide{
  flex-basis: 88%;
}

.carousel--bleed .carousel__track{
  gap: 300px;
}
*/


/*
[data-embla] [data-carousel-track],
[data-embla] .carousel__track{
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: var(--carousel-gap);
}


[data-embla] [data-slide]{
  flex: 0 0 var(--slide-size, 88%);
}


[data-embla] .slide{
  flex: 0 0 var(--slide-size, 88%);
}
*/
/*

#hero[data-spy-section] [data-embla]{
  --slide-size: 100%;
  --carousel-gap: 0px;
}

#project1 [data-embla]{
  --slide-size: 88%;
  --carousel-gap: 400px;
}
#gallery [data-embla]{
  --slide-size: 86%;
  --carousel-gap: 120px;
}


[data-embla] [data-carousel-viewport],
[data-embla] .carousel__viewport{
  overflow: hidden;
}
*/

.description {
  margin-top: 30px;
  max-width: 432px;
  color: #595959;
}

.description a.readmore,
article.slide a.readmore,
.wp-block-lazyblock-about-flex-section a.readmore {
  color: #c6c6c6;
  font-weight: normal;
  display: block;
  margin-top: 34px;
  text-decoration: none;
}


section:not(#hero) {
  /*  margin: 300px 0;*/

}
body:not(.home) .static-section .section__inner {
    max-width: 100%;
    width: 100%;
    padding: 0;
}
body:not(.home) .page-container {
    padding: 35px 54px 35px 55px;

}

section figure.media img {
  max-height: 880px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

figure.media {
  margin: 0;
  display: block;
  /* или display: grid / flex, но с осторожностью */
  /* Если используете flex — добавьте: */
  /* display: flex;
     align-items: flex-start; */
}

section figure.media img {
  max-height: 880px;
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
}



.about-publications h2 {

  color: #595959;
  font-size: 16px;
  font-weight: bold;
}

.gallery__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-right-column {
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.gallery-right-column a {
  text-decoration: none;
}





#about {
  margin-top: 300px;
  padding: 0;
  width: inherit;
  margin-left: 0;

  position: relative;
  overflow: hidden;
}

#ceramics {
  margin-top: 172px;

}

#textile {
  margin-top: 291px;
}

#painting {
  margin-top: 99px;
}

footer {
  border-top: 1px solid #999999;
  padding: 35px 0;
  color: #595959;
  width: 100%;
}

.footer-content {
 /* display: flex;
  gap: 158px;*/
  padding-bottom: 35px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 55px 55px;
}

.footer-content>* {
 /* flex: 1;*/
}

.footer-credits {
  border-top: 1px solid #999999;
  padding-top: 55px;

}

.footer-col-3 .footer-text {
  padding-bottom: 168px;
}

.footer-bottom-content{

    padding-bottom: 35px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 55px 55px;
}


.footer-content, .footer-bottom-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 158px;
  align-items: start; 
}

.footer-col-1 { grid-column: 1; }
.footer-col-2 { grid-column: 2; }
.footer-col-3 { grid-column: 3; }
.footer-credits { 
  grid-column: 3; 
 
}
section.section.about-page .carousel__btn--prev, section.section.about-page .carousel__btn--next {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    z-index: 3;
}
section.section.about-page .carousel__btn--prev {
left: 55px;
}
section.section.about-page .carousel__btn--next {
right: 55px;
}
.sub-menu>li {
    font-weight: normal;
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-credits {
    grid-column: 1;
    margin-top: 10px;
  }
}








.static-section .section__inner {
  width: 100%;
  margin-left: 0;
  position: relative;
  z-index: 1;
  padding-inline-start: 374px;
  max-width: 100%;

}

.gallery__inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 200px;
}

.single {

  /* padding-left: 35px;*/
}

#gallery article.single,
#publications article.single {
  padding-left: 75px;
}

#publications {
  padding-bottom: 140px;
}

.hp-page-container {
  margin: 0 auto;
  max-width: 1280px;
}


.hp-page-container .sidebar {
  /*  position: sticky;*/
  margin-left: 80px;


}



.hp-page-container .w-100 {
  width: inherit;
  margin-left: 0;
  padding: 0;
}

.footer-title {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.footer-text span.bold {
  font-weight: bold;
  display: block;
}

.carousel-item-description {
  color: #b8b8b8;
  margin-bottom: 40px;
  max-width: 600px;

}

.single-container {
  /*
  position: relative;
    font-size: 14px;
margin-top: 216px;
padding: 35px clamp(60px, 6.6vw, 85px);
*/
  margin: 216px auto 0;
  max-width: 1280px;
  padding: 35px 54px 35px 54px;
}


header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.item-content-container {
  display: flex;
  gap: 84px;
}

.tag-container {
  display: flex;
  gap: 9px;
}

.tag-description h3,
.tag-description h1 {
  font-size: 10px;
  margin-top: 0;
  color: #c6c6c6;
  font-weight: normal;
  text-transform: uppercase;
}

.tag-description h3 span,
.tag-description h1 span {
  font-weight: bold;
}

.tag-description a {
  text-decoration: none;
}

.tag-description-text {
  text-indent: 2em;
}

.tag-description {
  max-width: 211px;
  width: 211px;
  font-size: 10px;
  color: #595959;
}

.page-container {
  padding: 35px 54px 35px 130px;
  margin: 217px auto 0;
  max-width: 1280px;
}

header.topbar {
  padding: 0 clamp(60px, 6.6vw, 85px);
}


.arrow-back a {
  padding: 4px 0;
  display: block;
}

.collection-items {
  grid-template-columns: repeat(3, 289px);
  gap: 0;
  display: grid;
}

.arrow-back a img {
  min-width: 64px;
  width: 64px;

}

.item-bottom h2 a {
  text-decoration: none;
  color: #595959;
  font-size: 10px;
  display: flex;

}

.item-bottom h2 {
  margin: 0;
  padding: 0;
  line-height: 1;
  text-transform: uppercase;
}

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 30px 45px 8px;
  gap: 13px;
}

.btn-group {
  display: flex;
  gap: 27px;

}

h2.paintings-title a,
h2.paintings-title {
  text-decoration: none;
  font-size: 10px;
  color: #595959;
  text-transform: uppercase;
  font-weight: normal;
}

h2.paintings-title {
  margin-top: 19px;
  padding: 0;
  margin-bottom: 0;
}

category-items.paintings {
  width: 100%;
}

.category-items.paintings article {
  margin-bottom: 100px;
  position: relative;
  padding-right: 43px;
}

.category-items.paintings button[data-favorite-post] svg,
.category-items.paintings button[data-cart-post] svg {
  width: 21px;
  height: auto;
}

.category-items.paintings button[data-favorite-post] {
  position: absolute;
  right: 0;
  top: 0;
}

.category-items.paintings button[data-cart-post] {
  position: absolute;
  right: 0;
  top: 43px;
}

.page-id-176 .section {
  padding: 0;
}

.page-id-176 .page-container,
.page-id-208 .page-container {
  padding: 35px 54px 35px;

}


/* базовое состояние — скрыты */
.carousel__btn--prev,
.carousel__btn--next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .25s ease;
}



/* активная карусель */
.carousel.is-active .carousel__btn--prev,
.carousel.is-active .carousel__btn--next {
  opacity: 1;
  pointer-events: auto;
  z-index: 1000;
}

 .wp-block-lazyblock-content-slider .about-page .carousel__track{
padding-inline: 126px;
    gap: 88px;
}


body.page-id-176 .page-container{
	    padding-left: 0px;
	    padding-right: 0px;
}


@media (max-width: 359px) {}


@media (min-width: 360px) and (max-width: 575px) {}


@media (min-width: 576px) and (max-width: 767px) {}


@media (max-width: 767px) {
  .collection-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 20px;
    padding: 15px;
  }

  header .top-nav span {
    display: none;
  }

  ul.top-nav,
  .topbar__inner {

    gap: 50px;

  }

  ul.top-nav img {
    height: 18px;

  }

  header.topbar {
    padding: 0 30px;
  }
}

#gallery,
#painting {
  border-bottom: 1px solid #999999;
}

#gallery {
  margin-bottom: 65px;
  padding-bottom: 252px;
}
.menu-panel a {
    text-decoration: none;
    text-transform: lowercase;
}
.home .layout:after {
    content: "";
    display: block;
    position: absolute;
    height: 100vh;
    right: 0;
    background: #171717;
    width: 50vw;
    top: 0;
}

.home .layout {
    position: relative;
}
#hero .carousel-item-description {
    padding-left: 10px;
  }
  .mega-col li.active{
    font-weight: normal;
    color: #000;
  }
@media (max-width: 991px) {
  .wp-block-lazyblock-content-slider .about-page .carousel__track {
    padding-inline: unset;
    gap: unset;
}
.image-text-duo {
    margin: 40px 0;
}
.image-duo.with-padding {
    padding: 0 30px;
}
image-text-duo.with-padding {
    padding: 0 30px;
}
.image-duo__media img {
    width: 100%;
}
  body:not(.home) .page-container {
            padding-top: 195px;

}
body:not(.home) .page-container {
    padding: 35px 30px;
}
 .footer-bottom-content {
    gap: unset;
   padding: 55px 0 0 0;
}
.footer-credits {
 
    padding-top: 22px;
}
.home .layout:after {
	display: none;
}
  .topbar__inner {
    padding: 30px 0;
  }

  header.topbar {
    padding: 0 30px;
  }

  #painting {

    padding-bottom: 0px;
  }

  #gallery {

    padding-bottom: 65px;
  }

  .site-logo {
    padding-left: 0;
  }

  /* ---------- layout ---------- */

  .footer-content {
    display: block;
  }

  .footer-col {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* ---------- tab title ---------- */

  .footer-title {
    position: relative;
    cursor: pointer;
    padding: 16px 40px 16px 0;
    font-weight: 600;
  }

  /* горизонтальная линия (минус) */
  .footer-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
  }

  /* вертикальная линия (плюс → исчезает) */
  .footer-title .plus-vertical {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 2px;
    height: 16px;
    background: currentColor;
    transform: translateY(-50%) scaleY(1);
    transform-origin: center;
    transition: transform 0.5s ease;
    pointer-events: none;
  }

  /* состояние открыто */
  .footer-col.is-open .footer-title .plus-vertical {
    transform: translateY(-50%) scaleY(0);
  }

  /* ---------- content animation ---------- */

  .footer-tab-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.5s ease,
      opacity 0.25s ease;
  }

  .footer-col.is-open .footer-tab-content {
    max-height: 2000px;
    /* запас под любой контент */
    opacity: 1;
  }

  .footer-text {
    padding-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  /* ---------- credits (always visible) ---------- */

  .footer-credits--global {
    padding: 24px 0;
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
  }


  .wp-block-lazyblock-about-flex-section .description {
    display: none;
  }

  .wp-block-lazyblock-about-flex-section a.readmore {
    display: none;
  }

  .wp-block-lazyblock-about-flex-section a.readmore {
    display: none !important;
  }

  #ceramics {
    margin-top: 0;
  }

  #textile {
    margin-top: 0;
  }

  #painting {
    margin-top: 0;
  }

  #gallery::after,
  #painting::after {
    display: none;
  }



  #gallery {
    padding-top: 68px;

  }

  .galleries-flex,
  .gallery-right-column {
    padding: 0 39px 0 96px;
  }

  .gallery-item img,
  .contact-info img {
    width: 103px;
    height: 103px;
  }

  .gallery-item {
    font-size: 11px;
  }

  .about-img-1,
  .about-img-2 {
    width: 150px !important;
    max-width: 300px !important;
  }

  .about-section {
    padding-top: 68px;
  }

  .about-images__track {

    padding-inline-start: 150px;
  }

  .carousel__viewport .carousel__track {
    padding-inline: 0;
  }

  .about-images {
    height: 400px !important;
  }


  .page-container,
  .page-id-176 .page-container,
  .page-id-208 .page-container {
    padding: 195px 30px 30px;
  }

  .collection-items {
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 25px;
  }

  .item-content-container {
    flex-direction: column;
  }

  .section--hero .carousel__track {
    padding-top: 100px;
  }

  .carousel-item-description {

    max-width: 100vw;
    padding: 10px;
  }

  section#publications {
    padding-bottom: 48px;
  }

  .about-section {

    gap: 20px;
  }

  footer {
    padding: 20px 30px;
  }

  .page-container {

    margin: inherit;
  }

      .page-container {
        padding-top: 195px;
        margin: 0;
    }

  :root {
    /* Из mobile.html: отступы left: 30px, 57px, 58px */
    --gutter: clamp(16px, 4vw, 30px);
  }

  .topbar {
    display: block;
    padding: 14px var(--gutter);
  }

  .brand {
    /* Из mobile.html: font-size: 9.50px для бренда в шапке */
    font-size: 9.5px;
  }

  .content {
    padding-left: 0;
  }

  .sidebar {
    display: none
  }

  .peek {
    display: none
  }

  .section {
    /* Из mobile.html: секции идут на всю ширину, отступы внутри */
    padding: clamp(20px, 20px, 40px) var(--gutter);
    padding: 0;
  }

  .section__bg--dark {

    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  /* Карусели на мобиле: full-width, без peek */
  .carousel--bleed {
    width: 100%;
    margin-left: 0;
  }

  #about .carousel__track {
    gap: 0;
  }

  .carousel__track {

    grid-auto-columns: max-content;
    gap: 0;
  }

  .carousel__track {
    padding-inline: unset;


  }

  .carousel__viewport {
    /* Убираем peek на мобиле */
    padding-left: 0;
    padding-right: 0;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }

  .carousel__btn {
    display: none
  }

  /* Текст на мобиле - из mobile.html: 10px основной */
  .h1 {
    font-size: 20px;
  }

  .h2 {
    font-size: 16px;
  }

  .copy__text {
    font-size: 10px
  }

  /* Контакты на мобиле - из mobile.html: отступы left: 248px */
  .contacts {
    max-width: 100%;
  }

  .static-section .section__inner {
    margin-left: 0;
    padding-inline-start: 0;
  }

  .section__bg--dark {
    left: 0;
  }


  .carousel__viewport img {
    width: 100vw;
    max-width: 100vw;
  }

  section figure.media img {
    width: 100vw;
    min-width: 100vw;
    max-height: unset;
  }

  .footer-content {

    gap: 58px;
    padding-bottom: 35px;
    flex-direction: column;
    padding: 50px 0 0 0;
  }

  .footer-col-3 .footer-text {
    padding-bottom: 50px;
  }

  .description {
    max-width: 100vw;
    padding: 30px 10px;
  }

  .gallery-item {
    gap: 39px;
  }

  body {
    font-size: 12px;
  }

  .gallery__inner {
    gap: 56px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
  }

  .gallery-right-column {
    border-top: 1px solid #bdbdbd;
    padding-top: 43px;
    width: 100%;
  }

  .about-publications {
    padding: 0 10px;
  }




  .carousel__viewport {
    touch-action: pan-y pinch-zoom;
    scroll-snap-type: none;
    /* Отключить snap на мобиле++++++++++ */
  }





  .menu-overlay {
    height: calc(100vh - 65px);
  }


  .mega-menu {

    /* overflow: hidden;*/
  }

  .mega-menu {
    display: block;
  }

  .mobile-level {
    display: none;
    width: 100%;
  }

  .mobile-level.is-active {
    display: block;
  }

  .mobile-level ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;

  }

  .mobile-level li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-back {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: .7;
    cursor: pointer;
  }

  .mega-menu .menu-arrow::before {
    content: url(/wp-content/themes/tatyana-blankslate-child/assets/img/arr-right.svg);

  }

  .mega-menu .menu-back::before {
    content: url(/wp-content/themes/tatyana-blankslate-child/assets/img/back-to-cat.svg);

  }



  nav#megaMenu {
    width: 100%;
    padding: 30px;
  }




}


@media (min-width: 992px) {

  .mega-menu {
    display: grid;
   /* grid-template-columns: 200px 300px 300px;*/
   grid-template-columns: 70px 284px;
    gap: 80px;
            padding-right: 149px;
  }

  .mega-col {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mega-col li {
    margin-bottom: 18px;
    cursor: pointer;
    color: #cbc8c8;
  }

  .mega-col li:hover {
    color: #000;
    font-weight: normal;
  }

  .menu-panel {
    padding-top: 150px;
    padding-left: 40%;
    min-height: 413px;
  }


}










@media (min-width: 768px) and (max-width: 991px) {}

@media (min-width: 992px) and (max-width: 1199px) {
  .static-section .section__inner {
    max-width: calc(100vw - 40px);
    width: calc(100vw - 40px);
  }

  .gallery__inner {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    gap: 100px;
  }

}

@media (min-width: 1281px) {

  .site-logo {
    padding-left: 123px;
  }


  body.home .site-logo {
    padding-left: 109px;
  }

  .carousel__btn--prev,
  .carousel__btn--next {
    position: fixed;
  }
}


@media (min-width: 1200px) and (max-width: 1439px) {
  .static-section .section__inner {
    max-width: calc(100vw - 40px);
    width: calc(100vw - 40px);

  }

  .gallery__inner {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    gap: 100px;
  }
}

@media (min-width: 1440px) {}

@media (min-width: 1440px) and (max-width: 1599px) {}

@media (min-width: 1600px) and (max-width: 1799px) {}

@media (min-width: 1800px) and (max-width: 1919px) {}

@media (min-width: 1920px) and (max-width: 2559px) {}

@media (min-width: 2560px) and (max-width: 3199px) {}

@media (min-width: 3200px) {}


/* === MENU OVERLAY === */

.menu-overlay {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {

  height: 100%;
  display: flex;
  align-items: center;

}

/* === MEGA MENU === */
 ul.sub-menu {

max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
transition: max-height 0.4s ease, opacity 0.3s ease 0.1s;
    padding-top: 12px;
    padding-left: 80px;
}




.mega-col:nth-child(2) li.menu-item-has-children.active ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
 
  max-height: 500px;
}



    .mega-col li {
        list-style: none;}

.mega-menu {
  position: relative;
  font-size: 12px;

  color: #242424;
}

.mega-menu__tree {
  display: none;
}





/* === BURGER → CROSS === */

.burger.is-open .burger__lines {
  background: transparent;
}

.burger.is-open .burger__lines::before {
  transform: rotate(26.8deg);
  top: 0;
}

.burger.is-open .burger__lines::after {
  transform: rotate(-26.8deg);
  top: 0;
}

.burger__lines::before,
.burger__lines::after {
  transition: transform .3s ease, top .3s ease;
}


/* === BURGER SVG BUTTON === */

.burger-svg {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.burger-icon {
  display: block;
}

/* линии */
.burger-icon .line {
  stroke-linecap: round;
  transition:
    transform 0.45s cubic-bezier(.4, 0, .2, 1),
    opacity 0.3s ease;
  transform-origin: 33px 13px;
  /* центр SVG */
}

.burger-icon .black {
  stroke: #000;
}

.burger-icon .white {
  stroke: #fff;
}

/* === OPEN STATE === */

.burger-svg.is-open .line.mid {
  opacity: 0 !important;
}

/* верх → диагональ */
.burger-svg.is-open .line.top {
  transform: translateY(12px) rotate(26.8deg);
}

/* низ → диагональ */
.burger-svg.is-open .line.bot {
  transform: translateY(-12px) rotate(-26.8deg) !important;
}











[data-favorite-post],
[data-cart-post] {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-favorite-post].is-animating {
  pointer-events: none;
  opacity: .6;
}

/* bump-анимация по классу */
[data-favorite-post].fav-bump svg {
  animation: fav-pop .35s ease;
}

@keyframes fav-pop {
  0% {
    transform: scale(.85);
    opacity: .65;
  }

  55% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}






html.menu-lock {

  height: 100%;
  overflow: hidden;
}




/*////////////////////////////////////*/
/**/
/* =========================
   MOBILE MENU */
@media (max-width: 991px) {
  .sidebar {
    display: none !important;
  }

  body.home .topbar__inner {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  body.home .topbar__inner.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar_copy {
    position: absolute;
    z-index: 40;
    background: #fff;
    transform-origin: top center;
    will-change: transform, opacity;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .24s ease;
  }

  .sidebar_copy.is-collapsed {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }

  .section_name {
    position: absolute;
    top: 29px;
    left: 27px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .section_name.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* ===== HERO + GAP как в демо ===== */

  #hp-sticky {
    position: relative;
  }

  #hp-sticky .hp-sticky-hero {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  /* gap между hero и about: выставляет JS через var(--hp-gap) */
  #hp-sticky .hp-sticky-gap {
    height: var(--hp-gap, 285px);
  }

  /* Burger OGO */
  body.home .burger-icon .line {
    transition: transform .15s cubic-bezier(.2, .8, .2, 1), opacity .15s ease;
    transform-origin: 33px 13px;
  }

  body.home .burger-icon .line.mid,
  body.home .burger-icon .line.bot {
    opacity: 0;
    transform: translateY(-12px);
  }

  body.home .burger-svg.is-ogo .line.mid {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .06s;
  }

  body.home .burger-svg.is-ogo .line.bot {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .12s;
  }
}