/* ====== Block ====== */
.wardrobe-hero {
  position: relative;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-2xl);

  min-height: 420px;
  background: #000 center / cover no-repeat;
  background-image: var(--bg);
}
.flexslider .slides img.onlymob {
  display: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 60px 0 0 100px;
  /*
* Created with https://www.css-gradient.com
* Gradient link: https://www.css-gradient.com/?c1=010101&c2=010101&gt=l&gd=dcl
*/
  background: rgba(1, 1, 1, 1);
  background: linear-gradient(90deg, rgba(1, 1, 1, 0.5), rgba(1, 1, 1, 0));
  border-radius: 30px;
  z-index: 10;
}

.hero__title {
  margin: 0 0 var(--space-6);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 3.8vw, 44px);
  color: #fff;
  margin-bottom: 30px;
}

.hero__lead {
  margin: 0 0 var(--space-8);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  opacity: 0.95;
  color: #fff;
}

.hero__content .btn {
  height: 56px;
  margin-top: 30px;
  background: #55b443;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  padding: 0 50px;
  line-height: 56px;

  display: block;
  width: auto;
  position: absolute;
  bottom: 60px;
  left: 100px;
}

/* ====== Thumbs row ====== */
.thumbs {
  position: absolute;
  left: clamp(16px, 5vw, 56px);
  right: clamp(16px, 5vw, 56px);
  bottom: clamp(12px, 2.8vw, 26px);
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.thumbs__track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--space-3);
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.thumbs__track::-webkit-scrollbar {
  display: none;
}

.thumb {
  width: clamp(88px, 14vw, 140px);
  height: clamp(64px, 10vw, 104px);
  border-radius: 16px;

  scroll-snap-align: center;
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.thumb:hover {
  transform: translateY(-2px);
}
.thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 16px;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #34c759;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;

  transition: transform 0.12s ease;
}
.nav-btn:hover {
  transform: scale(1.05);
}
.nav-btn:active {
  transform: scale(0.98);
}
.nav-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

:root {
  --green: #33b34a;
  --bg: #f6f6f6;
  --text: #0f172a;
  --muted: #0f172a;
  --radius: 28px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

.stats {
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  grid-template-columns: 1fr;
}

.stats__item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: clamp(18px, 3.2vw, 32px) clamp(20px, 4vw, 40px);
}

.stats__num {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.1;
  margin-bottom: clamp(10px, 1.5vw, 14px);
}

.stats__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.45;
}

/* Раскладка в три колонки на широкой */
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

:root {
  --green: #33b34a;
  --green-2: #23a646;
  --card: #f4f8fb;
  --gift: #f3fbf3;
  --text: #0f172a;
  --muted: #334155;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

.project-block {
}
.project-grid {
  max-width: 1200px;
  margin: 0 auto;
}
.slides img {
  width: 100%;
}
/* Левая карточка */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 28px);
}
.card__title {
  margin: 0 0 30px 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
}
.accent {
  color: var(--green);
}
.card__lead {
  margin: 0 0 70px 0;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
}

/* Слайдер (без JS) */
.slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.slider__img {
  width: 100%;
  height: clamp(200px, 34vw, 330px);
  object-fit: cover;
  border-radius: 16px;
}
.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.slider__nav--prev {
  left: 10px;
}
.slider__nav--next {
  right: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d6dbe3;
}
.dot.is-active {
  background: #a8b2c0;
}

/* Правая часть */
.right-col {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  padding-left: 12px;
}
.feature {
  background: #eef6fb;
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 30px);
  margin: 1% 0 0.5% 1%;
  display: inline-block;
  vertical-align: top;
  width: 49%;
}
.feature__icon img {
  height: 55px;
  width: auto;
  border-radius: 0;
}
.feature__title {
  max-width: 150px;
  height: 70px;
  font-size: 18px;
}
.feature h3 {
  margin-bottom: 0;
}
.feature p {
  margin-top: 6px;
}
/* Баннер-подарок */
.feature:last-child {
  width: 99%;
  margin-top: 1%;
  position: relative;
  background: var(--gift);
  border-radius: var(--radius-xl);
  background-image: url(/landing/img/gift_bg.svg);
  background-repeat: no-repeat;
  background-position: bottom right;

  overflow: hidden;
}
.feature:last-child .feature__title {
  max-width: 100%;
  height: auto;
}
.feature:last-child h3 {
  margin-bottom: 12px;
}
.feature__title p {
  margin: 0;
}
.feature:last-child .gift__content {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px);
}
.gift__content h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(18px, 2vw, 20px);
}
.gift__content p {
  margin: 0;
  color: #50606f;
  font-size: clamp(14px, 1.4vw, 16px);
}
.gift__bg {
  position: absolute;
  right: clamp(6px, 2vw, 18px);
  bottom: -10px;
  font-size: clamp(120px, 18vw, 220px);
  color: #d8f0db;
  line-height: 1;
  z-index: 1;
}

