/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: #18272C;
  background: #FFFFFF;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Header ===== */
.header {
  width: 100%;
  background: #FFFFFF;
}

.header__container {
  width: 1400px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #AAB8B9;
}

.header__left {
  display: flex;
  align-items: center;
  width: 308px;
  height: 100%;
  padding-left: 120px;
  border-right: 1px solid #AAB8B9;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 120px;
  height: 20px;
}

.header__center {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  padding-left: 55px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.21;
  color: #18272C;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: #8F3D21;
}

.header__nav-link--accent {
  color: #8F3D21;
}

.header__right {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 46px;
  padding-right: 120px;
  border-left: 1px solid #AAB8B9;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.header__social img {
  width: 30px;
  height: 30px;
}

.header__phone {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.21;
  color: #18272C;
  white-space: nowrap;
  margin-left: 10px;
  transition: color 0.2s;
}

.header__phone:hover {
  color: #8F3D21;
}

/* ===== Hero Section ===== */
.hero {
  width: 100%;
  background: transparent;
}

.hero__container {
  width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  height: 520px;
  margin-top: 46px;
}

.hero__content {
  flex: 0 0 756px;
  padding-top: 32px;
  padding-left: 120px;
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #18272C;
  margin-bottom: 30px;
}

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title-accent {
  color: #8F3D21;
}

.hero__description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #18272C;
  max-width: 636px;
  margin-bottom: 46px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  height: 60px;
  background: #8F3D21;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hero__button:hover {
  background: #611F09;
}

.hero__cta-note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #565F62;
  margin-top: 15px;
}

.hero__image {
  position: absolute;
  right: 97px;
  top: 0;
  width: 500px;
  height: 462px;
}

.hero__image img {
  width: 500px;
  height: 462px;
  object-fit: contain;
}

/* ===== Hero Features ===== */
.hero__features {
  width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 480px 400px 1fr;
  border-top: 1px solid #AAB8B9;
}

.hero__feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 34px 0 34px;
  min-height: 138px;
}

.hero__feature:first-child {
  padding-left: 120px;
  padding-right: 40px;
}

.hero__feature:nth-child(2) {
  padding-left: 20px;
  padding-right: 20px;
  border-left: 1px solid #AAB8B9;
}

.hero__feature:nth-child(3) {
  padding-left: 20px;
  border-left: 1px solid #AAB8B9;
}

.hero__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.hero__feature-icon img {
  width: 44px;
  height: 44px;
}

.hero__feature-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.21;
  color: #18272C;
  margin-bottom: 10px;
}

.hero__feature-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: #18272C;
}

/* ===== Ornament Divider ===== */
.ornament-divider {
  width: 100%;
  height: 26px;
  background: url('../assets/images/ornament-divider.png') repeat-x center;
  background-size: auto 26px;
}

/* ===== Section 2: Problems ===== */
.problems {
  width: 100%;
  background: #FFFFFF;
}

.problems__container {
  width: 1400px;
  margin: 0 auto;
  padding: 70px 120px 80px;
}

.problems__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.problems__title-accent {
  color: #8F3D21;
}

/* Photos */
.problems__photos {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.problems__photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.problems__photo-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.problems__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.23;
  color: #FFFFFF;
  border-radius: 0 10px 0 10px;
  padding: 13px 15px;
  z-index: 1;
}

.problems__photo-caption--bad {
  background: #272727;
  width: 210px;
}

.problems__photo-caption--good {
  background: #8F3D21;
  width: 220px;
}

/* Comparison columns */
.problems__comparison {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.problems__col {
  flex: 1;
}

.problems__col--good {
  position: relative;
  padding-right: 0;
}

.problems__col-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 27px;
}

.problems__col-title--accent {
  color: #8F3D21;
  font-weight: 700;
}

/* Maskot */
.problems__maskot {
  position: absolute;
  right: 0;
  top: -115px;
  width: 193px;
  height: auto;
  z-index: 0;
}

/* Cards */
.problems__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.problems__cards-row {
  display: flex;
  gap: 10px;
}

.problems__cards > .problems__card {
  align-self: flex-start;
  max-width: 370px;
}

.problems__cards-row .problems__card {
  flex: 1;
}

.problems__card {
  border-radius: 10px;
  padding: 11px 15px;
}

.problems__card p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
}

.problems__card p strong {
  font-weight: 700;
}

.problems__card--bad {
  background: #EEEEEE;
  color: #18272C;
}

.problems__card--bad p {
  color: rgba(24, 39, 44, 0.7);
}

