/* Если какие-то из специфичных классов Webflow (w-richtext, w-dyn-*, etc.) 
   все еще используются в вашем HTML, перенесите соответствующие стили сюда из webflow.css */

:root {
  --background: #f5f1e4;
  --text-black: #444;
  --black: #444;
  --transparent: transparent;
  --text-white: #f5f1e4;
  --img-corner-round: 10px;
  --green: #708f57;
  --button-round: var(--img-corner-round);
  --blue: #4a7dac;
  --blue-hover: #3b6b96;
  --font: Ramik, sans-serif;
  --white: white;
  --button-width: 120px;
  --red: #dd495d;
  --button-height: 40px;
  --menu-back-dark: #0000005e;
  --manual-menu-color: #00000073;
  --navbar-height: 70px; /* Высота навигационной панели для десктопа */
  --navbar-height-mobile: 60px; /* Высота навигационной панели для мобильных */
  
  /* Добавленные переменные для цветов */
  --grey-light: #dfdfdf;
  --grey-medium: #858585;
  --grey-dark: #8f8f8f;
  --brown: #ad795f;
  --black-opacity-25: rgba(0, 0, 0, 0.3);
  --black-opacity-30: rgba(68, 68, 68, 0.3);
  --black-opacity-40: #00000040;
  --black-opacity-42: #00000042;
  --black-opacity-70: #00000073;
  --beige-light: #e9e5d8;
  --pure-black: #000;
}

/* Стили для видео-секции */
.video-wr {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--navbar-height) * -0.5); /* Оптическое центрирование с учетом половины высоты навигации */
}

.video-container {
  aspect-ratio: 4/3;
  width: 70%;
  max-width: 1000px;
  height: auto;
  position: relative;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: -1;
}

@media screen and (max-width: 40rem) {
  .video-container {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .video-wr {
    height: calc(100vh - 200px);
    margin-top: calc(var(--navbar-height-mobile) * -0.33); /* Для мобильных компенсируем треть высоты навигации */
  }
}

@font-face {
  font-family: 'Ramik';
  src: url('../fonts/Ramik-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body {
  background-color: var(--background);
  color: var(--text-black);
  flex-flow: column;
  align-items: stretch;
  font-family: Ramik, sans-serif;
  font-size: 18px;
  line-height: 25px;
  display: flex;
}

h1 {
  letter-spacing: -1.2px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 40px;
}

h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
}

h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
}

p {
  text-align: left;
  margin-bottom: .5rem;
  margin-top: 0;
}

a {
  color: var(--text-black);
  cursor: pointer;
  text-decoration: none;
}

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

label {
  margin-bottom: 5px;
  display: block;
}

.menu {
  z-index: 3;
  grid-column-gap: 33px;
  grid-row-gap: 33px;
  background-color: var(--background);
  flex-flow: column;
  flex: 0 auto;
  justify-content: flex-start;
  align-items: stretch;
  width: 30rem;
  height: 100%;
  padding: 3rem 2.5rem;
  display: flex;
  position: relative;
  inset: 0% 0% 0% auto;
}

.padding-global {
  padding: 2rem;
}

.padding-global.nav {
  padding-bottom: 0;
}

.page-wr {
  display: block;
}

.max-width {
  align-items: stretch;
  max-width: 100%;
}

.navigation {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 5fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: space-between;
  place-items: center stretch;
  max-width: 1300px;
  display: flex;
}

