@charset "UTF-8";

/* Fonts */
@font-face {
  font-family: RobotoRegular;
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/RobotoRegular/RobotoRegular.eot);
  src:
          url(../fonts/RobotoRegular/RobotoRegular.eot?#iefix) format("embedded-opentype"),
          url(../fonts/RobotoRegular/RobotoRegular.woff) format("woff"),
          url(../fonts/RobotoRegular/RobotoRegular.ttf) format("truetype");
}

@font-face {
  font-family: RobotoBold;
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/RobotoBold/RobotoBold.eot);
  src:
          url(../fonts/RobotoBold/RobotoBold.eot?#iefix) format("embedded-opentype"),
          url(../fonts/RobotoBold/RobotoBold.woff) format("woff"),
          url(../fonts/RobotoBold/RobotoBold.ttf) format("truetype");
}

@font-face {
  font-family: Montserrat-Bold;
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/Montserrat-Bold/Montserrat-Bold.eot);
  src:
          url(../fonts/Montserrat-Bold/Montserrat-Bold.eot?#iefix) format("embedded-opentype"),
          url(../fonts/Montserrat-Bold/Montserrat-Bold.woff) format("woff"),
          url(../fonts/Montserrat-Bold/Montserrat-Bold.ttf) format("truetype");
}

@font-face {
  font-family: Montserrat-Medium;
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/Montserrat-Medium/Montserrat-Medium.eot);
  src:
          url(../fonts/Montserrat-Medium/Montserrat-Medium.eot?#iefix) format("embedded-opentype"),
          url(../fonts/Montserrat-Medium/Montserrat-Medium.woff) format("woff"),
          url(../fonts/Montserrat-Medium/Montserrat-Medium.ttf) format("truetype");
}

@font-face {
  font-family: Roboto-Light;
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/Roboto-Light/Roboto-Light.eot);
  src:
          url(../fonts/Roboto-Light/Roboto-Light.eot?#iefix) format("embedded-opentype"),
          url(../fonts/Roboto-Light/Roboto-Light.woff) format("woff"),
          url(../fonts/Roboto-Light/Roboto-Light.ttf) format("truetype");
}

/* Base */
:root {
  --brand-accent: #c48465;
  --brand-blue: #0E2A48;
  --brand-dark: #212529;
  --brand-green: #516b07;

  --white: #fff;
  --white-soft: rgba(255, 255, 255, 0.82);
  --white-muted: rgba(255, 255, 255, 0.68);

  --ui-text-soft: rgba(33, 37, 41, 0.78);
  --ui-border: rgba(51, 72, 100, 0.12);
  --ui-border-light: rgba(255, 255, 255, 0.14);

  --ui-shadow-soft: 0 18px 45px rgba(33, 37, 41, 0.08);
  --ui-shadow-card: 0 24px 50px rgba(33, 37, 41, 0.08);
  --ui-radius-lg: 28px;
  --ui-radius-md: 16px;
  --ui-radius-sm: 12px;
}

::-webkit-input-placeholder { color: #666; }
::-moz-placeholder { color: #666; }
:-ms-input-placeholder { color: #666; }
::-ms-input-placeholder { color: #666; }
::placeholder { color: #666; }

::-moz-selection {
  background-color: #dfbb4e;
  color: #fff;
}

::selection {
  background-color: #dfbb4e;
  color: #fff;
}

.d-none {
  display: none;
}

html,
body {
  height: 100%;
}

body {
  min-width: 320px;
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  font-family: RobotoRegular, sans-serif;
  background-color: #f2f2f2;
}

body input,
body textarea {
  border: #666 1px solid;
  outline: 0;
}

body input:focus:required:invalid,
body textarea:focus:required:invalid {
  border-color: red;
}

body input:required:valid,
body textarea:required:valid {
  border-color: green;
}

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

.text-center {
  text-align: center;
}

.full-width {
  width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

a,
button {
  outline: 0;
}

a:hover {
  color: initial;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
}

button:focus {
  outline: 0;
}

.clearfix {
  clear: both;
}

.container-fluid {
  max-width: 1920px;
}

/* Shared UI */
.ui-eyebrow,
.hero-head__eyebrow,
.calc-form__eyebrow,
.roof-cases__eyebrow,
.roof-story__eyebrow,
.roof-feature__eyebrow,
.visit-section__eyebrow,
.site-footer__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(196, 132, 101, 0.24);
  border-radius: 999px;
  background: rgba(196, 132, 101, 0.08);
  color: var(--brand-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ui-accent-line,
.calc-form__accent,
.roof-cases__accent,
.roof-story__divider,
.roof-feature__accent,
.visit-section__accent {
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-green) 100%);
  box-shadow: 0 6px 14px rgba(196, 132, 101, 0.18);
}

.ui-input,
.calc-form__field,
.visit-form__field {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(51, 72, 100, 0.10);
  border-radius: 16px;
  background: rgba(214, 205, 185, 0.72);
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.45),
          0 8px 18px rgba(33, 37, 41, 0.04);
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 56px;
  transition:
          border-color 0.25s ease,
          box-shadow 0.25s ease,
          background 0.25s ease,
          transform 0.25s ease;
}

.ui-input:focus,
.calc-form__field:focus,
.visit-form__field:focus {
  outline: none;
  border-color: rgba(196, 132, 101, 0.45);
  background: #fff;
  box-shadow:
          0 0 0 4px rgba(196, 132, 101, 0.10),
          0 10px 22px rgba(33, 37, 41, 0.06);
  transform: translateY(-1px);
}

.calc-form__field::-webkit-input-placeholder,
.visit-form__field::-webkit-input-placeholder {
  color: rgba(33, 37, 41, 0.52);
}

.calc-form__field::-moz-placeholder,
.visit-form__field::-moz-placeholder {
  color: rgba(33, 37, 41, 0.52);
  opacity: 1;
}

.calc-form__field:-ms-input-placeholder,
.visit-form__field:-ms-input-placeholder {
  color: rgba(33, 37, 41, 0.52);
}

.ui-btn,
.hero-head__btn,
.calc-form__btn,
.visit-form__btn,
.site-footer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, #b77352 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(196, 132, 101, 0.24);
  transition:
          transform 0.25s ease,
          box-shadow 0.25s ease,
          filter 0.25s ease;
}

.ui-btn:hover,
.ui-btn:focus,
.hero-head__btn:hover,
.hero-head__btn:focus,
.calc-form__btn:hover,
.calc-form__btn:focus,
.visit-form__btn:hover,
.visit-form__btn:focus,
.site-footer__action:hover,
.site-footer__action:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(196, 132, 101, 0.30);
  filter: saturate(1.03);
}

.hero-head__btn i,
.calc-form__btn i,
.visit-form__btn i {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  transform: translateY(-1px);
}

/* Hero */
.head.hero-head {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background-color: #212529;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-head__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
          linear-gradient(180deg, rgba(18, 21, 24, 0.14) 0%, rgba(18, 21, 24, 0.48) 18%, rgba(18, 21, 24, 0.66) 100%),
          linear-gradient(90deg, rgba(18, 21, 24, 0.50) 0%, rgba(18, 21, 24, 0.24) 38%, rgba(18, 21, 24, 0.36) 100%);
}

.hero-head__glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-head__glow--left {
  top: -100px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.18) 0%, rgba(196, 132, 101, 0) 72%);
}

