@charset "UTF-8";
/* стиль container ТОЛЬКО под главную. На остальных страницах пока остаётся 1220px. Шапка на остальных будет 1220px */
:root {
  --green-light: #f3f6f4;
  --green-dark: #386641;
  --yellow: #ffe62d;
  --new-container-padding: 50px;
}

.mb-80 {
  margin-bottom: 80px;
}

.mb-40-32 {
  margin-bottom: 40px;
}

.mb-24 {
  margin-bottom: 24px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

@media (max-width: 768px) {
  .mb-80 {
    margin-bottom: 60px;
  }
}
.mh-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-40 {
  font-size: 40px;
  line-height: 48px;
}

.text-32 {
  font-size: 32px;
  line-height: 36px;
}

.text-24 {
  font-size: 24px;
  line-height: 32px;
}

.text-24-20 {
  font-size: 24px;
  line-height: 32px;
}

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

.text-14,
body {
  font-size: 14px;
  line-height: 22px;
}

.br-20 {
  border-radius: 20px !important;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.with-underline {
  text-decoration: underline;
}

.with-underline:hover {
  text-decoration: none;
}

label:has(input[type='checkbox']) {
  display: flex;
  gap: 8px;
  cursor: pointer;
}
label:has(input[type='checkbox']) input {
  appearance: none;
  border: 2px solid var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}
label:has(input[type='checkbox']) input:checked {
  background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2213%22%20viewBox%3D%220%200%2016%2013%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22m1%206.689%204.242%204.978L14.333%201%22%20stroke%3D%22%23386641%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .text-40 {
    font-size: 32px;
    line-height: 40px;
  }
  .text-32 {
    font-size: 28px;
    line-height: 32px;
  }
  .text-24 {
    font-size: 16px;
    line-height: 24px;
  }
  .text-24-20 {
    font-size: 20px;
    line-height: 28px;
  }
  .mb-40-32 {
    margin-bottom: 32px;
  }
}
.container {
  /* max-width: 1920px; */
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
}

@media (max-width: 1200px) {
  :root {
    --new-container-padding: 24px;
  }
  .container {
    padding: 0 24px;
    max-width: 100% !important;
  }
}
@media (max-width: 768px) {
  :root {
    --new-container-padding: 16px;
  }
  .container {
    padding: 0 16px;
  }
}
a {
  color: black;
}

a:hover {
  color: var(--links-hover);
}

.header-v2 .header-top {
  background: var(--green-light);
  padding: 16px 0;
  border: none;
  display: block !important;
}
.header-v2 .header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-v2 .header-top .left-part {
  display: flex;
  gap: 40px;
  color: black;
}
.header-v2 .header-top .right-part {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-v2 .header-top__left .location svg path {
  fill: #adbcb0 !important;
}
.header-v2 .socials {
  display: flex;
  gap: 8px;
}

.open-mobile-menu {
  cursor: pointer;
}

@media (max-width: 1440px) {
  .header-v2 .header-top .left-part,
  .header-v2 .header-top .right-part {
    gap: 32px;
  }
}
@media (min-width: 1351px) {
  .header-v2 .header-top .open-mobile-menu {
    display: none;
  }
}
/* появляется меню слева */
@media (max-width: 1350px) {
  .header-v2 .header-top .left-part {
    display: none;
  }
  .header-v2 .header-top .open-mobile-menu {
    display: flex;
  }
}
/* не на главной ширина контейнера 1220 вместо 1920, поэтому сразу стили поменьше */
/* включает в себя копию @media стилей до 1350px */
.header-v2.not-mainpage .header-top .left-part,
.header-v2.not-mainpage .header-top .right-part {
  gap: 32px;
}
.header-v2.not-mainpage .header-top .left-part {
  display: none;
}
.header-v2.not-mainpage .header-top .open-mobile-menu {
  display: flex;
}

.d-none {
  display: none !important;
}

/* Оверлей */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Мобильное меню */
.header-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
  font-size: 16px;
  line-height: 22px;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.header-mobile-menu.open {
  transform: translateX(0);
}

.header-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-mobile-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  display: flex;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.mobile-menu-item.has-submenu .submenu {
  display: none !important;
}

.mobile-menu-item.has-submenu.open .submenu {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  padding-top: 8px;
  position: static !important;
  height: fit-content !important;
}

.mobile-menu-item.has-submenu .arrow-down {
  transition: transform 0.2s ease;
  display: flex;
  height: fit-content;
}

.mobile-menu-item.has-submenu.open .arrow-down {
  transform: rotate(180deg);
}

.mobile-menu-contacts {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f3f6f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-mobile-menu .region {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f6f4;
}

.header-mobile-menu .js-get-form {
  margin-top: 16px;
  padding-top: 16px !important;
  border-top: 1px solid #f3f6f4;
  font-size: inherit;
}

.header-mobile-menu .socials {
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px !important;
  border-top: 1px solid #f3f6f4;
}

/* */
.header-middle {
  background-color: white;
  padding: 32px 0;
}

.header-middle .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.green-btn,
.white-btn {
  padding: 9px 24px;
  color: #ffe62d !important;
  background-color: #386641;
  transition: all 0.3s;
  border-radius: 4px;
  height: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.green-btn:hover,
.white-btn:hover {
  color: #386641 !important;
  background-color: #ffe62d;
}

.green-btn svg path {
  fill: #ffe62d;
  transition: all 0.3s;
}

.green-btn:hover svg path,
.white-btn:hover svg path {
  fill: #386641;
}

.white-btn {
  color: #386641 !important;
  background-color: white;
}

.white-btn svg path {
  fill: #386641;
  transition: all 0.3s;
}

html body form .white-input {
  height: 40px;
  border: 2px solid white;
  border-color: white !important;
  border-radius: 4px;
  background: transparent;
  padding-left: 16px;
}

html body form .white-input::placeholder {
  color: white !important;
}

html body form .white-input:focus {
  border-color: var(--yellow) !important;
}

html body form .green-input {
  height: 40px;
  width: 100%;
  border: 2px solid var(--green-dark);
  border-color: var(--green-dark) !important;
  color: black !important;
  border-radius: 4px;
  background: transparent;
  padding-left: 16px;
}

textarea.green-input {
  height: 120px;
  padding-top: 8px;
}

html body form .green-input::placeholder {
  color: #c3cac5 !important;
}

html body form .green-input:focus {
  border-color: var(--green-dark) !important;
}

.header-middle form {
  position: relative;
  flex-grow: 1;
}

body .header-middle form input {
  height: 100%;
  outline: none;
  border: 2px solid #386641;
  border-color: #386641 !important;
  height: 40px;
  border-radius: 4px;
  padding-left: 50px;
  font-size: 14px;
  line-height: 22px;
  width: 100%;
}

.header-middle form input::placeholder {
  color: #386641;
}

.header-middle form button {
  background: transparent;
  border: none;
  position: absolute;
  left: 16px;
  top: 8px;
}

.header-middle .header-controls {
  display: flex;
  gap: 8px;
}

.header-middle .open-mobile-menu.mobile-only {
  display: none;
}

.header-controls a,
.header-controls div {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  background: var(--green-light);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.header-controls a:hover,
.header-controls div:hover {
  background: var(--yellow);
}

.header-controls a .counter,
.header-controls div .counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  font-size: 12px;
  line-height: 1;
  padding: 0 5px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  width: fit-content;
}

.header-categories {
  background: white;
  padding-bottom: 24px;
}

.header-categories .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.header-categories a {
  padding: 0 16px;
  height: 54px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  display: grid;
  place-items: center;
}

.header-categories a:hover {
  background-color: #ffe62d;
}

@media (max-width: 1200px) {
  .header-middle .container {
    gap: 32px;
  }
  .header-categories .container {
    gap: 8px;
  }
}
@media (max-width: 830px) {
  .header-v2 .header-categories,
  .header-v2 .header-top {
    display: none !important;
  }
  .header-v2 .header-middle a[href='/catalog'],
  .header-v2 .header-middle img {
    display: none;
  }
  .header-v2 .header-middle .open-mobile-menu.mobile-only {
    display: flex;
  }
}
@media (max-width: 700px) {
  .header-middle {
    padding: 24px 0;
  }
  .header-middle .container {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 16px;
    column-gap: 8px;
  }
  .header-middle .logo {
    width: 80%;
    display: flex;
    justify-content: end;
  }
}
@media (max-width: 430px) {
  .header-middle form {
    flex: 1; /* чтоб инпут влезал во второй ряд */
  }
}
/* вставить потом в компонент ревью 2 */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.reviews-list {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.reviews-list .review {
  background-color: var(--green-light);
  border-radius: 8px;
  padding: 24px;
}

.review .name-row {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.review .my-stars {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.review .date {
  margin-bottom: 16px;
  color: #929292;
}

.review .read-more {
  margin-top: 8px;
  color: #929292;
  cursor: pointer;
}

.review .read-more:hover {
  text-decoration: underline;
}

.review .text {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Ограничение в 5 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review .text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (max-width: 1440px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}
@media (max-width: 950px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}
@media (max-width: 768px) {
  .reviews-list {
    display: flex;
    gap: 8px;
    overflow: auto;
  }
  .reviews-list::-webkit-scrollbar {
    display: none;
  }
}
.footer_v2 {
  background: var(--green-dark);
  padding-top: 60px;
  padding-bottom: 24px;
  color: white;
}
.footer_v2 .footer-top-part {
  position: relative;
}
.footer_v2 div {
  color: white;
}
.footer_v2 .logo {
  display: flex;
  align-items: start;
}
.footer_v2 a {
  color: white;
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer_v2 a:hover {
  text-decoration: underline;
}
.footer_v2 .container {
  display: flex;
  justify-content: space-between;
}
.footer_v2 .columns,
.footer_v2 .columns_deep {
  display: flex;
  gap: 100px;
}
.footer_v2 .column {
  display: flex;
  flex-direction: column;
}
.footer_v2 form .white-input {
  width: 380px;
}
.footer_v2 .footer-socials {
  position: absolute;
  left: var(--new-container-padding);
  top: 85px;
}
.footer_v2 .socials {
  display: flex;
  gap: 16px;
}
.footer_v2 .socials svg {
  width: 40px;
  height: 40px;
}
.footer_v2 .socials svg path {
  fill: white;
}
.footer_v2 .socials svg:hover path {
  fill: var(--yellow);
}
.footer_v2 .footer-bottom-part {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 32px;
}
.footer_v2 .policy {
  color: #c3cac5;
}

@media (max-width: 1800px) {
  .footer_v2 .white-input {
    width: 310px !important;
  }
  .footer_v2 form {
    flex-direction: column;
  }
  .footer_v2 .columns,
  .footer_v2 .columns_deep {
    gap: 40px;
  }
}
@media (max-width: 1400px) {
  .footer_v2 {
    padding-top: 40px;
  }
  .footer_v2 .logo svg {
    max-width: 210px;
  }
  .footer_v2 .columns_deep {
    flex-direction: column;
    row-gap: 16px;
  }
}
/* включает в себя копию @media стилей до 1400px */
.footer_v2.not-mainpage {
  padding-top: 40px;
}
.footer_v2.not-mainpage .white-input {
  width: 310px !important;
}
.footer_v2.not-mainpage form {
  flex-direction: column;
}
.footer_v2.not-mainpage .columns,
.footer_v2.not-mainpage .columns_deep {
  gap: 40px;
}
.footer_v2.not-mainpage .logo svg {
  max-width: 210px;
}
.footer_v2.not-mainpage .columns_deep {
  flex-direction: column;
  row-gap: 16px;
}

@media (max-width: 1000px) and (min-width: 769px) {
  .footer_v2 .footer-top-part {
    display: grid;
    grid-template-columns: auto 1fr;
  }
}
@media (max-width: 768px) {
  .footer_v2 .logo {
    margin-bottom: 16px;
  }
  .footer_v2 .footer-top-part {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer_v2 .columns,
  .footer_v2 .columns_deep {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .footer_v2 nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer_v2 .column {
    align-items: center;
  }
  .footer_v2 .footer-socials {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer_v2 .form-column {
    order: 3;
    text-align: center;
    margin-top: 16px;
  }
  .footer_v2 .form-column button {
    width: 100%;
  }
}
@media (max-width: 450px) {
  .footer-bottom-part {
    flex-direction: column;
  }
}
