: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;
  overflow-x: clip;
}

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;
  overflow-x: clip;
}

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;
  will-change: transform;
  /* 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 30px 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: none;
}

#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;
}

/* On the homepage, about-flex carousels should start after the sidebar column. */
.home .hp-page-container .wp-block-lazyblock-about-flex-section .carousel--bleed {
  width: 100%;
  margin-left: 0;
  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;
}

.wp-block-lazyblock-about-flex-section .carousel__viewport {
  padding-inline-start: 374px;
}

.wp-block-lazyblock-about-flex-section .carousel__track {
  padding-inline-start: 0;
  gap: 0;
}

.wp-block-lazyblock-about-flex-section [data-slide] {
  margin-right: var(--carousel-gap);
}

@media (min-width: 992px) {

  .home .hp-page-container #hero .carousel__viewport,
  .home .hp-page-container .wp-block-lazyblock-about-flex-section .carousel__viewport {
    padding-inline-start: var(--home-carousel-start, 374px);
  }

  .home .hp-page-container #hero .carousel__track,
  .home .hp-page-container .wp-block-lazyblock-about-flex-section .carousel__track {
    padding-inline-start: 0;
  }
}


.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: 0;
}

#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: unset;
  padding: 40px 0;
  color: #595959;
  width: 100%;
}

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

/* Верхняя линия футера — внутри padding-зоны (как в figma 650-93) */
.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--header-pad-x, 55px);
  right: var(--header-pad-x, 55px);
  height: 1px;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.40);
  margin: 0 auto;
  padding: 0 55px 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

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

.footer-col-3 .footer-text {
  /* padding-bottom: 168px удалён — лишний отступ под 3-й колонкой */
}

.footer-bottom-content {
  position: relative;
  padding-bottom: 35px;
  max-width: 1280px;
  width: 100%;
  /* 3-колоночный grid повторяет .footer-content, чтобы credits-блок
     визуально продолжал 3-ю колонку, даже если она пустая */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

/* Линия над копирайтом — внутри padding-зоны (как в figma: x=55, w=1170) */
.footer-bottom-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--header-pad-x, 55px);
  right: var(--header-pad-x, 55px);
  height: 1px;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.40);
  margin: 0 auto;
  padding: 0 55px 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin: 0 auto;
  padding: 0 55px 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

@media (min-width: 992px) {
  .footer-content,
  .footer-bottom-content {
    max-width: none;
    box-sizing: border-box;
    padding-left: var(--header-pad-x, 55px);
    padding-right: var(--header-pad-x, 55px);
  }
}

/* (legacy .footer-credits { grid-column: 3 } удалено — теперь блок справа
   через .footer-bottom-content { display: flex; justify-content: flex-end }) */


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

/* Если колонок меньше 3 — не растягивать, идут подряд */
.footer-content:has(.footer-col:nth-child(1):last-child),
.footer-content:has(.footer-col:nth-child(2):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
}

@media (min-width: 1400px) {

  .footer-content,
  .footer-bottom-content {
    gap: 158px;
  }
}

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: 0;
}

section.section.about-page .carousel__btn--next {
  right: 0;
}

.sub-menu>li {
  font-weight: normal;
}

/* Layout-collapse объединён с мобильным аккордеоном (≤991px), иначе на
   планшетах 769-991 credits висят в правой колонке desktop-grid */
@media (max-width: 991px) {
  .footer-content,
  .footer-bottom-content {
    grid-template-columns: 1fr;
  }

  .footer-credits {
    grid-column: 1;
    margin-top: 10px;
    justify-content: space-between;
  }
}








.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;
}

/* Заголовок секции футера: 8px uppercase regular #595959 (figma 650-93)
   Заголовок берётся из первого <h1>-<h6> внутри виджета (Gutenberg-блок
   «Заголовок»), чтобы клиент мог менять его в админке. */
.footer-title,
.footer-text > :is(h1, h2, h3, h4, h5, h6):first-child,
.footer-text > .wp-block-heading:first-child {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #595959;
  margin: 0 0 50px 0;
  padding: 0;
  line-height: normal;
}

/* Body-текст футера: 10px light #595959 */
.footer-text,
.footer-text p,
.footer-text li {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: 10px;
  line-height: normal;
  color: #595959;
}

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