.hero-head__glow--right {
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.24) 0%, rgba(51, 72, 100, 0) 72%);
}

.head__top.hero-head__top {
  position: relative;
  z-index: 100;
  padding: 8px 0 0;
  transition:
          background 0.25s ease,
          box-shadow 0.25s ease,
          padding 0.25s ease,
          backdrop-filter 0.25s ease;
}

.head__top.hero-head__top.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 8px 0;
  background: rgba(22, 25, 29, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.hero-head__top-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: 45px;
}

.hero-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.hero-head__brand:hover,
.hero-head__brand:focus {
  color: #fff;
  text-decoration: none;
}

.hero-head__logo {
  display: block;
  width: 110px;
  height: auto;
  flex: 0 0 auto;
}

.hero-head__brand-text {
  color: #e9e3d8;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hero-head__top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-head__callback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-head__callback-link,
.hero-head__phone {
  color: var(--white-soft);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero-head__callback-link:hover,
.hero-head__callback-link:focus,
.hero-head__phone:hover,
.hero-head__phone:focus {
  color: #fff;
  text-decoration: none;
}

.hero-head__phone {
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-head__messengers {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.hero-msg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-msg:hover,
.hero-msg:focus {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.hero-msg span {
  display: block;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero-msg--tg span {
  background-image: url(../img/t.svg);
}

.hero-msg--wa span {
  background-image: url(../img/w.svg);
}

.hero-msg--vb span {
  background-image: url(../img/v.svg);
}

.hero-menu {
  position: relative;
}

.hero-menu__toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-menu__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 6px 16px;
  border: 1px solid var(--ui-border-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  list-style: none;
}

.hero-menu .main-menu__item {
  margin: 0;
}

.hero-menu .main-menu__item.active .main-menu__link {
  color: #fff;
}

.hero-menu .main-menu__link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero-menu .main-menu__link:hover,
.hero-menu .main-menu__link:focus {
  color: #fff;
  text-decoration: none;
}

.hero-menu .main-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-green) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hero-menu .main-menu__link:hover::after,
.hero-menu .main-menu__link:focus::after,
.hero-menu .main-menu__item.active .main-menu__link::after {
  transform: scaleX(1);
}

.sandwich {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 24px;
}

.sw-topper,
.sw-bottom,
.sw-footer {
  position: absolute;
  left: 0;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.sw-topper { top: 2px; }
.sw-bottom { top: 11px; }
.sw-footer { top: 20px; }

.sandwich.active .sw-topper {
  top: 11px;
  transform: rotate(45deg);
}

.sandwich.active .sw-bottom {
  opacity: 0;
}

.sandwich.active .sw-footer {
  top: 11px;
  transform: rotate(-45deg);
}

.hero-head__body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 110px);
}

.hero-head__body .container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 70px;
  padding-bottom: 90px;
}

.hero-head__content {
  max-width: 900px;
}

.hero-head__eyebrow {
  margin-bottom: 20px;
  color: #f0b79d;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.hero-head__title {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
}

.hero-head__title span {
  color: var(--brand-accent);
  font-weight: 700;
}

.hero-head__accent {
  width: 92px;
  margin: 28px 0 34px;
  box-shadow: 0 6px 16px rgba(196, 132, 101, 0.28);
}

.hero-head__features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-bottom: 34px;
}

.hero-head__feature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px 22px;
  border: 1px solid var(--ui-border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.10);
}

.hero-head__feature-dot {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(196, 132, 101, 0.28);
  border-radius: 50%;
  background: rgba(196, 132, 101, 0.18);
}

.hero-head__feature-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.hero-head__feature-text {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 500;
}

.hero-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-head__btn {
  min-height: 62px;
  padding: 18px 30px;
  border-radius: 18px;
  font-size: 17px;
  box-shadow: 0 18px 34px rgba(196, 132, 101, 0.28);
}

.hero-head__btn:hover,
.hero-head__btn:focus {
  box-shadow: 0 22px 38px rgba(196, 132, 101, 0.34);
}

.hero-head__btn i {
  font-size: 22px;
}

.hero-head__bottom {
  position: absolute;
  left: 50%;
  bottom: -58px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-head__bottom:hover,
.hero-head__bottom:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transform: translateX(-50%) translateY(2px);
}

.hero-head__bottom-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 26px;
}

.hero-head__bottom-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.hero-head__bottom-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

/* Parallax sections */
.fixed-bg {
  position: relative;
  height: clamp(900px, 110vh, 1400px);
  overflow: hidden;
}

/* сам фон */
.fixed-bg__inner {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.fixed-bg_1 .fixed-bg__inner { background-image: url(../img/fixed1.jpg); }
.fixed-bg_2 .fixed-bg__inner { background-image: url(../img/fixed2.jpg); }
.fixed-bg_3 .fixed-bg__inner { background-image: url(../img/fixed3.jpg); }
.fixed-bg_4 .fixed-bg__inner { background-image: url(../img/fixed4.jpg); }
.fixed-bg_5 .fixed-bg__inner { background-image: url(../img/fixed5.jpg); }
.fixed-bg_6 .fixed-bg__inner { background-image: url(../img/fixed6.jpg); }

@media (max-width: 991.98px) {
  .fixed-bg {
    height: 500px;
  }

  .fixed-bg__inner {
    top: -10%;
    height: 120%;
  }
}

/* Calculator section */
.calc-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.10) 0%, transparent 28%),
          radial-gradient(circle at bottom right, rgba(81, 107, 7, 0.08) 0%, transparent 30%),
          linear-gradient(180deg, #f8f5f1 0%, #f2ede7 100%);
}

.calc-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.calc-section__bg::before,
.calc-section__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.calc-section__bg::before {
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.10) 0%, rgba(51, 72, 100, 0) 72%);
}

.calc-section__bg::after {
  left: -90px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.10) 0%, rgba(196, 132, 101, 0) 72%);
}

.calc-section__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.calc-section__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 24px 20px;
}

.calc-section__media::before {
  content: "";
  position: absolute;
  inset: 55px 80px 55px 15px;
  border: 1px solid rgba(51, 72, 100, 0.08);
  border-radius: 40px;
  background:
          radial-gradient(circle at 28% 30%, rgba(196, 132, 101, 0.14) 0%, rgba(196, 132, 101, 0) 30%),
          linear-gradient(135deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.08) 100%);
}

.calc-section__media::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 28px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 107, 7, 0.10) 0%, rgba(81, 107, 7, 0) 72%);
}

.calc-section__image-wrap {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.calc-section__img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(33, 37, 41, 0.18));
}

.calc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(248,244,238,0.96) 100%);
  box-shadow: var(--ui-shadow-card);
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-blue) 50%, var(--brand-green) 100%);
}

.calc-form {
  padding: 44px 42px 40px;
}

.calc-form__eyebrow {
  margin-bottom: 18px;
}

.calc-form__title {
  margin: 0;
  color: var(--brand-dark);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.calc-form__title strong {
  color: var(--brand-green);
  font-weight: 700;
}

.calc-form__accent {
  margin: 24px 0 28px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-blue) 100%);
}