.problems__card--good {
  background: #25242A;
}

.problems__card--good p {
  color: #FFFFFF;
}

.problems__card-label {
  color: #D97B5A;
  font-weight: 700;
}

/* ===== Section 3: Constructor ===== */
.constructor {
  width: 100%;
  background: url('../assets/images/section3-bg.png') center/cover no-repeat;
  position: relative;
}

.constructor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 8, 0.6);
}

.constructor__container {
  width: 1400px;
  margin: 0 auto;
  padding: 110px 120px 116px;
  position: relative;
  z-index: 1;
}

.constructor__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.constructor__title-accent {
  color: #D97B5A;
}

/* Advantages */
.constructor__advantages {
  display: flex;
  gap: 61px;
  margin-bottom: 40px;
}

.constructor__advantage {
  flex: 1;
}

.constructor__advantage-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.constructor__advantage-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: rgba(255, 255, 255, 0.6);
}

/* Video */
.constructor__video {
  margin-bottom: 50px;
}

.constructor__video-placeholder {
  width: 100%;
  height: 451px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.constructor__play-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #8F3D21;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  padding-left: 8px;
  transition: background-color 0.2s;
}

.constructor__play-btn:hover {
  background: #611F09;
}

.constructor__play-btn svg {
  width: 46px;
  height: 52px;
}

/* CTA */
.constructor__cta {
  text-align: center;
}

.constructor__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 60px;
  background: #8F3D21;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.constructor__button:hover {
  background: #611F09;
}

.constructor__cta-note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #9D9D9D;
  margin-top: 15px;
}

/* ===== Section 4: Catalog ===== */
.catalog {
  width: 100%;
  background: #FFFFFF;
}

.catalog__container {
  width: 1400px;
  margin: 0 auto;
  padding: 70px 120px 80px;
}

.catalog__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  gap: 100px 40px;
}

/* Card */
.catalog__card {
  width: 360px;
}

.catalog__card-image {
  width: 360px;
  height: 250px;
  border-radius: 10px;
  background: #D9D9D9;
  overflow: hidden;
  margin-bottom: 20px;
}

.catalog__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog__card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #18272C;
  min-height: 48px;
  margin-bottom: 20px;
}

.catalog__card-divider {
  width: 100%;
  height: 1px;
  background: #AAB8B9;
}

.catalog__card-specs {
  list-style: none;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog__card-specs li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: #5A5A5A;
}

.catalog__card-specs li strong {
  font-weight: 400;
}

.catalog__card-price {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.21;
  color: #8F3D21;
  padding: 20px 0 40px;
}

.catalog__card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #8F3D21;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.catalog__card-button:hover {
  background: #611F09;
}

/* ===== Section 5: Calculator ===== */
.calculator {
  width: 100%;
  background: #F5F5F5;
}

.calculator__container {
  width: 1400px;
  margin: 0 auto;
  padding: 110px 120px 80px;
}

.calculator__content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.calculator__left {
  flex: 0 0 560px;
}

.calculator__right {
  flex: 0 0 560px;
}

.calculator__fence-img {
  width: 560px;
  height: 526px;
  object-fit: cover;
  border-radius: 10px;
}

.calculator__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 42px;
}

.calculator__title-accent {
  color: #8F3D21;
}

/* Calculator Form */
.calculator__form {
  margin-bottom: 0;
}

.calculator__form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.calculator__form-row--single {
  margin-bottom: 0;
}

.calculator__field {
  flex: 0 0 260px;
}

.calculator__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: #18272C;
  margin-bottom: 9px;
}

.calculator__dropdown {
  position: relative;
  width: 260px;
  height: 40px;
  border: 1px solid #AAB8B9;
  border-radius: 5px;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
}

.calculator__dropdown-selected {
  width: 100%;
  height: 100%;
  padding: 0 30px 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 40px;
  color: #8F3D21;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5 5L10 0H0Z' fill='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.calculator__dropdown--open {
  border-color: #8F3D21;
  border-radius: 5px 5px 0 0;
}

.calculator__dropdown--open .calculator__dropdown-selected {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 5L5 0L10 5H0Z' fill='%23000000'/%3E%3C/svg%3E");
}

.calculator__dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  width: calc(100% + 2px);
  background: #FFFFFF;
  border: 1px solid #8F3D21;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 10;
  overflow: hidden;
}

.calculator__dropdown--open .calculator__dropdown-list {
  display: block;
}