.card--left {
  background-color: #f8f8f8;
  display: inline-block;
  vertical-align: top;
  width: 50%;
}

.measure {
  padding: 0;
  margin-top: 150px;
  font-size: 0;
  margin-bottom: 80px;
}

.measure__card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: #f3f4f6;
  border-radius: 32px; /*
* Created with https://www.css-gradient.com
* Gradient link: https://www.css-gradient.com/?c1=ccffc3&c2=f8f8f8&gt=l&gd=dtt
*/
  background: #ccffc3;
  background: linear-gradient(180deg, #ccffc3, #f8f8f8);
  border-top-right-radius: 40px;
}
.measure__card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url(/landing/img/blobbg.svg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  top: 0;
  left: 0;
}

.measure__grid {
  padding: 50px 50px;
}

.measure__text {
  z-index: 2;
  display: inline-block;
  vertical-align: bottom;
  width: 50%;
  position: relative;
  padding-right: 100px;
  padding-bottom: 40px;
}
.measure__title {
  margin: 0 0 0.5em;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  color: #0f172a;
}
.measure__lead {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

.measure__form {
  display: inline-block;
  vertical-align: bottom;
  width: 50%;
  z-index: 2;
  position: relative;
  padding-left: 100px;
}
.measure__form input {
  height: 52px;
  margin-bottom: 12px;
  width: 100%;
  border: 0;
  font: 16px / 1.215 "Jost-Regular", Arial, sans-serif;
  border-radius: 12px;
  padding: 0 16px;
  background: #ffffff;
  box-shadow: 0px 4px 20px 0px #0000000d;
  border: 1px solid #00000030;
  font-size: 16px;
  color: #0f172a;
  outline: none;
}
.measure__form label {
  font-size: 14px;
  position: relative;
  padding-left: 30px;
  padding-bottom: 30px;
  margin-top: 12px;
  display: block;
}
.measure__form label a {
  margin-top: 6px;
  display: block;
}
.measure__form .doors__form-button {
  display: block;
  width: 100%;
  border-radius: 12px;
}
.measure__form input::placeholder {
  color: #9aa4b2;
}
.measure__form input:focus {
  border-color: #55b443;
}

.measure .btn {
  height: 56px;
  margin-top: 30px;
  background: #55b443;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: block;
  width: 100%;
}
.measure .btn:hover {
  background: #2a9c45;
}
.measure .btn:active {
  background: #20853a;
}

.measure__blob {
  position: absolute;
  left: 50%;
  top: -40%;
  width: 440px;
  margin-left: -190px;
  height: 110%;
  background-image: url(/landing/img/blob.png);
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 0;
}
.measure__blob::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  content: "";
  height: 100px; /*
* Created with https://www.css-gradient.com
* Gradient link: https://www.css-gradient.com/?c1=ffffff&c2=ffffff00&gt=l&gd=dtt
*/
  background: #f8f8f8;
  background: linear-gradient(180deg, #f8f8f800, #f8f8f8);
}
.project-block {
  font-size: 0;
}
.measure__ruler {
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background-repeat: repeat-x;
  background-image: url(/landing/img/measure.svg);
  background-position: bottom;
  opacity: 0.6;
}
.project-block .flexslider {
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  padding: 0;
}
.flex-prev {
  background-color: #55b443;
  width: 32px;
  height: 32px;
  border-radius: 32px;
  position: absolute;
  left: -15px;
  top: 50%;
  margin-top: -16px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
}
.flex-next {
  background-color: #55b443;
  width: 32px;
  height: 32px;
  border-radius: 32px;
  position: absolute;
  right: -15px;
  top: 50%;
  margin-top: -16px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
  transform: rotate(180deg);
}
.slider {
  overflow: visible;
  border-radius: 16px;
}
.slider li {
  border-radius: 16px;
  overflow: hidden;
}

#carousel.flexslider {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  background-color: #fff;
  padding: 25px 0 0 30px;
  border-radius: 0;
  border-top-left-radius: 30px;
  margin: 0;
  border: 0;
  z-index: 50;
}
#carousel.flexslider img {
  border-radius: 22px;
}
#slider.flexslider {
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
}
.flex-direction-nav a:before {
  font-size: 0 !important;
  display: none !important;
}
#carousel.flexslider .flex-active-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180.48deg,
    rgba(85, 180, 67, 0) 17.77%,
    rgba(85, 180, 67, 0.6) 99.58%
  );
  border-radius: 20px;
}
.flexslider .slides > li {
  position: relative;
}

