/* ==========================================================================
   1. ПЕРЕМЕННЫЕ (Дизайн-токены)
   ========================================================================== */
:root {
  --font-family-main: 'Roboto', sans-serif;
  --font-family-heading: 'Merriweather', serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --color-orange: #f78b2d;
  --color-green: #aadc41;
  --color-green-dark: #2a2b18;
  --color-black: #241c1c;
  --color-black-plh: #989898;
  --color-dark: #5c564f;
  --color-light: #b19065;
  --white-color: #ffffff;

  --text-shadow: 3px 3px 6px rgba(36, 28, 28, 0.5);
  --box-shadow: 0 12px 28px rgba(36, 28, 28, 0.4);
  --box-shadow-green: 0 12px 28px rgba(170, 220, 65, 0.4);
  --drop-shdov: drop-shadow(5px 6px 8px rgba(0, 0, 0, 0.5));
  --gallery-images-count: 65;
  --catalog-cards-count: 32;
}
/* ==========================================================================
   2. ТИПОГРАФИЯ (Шрифты)
   ========================================================================== */
/* roboto-300 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src:
    url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-300.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-300.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* roboto-regular - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src:
    url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-regular.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-regular.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* roboto-500 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src:
    url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-500.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-500.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* roboto-600 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src:
    url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-600.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-600.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* roboto-700 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src:
    url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-700.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/roboto-v51-cyrillic_cyrillic-ext_latin-700.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* merriweather-regular - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src:
    url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-regular.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-regular.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* merriweather-500 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 500;
  src:
    url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-500.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-500.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* merriweather-600 - cyrillic_cyrillic-ext_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 600;
  src:
    url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-600.woff2')
      format('woff2'),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url('../fonts/merriweather-v33-cyrillic_cyrillic-ext_latin-600.ttf')
      format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* ==========================================================================
   3. БАЗОВЫЕ СТИЛИ И ПК-ВЕРСИЯ (По умолчанию)
   ========================================================================== */
html,
body {
  overflow-x: hidden;
}
body {
  background-color: #fdf9ed;
}
h1 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-medium);
  font-size: 1.9em;
  line-height: 1.4;
}
h2 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  font-size: 1.2em;
  line-height: 1.4;
}
h3 {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 1.2em;
  line-height: 1.4;
}
h4,
.faq-btn {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  font-size: 1em;
  line-height: 1.4;
}
h1 span {
  color: #ff9a42;
}
p,
.faq-content-inner,
#current-year {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-light);
  font-size: 0.9em;
  line-height: 1.4;
}
p span,
.faq-content-inner span {
  font-weight: var(--font-weight-medium);
}
.wrapper-content {
  max-width: 1200px;
  margin: 0 auto;
}
.btn {
  position: relative;
  display: inline-block;
  padding: 0;
  background-color: var(--color-orange);

  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition:
    box-shadow 0.5s ease,
    background-color 0.5s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn__text {
  position: relative;
  display: inline-block;
  padding: 10px 40px;
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: var(--text-shadow);
  color: white;
  z-index: 2;
  pointer-events: none;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  transform: skewX(-18deg) translateX(-200%);
  filter: drop-shadow(-4px 0 6px rgba(255, 255, 255, 0.5));
  z-index: 1;
  pointer-events: none;
  animation-delay: 5s;
  animation: shine 4.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
button[type='submit'] {
  position: relative;
}
.btn:hover {
  background-color: var(--color-green);
  box-shadow: var(--box-shadow-green);
}
/* ==========================================================================
   4. СЕКЦИЯ HERO (Главный экран) И ШАПКА
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: rgba(42, 43, 24, 0.6);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.header__container,
.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.header__logo {
  width: 160px;
  aspect-ratio: 242 / 76;
  height: auto;
}
.header__contact-info {
  display: flex;
  flex-direction: column;

  gap: 5px;
  margin-top: 4px;
}
.header__contact-info a,
.nav__list a {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-light);
  color: var(--white-color);
  transition: color 0.3s ease;
}
.header__phone::before,
.header__email::before {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.header__phone::before {
  content: url(../images/svg/phone-logo.svg);
}
.header__email::before {
  content: url(../images/svg/email-logo.svg);
}
.header__contact-info a:hover {
  color: var(--color-orange);
}

.nav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 20px;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  text-decoration: none;
}
.nav__list li::marker {
  font-size: 1.2em;
  color: var(--white-color);
  transition: color 0.3s ease;
}
.nav__list li:nth-child(3),
.nav__list li:nth-child(6) {
  margin-left: 8px;
}
.nav__list li:hover::marker {
  color: var(--color-orange);
}
/* ========================================================================
   ЭФФЕКТ МЕНЮ (ПРИТУХАНИЕ СОСЕДЕЙ + МАРКЕРЫ)
   ======================================================================== */
.nav__list li {
  transition: opacity 0.3s ease;
}
.nav__list:has(a:hover) li:not(:has(a:hover)) {
  opacity: 0.4;
}
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 100;
}
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 100;
}
.hamburger__line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--white-color);
  left: 0;
  transition: all 0.3s ease;
}
.hamburger__line:nth-child(1) {
  top: 0;
}
.hamburger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger__line:nth-child(3) {
  bottom: 0;
}
.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
  height: 100vh;
}
.hero__right-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 19% 60px 10%;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark);
  z-index: -1;
  transform: translateX(100%);
  animation: slideInBg 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}