.calc-form__group {
  margin-bottom: 24px;
}

.calc-form__group-title {
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.calc-form__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.calc-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  cursor: pointer;
  user-select: none;
}

.calc-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-radio__control {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  border: 1px solid rgba(51, 72, 100, 0.16);
  border-radius: 50%;
  background: rgba(214, 205, 185, 0.65);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.calc-radio__control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.22s ease;
}

.calc-radio__text {
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.4;
}

.calc-radio input:checked + .calc-radio__control {
  border-color: rgba(196, 132, 101, 0.45);
  background: rgba(196, 132, 101, 0.10);
  box-shadow: 0 0 0 4px rgba(196, 132, 101, 0.08);
}

.calc-radio input:checked + .calc-radio__control::after {
  transform: translate(-50%, -50%) scale(1);
}

.calc-form__divider {
  height: 1px;
  margin: 10px 0 26px;
  background: linear-gradient(90deg, rgba(196,132,101,0.55) 0%, rgba(81,107,7,0.45) 100%);
}

.calc-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-bottom: 26px;
}

.calc-form__field-block {
  min-width: 0;
}

.calc-form__label {
  display: block;
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.45;
}

.calc-form__build-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(51, 72, 100, 0.08);
  border-radius: 18px;
  background: rgba(51, 72, 100, 0.03);
}

.calc-form__build-text p {
  margin: 0;
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.6;
}

.calc-form__build-text p + p {
  margin-top: 6px;
}

.calc-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.calc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-switch__track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border: 1px solid rgba(51, 72, 100, 0.10);
  border-radius: 999px;
  background: rgba(214, 205, 185, 0.95);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.calc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 4px 10px rgba(33, 37, 41, 0.18);
  transition: transform 0.25s ease;
}

.calc-switch input:checked + .calc-switch__track {
  border-color: rgba(196, 132, 101, 0.32);
  background: rgba(196, 132, 101, 0.16);
}

.calc-switch input:checked + .calc-switch__track .calc-switch__thumb {
  transform: translateX(24px);
}

.calc-form__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.calc-form__phone {
  min-width: 0;
}

.calc-form__submit {
  display: flex;
  align-items: flex-end;
}

.calc-form__btn span[aria-hidden="true"] {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Cases section */
.roof-cases-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.08) 0%, transparent 26%),
          radial-gradient(circle at bottom right, rgba(81, 107, 7, 0.07) 0%, transparent 28%),
          linear-gradient(180deg, #f8f5f1 0%, #f2ede7 100%);
}

.roof-cases-section::before,
.roof-cases-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.roof-cases-section::before {
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.08) 0%, rgba(51, 72, 100, 0) 72%);
}

.roof-cases-section::after {
  left: -90px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.12) 0%, rgba(196, 132, 101, 0) 72%);
}

.roof-cases__head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.roof-cases__eyebrow {
  margin-bottom: 18px;
}

.roof-cases__title {
  margin: 0;
  color: var(--brand-dark);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.roof-cases__title strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.roof-cases__accent {
  margin: 24px auto 0;
}

.roof-cases {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.roof-case {
  min-width: 0;
}

.roof-case--large {
  grid-row: span 2;
}

.roof-case__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.84) 0%, rgba(247,242,236,0.96) 100%);
  box-shadow: var(--ui-shadow-card);
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.roof-case__link:hover,
.roof-case__link:focus {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(33, 37, 41, 0.12);
}

.roof-case__link::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-blue) 55%, var(--brand-green) 100%);
}

.roof-case__media {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.roof-case__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to top,
          rgba(33, 37, 41, 0.46) 0%,
          rgba(33, 37, 41, 0.14) 34%,
          rgba(33, 37, 41, 0.04) 60%,
          rgba(33, 37, 41, 0) 100%
  );
  pointer-events: none;
}

.roof-case--large .roof-case__media {
  flex: 1 1 auto;
  min-height: 100%;
}

.roof-case:not(.roof-case--large) .roof-case__media {
  height: 230px;
}

.roof-case__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.roof-case__link:hover .roof-case__media img,
.roof-case__link:focus .roof-case__media img {
  transform: scale(1.05);
}

.roof-case__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 22px 22px 20px;
}

.roof-case--large .roof-case__content {
  padding: 28px 28px 24px;
}

.roof-case__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roof-case__name {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.roof-case:not(.roof-case--large) .roof-case__name {
  font-size: 19px;
  line-height: 1.25;
}

/* Story section */
.roof-story-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.08), transparent 28%),
          radial-gradient(circle at bottom right, rgba(81, 107, 7, 0.07), transparent 24%),
          linear-gradient(180deg, #f8f5f1 0%, #f2ede7 100%);
}

.roof-story-section::before,
.roof-story-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.roof-story-section::before {
  top: -120px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.08) 0%, rgba(51, 72, 100, 0) 72%);
}

.roof-story-section::after {
  left: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.12) 0%, rgba(196, 132, 101, 0) 72%);
}

.roof-story {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(249,244,238,0.98) 100%);
  box-shadow: var(--ui-shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.roof-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(33, 37, 41, 0.12);
}

.roof-story::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-accent) 0%, var(--brand-blue) 60%, var(--brand-green) 100%);
}

.roof-story__media,
.roof-story__content {
  flex: 0 0 50%;
  max-width: 50%;
}

.roof-story__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 42px;
  background:
          radial-gradient(circle at 30% 20%, rgba(196, 132, 101, 0.10) 0%, rgba(196, 132, 101, 0) 30%),
          linear-gradient(180deg, #f2ece5 0%, #ece4db 100%);
}

.roof-story__media::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(196, 132, 101, 0.18);
  border-radius: 24px;
  pointer-events: none;
}

.roof-story__media::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.10) 0%, rgba(51, 72, 100, 0) 72%);
  pointer-events: none;
}

.roof-story__media-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.58);
  box-shadow:
          0 20px 36px rgba(33, 37, 41, 0.08),
          inset 0 1px 0 rgba(255,255,255,0.45);
}

.roof-story__media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.roof-story__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 56px;
  color: var(--brand-dark);
}

.roof-story__content::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 107, 7, 0.10) 0%, rgba(81, 107, 7, 0) 72%);
  pointer-events: none;
}

.roof-story__eyebrow {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 20px;
}

.roof-story__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--brand-dark);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.roof-story__title strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.roof-story__divider {
  position: relative;
  z-index: 1;
  margin: 24px 0 28px;
}

.roof-story__text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.roof-story__lead {
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1.62;
}

.roof-story__text p {
  margin: 0 0 18px;
  color: var(--ui-text-soft);
  font-size: 19px;
  line-height: 1.75;
}

.roof-story__text p:last-child {
  margin-bottom: 0;
}

.roof-story__text strong {
  color: var(--brand-dark);
  font-weight: 700;
}