.calculator__dropdown-option {
  padding: 10px 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #18272C;
  transition: background-color 0.15s, color 0.15s;
}

.calculator__dropdown-option:hover {
  background: #F5F0ED;
  color: #8F3D21;
}

.calculator__dropdown-option--active {
  color: #8F3D21;
  font-weight: 600;
}

.calculator__input {
  width: 260px;
  height: 40px;
  border: 1px solid #AAB8B9;
  border-radius: 5px;
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #8F3D21;
  background: #FFFFFF;
}

.calculator__input:focus {
  outline: none;
  border-color: #8F3D21;
}

/* Radio buttons */
.calculator__field--radio {
  flex: 0 0 auto;
}

.calculator__radio-group {
  display: flex;
  gap: 20px;
  margin-top: 17px;
}

.calculator__radio {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: #18272C;
  cursor: pointer;
}

.calculator__radio input {
  display: none;
}

.calculator__radio-box {
  width: 18px;
  height: 18px;
  border: 1px solid #AAB8B9;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.calculator__radio input:checked + .calculator__radio-box {
  background: #8F3D21;
  border-color: #8F3D21;
}

.calculator__radio input:checked + .calculator__radio-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* Result block */
.calculator__result {
  width: 100%;
  margin-top: 50px;
}

.calculator__result-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: #18272C;
  margin-bottom: 20px;
}

.calculator__result-box {
  width: 1160px;
  height: 141px;
  background: #25242A;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.calculator__result-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.calculator__result-col:first-child {
  width: 290px;
  padding-left: 20px;
  border-right: 1px solid #AAB8B9;
}

.calculator__result-col:nth-child(2) {
  width: 402px;
  border-right: 1px solid #AAB8B9;
}

.calculator__result-col--cta {
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.calculator__result-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21;
  color: #FFFFFF;
}

.calculator__result-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: #FFFFFF;
}

.calculator__result-btn {
  width: 400px;
  height: 60px;
  background: #8F3D21;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calculator__result-btn:hover {
  background: #611F09;
}

.calculator__result-note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  color: #FFFFFF;
  text-align: center;
}

.calculator__result-link {
  color: #D97B5A;
  text-decoration: underline;
}

.calculator__result-link:hover {
  color: #FFFFFF;
}

/* ===== Pop-up ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay--active {
  opacity: 1;
  visibility: visible;
}

.popup {
  width: 1140px;
  height: 710px;
  background: #25242A;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 28px;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.popup__close:hover {
  opacity: 1;
}

.popup__content {
  display: flex;
  height: 100%;
  position: relative;
}

.popup__left {
  padding: 50px 0 50px 50px;
  width: 580px;
  flex-shrink: 0;
}

.popup__right {
  position: relative;
  flex: 1;
}

.popup__maskot-bg {
  position: absolute;
  right: 70px;
  bottom: 0;
  width: 420px;
  height: 285px;
  background: #8F3D21;
  border-radius: 10px;
}

.popup__maskot {
  position: absolute;
  right: 67px;
  bottom: 0;
  width: 440px;
  height: 512px;
  object-fit: contain;
  z-index: 1;
}

.popup__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.popup__title-accent {
  color: #D97B5A;
}

.popup__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 530px;
}

/* Popup form */
.popup__form {
  display: flex;
  flex-direction: column;
}

.popup__input {
  width: 490px;
  height: 54px;
  border: 1px solid #A3A3A3;
  border-radius: 5px;
  background: transparent;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.popup__input::placeholder {
  color: #575757;
}

.popup__input:focus {
  outline: none;
  border-color: #D97B5A;
}

.popup__messenger-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.22;
  color: #FFFFFF;
  margin-top: 5px;
  margin-bottom: 10px;
}

.popup__messengers {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.popup__messenger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 130px;
  height: 54px;
  border: 1px solid #A3A3A3;
  border-radius: 5px;
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #A2A2A2;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.popup__messenger-btn:hover {
  border-color: #D97B5A;
  color: #D97B5A;
}

.popup__messenger-btn--active {
  border-color: #D97B5A;
  color: #D97B5A;
}

.popup__consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #C6C6C6;
  cursor: pointer;
  margin-bottom: 20px;
}

.popup__consent-check {
  display: none;
}

.popup__consent-box {
  width: 20px;
  height: 20px;
  border: 1px solid #A3A3A3;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
}

.popup__consent-check:checked + .popup__consent-box {
  background: #8F3D21;
  border-color: #8F3D21;
}

.popup__consent-check:checked + .popup__consent-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 12px;
}