.hero__text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  animation: fadeIn 0.3s ease 1.6s forwards;
}
.hero__title,
.hero__subtitle,
.hero__cta-text,
.hero__arrow,
.hero__btn {
  color: var(--white-color);
  transform: translateX(60px);
  opacity: 0;
  text-shadow: var(--text-shadow);
  animation: slideInText 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.hero.is-hero-animating .hero__title,
.hero.is-hero-animating .hero__subtitle,
.hero.is-hero-animating .hero__cta-text,
.hero.is-hero-animating .hero__arrow,
.hero.is-hero-animating .hero__btn {
  will-change: transform, opacity;
}
.callback-widget__icon {
  will-change: transform;
}
.hero__subtitle {
  margin: 20px 0;
}
.hero__arrow {
  margin: 40px 0 10px 0;
  height: 60px;
}
.hero__arrow span {
  display: block;
  width: 24px;
  height: 24px;
  border-bottom: 4px solid var(--color-green);
  border-right: 4px solid var(--color-green);
  transform: rotate(45deg);
  margin: -16px 0;
  animation: arrow-bottom 2.5s infinite;
}
.hero__arrow span:nth-child(2) {
  animation-delay: -0.2s;
}
.hero__arrow span:nth-child(3) {
  animation-delay: -0.4s;
}
.hero__btn,
.hero__arrow {
  align-self: center;
  margin-right: 30px;
}
.hero__title {
  animation-delay: 1.8s;
}
.hero__subtitle {
  animation-delay: 1.95s;
}
.hero__cta-text {
  animation-delay: 2.1s;
}
.hero__arrow {
  animation-delay: 2.25s;
}
.hero__btn {
  animation-delay: 2.4s;
}
/* ==========================================================================
   5. СЕКЦИЯ INSPECTION (Проверка дверей)
   ========================================================================== */
.inspection-section,
.door-constructor {
  width: 100%;
  min-height: 100vh;
  height: auto;
  position: relative;
  padding-bottom: 1px;
}
.inspection-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fdf9ed;
  background-image: url('../images/background/textur-bg-1.jpg');
  background-repeat: no-repeat;
  background-position: 0% 85%;
  background-size: cover;
  background-blend-mode: multiply;
  transform: scaleX(-1);
  z-index: -1;
}
.section-title {
  background-color: var(--color-green-dark);
  color: var(--white-color);
  text-align: center;
  line-height: 77px;
  box-shadow: var(--box-shadow);
}
.section-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  min-height: calc(100vh - 77px);
  height: auto;
  margin-bottom: 20px;
  gap: 20px;
}
.info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  max-width: 46%;
  height: 100%;
}
.text-card {
  background-color: var(--color-light);
  color: var(--white-color);
  padding: 20px;
  width: 100%;
  height: auto;
  box-shadow: var(--box-shadow);
}
.text-card h4 {
  color: var(--color-black);
  margin-bottom: 8px;
  text-align: center;
}
.worker-wrapper {
  max-width: 250px;
  width: 46%;
  position: relative;
  right: 32px;
}
.worker-wrapper picture img {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: var(--drop-shdov);
}
.stamp-icon {
  position: absolute;
  top: 10%;
  right: 110%;
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}
.doors-block {
  width: 52%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.door-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.door-item {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.door-label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-black);
}
.door-img {
  width: 100%;
  height: auto;
  display: block;
  filter: var(--drop-shdov);
}
.door-img::after {
  content: url(../images/arrow-in.png);
}
.arrow-in-icon {
  position: absolute;
  top: 0;
  left: 14%;
  width: 20%;
  height: auto;
  opacity: 0;
  animation: airFlow-in 2.5s infinite;
  z-index: 1;
}
.arrow-out-icon {
  position: absolute;
  top: 0;
  right: 14%;
  width: 20%;
  height: auto;
  opacity: 0;
  animation: airFlow-out 2.5s infinite;
  z-index: 1;
}
/* ==========================================================================
   6. DOOR CONSTRUCTOR (КОНСТРУКТИВ)
   ========================================================================== */