.roof-story__features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.roof-story__features li {
  padding: 10px 14px;
  border: 1px solid rgba(51, 72, 100, 0.12);
  border-radius: 999px;
  background: rgba(51, 72, 100, 0.04);
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.roof-story--image-left .roof-story__media { order: 1; }
.roof-story--image-left .roof-story__content { order: 2; }
.roof-story--image-right .roof-story__media { order: 2; }
.roof-story--image-right .roof-story__content { order: 1; }

.roof-story__btn {
  margin-top: 30px;
}

/* Generic feature sections */
.roof-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 96px 0;
}

.roof-section--warm::before,
.roof-section--warm::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.roof-section--warm::before {
  top: -140px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.08) 0%, rgba(51, 72, 100, 0) 72%);
}

.roof-section--warm::after {
  left: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.12) 0%, rgba(196, 132, 101, 0) 72%);
}

.roof-feature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.86) 0%, rgba(241,235,228,0.96) 100%);
  box-shadow: var(--ui-shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.roof-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(33, 37, 41, 0.12);
}

.roof-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-blue) 45%, var(--brand-green) 100%);
}

.roof-feature__media,
.roof-feature__content {
  flex: 0 0 50%;
  max-width: 50%;
}

.roof-feature__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #d8d8d8;
}

.roof-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          135deg,
          rgba(51, 72, 100, 0.10) 0%,
          rgba(51, 72, 100, 0.02) 40%,
          rgba(196, 132, 101, 0.08) 100%
  );
  pointer-events: none;
}

.roof-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roof-feature__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 54px;
  color: var(--brand-dark);
}

.roof-feature__content::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 107, 7, 0.10) 0%, rgba(81, 107, 7, 0) 72%);
  pointer-events: none;
}

.roof-feature__eyebrow {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 20px;
}

.roof-feature__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--brand-dark);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.roof-feature__title strong {
  color: var(--brand-dark);
  font-weight: 700;
}

.roof-feature__accent {
  position: relative;
  z-index: 1;
  margin: 24px 0 28px;
}

.roof-feature__text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.roof-feature__text p {
  margin: 0 0 18px;
  color: rgba(33, 37, 41, 0.82);
  font-size: 20px;
  line-height: 1.7;
}

.roof-feature__text p:last-child {
  margin-bottom: 0;
}

.roof-feature__text strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.roof-feature--image-left .roof-feature__media { order: 1; }
.roof-feature--image-left .roof-feature__content { order: 2; }
.roof-feature--image-right .roof-feature__media { order: 2; }
.roof-feature--image-right .roof-feature__content { order: 1; }

.roof-feature--image-left .roof-feature__content {
  box-shadow: inset 1px 0 0 rgba(51, 72, 100, 0.08);
}

.roof-feature--image-right .roof-feature__content {
  box-shadow: inset -1px 0 0 rgba(51, 72, 100, 0.08);
}

.no-object-fit .roof-feature__media img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* portfolio section */
.portfolio-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.08) 0%, transparent 26%),
          radial-gradient(circle at bottom right, rgba(81, 107, 7, 0.07) 0%, transparent 28%),
          linear-gradient(180deg, #f8f5f1 0%, #f2ede7 100%);
}

.portfolio-section::before,
.portfolio-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-section::before {
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.08) 0%, rgba(51, 72, 100, 0) 72%);
}

.portfolio-section::after {
  left: -90px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.12) 0%, rgba(196, 132, 101, 0) 72%);
}

.portfolio-section__head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.portfolio-section__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(196, 132, 101, 0.24);
  border-radius: 999px;
  background: rgba(196, 132, 101, 0.08);
  color: #c48465;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-section__title {
  margin: 0;
  color: #212529;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.portfolio-section__title strong {
  color: #334864;
  font-weight: 700;
}

.portfolio-section__accent {
  width: 78px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c48465 0%, #516b07 100%);
  box-shadow: 0 6px 14px rgba(196, 132, 101, 0.18);
}

.portfolio-grid {
  position: relative;
  z-index: 1;
}

.portfolio-row > div {
  margin-bottom: 30px;
}

.portfolio-row:last-child {
  margin-bottom: 0;
}

.portfolio-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(51, 72, 100, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.84) 0%, rgba(247,242,236,0.96) 100%);
  box-shadow: 0 24px 50px rgba(33, 37, 41, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(33, 37, 41, 0.12);
}

.portfolio-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ddd;
}

.portfolio-card__media::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c48465 0%, #334864 55%, #516b07 100%);
}

.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(
                  to top,
                  rgba(33, 37, 41, 0.32) 0%,
                  rgba(33, 37, 41, 0.08) 42%,
                  rgba(33, 37, 41, 0) 100%
          );
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.portfolio-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.05);
}

.portfolio-card__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.portfolio-card__zoom::before,
.portfolio-card__zoom::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 999px;
}

.portfolio-card__zoom::before {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.portfolio-card__zoom::after {
  top: 50%;
  left: 50%;
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.portfolio-card:hover .portfolio-card__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-card__body {
  padding: 20px 22px 22px;
}

.portfolio-card__title {
  margin: 0;
  color: #212529;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-more[hidden] {
  display: none !important;
}

.portfolio-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.portfolio-section__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #c48465 0%, #b77352 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(196, 132, 101, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.portfolio-section__more-btn:hover,
.portfolio-section__more-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(196, 132, 101, 0.30);
  filter: saturate(1.03);
}

.portfolio-section__more-btn span[aria-hidden="true"] {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .portfolio-section {
    padding: 76px 0;
  }

  .portfolio-section__title {
    font-size: 38px;
  }

  .portfolio-card__title {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .portfolio-section {
    padding: 56px 0;
  }

  .portfolio-section__head {
    margin-bottom: 30px;
  }

  .portfolio-section__title {
    font-size: 32px;
  }

  .portfolio-row > div {
    margin-bottom: 22px;
  }

  .portfolio-card__body {
    padding: 18px 18px 20px;
  }

  .portfolio-card__title {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .portfolio-section {
    padding: 40px 0;
  }

  .portfolio-section__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .portfolio-section__title {
    font-size: 26px;
    line-height: 1.12;
  }

  .portfolio-section__accent {
    width: 60px;
    margin-top: 18px;
  }

  .portfolio-row > div {
    margin-bottom: 16px;
  }

  .portfolio-card {
    border-radius: 18px;
  }

  .portfolio-card__body {
    padding: 16px 16px 18px;
  }

  .portfolio-card__title {
    font-size: 17px;
    line-height: 1.3;
  }

  .portfolio-card__zoom {
    width: 48px;
    height: 48px;
  }

  .portfolio-section__actions {
    margin-top: 22px;
  }

  .portfolio-section__more-btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  .portfolio-section__more-btn span[aria-hidden="true"] {
    font-size: 18px;
  }
}

/* modern modal */
.modal-modern {
  width: 100%;
  max-width: 620px;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
}

.modal-modern__inner {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 30px;
  border: 1px solid rgba(51, 72, 100, 0.12);
  border-radius: 28px;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.10) 0%, transparent 26%),
          radial-gradient(circle at bottom right, rgba(81, 107, 7, 0.07) 0%, transparent 28%),
          linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(247,242,236,0.98) 100%);
  box-shadow: 0 24px 50px rgba(33, 37, 41, 0.12);
}

.modal-modern__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c48465 0%, #334864 55%, #516b07 100%);
}