.popup__submit {
  width: 490px;
  height: 60px;
  background: #8F3D21;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.popup__submit:hover {
  background: #611F09;
}

.popup__note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #727272;
  margin-top: 10px;
  max-width: 389px;
}

/* ===== Section 6: Engineering (Кирпич + Металл) ===== */
.engineering {
  width: 100%;
  background: #FFFFFF;
  padding-top: 50px;
}

.engineering__container {
  width: 1400px;
  margin: 0 auto;
  padding: 35px 120px 32px;
  position: relative;
}

.engineering__left {
  max-width: 681px;
  position: relative;
  z-index: 1;
}

.engineering__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #18272C;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.engineering__title-accent {
  color: #8F3D21;
}

.engineering__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #18272C;
  max-width: 681px;
  margin-bottom: 50px;
}

/* Right panel */
.engineering__panel {
  position: absolute;
  top: 0;
  right: 120px;
  width: 400px;
  bottom: 0;
  background: #FFFBF6;
  border: 1px solid #DCD5CD;
  border-radius: 10px;
  z-index: 0;
}

.engineering__maskot {
  position: absolute;
  top: 27px;
  left: 70px;
  z-index: 2;
}

.engineering__maskot-img {
  width: 295px;
  height: auto;
}

/* Cards */
.engineering__cards {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.engineering__card {
  width: 360px;
  flex-shrink: 0;
}

.engineering__card--cta {
  margin-left: 20px;
}

.engineering__card-image {
  width: 360px;
  height: 279px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.engineering__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engineering__card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #18272C;
  margin-bottom: 15px;
  min-height: 48px;
}

.engineering__card-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: #18272C;
}

.engineering__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 60px;
  background: #8F3D21;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.engineering__card-btn:hover {
  background: #611F09;
}

.engineering__card-note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #737373;
  text-align: center;
  margin-top: 12px;
}

/* Engineering popup overrides */
.popup--engineering {
  height: auto;
  min-height: 710px;
}

.popup--engineering .popup__left {
  width: 650px;
}

/* ===== Section 7: About ===== */
.about {
  width: 100%;
  background: url('../assets/images/section7-bg.png') center/cover no-repeat;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 8, 0.7);
}

.about__container {
  width: 1400px;
  margin: 0 auto;
  padding: 110px 120px;
  position: relative;
  z-index: 1;
}

.about__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 50px;
  max-width: 730px;
}

.about__title-accent {
  color: #D97B5A;
}

.about__founder {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 50px;
}

.about__founder-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.about__founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.about__founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__founder-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__founder-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.about__founder-role {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #FFFFFF;
}

.about__quote {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.21;
  color: #FFFFFF;
  max-width: 716px;
  margin: 0;
  padding-top: 17px;
}

.about__divider {
  width: 1160px;
  height: 1px;
  background: #AAB8B9;
}

.about__stats {
  display: flex;
  padding-top: 25px;
  padding-bottom: 25px;
}

.about__stat {
  width: 290px;
  flex-shrink: 0;
}

.about__stat:first-child {
  width: 300px;
}

.about__stat-value {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #D97B5A;
  margin-bottom: 15px;
}

.about__stat-desc {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.19;
  color: #FFFFFF;
  max-width: 250px;
}

.about__product {
  width: 1160px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
}

.about__product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   Section 8: Галерея кейсов
   ========================================== */

.cases {
  background-color: #F5F5F5;
}

.cases__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 94px 120px 120px;
  overflow: hidden;
}

.cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.cases__text {
  max-width: 733px;
}

.cases__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: #18272C;
  margin: 0 0 20px;
}

.cases__title-accent {
  color: #8F3D21;
}

.cases__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #18272C;
  margin: 0;
  max-width: 490px;
}

.cases__nav {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.cases__nav-btn {
  width: 47px;
  height: 47px;
  border: 1px solid #8F3D21;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.cases__nav-btn:hover {
  background-color: rgba(143, 61, 33, 0.1);
}

.cases__carousel-wrapper {
  margin-right: -120px;
  margin-bottom: 80px;
}

.cases__carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.cases__slide {
  flex-shrink: 0;
  width: 560px;
  height: 290px;
  border-radius: 10px;
  overflow: hidden;
}

.cases__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1160px;
  height: 60px;
  background-color: #8F3D21;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cases__cta:hover {
  background-color: #611F09;
}

/* ==========================================
   Section 9: CTA — Получить образцы
   ========================================== */