.door-constructor {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fdf9ed;
  background-image: url('../images/background/textur-bg-1.jpg');
  background-position: 0% 85%;
  background-position: center bottom;
  background-size: cover;
  background-blend-mode: multiply;
}
.door-visual {
  width: 32%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.door-visual {
  max-height: 100%;
  width: 35%;
}
.image-door-constructor-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.main-door-constructor-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: normal;
  filter: var(--drop-shdov);
}
.hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-orange);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  z-index: 10;
}
.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}
.hotspot:before,
.hotspot:after {
  position: absolute;
  content: '';
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: solid 1px var(--color-orange);
  border-radius: 50%;
}
.hotspot:before {
  animation: ripple 2s linear infinite;
}
.hotspot:after {
  animation: ripple 2s 1s linear infinite;
}
.hotspot.active {
  background-color: var(--color-green); /* Зеленый цвет при клике */
}
.hotspot.active:before,
.hotspot.active:after {
  border-color: var(--color-green);
}
.door-details {
  width: 65%;
  background-color: var(--color-dark);
  padding: 30px;
  box-shadow: var(--box-shadow);
}
.panel-header h4 {
  padding-left: 10px;
  width: 170px;
  color: var(--white-color);
  line-height: 1.8;
}
.detail-panel {
  display: none;
  animation: fadeInContentBlock 0.4s ease-in-out;
}
.detail-panel.active {
  display: block;
}
.panel-images {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: -100px;
}
.circle-img img {
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  max-width: 150px;
  border-radius: 50%;
  background-color: #fdf9ed;
  object-fit: cover;
  border: solid 2px var(--color-green);
  box-shadow: var(--box-shadow);
}
.rect-img img {
  max-width: 500px;
  max-height: 330px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: solid 2px var(--color-green);
  box-shadow: var(--box-shadow);
}
.panel-text {
  color: var(--white-color);
  background-color: var(--color-light);
  padding: 20px;
  box-shadow: var(--box-shadow);
}
/* ==========================================================================
   7. КАТАЛОГ (Сетка Grid)
   ========================================================================== */
.catalog-section {
  padding-bottom: 40px;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 40px;
}
.door-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  border: solid 2px var(--color-green);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}
.door-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-green);
}
.door-card__img-wrapper {
  flex-grow: 1;
  padding-bottom: 20px;
  border-bottom: solid 1px var(--color-black);
}
.door-card img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: var(--drop-shdov);
}
.door-card .door-card__img-wrapper img {
  aspect-ratio: 4 / 9;
}
.door-card--double .door-card__img-wrapper img {
  aspect-ratio: 6 / 9;
}
.door-card__title {
  color: var(--color-black);
  margin-top: 10px;
}
.door-card__price {
  color: var(--color-black);
  margin-bottom: 10px;
}
.door-card__price span {
  color: var(--color-orange);
}
.btn--details {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}
/* ==========================================================================
   8. Как мы работаем (Секция с иконками)
   ========================================================================== */
.how-we-work,
.faq-section {
  width: 100%;
  height: auto;
  position: relative;
  background-color: #fdf9ed;
  background-image: url('../images/background/textur-bg-2.jpg');
  background-repeat: no-repeat;
  background-position: 0% 85%;
  background-size: cover;
  background-blend-mode: multiply;
}
.how-we-work h4 {
  color: var(--color-black);
}
.section__how-we-work {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 0;
  width: 100%;
  height: auto;
}
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-item {
  width: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.step-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  filter: var(--drop-shdov);
  margin: 12px 0;
}
.arrow1,
.arrow2,
.arrow3 {
  rotate: -90deg;
  margin: 0 0 0 20px;
}
.text__container_how-we-work {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--color-light);
  gap: 16px;
  margin: 20px 0;
  box-shadow: var(--box-shadow);
}

.text__container_how-we-work div {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}
.text__container_how-we-work h4 {
  width: 12%;
}
.text__container_how-we-work p {
  color: var(--white-color);
  width: 88%;
}
/* ==========================================================================
   9. Галерея работ (с анимированным счётчиком)
   ========================================================================== */
.stats-grid {
  display: grid;
  background-color: var(--color-dark);
  background-image: url('../images/background/textur-bg-2.jpg');
  background-repeat: no-repeat;
  background-position: 0% 85%;
  background-size: cover;
  background-blend-mode: multiply;
  width: 100%;
  height: auto;
  gap: 20px;
  padding: 28px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    'card1 card2'
    'card3 card4';
  box-shadow: var(--box-shadow);
  margin: 40px 0;
}
.card-1 {
  grid-area: card1;
}
.card-2 {
  grid-area: card2;
}
.card-3 {
  grid-area: card3;
}
.card-4 {
  grid-area: card4;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(192, 116, 49, 0.65);
  color: var(--white-color);
}
.stat-card > p {
  font-size: 1em;
  font-weight: var(--font-weight-regular);
  margin-top: 12px;
}
.counter {
  font-size: 1.5rem;
  min-width: 6ch;
  font-family: var(--font-family-heading), monospace;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}
/* ==========================================================================
   10. СЕТКА ГАЛЕРЕИ РАБОТ
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.gallery__item {
  position: relative;
  aspect-ratio: 5 / 7;
  border: solid 2px var(--color-green);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: var(--color-dark);
}
.gallery__item::before {
  content: attr(data-index);
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-orange);
  color: var(--white-color);
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-medium);
  font-size: 0.9em;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  z-index: 2;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.gallery__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-green);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  display: block;
}
/* ==========================================================================
   11. СЕКЦИЯ ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ========================================================================== */