#carousel.flexslider::after {
  content: "";
  width: 40px;
  height: 30px;
  top: -29px;
  right: 0;
  position: absolute;
  background-image: url(https://gardie-design.com/landing/img/ugol.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
}
#carousel.flexslider::before {
  content: "";
  width: 40px;
  height: 30px;
  left: -38px;
  bottom: -1px;
  position: absolute;
  background-image: url(https://gardie-design.com/landing/img/ugol.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
}
#carousel.flexslider .slides > li {
  /*padding-right: 30px; padding-left: 20px;*/
  cursor: pointer;
}

.flex-direction-nav a {
  z-index: 10000 !important;
}

#carousel.flexslider .flex-direction-nav {
  display: none;
}
#slider.flexslider .flex-direction-nav .flex-disabled {
  opacity: 1 !important;
}
#slider.flexslider .flex-direction-nav a {
  opacity: 1;
}
#slider.flexslider .flex-direction-nav .flex-prev {
  left: 20px;
}
#slider.flexslider .flex-direction-nav .flex-next {
  right: 20px;
}
@media (max-width: 767px) {
    .header.landheader .search-toggle {display: none; width: 0; height: 0;}
    .header.landheader .header__phone {position: static;}
    .test__heading {font-size: 16px; line-height: 24px; margin-bottom: 20px;}
    .test__elements {padding: 0 12px 30px 12px;}
    .test__elements .test__type-item {width: 100px; margin: 0 3px;}
    .test__step-4, .test__step-3, .test__finish {padding: 20px;}
    .test__size-fields {display: block;}
    .test__size-field {width: 100%; display: block; margin: 12px 0;}
    .test__size-input {display: block; width: 100%; margin: 0;}
    .hero__title {font-size: 22px; line-height: 30px;}
  .flexslider .slides img.onlymob {
    display: block;
  }
  .flexslider .slides img.desctop {
    display: none;
  }
  #carousel.flexslider {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 12px 0 0 0;
  }
  #carousel.flexslider .flex-direction-nav .flex-next,
  #carousel.flexslider .flex-direction-nav .flex-prev {
    display: none;
  }
  .right-col {
    width: 100%;
    padding: 20px 0 0 0;
    display: block;
  }
  .card--left {
    display: block;
    width: 100%;
    margin-bottom: 40px;
  }
  .measure__blob {
    top: -50px;
    right: 0;
    left: auto;
    bottom: auto;
    width: 40%;
    height: 250px;
    background-position: left;
    background-size: cover;
  }
  .footer-nav__section {
    width: 100%;
    display: block;
    padding: 20px 0;
  }
  .measure__text {
    display: block;
    width: 100%;
    padding-right: 0;
  }
    .hero__lead {font-size: 12px; line-height: 16px;}
  .measure__form {
    display: block;
    width: 100%;
    padding: 30px 0 0 0;
  }
  .recent-projects__item {
    height: 300px;
  }
  .wrapper {
    width: 90%;
  }
  .measure {
    margin-top: 30px;
  }
  .feature {
    width: 100%;
    margin: 12px 0;
  }
  .feature__title {
    height: auto;
    width: calc(100% - 90px);
    padding-left: 30px;
    max-width: 100%;
    margin-top: 0;
    display: inline-block;
    vertical-align: middle;
  }
  .feature:last-child h3 {
    margin-top: 0;
  }
  .measure__card::before {
    display: none;
  }
  #slider.flexslider .slides > li {
    width: 100%;
    overflow: hidden;
  }
  #slider.flexslider .slides > li img {
  }
  .flexslider .slides:after,
  #carousel.flexslider::after {
    display: none !important;
  }
  .flexslider .slides:before {
    display: none !important;
  }
  .measure__card {
    background: #f8f8f8;
  }
  .feature__icon {
    display: inline-block;
    vertical-align: middle;
  }
  .hero__content {
    padding: 30px;
  }
  #slider.flexslider .flex-direction-nav .flex-prev {
    left: 30px;
    bottom: 30px;
    top: auto;
  }
  #slider.flexslider .flex-direction-nav .flex-next {
    right: auto;
    bottom: 30px;
    top: auto;
    left: 80px;
  }
  .hero__content .btn {
    position: static;
    text-align: center;
    width: 200px;
    padding: 0;
  }
  .wardrobe-hero {
    min-height: 450px;
  }
  #slider.flexslider {
    position: relative;
  }

  #carousel.flexslider .flex-active-slide::after {
    left: 0;
    width: 100%;
  }
  .measure__grid {
    padding: 20px;
  }
  .measure__text {
    padding-bottom: 0;
  }
  #main {
    overflow: hidden;
  }
}