.samples {
  width: 100%;
  background: #FFFFFF;
  padding-top: 107px;
  padding-bottom: 100px;
}

.samples__container {
  width: 1400px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  height: 729px;
  overflow: hidden;
}

.samples__image {
  position: absolute;
  top: 8px;
  left: 198px;
  right: 28px;
  bottom: 0;
}

.samples__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.samples__panel {
  width: 630px;
  background: #25242A;
  border-radius: 10px;
  padding: 50px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
  margin-left: 120px;
}

.samples__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.21;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 530px;
}

.samples__title-accent {
  color: #D97B5A;
}

.samples__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 490px;
}

.samples__form {
  display: flex;
  flex-direction: column;
}

.samples__input {
  width: 490px;
  height: 54px;
  border: 1px solid #a3a3a3;
  border-radius: 5px;
  background: transparent;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.samples__input::placeholder {
  color: #575757;
}

.samples__input:focus {
  border-color: #D97B5A;
}

.samples__messenger-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #FFFFFF;
  margin-top: 5px;
  margin-bottom: 10px;
}

.samples__messengers {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.samples__messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 130px;
  height: 54px;
  border: 1px solid #a3a3a3;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #a2a2a2;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.samples__messenger-btn:hover {
  border-color: #D97B5A;
  color: #FFFFFF;
}

.samples__messenger-btn--active {
  border-color: #D97B5A;
  color: #FFFFFF;
}

.samples__consent {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 30px;
}

.samples__consent-check {
  display: none;
}

.samples__consent-box {
  width: 20px;
  height: 20px;
  border: 1px solid #a3a3a3;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.samples__consent-check:checked + .samples__consent-box {
  background: #8F3D21;
  border-color: #8F3D21;
}

.samples__consent-check:checked + .samples__consent-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.samples__consent span:last-child,
.samples__consent {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #c6c6c6;
}

.samples__submit {
  width: 490px;
  height: 60px;
  background: #8F3D21;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.samples__submit:hover {
  background: #611F09;
}

.samples__note {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: #727272;
  margin-top: 10px;
  max-width: 448px;
}


/* ==========================================
   Footer
   ========================================== */

.footer {
  width: 100%;
  background: #25242A;
}

.footer__container {
  width: 1400px;
  margin: 0 auto;
  padding: 48px 120px 60px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
}

.footer__brand {
  width: 400px;
  flex-shrink: 0;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 10px;
}

.footer__tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #FFFFFF;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.footer__nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: #FFFFFF;
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: #D97B5A;
}

.footer__contacts {
  margin-left: auto;
}

.footer__contacts-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer__socials {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.footer__social:hover {
  opacity: 0.8;
}

.footer__social img {
  width: 36px;
  height: 36px;
}

.footer__phone {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.21;
  color: #FFFFFF;
  transition: color 0.2s;
}

.footer__phone:hover {
  color: #D97B5A;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: #444349;
  margin: 40px 0;
}

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

.footer__copyright {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #a7a7a7;
}

.footer__privacy {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #a7a7a7;
  transition: color 0.2s;
}

.footer__privacy:hover {
  color: #FFFFFF;
}

/* ==========================================
   Scroll Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hidden state before animation triggers */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.anim-fade-in {
  opacity: 0;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.95);
}