.callback__info {
  width: 70%;
  margin-bottom: 40px;
}
.callback-container {
  color: var(--color-black);
}
.callback__wrapper-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.callback__title {
  text-align: center;
}
.callback__subtitle {
  margin: 40px 0 28px 0;
}
.callback__info p:not(:first-of-type) {
  position: relative;
  padding-left: 21px;
  line-height: 2;
}
.callback__info p:not(:first-of-type)::before {
  content: url(../images/svg/checkbox.svg);
  position: absolute;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 1px;
}
.callback__wrapper-woomen {
  aspect-ratio: 689 / 621;
  width: 30%;
  z-index: -1;
}
.woomen-img {
  width: 100%;
  height: auto;
  transform: translateY(8px);
  filter: var(--drop-shdov);
}
.form-block {
  background-color: var(--color-light);
  padding: 28px;
  box-shadow: var(--box-shadow);
  color: var(--white-color);
  margin-bottom: 40px;
}
.form-block__group_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.form-block__group {
  width: 100%;
  position: relative;
  margin-bottom: 28px;
}
.form-block__input {
  width: 100%;
  padding: 16px 12px;
  border: 1px solid var(--color-orange);
  background-color: var(--white-color);
  font-family: var(--font-family-main);
  font-size: 1rem;
  color: var(--color-black);
  box-shadow: var(--box-shadow);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-block__input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: var(--box-shadow-green);
}
.form-block__label {
  position: absolute;
  left: 12px;
  top: 16px;
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-light);
  font-size: 0.9em;
  color: var(--color-black-plh);
  pointer-events: none;
  transition:
    transform 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
  transform-origin: left top;
}
.privacy-checkbox__text > span,
form p > span,
.required-star {
  font-size: 1.2em;
  font-weight: var(--font-weight-medium);
  color: #e63946;
}
.form-block__input:focus ~ .form-block__label,
.form-block__input:not(:placeholder-shown) ~ .form-block__label {
  transform: translateY(-24px) scale(0.85);
  background-color: var(--white-color);
  padding: 0 4px;
  color: var(--color-orange);
}
.form-block__error {
  position: absolute;
  bottom: -20px;
  left: 12px;
  font-family: var(--font-family-main);
  font-size: 0.85rem;
  color: #a60e1a;
  opacity: 0;
  transition: opacity 0.2s ease;
}
textarea.form-block__input {
  resize: none;
  height: 70px;
  padding: 12px;
  line-height: 1.4;
}
textarea.form-block__input:not(:focus) ~ .form-block__label {
  display: none;
}
textarea:placeholder-shown {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-light);
  font-size: 0.9rem;
  color: var(--color-black-plh);
}
.form-block__error.is-active {
  opacity: 1;
}
.form-block__privacy {
  position: relative;
  margin-bottom: 24px;
}
form p {
  margin-bottom: 16px;
}
form p > span {
  padding-top: 4px;
  padding-left: 7px;
  padding-right: 16px;
}
.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 10px;
}
.privacy-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.privacy-checkbox__custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-orange);
  border-radius: 4px;
  position: relative;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.privacy-checkbox__input:checked ~ .privacy-checkbox__custom {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}
.privacy-checkbox__custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--white-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}
.privacy-checkbox__input:checked ~ .privacy-checkbox__custom::after {
  opacity: 1;
}
.privacy-checkbox__input:focus ~ .privacy-checkbox__custom {
  box-shadow: 0 0 0 3px rgba(247, 139, 45, 0.3);
}
.privacy-checkbox__text {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-light);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--white-color);
}
.privacy-checkbox__link {
  color: var(--color-orange);
  text-decoration: underline;
}
.submit-wrapper {
  position: relative;
  width: 50%;
  margin: 0 auto;
}
.form-block__button {
  width: 100%;
  padding: 6px;
  display: block;
}
.form-block__button:disabled,
.form-block__button.is-disabled,
.callback-widget__btn-submit.is-disabled {
  background-color: #717171;
}
.form-block__spinner {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white-color);
  display: none;
  animation: spin 0.8s linear infinite;
}
/* ==========================================================================
   12. СЕКЦИЯ ВОПРОС-ОТВЕТ (АККОРДЕОН)
   ========================================================================== */