.modal-modern__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(196, 132, 101, 0.24);
  border-radius: 999px;
  background: rgba(196, 132, 101, 0.08);
  color: #c48465;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-modern__ttl {
  margin: 0 0 14px;
  color: #212529;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.modal-modern__txt {
  max-width: 500px;
  margin: 0 auto 24px;
  color: rgba(33, 37, 41, 0.78);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.modal-modern__form {
  margin: 0;
}

.modal-modern__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.modal-modern__field-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.modal-modern__field {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(51, 72, 100, 0.10);
  border-radius: 16px;
  background: rgba(214, 205, 185, 0.72);
  box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.45),
          0 8px 18px rgba(33, 37, 41, 0.04);
  color: #212529;
  font-size: 16px;
  line-height: 56px;
  transition:
          border-color 0.25s ease,
          box-shadow 0.25s ease,
          background 0.25s ease,
          transform 0.25s ease;
}

.modal-modern__field:focus {
  outline: none;
  border-color: rgba(196, 132, 101, 0.45);
  background: #fff;
  box-shadow:
          0 0 0 4px rgba(196, 132, 101, 0.10),
          0 10px 22px rgba(33, 37, 41, 0.06);
  transform: translateY(-1px);
}

.modal-modern__field::-webkit-input-placeholder {
  color: rgba(33, 37, 41, 0.52);
}

.modal-modern__field::-moz-placeholder {
  color: rgba(33, 37, 41, 0.52);
  opacity: 1;
}

.modal-modern__field:-ms-input-placeholder {
  color: rgba(33, 37, 41, 0.52);
}

.modal-modern__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  padding: 16px 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #c48465 0%, #b77352 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(196, 132, 101, 0.24);
  transition:
          transform 0.25s ease,
          box-shadow 0.25s ease,
          filter 0.25s ease;
}

.modal-modern__btn:hover,
.modal-modern__btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(196, 132, 101, 0.30);
  filter: saturate(1.03);
}

.modal-modern__btn span[aria-hidden="true"] {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

/* remove old legacy modal layout side effects */
.modal-form .rline,
.modal-form .rline.last {
  display: block;
  margin: 0;
}

.modal-form .rline .field {
  min-width: 0;
}

@media (max-width: 767px) {
  .modal-modern {
    max-width: 100%;
    border-radius: 18px;
  }

  .modal-modern__inner {
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .modal-modern__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .modal-modern__ttl {
    font-size: 26px;
    line-height: 1.12;
  }

  .modal-modern__txt {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .modal-modern__fields {
    gap: 12px;
    margin-bottom: 18px;
  }

  .modal-modern__field {
    height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 52px;
  }

  .modal-modern__btn {
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  .modal-modern__btn span[aria-hidden="true"] {
    font-size: 18px;
  }
}

input[type=checkbox],
input[type=radio] {
  display: none;
}

.radio {
  position: relative;
  display: block;
  margin-bottom: 14px;
  cursor: pointer;
}

.radio:last-child {
  margin-bottom: 0;
}

.radio_chimney {
  float: left;
  width: 50%;
  margin-bottom: 0;
  overflow: hidden;
}

.radio_build .radio__text::before {
  height: 50px;
  border-radius: 25px;
}

.radio_build .radio__text::after {
  top: 8px;
  opacity: 1;
}

.radio_build .radio__text input:checked + .radio__text::after {
  visibility: hidden;
}

.radio__arr {
  position: absolute;
  top: 26px;
  left: 6px;
  width: 16px;
  height: 16px;
  background-image: url(../img/build_arr.svg);
  background-size: 16px 16px;
}

.radio__text {
  padding-left: 34px;
  font-family: Roboto-Light, sans-serif;
}

.radio__text::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dbdbcc;
  transition: .2s;
}

.radio__text::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c48465;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: .2s;
}

.radio input:checked + .radio__text::after {
  opacity: 1;
}

.radio input:focus + .radio__text::before {
  box-shadow: 0 0 0 3px rgba(255, 255, 0, .7);
}

.radio_build input:checked + .radio__text::after {
  top: 34px;
}

.radio_build input:checked + .radio__text .radio__arr {
  visibility: hidden;
}

.rline {
  position: relative;
  display: table;
  padding-bottom: 10px;
}

.rfield_error {
  position: absolute;
  right: 10px;
  bottom: 0;
  color: red;
  font-size: 12px;
  visibility: hidden;
}

/* Visit section */
.visit-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
          radial-gradient(circle at top left, rgba(196, 132, 101, 0.10) 0%, transparent 28%),
          radial-gradient(circle at bottom right, rgba(51, 72, 100, 0.08) 0%, transparent 30%),
          linear-gradient(180deg, #f8f5f1 0%, #f2ede7 100%);
}

.visit-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.visit-section__bg::before,
.visit-section__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.visit-section__bg::before {
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(196, 132, 101, 0.12) 0%, rgba(196, 132, 101, 0) 72%);
}

.visit-section__bg::after {
  left: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(81, 107, 7, 0.10) 0%, rgba(81, 107, 7, 0) 72%);
}

.visit-section__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.visit-section__content {
  position: relative;
  padding: 56px 0;
}

.visit-section__content::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -24px;
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, var(--brand-accent) 0%, rgba(196, 132, 101, 0) 100%);
}

.visit-section__eyebrow {
  margin-bottom: 18px;
}

.visit-section__title {
  max-width: 680px;
  margin: 0;
  color: var(--brand-dark);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.visit-section__title strong {
  color: var(--brand-green);
  font-weight: 700;
}

.visit-section__accent {
  width: 78px;
  margin: 24px 0 28px;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-blue) 100%);
}

.visit-section__text {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--ui-text-soft);
  font-size: 19px;
  line-height: 1.75;
}

.visit-form {
  max-width: 620px;
}

.visit-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.visit-form__field-wrap {
  flex: 1 1 260px;
  margin: 0;
}

.visit-form__btn span[aria-hidden="true"] {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.visit-section__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.visit-section__media::before {
  content: "";
  position: absolute;
  inset: 40px 30px 40px 80px;
  border: 1px solid rgba(51, 72, 100, 0.08);
  border-radius: 36px;
  background:
          radial-gradient(circle at 30% 25%, rgba(196, 132, 101, 0.14) 0%, rgba(196, 132, 101, 0) 30%),
          linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.10) 100%);
}

.visit-section__media::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 72, 100, 0.12) 0%, rgba(51, 72, 100, 0) 72%);
}

.visit-section__image-wrap {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 10px 0;
}

.visit-section__img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 36px rgba(33, 37, 41, 0.18));
}