/* Блок копирайтов: 2 колонки grid (figma 650-93)
   ┌────────────────┬─────────────┐
   │ Создание сайта │             │
   │ дизайн         │ ag | design │
   │ разработка     │ Promolab    │
   └────────────────┴─────────────┘ */
.footer-credits {
  /* сидит в 3-й колонке родительского grid (как продолжение колонки) */
  grid-column: 3;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: clamp(40px, 8vw, 120px);
  row-gap: 5px;
  align-items: end;
  justify-content: space-between;
  padding-top: 38px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 8px;
  color: #595959;
}

.footer-credits__title {
  font-weight: 700;
}

.footer-credits__role,
.footer-credits__company {
  font-weight: 300;
}

.footer-credits__company {
  text-decoration: underline;
  color: inherit;
  text-align: right;
}

.footer-credits__company:hover {
  opacity: .7;
}

.footer-credits__spacer {
  /* пустая ячейка справа от «Создание сайта» */
  visibility: hidden;
}

.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: 7px 54px 140px 54px;
}


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


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

.archive.tag .item-content-container {
  gap: 10px;
}


.archive.tag .single-container,
.archive.category .single-container.single-container--collection {

  padding: 13px 54px 140px 54px;
}

.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 max(40px, calc((100vw - 1280px) / 2));
}


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

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

.collection-items a {
  display: block;
}

.collection-items a img {
  width: 100%;
  height: clamp(220px, 24vw, 420px);
  object-fit: cover;
  display: block;
}

.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: 75px;
}

.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: 35px;
  top: 0;
}

.archive.category .tag-container {
  display: flex;
  gap: 80px;
}

.archive.category .item-content-container.item-content-container--collection {
  gap: 10px;
}

.archive.category .tag-container.tag-container--collection {
  gap: 9px;
}

.category-items.paintings button[data-cart-post] {
  position: absolute;
  right: 35px;
  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;
}

body:not(.home) .page-container {
  padding: 8px 54px 140px 55px;
}

.image-text-duo.with-padding {
  padding: 0;
}

.image-duo.with-padding {
  padding: 0 55px 0 55px;
}