.faq-section {
  background-position: 0% 0%;
}
.faq-list {
  padding: 40px 0;
}
.faq-item {
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-btn {
  position: relative;
  width: 100%;
  padding: 18px;
  background-color: var(--white-color);
  border: 1px solid var(--color-orange);
  color: var(--color-black);
  cursor: pointer;
  text-align: center;
  outline: none;
}
.faq-btn > span {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  background-image: url('../images/svg/arrows-icon.svg');
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.faq-content-inner {
  overflow: hidden;
  background-color: var(--color-light);
  color: var(--white-color);
  transition: padding 0.3s ease;
}
.faq-item.active {
  border: 1px solid var(--color-green);
}
.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}
.faq-item.active .faq-btn {
  border: none;
}
.faq-item.active .faq-btn > span {
  transform: rotate(180deg);
}
.faq-item.active .faq-content-inner {
  padding: 20px 20px 20px 40px;
}

/* ==========================================================================
   13. ПОДВАЛ САЙТА
   ========================================================================== */
.footer-section {
  background-color: var(--color-green-dark);
}
footer .nav__list {
  column-gap: 100px;
}
.footer__bottom {
  color: var(--white-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px 20px 10px;
}
#current-year {
  font-size: 1em;
}
/* ==========================================================================
   МОДАЛЬНОЕ ОКНО (каталог дверей)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal.is-active {
  display: flex;
}
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 28, 28, 0.8);
  backdrop-filter: blur(5px);
}
.modal__content {
  position: relative;
  z-index: 101;
  background-color: #fdf9ed;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  color: var(--color-dark);
  transition: color 0.3s;
}
.modal__close:hover {
  color: var(--color-orange);
}
.modal__body {
  display: flex;
  gap: 40px;
}
.modal__image-wrapper {
  width: 30%;
}
.modal__image-wrapper img {
  width: 100%;
  height: auto;
  box-shadow: var(--box-shadow);
}
.modal__btn {
  margin-top: 20px;
  width: 100%;
}
.modal__info {
  width: 70%;
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  padding-right: 20px;
}
.modal__title {
  font-family: var(--font-family-heading);
  font-size: 1.2em;
}
.modal__price {
  font-family: var(--font-family-heading);
  font-size: 1.4em;
}
.modal__price span {
  color: var(--color-orange);
}
.modal__description {
  margin: 20px 0;
  color: var(--color-black);
  line-height: 1.6;
}
.modal__description ul li {
  border-bottom: solid 1px var(--color-green);
}
body.no-scroll {
  overflow: hidden;
}
.modal__description h4 {
  margin: 10px 0 8px 0;
}
/* ==========================================================================
   МОДАЛЬНОЕ ОКНО (галерея дверей)
   ========================================================================== */
.gallery-modal__content {
  width: 90vw;
  height: 90vh;
  max-width: 1400px;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.modal__content.gallery-modal__content {
  background-color: var(--color-dark);
}
.gallery-modal__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal__image-wrapper::before {
  content: attr(data-index);
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--color-orange);
  color: var(--white-color);
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 1em;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  z-index: 105;
  box-shadow: var(--box-shadow);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-modal__image-wrapper[data-index]::before {
  opacity: 1;
}
.gallery-modal__image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--box-shadow);
}
.gallery-modal__close {
  color: var(--white-color);
  margin: 0;
  z-index: 103;
}
.gallery-modal__close:hover {
  color: var(--color-orange);
}
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  background: rgba(36, 28, 28, 0.7);
  color: var(--white-color);
  font-size: 2.5rem;
  line-height: 1;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  z-index: 102;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.gallery-modal__nav:hover {
  background-color: var(--color-orange);
}
.gallery-modal__nav--left {
  left: 0;
}
.gallery-modal__nav--right {
  right: 0;
}
.callback-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: inherit;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transform-origin: right bottom;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.callback-widget.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.callback-widget__toggle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--color-orange);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}
.callback-widget__toggle::before,
.callback-widget__toggle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border-radius: 50%;
  border: 2px solid var(--color-orange);
  box-sizing: border-box;
  z-index: -1;
  pointer-events: none;
}
.callback-widget__toggle::before {
  animation: ripple-widget 2s infinite ease-out;
}
.callback-widget__toggle::after {
  animation: ripple-widget 2s 0.7s infinite ease-out;
}
.callback-widget__icon {
  width: 32px;
  height: 32px;
  background-image: url('../images/svg/gift.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform-origin: center top;
  animation: swing-widget-icon 2s ease-in-out infinite;
}
.callback-widget__box {
  background-color: var(--white-color);
  background-image: url('../images/background/textur-bg-2.jpg');
  background-repeat: no-repeat;
  background-position: 52% 0%;
  background-size: cover;
  background-blend-mode: multiply;
  box-shadow: var(--box-shadow);
  margin-right: 15px;
  border: 2px solid var(--color-green);
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  box-sizing: border-box;
  transition:
    max-width 0.4s ease,
    opacity 0.3s ease,
    padding 0.4s ease,
    max-height 0.4s ease;
  z-index: 5;
}
.callback-widget.is-open .callback-widget__box {
  max-width: 300px;
  max-height: 450px;
  opacity: 1;
  padding: 30px 30px 34px 30px;
}
.callback-widget.is-open .callback-widget__toggle {
  background-color: var(--color-green);
}
.callback-widget.is-open .callback-widget__toggle::before,
.callback-widget.is-open .callback-widget__toggle::after {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.callback-widget__text {
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 16px;
}
.callback-widget__text strong {
  color: #e74c3c;
  font-weight: 700;
}
.callback-widget__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.callback-widget__input {
  padding: 10px 12px;
}
.callback-widget__input + .form-block__label {
  top: 10px;
}
.callback-widget__form > .form-block__group {
  margin-bottom: 38px;
}
.callback-widget__form > .form-block__group .form-block__error {
  bottom: -34px;
}
.callback-widget__btn-submit .form-block__spinner {
  right: 10px;
  bottom: 10px;
}
.submit-wrapper-widget {
  position: relative;
}
.submit-wrapper-widget > .form-block__error {
  bottom: -32px;
}
.callback-widget__btn-submit {
  width: 100%;
}
section {
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.section-hidden {
  opacity: 0;
  transform: translateY(100px);
}
.compensate-offset {
  scroll-margin-top: 100px !important;
}
/* ==========================================================================
   Стили для всплывающего плашечного уведомления 
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  z-index: 9999;
  pointer-events: none;
}

/* Класс для отображения плашки */
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* ==========================================================================
   МЕДИА-ЗАПРОСЫ (DESKTOP-FIRST — НА УМЕНЬШЕНИЕ)
   ========================================================================== */
@media (max-width: 1250px) {
  .hero__right-content {
    padding: 120px 10% 60px 10%;
  }
  .wrapper-content:not(.header__container) {
    padding: 20px 10px;
  }
  .section-content {
    padding: 20px 10px;
  }
  .stats-grid {
    margin: 20px 0;
  }
  .stamp-icon {
    max-width: 180px;
  }
}
@media (max-width: 1140px) {
  .text__container_how-we-work h4 {
    width: 25%;
  }
  .text__container_how-we-work p {
    width: 75%;
  }
}
@media (max-width: 1080px) {
  :root {
    --catalog-cards-count: 30;
  }
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1080px) and (orientation: portrait),
  (max-width: 960px) and (orientation: landscape) {
  .hero__bg img {
    object-position: left center;
  }
  .hero__container {
    grid-template-columns: 0% 100%;
  }
  .hero__overlay {
    background-color: rgba(0, 0, 0, 0.4);
  }
  .hero__text-wrapper {
    align-items: center;
  }
  .hero__title,
  .hero__subtitle,
  .hero__cta-text {
    text-align: center;
  }
  .catalog__grid {
    gap: 20px;
  }
}
@media (max-width: 1080px) and (orientation: portrait) {
  .hero__btn,
  .hero__arrow {
    margin-right: 0;
  }
  .inspection-section,
  .door-constructor {
    min-height: auto;
  }

  .door-constructor {
    background-position: center top;
    background-size: auto;
  }
  .section-content {
    flex-direction: column;
    min-height: auto;
  }
  .info-block {
    min-width: 100%;
  }
  .worker-wrapper {
    right: 28%;
  }
  .door-details {
    width: 100%;
    margin-top: 20px;
  }
  .panel-header h4 {
    text-align: center;
    padding: 0;
  }
  .how-we-work,
  .faq-section {
    background-image: url(../images/background/textur-bg-2-mobile.jpg);
  }
  .modal__content:not(.modal__content.gallery-modal__content) {
    overflow: hidden;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
  }
  .modal__body {
    flex-direction: column;
    align-items: center;
  }
  .modal__close:not(.modal__close.gallery-modal__close) {
    position: fixed;
    top: 100px;
    right: 50px;
  }
  .modal__info {
    width: 100%;
    overflow: hidden;
    max-height: 100%;
  }
}
@media (max-width: 1000px) {
  :root {
    --gallery-images-count: 64;
  }
  .hero__bg img {
    object-position: -46px center;
  }
  .hamburger {
    display: block;
  }
  .header__container {
    justify-content: space-between;
    align-items: center;
  }
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.95);
    padding-top: 100px;
    transition: right 0.4s ease-in-out;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 99;
  }
  .header__nav.is-active {
    transform: translateX(0);
  }
  .nav__list {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
    justify-items: start;
    align-items: start;
    gap: 30px;
  }
  .header__nav > .nav__list:has(a:hover) li:not(:has(a:hover)) {
    opacity: 1;
  }
  .header__nav > .nav__list li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
  }
  .nav__list li:nth-child(3),
  .nav__list li:nth-child(6) {
    margin-left: 0;
  }
  .header__nav.is-active .nav__list li {
    opacity: 1;
    transform: translateX(0);
  }
  .header__nav.is-active .nav__list li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .header__nav.is-active .nav__list li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .header__nav.is-active .nav__list li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .header__nav.is-active .nav__list li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .header__nav.is-active .nav__list li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .header__nav.is-active .nav__list li:nth-child(6) {
    transition-delay: 0.6s;
  }
  .hamburger.is-active .hamburger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .hamburger__line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }
  .panel-images {
    gap: 40px;
  }
  .circle-img img {
    width: 100px;
    height: 100px;
  }
  .panel-header h4 {
    width: 100px;
  }
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer {
    position: relative;
  }
  .footer__container {
    align-items: flex-start;
    width: 90%;
  }
  .footer__nav .nav__list {
    gap: 16px;
  }
  .footer__bottom {
    position: absolute;
    bottom: 11px;
  }
  .footer__address {
    margin-left: 16px;
  }
}
@media (max-width: 960px) {
  .submit-wrapper {
    width: 100%;
  }
}
@media (max-width: 820px) {
  .footer__bottom {
    position: static;
    width: 90%;
    padding-bottom: 0;
  }
}
@media (max-width: 810px) {
  :root {
    --catalog-cards-count: 32;
    --gallery-images-count: 66;
  }
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-header h4 {
    text-align: left;
    padding: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas: 'card1' 'card2' 'card3' 'card4';
  }
  .steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    grid-template-areas:
      'phone   arrow1 zamer'
      '.       .      arrow2'
      'montazh arrow3 factory';
  }
  .step-item {
    width: 100%;
  }
  .step-item img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 10px;
  }
  .steps-container > :nth-child(1) {
    grid-area: phone;
  }
  .steps-container > :nth-child(2) {
    grid-area: arrow1;
  }
  .steps-container > :nth-child(3) {
    grid-area: zamer;
  }
  .steps-container > :nth-child(4) {
    grid-area: arrow2;
  }
  .steps-container > :nth-child(5) {
    grid-area: factory;
  }
  .steps-container > :nth-child(6) {
    grid-area: arrow3;
  }
  .steps-container > :nth-child(7) {
    grid-area: montazh;
  }
  .arrow2 {
    rotate: 0deg;
    margin-left: 0;
    margin-top: 10px;
  }
  .arrow3 {
    rotate: 90deg;
    margin-left: 0;
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .callback__info {
    width: 60%;
  }
  .callback__wrapper-woomen {
    width: 40%;
  }
}
@media (max-width: 760px) {
  .callback__wrapper-info {
    flex-direction: column;
    align-items: center;
  }
  .callback__info {
    width: 100%;
    margin-bottom: 20px;
  }
  .callback__subtitle {
    margin: 20px 0 16px 0;
  }
  .callback__wrapper-woomen {
    margin-left: 10%;
  }
}
@media (max-width: 660px) {
  .hero__bg img {
    object-position: left center;
  }
  .header__logo {
    width: 130px;
  }
  .header__contact-info {
    gap: 0;
    margin-top: 0;
  }
  .header__phone::before,
  .header__email::before {
    transform: scale(0.9);
  }
  a {
    font-size: 0.9em;
  }
  h1 {
    font-size: 1.7em;
  }
  h2,
  h3 {
    font-size: 1em;
  }
  h4,
  .faq-btn,
  .stat-card > p,
  p,
  .faq-content-inner,
  .form-block__label,
  textarea:placeholder-shown,
  .privacy-checkbox__text {
    font-size: 0.8em;
  }
  .btn__text {
    padding: 8px 28px;
    font-size: 0.8em;
  }
  .worker-wrapper {
    right: 14%;
  }
  .door-label:nth-child(2) {
    margin-left: 18px;
  }
  .counter {
    font-size: 1.3em;
  }
  .btn--details {
    bottom: -16px;
  }
  .compensate-offset {
    scroll-margin-top: 91px !important;
  }
  .section-title {
    line-height: 68px;
  }
  .callback__wrapper-woomen {
    width: 50%;
  }
  .form-block__button {
    padding: 0;
  }
  .hero__btn-order {
    display: none;
  }
  .gallery-modal__image-wrapper {
    width: 98%;
  }
  .form-block__group_wrapper {
    flex-direction: column;
    gap: 0;
  }
  .form-block__input {
    padding: 8px;
  }
  .form-block__label {
    top: 8px;
    left: 8px;
  }
  .form-block__input:focus ~ .form-block__label,
  .form-block__input:not(:placeholder-shown) ~ .form-block__label {
    transform: translateY(-18px);
  }
  .faq-btn {
    padding-right: 44px;
  }
  .footer__container {
    position: relative;
  }
  .footer__container > .header__contact-info {
    position: absolute;
    margin-top: 78px;
  }
  .footer__bottom {
    position: absolute;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    bottom: 32px;
  }
  .footer__address {
    margin-left: 0;
  }
  .modal__image-wrapper {
    width: 139px;
  }
}
@media (max-width: 576px) and (orientation: portrait) {
  .hero__bg img {
    object-position: center center;
  }
}
@media (max-width: 540px) {
  .worker-wrapper {
    right: 4%;
  }
  .callback__wrapper-woomen {
    width: 60%;
  }
  .doors-block {
    width: 70%;
  }
  .door-visual {
    width: 40%;
  }
  .text__container_how-we-work > div {
    flex-direction: column;
    gap: 6px;
  }
  .text__container_how-we-work h4,
  .text__container_how-we-work p {
    width: 100%;
  }
  .text__container_how-we-work h4 {
    text-align: center;
  }
  .catalog__grid {
    column-gap: 10px;
  }
  .door-card {
    padding: 20px 10px;
  }
  .door-details {
    padding: 20px;
  }
  .circle-img img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 500px) {
  .gallery__grid {
    gap: 10px;
    margin-bottom: 0;
  }
  .panel-images {
    margin-top: -65px;
  }
  .footer__container,
  .footer__container > .header__contact-info,
  .footer__bottom {
    position: static;
  }
  .footer__container {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .footer__container img {
    width: 150px;
  }
  .footer__container > .header__contact-info {
    margin: 16px 0 10px 60px;
  }
  .footer__nav {
    margin-right: 20px;
  }
  .footer__bottom {
    align-items: center;
  }
  .callback-widget {
    flex-direction: column;
  }
  .callback-widget__box {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .callback-widget.is-open .callback-widget__box {
    padding: 30px 16px 34px 16px;
    max-width: 270px;
  }
}
@media (max-width: 479px) {
  .form-block {
    margin-bottom: 10px;
    padding-bottom: 40px;
  }
  #submit-error {
    bottom: -34px;
  }
}
@media (max-width: 443px) {
  #phone-error {
    bottom: -34px;
  }
  .form-block__group {
    margin-bottom: 44px;
  }
}