/* Visible state — triggered by IntersectionObserver */
.anim-fade-up.anim-visible {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-in.anim-visible {
  animation: fadeIn 0.6s ease forwards;
}

.anim-scale-in.anim-visible {
  animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays for groups */
.anim-delay-1 { animation-delay: 0.1s !important; }
.anim-delay-2 { animation-delay: 0.2s !important; }
.anim-delay-3 { animation-delay: 0.3s !important; }
.anim-delay-4 { animation-delay: 0.4s !important; }
.anim-delay-5 { animation-delay: 0.5s !important; }
.anim-delay-6 { animation-delay: 0.6s !important; }
.anim-delay-7 { animation-delay: 0.7s !important; }
.anim-delay-8 { animation-delay: 0.8s !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-in,
  .anim-scale-in {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* ==========================================
   Enhanced Hover Effects
   ========================================== */

/* Catalog cards lift on hover */
.catalog__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Catalog card images zoom on hover */
.catalog__card-image img {
  transition: transform 0.4s ease;
}

.catalog__card:hover .catalog__card-image img {
  transform: scale(1.05);
}

/* Engineering cards lift on hover */
.engineering__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engineering__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.engineering__card-image img {
  transition: transform 0.4s ease;
}

.engineering__card:hover .engineering__card-image img {
  transform: scale(1.05);
}

/* Cases slides subtle zoom */
.cases__slide img {
  transition: transform 0.4s ease;
}

.cases__slide:hover img {
  transform: scale(1.03);
}

/* Problems photo cards */
.problems__photo-card img {
  transition: transform 0.4s ease;
}

.problems__photo-card:hover img {
  transform: scale(1.03);
}

/* Buttons press effect */
.hero__button:active,
.constructor__button:active,
.catalog__card-button:active,
.calculator__result-btn:active,
.engineering__card-btn:active,
.samples__submit:active,
.popup__submit:active,
.cases__cta:active {
  transform: scale(0.97);
}

/* Social icons hover */
.header__social,
.footer__social {
  transition: transform 0.2s ease, opacity 0.2s;
}

.header__social:hover,
.footer__social:hover {
  transform: scale(1.15);
}

/* Nav links underline animation */
.header__nav-link {
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8F3D21;
  transition: width 0.3s ease;
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Play button pulse */
.constructor__play-btn {
  position: relative;
}

.constructor__play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0; }
}

/* Sticky header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================
   Mobile Burger Menu
   ========================================== */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #18272C;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.header__mobile-overlay--active {
  opacity: 1;
}

.header__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #FFFFFF;
  z-index: 999;
  padding: 80px 30px 40px;
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.header__mobile-menu--open {
  right: 0;
}

.header__mobile-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #18272C;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #EEE;
  transition: color 0.2s;
}

.header__mobile-link:hover,
.header__mobile-link--accent {
  color: #8F3D21;
}

.header__mobile-contacts {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #AAB8B9;
}

.header__mobile-phone {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #18272C;
  margin-bottom: 15px;
}

.header__mobile-socials {
  display: flex;
  gap: 15px;
}

.header__mobile-socials a {
  display: flex;
  width: 36px;
  height: 36px;
}

/* ==========================================
   Responsive: 1440px and below
   ========================================== */

@media (max-width: 1440px) {
  .header__container,
  .hero__container,
  .hero__features,
  .problems__container,
  .constructor__container,
  .catalog__container,
  .calculator__container,
  .engineering__container,
  .about__container,
  .cases__container,
  .samples__container,
  .footer__container {
    width: 100%;
    max-width: 1400px;
  }

  .popup {
    width: 95%;
    max-width: 1140px;
  }

  .calculator__result-box {
    width: 100%;
  }

  .about__divider {
    width: 100%;
  }

  .about__product {
    width: 100%;
  }

  .cases__cta {
    width: 100%;
  }
}

/* ==========================================
   Responsive: 1200px
   ========================================== */

@media (max-width: 1200px) {
  .header__left {
    padding-left: 30px;
    width: auto;
  }

  .header__right {
    padding-right: 30px;
    padding-left: 20px;
  }

  .header__center {
    padding-left: 30px;
  }

  .header__nav {
    gap: 20px;
  }

  .hero__content {
    padding-left: 30px;
    flex: 1;
  }

  .hero__container {
    height: auto;
    padding-bottom: 40px;
  }

  .hero__image {
    position: relative;
    right: auto;
    top: auto;
    width: 400px;
    height: 370px;
    flex-shrink: 0;
  }

  .hero__image img {
    width: 400px;
    height: 370px;
  }

  .hero__features {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__feature:first-child {
    padding-left: 30px;
  }

  .problems__container {
    padding: 70px 30px 80px;
  }

  .constructor__container {
    padding: 80px 30px;
  }

  .catalog__container {
    padding: 70px 30px 80px;
  }

  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
  }

  .catalog__card {
    width: 100%;
  }

  .catalog__card-image {
    width: 100%;
  }

  .calculator__container {
    padding: 80px 30px;
  }

  .calculator__left {
    flex: 1;
  }

  .calculator__right {
    flex: 0 0 auto;
  }

  .calculator__fence-img {
    width: 100%;
    max-width: 460px;
    height: auto;
  }

  .engineering__container {
    padding: 35px 30px 32px;
  }

  .engineering__panel {
    right: 30px;
    width: 320px;
  }

  .engineering__cards {
    flex-wrap: wrap;
  }

  .engineering__card {
    width: calc(50% - 10px);
  }

  .engineering__card--cta {
    margin-left: 0;
  }

  .engineering__card-image {
    width: 100%;
  }

  .engineering__card-btn {
    width: 100%;
  }

  .about__container {
    padding: 80px 30px;
  }

  .cases__container {
    padding: 80px 30px;
  }

  .cases__carousel-wrapper {
    margin-right: -30px;
  }

  .samples__container {
    width: 100%;
    padding: 0 30px;
    height: auto;
  }

  .samples {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .samples__image {
    position: absolute;
    left: 50%;
    right: 0;
    top: 0;
    bottom: 0;
  }

  .samples__panel {
    margin-left: 0;
    width: 55%;
  }

  .footer__container {
    padding: 48px 30px 60px;
  }
}

/* ==========================================
   Responsive: 1024px (Tablet landscape)
   ========================================== */

@media (max-width: 1024px) {
  .header__nav {
    gap: 15px;
  }

  .header__nav-link {
    font-size: 14px;
  }

  .header__phone {
    font-size: 16px;
  }

  .hero__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    margin-top: 30px;
    padding-bottom: 40px;
  }

  .hero__content {
    flex: none;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 0;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    width: 360px;
    height: 333px;
    margin-top: 30px;
  }

  .hero__image img {
    width: 360px;
    height: 333px;
  }

  .problems__title {
    font-size: 36px;
  }

  .problems__photos {
    gap: 20px;
  }

  .problems__comparison {
    flex-direction: column;
    gap: 30px;
  }

  .problems__maskot {
    display: none;
  }

  .constructor__title {
    font-size: 36px;
  }

  .constructor__advantages {
    gap: 30px;
  }

  .constructor__video-placeholder {
    height: 350px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .calculator__content {
    flex-direction: column;
  }

  .calculator__left {
    flex: none;
    width: 100%;
  }

  .calculator__right {
    flex: none;
    width: 100%;
  }

  .calculator__fence-img {
    width: 100%;
    max-width: 100%;
    height: 350px;
    border-radius: 10px;
  }

  .calculator__title {
    font-size: 36px;
  }

  .calculator__field {
    flex: 1;
  }

  .calculator__dropdown {
    width: 100%;
  }

  .calculator__input {
    width: 100%;
  }

  .calculator__result-box {
    flex-direction: column;
    height: auto;
    padding: 25px 20px;
    gap: 20px;
  }

  .calculator__result-col:first-child,
  .calculator__result-col:nth-child(2) {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #AAB8B9;
    padding-bottom: 20px;
  }

  .calculator__result-col--cta {
    width: 100%;
  }

  .calculator__result-btn {
    width: 100%;
    max-width: 400px;
  }

  .engineering__panel {
    display: none;
  }

  .engineering__left {
    max-width: 100%;
  }

  .engineering__title {
    font-size: 36px;
  }

  .engineering__card {
    width: calc(33.33% - 14px);
  }

  .about__title {
    font-size: 36px;
    max-width: 100%;
  }

  .about__stats {
    flex-wrap: wrap;
    gap: 30px;
  }

  .about__stat {
    width: calc(50% - 15px);
  }

  .about__stat:first-child {
    width: calc(50% - 15px);
  }

  .about__product {
    height: 350px;
  }

  .cases__title {
    font-size: 36px;
  }

  .cases__slide {
    width: 420px;
    height: 220px;
  }

  .samples__title {
    font-size: 36px;
  }

  .popup {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .popup__content {
    flex-direction: column;
    height: auto;
  }

  .popup__left {
    width: 100%;
    padding: 40px 30px;
  }

  .popup__right {
    display: none;
  }

  .popup__input {
    width: 100%;
  }

  .popup__submit {
    width: 100%;
  }
}

/* ==========================================
   Responsive: 768px (Tablet portrait)
   ========================================== */

@media (max-width: 768px) {
  .header__center {
    display: none;
  }

  .header__right {
    border-left: none;
  }

  .header__left {
    border-right: none;
  }

  .header__burger {
    display: flex;
  }

  .header__mobile-menu,
  .header__mobile-overlay {
    display: block;
  }

  .header__mobile-menu {
    display: flex;
  }

  .header__phone {
    display: none;
  }

  .header__container {
    padding: 0 20px;
    height: 60px;
  }

  .header__left {
    padding-left: 0;
  }

  .header__right {
    padding-right: 0;
    padding-left: 0;
    gap: 10px;
  }

  .hero__content {
    padding: 0 20px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__description {
    font-size: 16px;
  }

  .hero__button {
    width: 100%;
    max-width: 360px;
  }

  .hero__image {
    width: 280px;
    height: 259px;
  }

  .hero__image img {
    width: 280px;
    height: 259px;
  }

  .hero__features {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .hero__feature {
    padding: 20px 20px !important;
    min-height: auto;
    border-left: none !important;
    border-bottom: 1px solid #AAB8B9;
  }

  .hero__feature:last-child {
    border-bottom: none;
  }

  .problems__container {
    padding: 50px 20px;
  }

  .problems__title {
    font-size: 28px;
  }

  .problems__photos {
    flex-direction: column;
  }

  .problems__photo-card img {
    height: 200px;
  }

  .problems__cards-row {
    flex-direction: column;
  }

  .constructor__container {
    padding: 60px 20px;
  }

  .constructor__title {
    font-size: 28px;
  }

  .constructor__advantages {
    flex-direction: column;
    gap: 25px;
  }

  .constructor__video-placeholder {
    height: 250px;
  }

  .constructor__button {
    width: 100%;
    max-width: 360px;
  }

  .catalog__container {
    padding: 50px 20px;
  }

  .catalog__title {
    font-size: 28px;
  }

  .catalog__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .catalog__card-button {
    font-size: 16px;
    height: 50px;
  }

  .calculator__container {
    padding: 50px 20px;
  }

  .calculator__title {
    font-size: 28px;
  }

  .calculator__form-row {
    flex-direction: column;
    gap: 20px;
  }

  .calculator__field {
    flex: none;
    width: 100%;
  }

  .engineering__container {
    padding: 35px 20px 32px;
  }

  .engineering__title {
    font-size: 28px;
  }

  .engineering__desc {
    font-size: 16px;
  }

  .engineering__cards {
    flex-direction: column;
    gap: 30px;
  }

  .engineering__card {
    width: 100%;
  }

  .engineering__card-image {
    width: 100%;
    height: 220px;
  }

  .engineering__card-btn {
    width: 100%;
  }

  .about__container {
    padding: 60px 20px;
  }

  .about__title {
    font-size: 28px;
  }

  .about__founder {
    flex-direction: column;
    gap: 20px;
  }

  .about__quote {
    padding-top: 0;
  }

  .about__stats {
    flex-direction: column;
    gap: 25px;
  }

  .about__stat,
  .about__stat:first-child {
    width: 100%;
  }

  .about__product {
    height: 250px;
  }

  .cases__container {
    padding: 50px 20px;
  }

  .cases__title {
    font-size: 28px;
  }

  .cases__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cases__carousel-wrapper {
    margin-right: -20px;
  }

  .cases__slide {
    width: 300px;
    height: 170px;
  }

  .samples {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .samples__container {
    position: relative;
    padding: 0 20px;
  }

  .samples__image {
    display: none;
  }

  .samples__panel {
    width: 100%;
    padding: 30px 25px;
  }

  .samples__title {
    font-size: 28px;
  }

  .samples__desc {
    font-size: 16px;
  }

  .samples__input {
    width: 100%;
  }

  .samples__submit {
    width: 100%;
  }

  .samples__messengers {
    flex-wrap: wrap;
  }

  .footer__container {
    padding: 40px 20px;
  }

  .footer__top {
    flex-direction: column;
    gap: 30px;
  }

  .footer__brand {
    width: 100%;
  }

  .footer__contacts {
    margin-left: 0;
  }

  .footer__phone {
    font-size: 18px;
  }
}

/* ==========================================
   Responsive: 480px (Mobile)
   ========================================== */

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .hero__button {
    height: 54px;
    font-size: 16px;
  }

  .hero__image {
    width: 220px;
    height: 204px;
  }

  .hero__image img {
    width: 220px;
    height: 204px;
  }

  .problems__title,
  .constructor__title,
  .catalog__title,
  .calculator__title,
  .engineering__title,
  .about__title,
  .cases__title,
  .samples__title {
    font-size: 24px;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about__stat-value {
    font-size: 36px;
  }

  .cases__slide {
    width: 260px;
    height: 150px;
  }

  .popup {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .popup__left {
    padding: 30px 20px;
  }

  .popup__title {
    font-size: 28px;
  }

  .popup__desc {
    font-size: 16px;
  }

  .popup__messengers {
    flex-wrap: wrap;
  }

  .popup__messenger-btn {
    width: auto;
    flex: 1;
    min-width: 100px;
  }

  .constructor__video-placeholder {
    height: 200px;
  }

  .constructor__play-btn {
    width: 70px;
    height: 70px;
  }

  .constructor__play-btn svg {
    width: 30px;
    height: 34px;
  }

  .ornament-divider {
    height: 18px;
    background-size: auto 18px;
  }
}