/* Стили для модального окна проекта */
#project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}
#project-modal-window {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 40px 20px 40px;
  overflow-x: hidden;

  clip-path: inset(0 round 20px);      /* жестко режет по радиусу, скролл работает */
  -webkit-clip-path: inset(0 round 20px);
}
#project-modal-close {
  position: sticky;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-size: 24px;
  line-height: 34px;
  text-indent: 1px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  border: none;
  z-index: 9999;
  float: right;
}
.project-modal__slider .photo-gallery {
  background-color: transparent;
  width: 100%;
}
.photo-gallery__thumbs-wrap .photo-gallery__arrow--next {
  width: 30px;
  height: 30px;
  background-color: #55b443;
  border-radius: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
  transform: rotate(180deg);
  display: none;
}
.photo-gallery__thumbs-wrap .photo-gallery__arrow--prev {
  width: 30px;
  height: 30px;
  background-color: #55b443;
  border-radius: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
  display: none;
}

.photo-gallery__images .photo-gallery__arrow--prev {
  width: 50px;
  height: 50px;
  background-color: #55b443;
  border-radius: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  opacity: 1 !important;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
}
.photo-gallery__images .photo-gallery__arrow--next {
  width: 50px;
  height: 50px;
  background-color: #55b443;
  border-radius: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 6px;
  opacity: 1 !important;
  background-image: url(https://gardie-design.com/landing/img/flexarr.svg);
  transform: rotate(180deg);
}
.photo-gallery__thumbs .swiper-slide::before {
  border: 0;
}
.photo-gallery__thumbs .swiper-slide img {
  border-radius: 12px;
}
@media (max-width: 768px) {
  #project-modal-window {
    padding: 15px;
  }
}

.measure .geosuggest-option-title,
.measure .geosuggest-option-province {
  font: 16px / 1.215 "Jost-Regular", Arial, sans-serif;
}
.lastworksland {position: relative; padding: 70px 0 10px 0; margin-bottom: 40px;}
.lastworksland::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: 0 calc(50% - 50vw);
    background: #EFF2F4;
}
/* Шапка: общий отступ снизу можно тоже уменьшить при желании */
.header.landheader{
  position: relative;
  z-index: 20;
  margin: 0 0 20px;   /* если нужно меньше — сделай 20-30px */
  padding: 20px 0 0;
}

/* Верхняя строка: уменьшаем отступ вниз */
.header.landheader .header__top{
  display: flex;
  align-items: center;
  margin: 0 0 16px;   /* было 45px */
}

/* Средняя строка: выравниваем элементы и уводим телефоны вправо */
.header.landheader .header__mid{
  position: relative;
  display: flex;
  align-items: center;
}

/* Лого НЕ трогаем */
.header.landheader .header__logo{
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 50px;
  margin: 0 20px 0 0;
  background: url(../img/logo.png) no-repeat 0 / 120px 50px;
}

/* Телефоны вправо */
.header.landheader .header__phone{
  margin: 0 0 0 auto;  /* ключевое: прижимает вправо */
  text-align: right;   /* чтобы номера ровно справа */
  display: flex;
  flex-direction: column;
  gap: 4px;            /* аккуратный интервал между номерами */
}

/* если надо, чтобы номера не растягивались */
.header.landheader .header__phone-number{
  white-space: nowrap;
}

.header.landheader .social__item { margin: 0 0 0 12px;}
.header.landheader .social {display: flex;
    align-items: center;
    justify-content: flex-end; /* 👈 прижимаем вправо */ margin: 0 0 6px 0;}