@media (max-width: 440px) {
  .steps-container {
    gap: 20px;
  }

  .hero__arrow {
    scale: 0.9;
  }
}
@media (orientation: landscape) and (max-height: 440px) {
  .hero__bg img {
    object-position: left center;
  }
}
@media (max-width: 438px) {
  #name-error {
    bottom: -34px;
  }
}
@media (orientation: landscape) and (max-height: 428px) {
  .hero,
  .hero__container {
    height: 170vh;
  }
}
@media (max-width: 425px) {
  .header__container > .header__contact-info {
    position: absolute;
    width: 100%;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
}
@media (max-width: 420px) {
  .section-content {
    gap: 30px;
  }
  .panel-header {
    position: relative;
  }
  .panel-header h4 {
    position: absolute;
    width: 100%;
    color: var(--color-black);
    text-align: center;
    top: -26px;
  }
  .panel-images {
    gap: 20px;
    margin-bottom: 20px;
    margin-top: -40px;
  }
  #privacy-error {
    bottom: -32px;
  }
  form p {
    margin-top: 40px;
    margin-bottom: 10px;
  }
}
@media (max-width: 391px) {
  .inspection-section > .section-title {
    line-height: 34px;
  }
  .form-block {
    padding: 32px 16px 40px 16px;
  }
}
@media (max-width: 376px) {
  .steps-container {
    gap: 10px;
  }
  .step-item img {
    max-width: 90px;
    max-height: 90px;
  }
  .hero__arrow {
    scale: 0.8;
  }
  .stats-grid {
    margin: 0;
    gap: 16px;
    padding: 20px;
  }
  .stat-card {
    padding: 20px 16px;
  }
}
@media (max-width: 348px) {
  .callback-section > .section-title,
  .how-we-work > .section-title {
    line-height: 34px;
  }
}
@media (max-width: 335px) {
  .faq-section > .section-title {
    line-height: 34px;
    padding: 0 10px;
  }
}
@media (max-width: 321px) {
  .hero__right-content {
    padding: 150px 5% 30px 5%;
  }
}
/* ==========================================================================
   . АНИМАЦИИ
   ========================================================================== */