.section__projekty {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hide {
  display: none;
}

.h1.page-title {
  font-size: 55px;
  line-height: 55px;
}

.h1.page-title.zou {
  text-align: left;
  font-size: 55px;
  line-height: 1.15em;
}


.about-wr {
  grid-column-gap: 4rem;
  grid-row-gap: 2rem;
  flex-flow: row;
  place-items: start stretch;
  display: flex;
}

.about__profile-contacts {
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  flex-flow: column;
  justify-content: space-between;
  display: flex;
}

.section__about {
  flex: 1;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 1rem;
  display: block;
  min-height: calc(100vh - 350px);
}

.about__cv {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: flex;
}

.about__content {
  flex-flow: column;
  margin-top: 0;
  display: flex;
}

.about__profile {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.text-block-4 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 24px;
}

.about__profile-img {
  border-radius: 10px;
  flex: none;
  width: 100%;
  max-width: 400px;
}

.produkty-item__title {
  margin-top: .5rem;
  font-size: 20px;
  line-height: 21px;
}

.produkty-item__title.h2-small {
  margin-top: .75rem;
  font-size: 21px;
  line-height: 23px;
}

.separate-line {
  background-color: var(--black-opacity-40);
  border-radius: 20px;
  height: 1px;
  margin-top: 2.2rem;
  margin-bottom: 2rem;
}

.separate-line.footer {
  margin-bottom: 1.5rem;
}
.cart-count {
  padding-left: .125rem;
  padding-right: .125rem;
}

.page-title {
  font-size: 55px;
  line-height: 55px;
}

.filter-item__checkbox-text {
  margin-right: .25rem;
  font-size: 16px;
  line-height: 18px;
}

.filter__column {
  border-radius: var(--img-corner-round);
  background-color: var(--background);
  border: 1px solid var(--grey-dark);
  flex-flow: column;
  display: flex;
}

.filter-h {
  letter-spacing: -.1px;
  font-size: 17.5px;
  line-height: 1;
}

.filter__block {
  border-radius: var(--img-corner-round);
}

.filter-button-plus {
  align-self: center;
  width: 1rem;
  height: 1rem;
}

.filter-button-minus {
  align-self: center;
  width: 1rem;
  height: 1rem;
  display: none;
}

.zou__rich-text-bl {
  flex-flow: column;
  align-items: flex-start;
  width: auto;
  max-width: 53%;
  margin-top: -10px;
  display: flex;
}

.zou__rich-text-bl h2 {
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-title__h1 {
  font-size: 65px;
  line-height: 55px;
}

.produkty__wr {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  grid-template-rows: auto;
  grid-template-columns: .5fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.section__zou {
  margin-top: 1rem;
}

.footer-dark {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.footer-content {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex: 1;
  grid-template-rows: auto;
  grid-template-columns: auto auto 1fr;
  grid-auto-columns: 1fr;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  position: relative;
}

.footer-text {
  font-size: 16px;
  line-height: 18px;
}

.footer-text.link {
  border-bottom: 1px solid var(--black-opacity-42);
}

.footer-text.link:hover {
  border-bottom-color: var(--black);
}

.about__rich-text {
  max-width: 60ch;
}

.about__rich-text h2 {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 24px;
}

.underline {
  border-bottom: 1px solid var(--black-opacity-42);
}

.underline:hover {
  border-bottom-color: var(--black);
}

.h2-small {
  font-size: 22px;
  line-height: 25px;
}

.image {
  border-radius: 15px;
}

.home-text-about {
  font-size: clamp(22px, 1.875vw, 36px);
  line-height: 1.25;
}

.home-about {
  width: 55%;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.home-about-button {
  margin-top: 2rem;
}

.button-about {
  border-radius: var(--img-corner-round);
  color: var(--text-black);
  background-color: var(--transparent);
  border: 1px solid var(--pure-black);
  padding: 8px 1.5rem 9px;
  font-size: 20px;
  display: inline-block;  
}

.button-about:hover {
  background-color: var(--black);
  color: var(--text-white);
}

.tab-link.active {
  border-bottom: 1.5px solid var(--pure-black);
}

@media screen and (max-width: 991px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  .menu {
    width: 30rem;
  }

  .padding-global {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section__projekty {
    padding-top: 6rem;
  }
  .h1.page-title.zou {
    font-size: 50px;
    line-height: 1em;
  }

  .about-wr {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    grid-auto-columns: 1fr;
  }

  .about__profile-contacts {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .zou__rich-text-bl {
    max-width: 90%;
  }

  .produkty__wr {
    flex-flow: column;
    display: flex;
  }

  .footer-content {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  .home-about {
    width: 100%;
  }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media screen and (max-width: 767px) {
  body {
    justify-content: flex-start;
  }

  .menu {
    width: 100vw;
  }

  .padding-global {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .h1.page-title.zou {
    margin-top: .5rem;
    font-size: 40px;
  }

  .about-wr {
    flex-flow: column-reverse;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: column dense;
    display: flex;
  }

  .separate-line.footer {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .zou__rich-text-bl {
    max-width: 100%;
  }

  .footer-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    justify-content: space-between;
  }
}

@media screen and (max-width: 479px) {
  .menu {
    width: 100vw;
  }

  .menu.padding-global {
    padding-top: 1.5rem;
  }

  .video-wr {
    height: calc(100vh - 200px);
  }

  .padding-global {
    padding: 1rem;
  }

  .padding-global.nav {
    padding-top: 1.5rem;
    padding-bottom: 0;
  }

  .hide {
    flex: none;
  }

  .h1.page-title {
    font-size: 52px;
  }

  .h1.page-title.zou {
    font-size: 42px;
    line-height: 40px;
  }

  .about-wr {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-flow: column-reverse;
  }

  .about__profile-contacts {
    grid-column-gap: .5rem;
    grid-row-gap: .5rem;
  }

  .about__content, .about__profile {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
  }

  .text-block-4 {
    color: var(--text-black);
  }

  .about__profile-img {
    max-width: 100%;
  }

  .separate-line.footer {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .filter-h {
    font-size: 18px;
  }

  .zou__rich-text-bl {
    margin-left: auto;
    margin-right: auto;
  }

  .page-title__h1 {
    font-size: 52px;
    line-height: 52px;
  }

  .produkty__wr {
    grid-column-gap: .75rem;
    grid-row-gap: .75rem;
  }

  .footer-dark {
    padding-top: 1rem;
  }

  .container {
    max-width: none;
  }

  .footer-content {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-flow: column;
  }
}