@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;
  }

  /* Каждая accordion-секция отделена линией снизу (figma 675-198).
     Последняя НЕ получает border-bottom: линия снизу = .footer-bottom-content::before. */
  .footer-col:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
  }
  .footer-col:last-child {
    border-bottom: none;
  }

  /* ---------- tab title (legacy .footer-title и виджет-заголовок h1-h6) ----------
     figma 675-198: weight Medium 500, без uppercase, текст 8px #595959 */

  .footer-title,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child,
  .footer-text > .wp-block-heading:first-child {
    position: relative;
    cursor: pointer;
    /* figma 675-198: верх 21px, низ 35px от текста до линии */
    padding: 21px 30px 35px 0;
    margin-bottom: 0;
    text-transform: none;
    font-weight: 500;
  }

  /* + / × икона: 20×20 размер, прижата к правому краю padding-зоны
     (right: 0 от .footer-text). figma 675-198. */
  .footer-title::before,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::before,
  .footer-text > .wp-block-heading:first-child::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform .3s ease;
  }

  .footer-title::after,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::after,
  .footer-text > .wp-block-heading:first-child::after {
    content: '';
    position: absolute;
    right: 9.25px; /* (20-1.5)/2 = 9.25, чтобы вертикальная линия оказалась в центре 20px иконки */
    top: 50%;
    width: 1.5px;
    height: 20px;
    background: currentColor;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform .3s ease;
    pointer-events: none;
  }

  /* состояние OPEN — обе линии поворачиваются 45° → × */
  .footer-col.is-open .footer-title::before,
  .footer-col.is-open .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::before,
  .footer-col.is-open .footer-text > .wp-block-heading:first-child::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .footer-col.is-open .footer-title::after,
  .footer-col.is-open .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::after,
  .footer-col.is-open .footer-text > .wp-block-heading:first-child::after {
    transform: translateY(-50%) rotate(45deg);
  }

  /* ---------- content animation ---------- */
  /* Скрываем все элементы виджета КРОМЕ первого заголовка */
  .footer-text > *:not(:first-child) {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin: 0;
    transition:
      max-height .4s ease,
      opacity .25s ease .05s,
      margin .4s ease;
  }

  .footer-col.is-open .footer-text > *:not(:first-child) {
    max-height: 2000px;
    opacity: 1;
    margin: revert;
  }

  /* Мобильные credits: тоже 2 колонки разнесённые по краям */
  .footer-credits {
    justify-content: space-between;
  }

  /* Мобильный: «Создание сайта» — Medium 500 (figma 675-198, не bold как на десктопе) */
  .footer-credits__title {
    font-weight: 500;
  }

  /* Боковые отступы footer-content / footer-bottom-content на мобайле = 30px (figma 675-198) */
  .footer-content,
  .footer-bottom-content {
    padding-left: 30px;
    padding-right: 30px;
  }
  /* Линии-разделители тоже привязываем к 30px */
  .footer-content::before,
  .footer-bottom-content::before {
    left: 30px;
    right: 30px;
  }

  /* Линия ПОД credits (figma 675-198, line 675:208 на top 3836) */
  .footer-bottom-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: #e0e0e0;
  }

  /* Padding-y у footer на мобайле компактнее */
  footer {
    padding: 0;
  }

  .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
  }

  .wp-block-lazyblock-about-flex-section .carousel__viewport {
    padding-inline-start: 0;
  }

  /* Текст на мобиле - из 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;
}

.sub-menu .current-menu-item a {
  font-weight: normal;
  color: #000;
}

.privacy-page {
  color: #595959;
  font-size: 10px;
  font-weight: 400;
  max-width: 588px;
}

.privacy-title {
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  color: #595959;
  min-width: 160px;
}

.privacy-title h1 {
  font-size: 8px;

  text-transform: uppercase;
  color: #595959;
  font-weight: 600;
  white-space: nowrap;
}

.privacy .arrow-back a {
  display: flex;
  gap: 9px;
  font-size: 10px;
  text-decoration: none;
  color: rgba(89, 89, 89, 0.34);
  white-space: nowrap;
}

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

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

/*////////////////////////////////////*/
/**/
/* =========================
   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 morph удалён: бургер на home просто скрыт
     через .site-header--home .burger-svg { display: none } */
}


@media (min-width: 1920px) {
  .header_inner {
    /*  max-width: 1226px;*/
 margin: 0;
  }

  .topbar__inner {

    padding: 42px 41px 42px 0;
  }

  .series-text-image__inner {

    justify-content: space-between;
  }
      body.home .site-logo {
        padding-left: 102px;
    }
        .single-container {
            padding: 7px 48px 140px 48px;
    }
}

@media (max-width: 1536px) {
  .header_inner {
    max-width: 1248px;
    margin: 0;
  }

  .topbar__inner {
    padding: 42px 0px 42px 0;
  }

  header.topbar.site-header {
    padding: 0 0 0 106px;
  }

    .single-container {
        padding: 7px 46px 140px 46px;
    }

 

  body.home .site-logo {
    padding-left: 123px;
  }
      .archive.tag .single-container,
      .archive.category .single-container.single-container--collection {
        padding: 13px 48px 140px 48px;
    }
}

@media (max-width: 1440px) {
  .header_inner {
    max-width: 1198px;
    margin: 0;
  }

  .topbar__inner {
    padding: 42px 0px 42px 0;
  }

  header.topbar.site-header {
    padding: 0 0 0 106px;
  }

    .single-container {
        /*padding: 7px 42px 140px 30px;*/
    }
.single-container {
    
    max-width: 1246px;}

  .archive.tag .single-container,
  .archive.category .single-container.single-container--collection {
   padding: 13px 30px 140px 30px;
  }

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

@media (max-width: 1366px) {
  .header_inner {
    max-width: 1165px;
    margin: 0;
  }

  .topbar__inner {
    padding: 42px 0px 42px 0;
  }

  header.topbar.site-header {
    padding: 0 0 0 106px;
  }

  .single-container {

    padding: 7px 30px 140px 30px;
  }

  .archive.tag .single-container,
  .archive.category .single-container.single-container--collection {
 /*   padding: 13px 30px 140px 30px;*/
  }

  body.home .site-logo {
    padding-left: 38px;
  }
  body:not(.home) .page-container {
    padding: 8px 43px 140px 43px;
}
}




@media (max-width: 1280px) {

  .topbar__inner {
    padding: 42px 0px 42px 0;
  }

  header.topbar.site-header {
    padding: 0 0 0 106px;
  }

  .header_inner {
    max-width: 1113px !important;
    margin: 0;
  }

  .single-container {

    padding: 7px 30px 140px 30px;
  }

     .archive.tag .single-container,
     .archive.category .single-container.single-container--collection {
        padding: 13px 35px 140px 35px;
    }
  body:not(.home) .page-container {
    padding: 8px 44px 140px 45px;
}
}

@media (min-width: 992px) {
  .home .hp-page-container .wp-block-lazyblock-about-flex-section .static-section .section__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline-start: var(--home-carousel-start, 374px);
  }
}
@media (min-width: 1280px) {
  .series-text-image__inner {

    justify-content: space-between;
  }}