/* Анимация "блика" для кнопок и ссылок */
@keyframes shine {
  0%,
  95.6% {
    transform: skewX(-18deg) translateX(-200%);
  }
  100% {
    transform: skewX(-18deg) translateX(1100%);
  }
}
/* Анимация коричневой плашки */
@keyframes slideInBg {
  to {
    transform: translateX(0);
  }
}

/* Мягкое проявление обертки текста */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Каскадный выезд текста */
@keyframes slideInText {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Анимация стрелки */
@keyframes arrow-bottom {
  0% {
    opacity: 0;
    transform: translate(0, -20px) rotate(45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, 20px) rotate(45deg);
  }
}

/* Анимация движения входящего воздуха */
@keyframes airFlow-in {
  0% {
    opacity: 0;
    transform: translateY(460%);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(422%);
  }
}
/* Анимация движения исходящего воздуха */
@keyframes airFlow-out {
  0% {
    opacity: 0;
    transform: translateY(422%);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(460%);
  }
}
/* Анимация движения точек */
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}
/* Анимация прозрачности для смены контента */
@keyframes fadeInContentBlock {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Анимация вращения для загрузки формы */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Анимация покачивания иконки виджета */
@keyframes swing-widget-icon {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(15deg);
  }
  30% {
    transform: rotate(-12deg);
  }
  45% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(3deg);
  }
  90%,
  100% {
    transform: rotate(0deg);
  }
}
/* Анимации "радара" всплывающей кнопки звонка*/
@keyframes ripple-widget {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