.second-form .field,
.second-form .btnsubmit,
.visit-section .field,
.visit-section .btnsubmit {
  outline: none;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 26px;
  color: #fff;
  background: linear-gradient(135deg, #1d2126 0%, #212529 45%, #28313d 100%);
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
          radial-gradient(circle at 15% 20%, rgba(196, 132, 101, 0.16) 0%, rgba(196, 132, 101, 0) 28%),
          radial-gradient(circle at 85% 15%, rgba(51, 72, 100, 0.28) 0%, rgba(51, 72, 100, 0) 32%),
          radial-gradient(circle at 70% 80%, rgba(81, 107, 7, 0.14) 0%, rgba(81, 107, 7, 0) 24%);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 42px;
}

.site-footer__brand {
  flex: 0 0 40%;
  max-width: 40%;
}

.site-footer__eyebrow {
  margin: 0 0 14px;
  padding: 7px 12px;
  border-color: rgba(196, 132, 101, 0.35);
}

.site-footer__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-footer__lead {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.site-footer__contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  flex: 0 0 60%;
  max-width: 60%;
}

.site-footer__card {
  position: relative;
  min-height: 100%;
  padding: 26px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.site-footer__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 42px;
  height: 2px;
  background: var(--brand-accent);
  box-shadow: 0 0 12px rgba(196, 132, 101, 0.35);
}

.site-footer__card-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.site-footer__link {
  display: inline-block;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer__link:hover,
.site-footer__link:focus {
  color: var(--brand-accent);
  text-decoration: none;
}

.site-footer__link--phone {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__action {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(196, 132, 101, 0.22);
}

.site-footer__action:hover,
.site-footer__action:focus {
  box-shadow: 0 14px 24px rgba(196, 132, 101, 0.28);
}

.site-footer__note,
.site-footer__text {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus {
  color: var(--brand-accent);
  text-decoration: none;
}

/* Footer and modal legacy */
.form-foot .rline {
  display: table;
  float: left;
  margin-right: 15px;
}

.form-foot .rline.last {
  margin-right: 0;
}

.form-foot .rline .field {
  display: block;
  min-width: 250px;
  max-width: 100%;
  border: none;
  outline: 0;
  background-color: #ded5c3;
  box-shadow: 5px 5px 15px rgba(81, 107, 7, .1);
}

.form-foot__btn {
  position: relative;
  display: block;
  margin: 30px auto 0;
  padding: 15px 65px 15px 20px;
  border: none;
  border-radius: 2px;
  outline: 0;
  background: #c48465;
  box-shadow: 5px 5px 15px rgba(81, 107, 7, .1);
  color: #fff;
  font-size: 15px;
}

.form-foot__btn i {
  position: absolute;
  top: 10px;
  right: 15px;
  display: block;
  width: 34px;
  height: 34px;
  background-image: url(../img/form_arr_white.svg);
  background-size: 34px 34px;
}

.modal {
  max-width: 576px;
}

.modal__ttl {
  margin-bottom: 20px;
  color: #516b07;
  font-family: Montserrat-Bold, sans-serif;
  font-size: 24px;
  text-align: center;
}

.modal__txt {
  margin-bottom: 20px;
  font-size: 18px;
  text-align: center;
}

.modal-form .rline {
  display: table;
  margin: 0 auto 15px;
}

.modal-form .rline.last {
  margin-bottom: 0;
}

.modal-form .rline .field {
  min-width: 250px;
  border: none;
  outline: 0;
  background-color: #ded5c3;
  box-shadow: 5px 5px 15px rgba(81, 107, 7, .1);
}

.modal-form__btn {
  position: relative;
  display: table;
  margin: 30px auto 0;
  padding: 15px 65px 15px 20px;
  border: none;
  border-radius: 2px;
  outline: 0;
  background: #c48465;
  box-shadow: 5px 5px 15px rgba(81, 107, 7, .1);
  color: #fff;
  font-size: 15px;
}

.modal-form__btn i {
  position: absolute;
  top: 10px;
  right: 15px;
  display: block;
  width: 34px;
  height: 34px;
  background-image: url(../img/form_arr_white.svg);
  background-size: 34px 34px;
}

.thn h3,
.thn p {
  text-align: center;
}

.thn h3 {
  font-family: Montserrat-Bold, sans-serif;
}

/* Tooltip dots legacy */
.tooltip {
  line-height: 1;
}

.tech-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background-color: #334864;
}

.tech-dot.dot1 { top: 180px; left: 120px; }
.tech-dot.dot2 { top: 40px; left: 270px; }
.tech-dot.dot3 { top: 59px; left: 350px; }
.tech-dot.dot4 { top: 159px; left: 300px; }
.tech-dot.dot5 { top: 75px; left: 180px; }
.tech-dot.dot6 { top: 245px; left: 288px; }
.tech-dot.dot7 { top: 286px; left: 220px; }
.tech-dot.dot8 { top: 385px; left: 220px; }
.tech-dot.dot9 { top: 355px; left: 128px; }

/* Floating contacts widget */
@-webkit-keyframes pulse {
  0%,16%,32%,100% { -webkit-transform: scale(1); transform: scale(1); }
  4%,12%,20%,28% { -webkit-transform: scale(1.1); transform: scale(1.1); }
  8%,24% { -webkit-transform: scale(1.2); transform: scale(1.2); }
}

@keyframes pulse {
  0%,16%,32%,100% { transform: scale(1); }
  4%,12%,20%,28% { transform: scale(1.1); }
  8%,24% { transform: scale(1.2); }
}

.widget-contacts {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 199;
}

.widget-contacts .wdc {
  position: relative;
}

.widget-contacts .wdc__list {
  position: absolute;
  top: calc(-100% - 250px);
  left: 50%;
  display: none;
  width: 50px;
  opacity: 0;
  transform: translateX(-50%);
}

.widget-contacts .wdc__item {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 30px;
  border-radius: 50%;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}

.widget-contacts .wdc__item:last-child {
  margin-bottom: 0;
}

.widget-contacts .wdc__item_c {
  box-shadow: none;
}

.widget-contacts .wdc__item_c .button {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #4BAF50;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}

.widget-contacts .wdc__item_c .button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  background-image: url(../img/phone-w.svg);
  background-size: contain;
}

.widget-contacts .wdc__item_v {
  background-image: url(../img/v.svg);
}

.widget-contacts .wdc__item_t {
  background-image: url(../img/t.svg);
}

.widget-contacts .wdc__item_w {
  background: #fff;
}

.widget-contacts .wdc__item_w .button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  background-image: url(../img/w.svg);
  background-size: contain;
}

.widget-contacts .wdc__item .button {
  display: block;
  height: 100%;
  border: none;
}

.widget-contacts .wdc__button {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #0088CC;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  animation: pulse 6s linear infinite;
}

.widget-contacts .wdc__button:hover {
  animation: none;
}

.widget-contacts .wdc__button-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translate(-50%, -50%);
}

.widget-contacts .wdc__button-icon_message {
  width: 55px;
  height: 55px;
  background-image: url(../img/t.svg);
}

.widget-contacts .wdc__button-icon_close {
  width: 16px;
  height: 16px;
  background-image: url(../img/close-d.svg);
  opacity: 0;
}

.widget-contacts .wdc.open .wdc__list {
  display: block;
  opacity: 1;
}

.widget-contacts .wdc.open .wdc__button {
  background-color: #ffffff;
  animation: none;
}

.widget-contacts .wdc.open .wdc__button-icon {
  transition: all 0.3s ease;
}

.widget-contacts .wdc.open .wdc__button-icon_message {
  opacity: 0;
}

.widget-contacts .wdc.open .wdc__button-icon_close {
  opacity: 1;
}

.widget-contacts .wdc button {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1399px) {
  .hero-head__title {
    font-size: 42px;
  }

  .hero-head__feature-text {
    font-size: 24px;
  }

  .hero-head__brand-text {
    font-size: 30px;
  }
}

@media (max-width: 1359px) {
  .hero-menu {
    position: relative;
  }

  .hero-menu__toggle {
    position: relative;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .hero-menu__list {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 11;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 280px;
    min-width: 280px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(24, 28, 32, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
  }

  .hero-menu .main-menu__item {
    display: block;
    width: 100%;
  }

  .hero-menu .main-menu__link {
    display: block;
    width: 100%;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    border-radius: 12px;
  }

  .hero-menu .main-menu__link:hover,
  .hero-menu .main-menu__link:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .hero-menu .main-menu__link::after {
    display: none;
  }

  .hero-menu .main-menu__item.active .main-menu__link {
    background: rgba(196, 132, 101, 0.12);
    color: #fff;
  }

  .hero-head__top-right {
    align-items: flex-end;
  }
}

@media (min-width: 1360px) {
  .hero-menu__list {
    display: flex !important;
  }
}

@media (max-width: 1199.98px) {
  .fixed-bg {
    min-height: 400px;
  }

  .form__ttl {
    font-size: 20px;
  }

  .form__btn {
    padding: 15px 55px 15px 15px;
  }

  .form-foot .rline .field {
    min-width: inherit;
    max-width: 225px;
  }

  .tech-dot.dot1 { left: 80px; }
  .tech-dot.dot2 { top: 35px; left: 230px; }
  .tech-dot.dot3 { top: 50px; left: 320px; }
  .tech-dot.dot4 { top: 134px; left: 260px; }
  .tech-dot.dot5 { top: 65px; left: 150px; }
  .tech-dot.dot6 { top: 197px; left: 241px; }
  .tech-dot.dot7 { top: 238px; left: 185px; }
  .tech-dot.dot8 { top: 325px; left: 190px; }
  .tech-dot.dot9 { top: 300px; left: 105px; }

  .hero-head__top-wrap {
    align-items: center;
    padding-left: 0;
  }

  .hero-head__brand-text {
    font-size: 28px;
  }

  .hero-head__title {
    font-size: 36px;
  }

  .hero-head__feature-text {
    font-size: 21px;
  }

  .hero-head__body .container {
    padding-top: 56px;
    padding-bottom: 82px;
  }

  .roof-cases-section,
  .roof-story-section,
  .roof-section,
  .calc-section,
  .visit-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .roof-cases__title,
  .roof-feature__title,
  .site-footer__title,
  .visit-section__title {
    font-size: 38px;
  }

  .calc-form {
    padding: 38px 34px 34px;
  }

  .calc-form__title {
    font-size: 32px;
  }

  .calc-section__media {
    min-height: 560px;
  }

  .roof-cases {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
  }

  .roof-case:not(.roof-case--large) .roof-case__media {
    height: 200px;
  }

  .roof-case__name {
    font-size: 21px;
  }

  .roof-case:not(.roof-case--large) .roof-case__name {
    font-size: 17px;
  }

  .roof-story__media {
    min-height: 460px;
    padding: 34px;
  }

  .roof-story__content {
    padding: 42px 38px;
  }

  .roof-story__title {
    font-size: 38px;
  }

  .roof-story__lead {
    font-size: 20px;
  }

  .roof-story__text p,
  .roof-feature__text p,
  .visit-section__text {
    font-size: 17px;
  }

  .roof-feature__media {
    min-height: 400px;
  }

  .roof-feature__content {
    padding: 42px 40px;
  }

  .visit-section__media {
    min-height: 500px;
  }

  .site-footer {
    padding: 64px 0 24px;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .site-footer__brand,
  .site-footer__contacts {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .buildings-item__ttl {
    font-size: 18px;
    letter-spacing: inherit;
  }

  .buildings-item_2::before {
    left: 130px;
  }

  .fixed-bg {
    display: none;
  }

  .head.hero-head {
    min-height: auto;
  }

  .hero-head__callback-link {
    display: none;
  }

  .hero-head__body {
    min-height: auto;
  }

  .hero-head__body .container {
    padding-top: 72px;
    padding-bottom: 110px;
  }

  .hero-head__title {
    font-size: 32px;
  }

  .hero-head__features {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-head__feature {
    width: 100%;
    max-width: 420px;
  }

  .hero-head__feature-text {
    font-size: 19px;
  }

  .hero-head__bottom {
    bottom: 26px;
  }

  .calc-section,
  .roof-cases-section,
  .roof-story-section,
  .roof-section,
  .visit-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .calc-section__media {
    min-height: auto;
    padding: 0 0 28px;
  }

  .calc-section__media::before,
  .calc-section__media::after {
    display: none;
  }

  .calc-card {
    border-radius: 22px;
  }

  .calc-form__title,
  .roof-cases__title,
  .roof-story__title,
  .roof-feature__title,
  .visit-section__title {
    font-size: 32px;
  }

  .calc-form__grid,
  .calc-form__bottom,
  .calc-form__options {
    grid-template-columns: 1fr;
  }

  .calc-form__build-row {
    align-items: flex-start;
  }

  .calc-form__submit,
  .calc-form__btn {
    width: 100%;
  }

  .roof-cases__head {
    margin-bottom: 30px;
  }

  .roof-cases {
    grid-template-columns: 1fr 1fr;
  }

  .roof-case--large {
    grid-column: span 2;
    grid-row: auto;
  }

  .roof-case--large .roof-case__media {
    min-height: 380px;
  }

  .roof-case:not(.roof-case--large) .roof-case__media {
    height: 240px;
  }

  .roof-story,
  .roof-feature {
    flex-direction: column;
  }

  .roof-story__media,
  .roof-story__content,
  .roof-feature__media,
  .roof-feature__content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .roof-story__media {
    min-height: auto;
    padding: 28px;
  }

  .roof-story__content {
    padding: 34px 28px;
  }

  .roof-story__lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .roof-feature__media {
    min-height: 320px;
  }

  .roof-feature__content {
    padding: 34px 30px;
    box-shadow: none !important;
  }

  .roof-feature__text p {
    line-height: 1.65;
  }

  .visit-section__content {
    padding: 20px 0;
  }

  .visit-section__content::before {
    display: none;
  }

  .visit-section__text {
    margin-bottom: 28px;
  }

  .visit-form {
    max-width: 100%;
  }

  .site-footer__contacts {
    grid-template-columns: 1fr;
  }

  .site-footer__link--phone {
    font-size: 24px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .form {
    min-width: inherit;
  }

  .form__ttl {
    font-size: 18px;
  }

  .form__btn {
    padding: 15px 27px;
    font-size: 14px;
  }

  .form__btn i {
    display: none;
  }

  .buildings__ttl {
    letter-spacing: 0;
  }

  .buildings-item__ttl {
    font-size: 16px;
  }

  .buildings-item_2::before,
  .buildings-item_4::before {
    right: -15px;
    left: inherit;
  }

  .buildings-item_5::before,
  .buildings-item_6::before {
    right: -15px;
  }

  .head__top.hero-head__top {
    padding-top: 6px;
  }

  .hero-head__top-wrap {
    gap: 16px;
    align-items: center;
  }

  .hero-head__top-right {
    gap: 6px;
  }

  .hero-head__brand {
    gap: 10px;
  }

  .hero-head__logo {
    width: 90px;
  }

  .hero-head__brand-text {
    font-size: 18px;
  }

  .hero-head__callback {
    margin-right: 4px;
  }

  .hero-head__phone {
    font-size: 12px;
  }

  .hero-head__messengers {
    gap: 6px;
  }

  .hero-msg {
    width: 32px;
    height: 32px;
  }

  .hero-msg span {
    width: 18px;
    height: 18px;
  }

  .hero-menu__toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero-menu__list {
    top: calc(100% + 10px);
    width: 240px;
    min-width: 240px;
    max-width: calc(100vw - 16px);
    padding: 12px;
    border-radius: 18px;
  }

  .hero-head__body .container {
    padding-top: 54px;
    padding-bottom: 40px;
  }

  .hero-head__eyebrow,
  .calc-form__eyebrow,
  .roof-cases__eyebrow,
  .roof-story__eyebrow,
  .roof-feature__eyebrow,
  .visit-section__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .hero-head__title {
    font-size: 26px;
    line-height: 1.12;
  }

  .hero-head__accent,
  .roof-cases__accent,
  .roof-story__divider,
  .roof-feature__accent,
  .visit-section__accent,
  .calc-form__accent {
    width: 60px;
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .hero-head__feature {
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .hero-head__feature-text {
    font-size: 17px;
    line-height: 1.25;
  }

  .hero-head__btn,
  .calc-form__btn,
  .visit-form__btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  .hero-head__btn i,
  .calc-form__btn span[aria-hidden="true"],
  .visit-form__btn span[aria-hidden="true"] {
    font-size: 18px;
  }

  .hero-head__bottom {
    display: none;
  }

  .calc-section,
  .roof-cases-section,
  .roof-story-section,
  .roof-section,
  .visit-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .calc-form {
    padding: 26px 20px 24px;
  }

  .calc-form__title,
  .roof-cases__title,
  .roof-story__title,
  .roof-feature__title,
  .visit-section__title,
  .site-footer__title {
    font-size: 26px;
    line-height: 1.12;
  }

  .calc-form__group-title,
  .calc-form__label,
  .calc-form__build-text p {
    font-size: 14px;
  }

  .calc-form__options {
    gap: 12px;
  }

  .calc-radio__text {
    font-size: 15px;
  }

  .calc-form__grid {
    gap: 18px;
    margin-bottom: 20px;
  }

  .calc-form__field,
  .visit-form__field {
    height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 52px;
  }

  .calc-form__build-row {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
  }

  .calc-form__bottom {
    gap: 12px;
  }

  .roof-cases {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .roof-case--large {
    grid-column: auto;
  }

  .roof-case--large .roof-case__media,
  .roof-case:not(.roof-case--large) .roof-case__media {
    min-height: 0;
    height: 260px;
  }

  .roof-case__content,
  .roof-case--large .roof-case__content {
    padding: 18px 16px 16px;
  }

  .roof-case__name,
  .roof-case:not(.roof-case--large) .roof-case__name {
    font-size: 18px;
    line-height: 1.25;
  }

  .roof-story {
    border-radius: 18px;
  }

  .roof-story__media {
    padding: 20px;
  }

  .roof-story__media-frame {
    padding: 10px;
    border-radius: 18px;
  }

  .roof-story__content {
    padding: 24px 20px 26px;
  }

  .roof-story__lead {
    font-size: 17px;
  }

  .roof-story__text p,
  .roof-feature__text p,
  .visit-section__text,
  .site-footer__lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .roof-story__features {
    gap: 10px;
    margin-top: 22px;
  }

  .roof-story__features li {
    padding: 9px 12px;
    font-size: 13px;
  }

  .roof-feature {
    border-radius: 18px;
  }

  .roof-feature__media {
    min-height: 240px;
  }

  .roof-feature__content {
    padding: 26px 20px 28px;
  }

  .visit-form__fields {
    gap: 12px;
    margin-bottom: 18px;
  }

  .visit-form__field-wrap {
    flex: 1 1 100%;
  }

  .site-footer {
    padding: 48px 0 22px;
  }

  .site-footer__top {
    gap: 28px;
    padding-bottom: 30px;
  }

  .site-footer__card {
    padding: 22px 12px;
    border-radius: 16px;
  }

  .site-footer__link--phone {
    font-size: 22px;
  }

  .site-footer__nav {
    gap: 12px 16px;
  }
}

@media (max-width: 575.98px) {
  .form {
    padding: 15px;
  }

  .form__wrap {
    float: none;
    width: 100%;
  }

  .form__wrap_margin {
    margin-bottom: 25px;
  }

  .form__build p {
    font-size: 14px;
  }

  .form__buildradio {
    margin: 25px 0 0 6px;
  }

  .form .rline_center {
    margin: 0 auto 25px;
  }

  .form .rline_center input {
    min-width: 227px;
  }

  .form__btn {
    display: block;
    margin: 0 auto;
  }

  .radio:last-child {
    margin-bottom: 14px;
  }

  .buildings__ttl {
    padding-left: 35px;
    font-size: 26px;
  }

  .buildings__dot {
    left: 0;
  }

  .buildings__dot::before,
  .buildings__dot::after {
    display: none;
  }

  .buildings-item__img {
    margin: 0 auto;
  }

  .buildings-item__ttl {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
  }

  .buildings-item__ttl_last {
    margin-bottom: 35px;
  }

  .form-foot .rline {
    float: none;
    width: 100%;
    margin: 0 auto 15px;
  }

  .form-foot .rline.last {
    margin-right: auto;
  }

  .form-foot .rline .field {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .form-foot__btn {
    display: block;
    width: 100%;
  }

  .tech-dot.dot1 { top: 120px; left: 35px; }
  .tech-dot.dot2 { top: 20px; left: 145px; }
  .tech-dot.dot3 { top: 30px; left: 200px; }
  .tech-dot.dot4 { top: 83px; left: 160px; }
  .tech-dot.dot5 { top: 38px; left: 95px; }
  .tech-dot.dot6 { top: 123px; left: 154px; }
  .tech-dot.dot7 { top: 123px; left: 130px; }
  .tech-dot.dot8 { top: 206px; left: 120px; }
  .tech-dot.dot9 { top: 188px; left: 67px; }
}

@media (max-width: 480px) {
  .widget-contacts {
    right: 20px;
    bottom: 20px;
  }

  .widget-contacts .wdc__button {
    width: 55px;
    height: 55px;
  }

  .widget-contacts .wdc__button-icon_message {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .widget-contacts {
    right: 30px;
    bottom: 30px;
  }
}

.iti {
  width: 100%;
}

.text-red {
  color: #ff0000;
}

.hidden {
  display: none;
}

.validation-message {
  position: absolute;
  left: 0;
  bottom: -8px;
  padding-top: 4px;
  padding-left: 10px;
  font-weight: 600;
  font-size: 12px;
}

button[disabled] {
  filter: grayscale(100%);
  cursor: not-allowed;
  opacity: 0.4;
}