/* =====================================================================
   v2 — Top header + Home full-bleed sections (redesign)
   Перекрывает легаси правила сайдбара и .layout:after на главной.
===================================================================== */

:root {
  --header-h: 100px;
  --header-pad-x: clamp(24px, 5.7vw, 82px); /* по макету 82px @ 1280 */
  --header-gap-l: clamp(16px, 3vw, 40px);
  --header-gap-r: clamp(16px, 2vw, 30px);
}

/* Шапка: фикс, белая, на всю ширину */
header.topbar.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  background: #ffffff00;
  padding: 0 !important;
  z-index: 100;
  transition: none;
}

header.topbar.site-header.transparent { background: transparent; }

/* Главная: шапка прозрачная, белая «подложка» = padding-top родителя.
   Шапка остаётся position: fixed, при скролле картинка первого блока уходит
   ВВЕРХ под прозрачную шапку — визуально «белая подложка уезжает вверх
   вместе с верхним блоком» (figma node 665-133). */
body.home header.topbar.site-header { background: transparent; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 var(--header-pad-x);
  margin: 0;
  max-width: none;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: clamp(40px, 12vw, 175px); /* отступ от лого до меню */
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

/* Логотип */
.site-header .site-logo {
  opacity: 1 !important;
  transform: none !important;
  padding-left: 0 !important;
}

.site-header .site-logo a,
.site-header .site-logo img {
  display: block;
}

/* Primary menu */
.primary-nav {
  display: flex;
  align-items: center;
}

body:not(.home) .primary-nav {
  display: none;
}

.primary-nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(16px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list li { margin: 0; padding: 0; }

/* «об авторе» — последний пункт визуально отдалён от категорий
   (figma node 668-676: между «керамика» и «об авторе» промежуток ~2× больше) */
.primary-nav__list li:last-child { margin-left: clamp(24px, 4.8vw, 72px); }

.primary-nav__list a {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}

.primary-nav__list a:hover { opacity: .6; }
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a { font-weight: 400; }

/* Правая группа — избранное / корзина */
.site-header__right .top-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__right .top-nav li { margin: 0; padding: 0; }

.site-header__right .top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 200;
  color: #ccc8c8;
  text-decoration: none;
}

.site-header__right .top-nav a:hover { color: #000; }

.site-header__right .top-nav img { width: auto; height: 11px; }

/* Бургер: на главной десктоп — скрыт, всегда показан на мобайле */
.site-header--home .burger-svg { display: none; }

@media (max-width: 991px) {
  .site-header__right .top-nav span { display: none; }
  .site-header--home .burger-svg,
  .burger-svg { display: inline-flex; }
  .primary-nav { display: none; }
  :root { --header-h: 70px; }
}

/* Главная: убираем легаси-сайдбар и тёмный оверлей */
body.home .layout::after,
body.home .layout:after { content: none !important; display: none !important; }

body.home .sidebar,
body.home .sidebar_copy,
body.home #hp-sticky,
body.home .hp-page-container > aside.sidebar { display: none !important; }

/* Контент главной: padding-top = высота шапки создаёт «белую подложку».
   Шапка прозрачная и фиксированная сверху; при скролле этот padding
   уезжает вверх вместе с контентом, а картинка первого блока уходит
   под прозрачную шапку. Background body (#fff по умолчанию) виден через
   прозрачную шапку до начала скролла. */
.home .layout {
  padding-top: var(--header-h, 100px);
  position: relative;
  background: #fff;
}

.home .hp-main {
  margin: 0;
  padding: 0;
  width: 100%;
}

.home .entry-content { margin: 0; padding: 0; }

/* Каждая секция-блок главной — full bleed 100vw */
.home .wp-block-lazyblock-about-flex-section,
.home .wp-block-lazyblock-hero-carousel-section,
.home .wp-block-lazyblock-publications-section,
.home .wp-block-lazyblock-gallery-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Сброс старых сайдбар-зависимых отступов карусели на главной */
.home #hero .carousel__viewport,
.home .wp-block-lazyblock-about-flex-section .carousel__viewport,
.home #hero .carousel__track,
.home .wp-block-lazyblock-about-flex-section .carousel__track {
  padding-inline-start: 0 !important;
}

/* ВАЖНО: глобальное правило .carousel__viewport задаёт native CSS scroll-snap
   (overflow:auto; scroll-snap-type:x mandatory; touch-action:pan-x), что
   конфликтует с Embla — браузер сам ловит горизонтальные жесты, и Embla
   не может листать (drag → snap-back, кнопки тоже не двигают, т.к. Embla
   меняет transform, а нативный scroll возвращает позицию).
   На главной отключаем нативный scroll-snap для Embla-каруселей. */
.home #hero .carousel__viewport,
.home .wp-block-lazyblock-about-flex-section .carousel__viewport {
  overflow: hidden !important;
  scroll-snap-type: none !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior-x: auto !important;
}

/* Стрелки на главной — fixed относительно viewport, единый уровень для всех каруселей.
   Базовое правило (.carousel__btn--prev/--next) уже задаёт position: fixed; top: 50%;
   и opacity:0 → 1 при .carousel.is-active. Здесь только переопределяем left/right,
   чтобы вписать в более компактный отступ редизайна. */
.home .carousel__btn--prev,
.home .carousel__btn--next {
  width: 30px;
  height: 30px;
  z-index: 1000;
}
.home .carousel__btn--prev { left: clamp(20px, 4.3vw, 55px); }
.home .carousel__btn--next { right: clamp(20px, 4.3vw, 55px); }

@media (max-width: 991px) {
  footer {
    padding: 0;
  }

  .footer-content {
    display: block;
    padding: 0 30px;
  }

  .footer-bottom-content {
    display: block;
    gap: 0;
    padding: 0 30px;
  }

  .footer-content::before,
  .footer-bottom-content::before,
  .footer-bottom-content::after {
    left: 30px;
    right: 30px;
    height: 1px;
    border-top: 0;
    padding: 0;
    margin: 0;
    display: block;
    grid-template-columns: none;
    gap: 0;
    background: #d9d9d9;
  }

  .footer-col:not(:last-child) {
    border-bottom: 1px solid #d9d9d9;
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-title,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child,
  .footer-text > .wp-block-heading:first-child {
    padding: 21px 30px 35px 0;
    margin: 0;
    font-size: 8px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
    text-transform: none;
    color: #595959;
  }

  .footer-title::before,
  .footer-title::after,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::before,
  .footer-text > :is(h1, h2, h3, h4, h5, h6):first-child::after,
  .footer-text > .wp-block-heading:first-child::before,
  .footer-text > .wp-block-heading:first-child::after {
    background: #d9d9d9;
  }

  .footer-text,
  .footer-text p,
  .footer-text li {
    font-size: 10px;
    line-height: normal;
  }

  .footer-text {
    padding-bottom: 16px;
  }

  .footer-credits {
    display: grid;
    grid-template-columns: 126px 126px;
    justify-content: space-between;
    row-gap: 5px;
    padding: 21px 0 18px;
    margin: 0;
  }

  .footer-credits__title,
  .footer-credits__role,
  .footer-credits__company {
    font-size: 8px;
    line-height: normal;
  }

  .footer-credits__title {
    font-weight: 500;
  }

  .footer-credits__role,
  .footer-credits__company {
    font-weight: 300;
  }

  .footer-credits__company {
    text-align: right;
  }

  .footer-credits__spacer {
    visibility: hidden;
  }
}

