:root {
  color-scheme: light;
  --ink: #20211e;
  --paper: #fafaf7;
  --white: #fff;
  --dark: #292a26;
  --muted: #565952;
  --line: #dedfd6;
  --soft: #efefe7;
  --accent: #f47a27;
  --dark-link: #ffd2b4;
  --page-width: 1140px;
  --page-gutter: clamp(18px, 4vw, 40px);
  --section-space: clamp(48px, 7vw, 94px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-block-start: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 3.3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink);
}

[hidden] {
  display: none !important;
}

.wrapper {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  min-width: 0;
  margin-inline: auto;
}

main > section:not(.promo) {
  padding-block: var(--section-space);
}

main > section:is(.photo, .warranty, .expert) {
  padding-block-end: clamp(24px, 3vw, 36px);
}

main > section:is(.category, .reviews) {
  padding-block-end: clamp(24px, 3vw, 36px);
}

main > section.category + section.tour,
main > section.reviews + section.photo {
  padding-block-start: clamp(24px, 3vw, 36px);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #875022;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--white);
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:disabled {
  cursor: default;
  opacity: .7;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  color: var(--white);
}

.header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 18px;
  border-bottom: 1px solid rgb(255 255 255 / .2);
}

.logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.logo img {
  width: auto;
  max-width: min(185px, 100%);
  max-height: 56px;
  object-fit: contain;
}

.header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.header nav a {
  font-size: .88rem;
  text-decoration: none;
}

.header nav a:hover {
  text-decoration: underline;
}

.header__contacts,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.header__contacts a[href^="tel:"] {
  font-weight: 770;
  text-decoration: none;
  white-space: nowrap;
}

.header__contacts a[href^="tel:"]:hover {
  text-decoration: underline;
}

.promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(124px, 9.5vw, 140px) 0 0;
  background: var(--ink);
  color: var(--white);
}

.promo__wrap {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 76px);
}

.promo__wrap::before {
  position: absolute;
  z-index: -1;
  inset: 3% auto auto -20%;
  width: min(50rem, 70%);
  aspect-ratio: 1;
  transform: rotate(38deg);
  border: 2px solid rgb(244 122 39 / .56);
  content: "";
  pointer-events: none;
}

.promo__info {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-bottom: 15px;
}

.promo .eyebrow,
.photo .eyebrow,
.video .eyebrow,
.reviews .eyebrow,
.feedback .eyebrow {
  color: var(--dark-link);
}

.promo h1 {
  font-size: clamp(1.95rem, 4vw, 3.5rem);
  letter-spacing: -.045em;
  line-height: 1.01;
  text-wrap: initial;
}

.promo h1 span {
  display: block;
}

.promo__lead {
  max-width: 31rem;
  margin-top: 18px;
  color: #f1f0eb;
  font-size: clamp(1rem, 1.8vw, 1.23rem);
}

.promo__list {
  display: grid;
  gap: 8px;
  margin: 20px 0 25px;
  padding: 0;
  list-style: none;
}

.promo__list li {
  position: relative;
  padding-left: 20px;
}

.promo__list li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
}

.promo__media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 440px;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
}

.promo__media img,
.promo__media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.promo__media img {
  object-fit: cover;
  object-position: center;
}

.promo__media::after {
  background: linear-gradient(0deg, rgb(20 21 18 / .85), transparent 49%);
  content: "";
  pointer-events: none;
}

.promo__media figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--white);
  font-size: .91rem;
  line-height: 1.4;
}

.promo__band {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(24px, 3vw, 38px);
  padding: 21px clamp(20px, 4vw, 44px) 22px;
  color: var(--ink);
}

.promo__wrap > .promo__band {
  margin-top: 0;
}

.promo__band::before {
  position: absolute;
  z-index: -1;
  inset: -18px calc(var(--page-gutter) * -1) 0 0;
  background: var(--accent);
  clip-path: polygon(3% 18px, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.promo__band p,
.banner p {
  max-width: 43rem;
}

.promo__band strong {
  display: block;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.22;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
}

.split > * {
  min-width: 0;
}

.split > figure img,
.video img,
.expert img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split figcaption,
.photo-grid figcaption {
  margin-top: 8px;
  font-size: .875rem;
}

.tents {
  border-bottom: 1px solid var(--line);
}

.scenario-list,
.steps,
.category__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-list {
  border-top: 1px solid var(--line);
}

.scenario-list a[href="#contacts"] {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 18px 22px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.scenario-list a[href="#contacts"]:hover strong {
  text-decoration: underline;
}

.scenario-list a[href="#contacts"] strong {
  font-size: 1.15rem;
}

.scenario-list a[href="#contacts"] span {
  color: var(--muted);
}

.clients,
.tour,
.category,
.warranty,
.projects {
  background: var(--soft);
}

.feature-grid,
.photo-grid,
.details-grid,
.category__list,
.review-grid,
.project-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 24px);
}

.feature,
.details-grid article,
.category__item,
.review-grid article,
.project-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.feature,
.details-grid article,
.review-grid article {
  padding: clamp(16px, 3vw, 30px);
}

.feature h3 + p,
.details-grid h3 + p {
  margin-top: 8px;
}

.feature p,
.details-grid p,
.project__body p,
.category__body p {
  color: var(--muted);
}

.problems {
  background: var(--paper);
}

.problems .details-grid article {
  border-top: 4px solid var(--accent);
}

.benefits {
  background: var(--accent);
}

.benefits .eyebrow {
  color: var(--ink);
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
}

.banner h2 + p {
  margin-top: 10px;
}

.banner .btn {
  flex: 0 0 auto;
}

.expert .split > figure {
  position: relative;
}

.expert .split > figure::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  width: 38px;
  height: 38px;
  border-top: 6px solid var(--accent);
  border-left: 6px solid var(--accent);
  content: "";
  pointer-events: none;
}

.photo,
.video,
.reviews,
.feedback {
  background: var(--dark);
  color: var(--white);
}

.photo {
  border-bottom: 1px solid rgb(255 255 255 / .15);
}

.photo-grid figure {
  min-width: 0;
}

.photo-grid img,
.project-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-grid figcaption,
.video figcaption {
  color: #e4e6dc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 24px);
}

.steps li {
  padding-block-start: 12px;
  border-top: 1px solid var(--line);
}

.steps li > b {
  display: block;
  font-size: 1.12rem;
  line-height: 1.3;
}

.steps li p {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.category__item,
.project-grid article {
  display: flex;
  flex-direction: column;
}

.category__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category__body,
.project__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(15px, 2.4vw, 24px);
}

.category__body small,
.review-grid small {
  color: var(--muted);
  font-size: .875rem;
}

.category__body .btn {
  margin-top: auto;
}

.carousel {
  min-width: 0;
}

.carousel__track {
  display: grid;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
}

.carousel__track figure {
  min-width: 0;
  background: var(--soft);
  scroll-snap-align: start;
}

.carousel__track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel__track figcaption {
  padding: 10px 14px;
  font-size: .91rem;
}

.carousel__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.carousel__controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.carousel__controls button:disabled {
  opacity: .48;
  cursor: default;
}

.review-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
}

.review-grid p {
  margin-bottom: 4px;
}

.feedback__wrap {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 5vw, 58px);
}

.feedback__info .section-heading {
  margin-bottom: 22px;
}

.feedback__info a[href^="tel:"] {
  display: inline-block;
  margin-top: 10px;
  color: var(--dark-link);
  font-size: clamp(1.18rem, 2.5vw, 1.6rem);
  font-weight: 760;
  white-space: nowrap;
}

.form {
  min-width: 0;
  padding: clamp(17px, 3.5vw, 36px);
  background: var(--paper);
  color: var(--ink);
}

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

:is(.form, .estimate) label {
  display: block;
  min-width: 0;
  font-weight: 640;
}

:is(.form, .estimate) label :is(input, select, textarea):not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-height: 47px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #989b91;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 84px;
  resize: vertical;
}

.form input[type="checkbox"] {
  width: 1.12rem;
  height: 1.12rem;
  margin-inline: 0 6px;
  accent-color: var(--ink);
  vertical-align: text-bottom;
}

.span-two {
  grid-column: 1 / -1;
}

.form .actions {
  margin-top: 15px;
}

.form__status {
  margin-block: 12px;
}

.form__status:empty {
  margin: 0;
}

.footer {
  padding-block: 25px;
  background: var(--ink);
  color: var(--white);
}

.footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 25px;
}

.footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.clients .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .clients .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promo__wrap {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4.5vw, 44px);
  }

  .promo__wrap::before {
    display: none;
  }

  .promo__media {
    min-height: 360px;
  }

  .feature-grid,
  .details-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header {
    position: relative;
    background: var(--ink);
  }

  .header__wrap {
    padding-block: 12px;
    gap: 10px 14px;
  }

  .header__contacts {
    gap: 8px 12px;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 4px 8px;
  }

  .header nav a {
    padding: 5px 0;
  }

  .promo {
    padding-top: 30px;
  }

  .promo h1 {
    font-size: clamp(1.9rem, 8.6vw, 3.25rem);
  }

  .promo__wrap,
  .split,
  .feedback__wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo__info {
    padding-bottom: 0;
  }

  .promo__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .promo__media figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .promo__band {
    padding: 16px 14px;
  }

  .promo__band::before {
    inset: -8px calc(var(--page-gutter) * -1) 0;
    clip-path: polygon(0 8px, 100% 0, 100% 100%, 0 100%);
  }

  .feature-grid,
  .photo-grid,
  .category__list,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .carousel__track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 480px) {
  .header__btn {
    display: none;
  }

  .header__contacts a[href^="tel:"] {
    font-size: .9rem;
  }

  .clients .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid,
  .details-grid,
  .photo-grid,
  .category__list,
  .review-grid,
  .project-grid,
  .form__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel__track {
    grid-auto-columns: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.header__wrap {
  flex-wrap: nowrap;
  gap: 10px 18px;
}

.header .logo {
  flex: 0 0 auto;
}

.header .logo img {
  width: 126px;
}

.header nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px 16px;
}

.header__contacts {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 10px;
}

.header__messengers {
  display: flex;
  gap: 4px;
}

.messenger-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 7px;
  border: 1px solid rgb(255 255 255 / .19);
  border-radius: 6px;
  color: var(--white);
  font-size: .81rem;
  font-weight: 620;
  text-decoration: none;
}

.messenger-link img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.messenger-link--max img {
  width: 23px;
  height: 23px;
  padding: 3px;
  border-radius: 5px;
  background: var(--paper);
}

.messenger-link:hover,
.header__menu:hover {
  background: rgb(255 255 255 / .12);
}

.header__phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 3px;
}

.header__phone-icon,
.header__menu {
  display: none;
}

.header__menu {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .19);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 1140px) {
  .messenger-link {
    padding-inline: 0;
  }

  .messenger-link span {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .header {
    position: relative;
    background: var(--ink);
  }

  .header__wrap {
    flex-wrap: wrap;
  }

  .header nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .promo {
    padding-top: 48px;
  }
}

@media (max-width: 700px) {
  .header__wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 4px;
    padding-block: 10px;
  }

  .header .logo {
    min-width: 58px;
    flex: 1 1 0;
  }

  .header .logo img {
    width: 100%;
    max-width: 112px;
  }

  .header__contacts {
    gap: 4px;
  }

  .header__messengers {
    gap: 2px;
  }

  .header__phone {
    width: 44px;
    justify-content: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / .19);
    border-radius: 6px;
  }

  .header__phone-icon,
  .header__menu {
    display: grid;
  }

  .header__phone-text,
  .header__btn,
  .header nav[data-collapsed] {
    display: none;
  }

  .header nav {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .header nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

.form__consent {
  margin-block: 16px;
  padding: 9px 14px 3px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.form__consent label {
  display: grid;
  min-height: 44px;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  line-height: 1.35;
  cursor: pointer;
}

.form__consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.form__consent-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  margin-inline-start: 31px;
  font-size: .91rem;
  font-weight: 650;
}

.consent-page .wrapper {
  width: min(54rem, calc(100% - 36px));
}

.consent-document {
  padding-block: clamp(30px, 6vw, 80px);
  overflow-wrap: anywhere;
}

.consent-document__brand {
  color: #875022;
  font-size: .88rem;
  font-weight: 760;
  letter-spacing: .05em;
}

.consent-document h1 {
  margin-block: 10px 20px;
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  text-wrap: initial;
}

.consent-document h2 {
  margin-block: 26px 8px;
  font-size: clamp(1.2rem, 3vw, 1.52rem);
}

.consent-document p + p {
  margin-top: 12px;
}

.consent-document__note {
  padding: 12px 15px;
  border-inline-start: 3px solid var(--accent);
  background: var(--soft);
}

.responsive-photo:not([fetchpriority="high"]) {
  height: auto;
}

.gallery__zoom {
  display: block;
  cursor: zoom-in;
}

.photo-viewer {
  width: min(96vw, 64rem);
  max-width: 96vw;
  max-height: 93vh;
  padding: 12px;
  border: 0;
  background: var(--ink);
  color: var(--white);
}

.photo-viewer::backdrop {
  background: rgb(0 0 0 / .82);
}

.photo-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.photo-viewer__bar h2 {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  overflow-wrap: anywhere;
}

.photo-viewer__bar button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.photo-viewer__image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 710px);
  margin-inline: auto;
  object-fit: contain;
}

.photo-viewer__image a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.gallery__heading {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.gallery__heading .btn {
  flex-shrink: 0;
}

.photo .carousel__track figure {
  background: rgb(255 255 255 / .08);
}

.photo .carousel__track figcaption {
  color: #f1f0eb;
}


.photo-viewer__image {
  touch-action: pan-y pinch-zoom;
}

.photo-viewer__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.photo-viewer__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.photo-viewer__counter {
  min-width: 6ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.feedback__wrap {
  align-items: center;
}

html {
  scrollbar-gutter: stable;
}

html:has(.rental-dialog[open]) {
  overflow: hidden;
}

.rental-dialog {
  position: fixed;
  inset: calc(var(--quote-top, 0px) + var(--quote-height, 100dvh) / 2) 0 auto;
  box-sizing: border-box;
  width: min(480px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(var(--quote-height, 100dvh) - 24px);
  margin: 0 auto;
  padding: 0;
  transform: translateY(-50%);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.rental-dialog::backdrop {
  background: rgb(32 33 30 / 65%);
}

.rental-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px 0;
}

.rental-dialog__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
}

.rental-dialog__close,
[id^="rental-clear"] {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.rental-dialog__close {
  width: 44px;
  padding: 0;
  flex: 0 0 auto;
  font-size: 1.65rem;
  line-height: 1;
}

.rental-dialog .form {
  padding: 10px 20px 20px;
}

.rental-dialog .form__fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rental-dialog .form__consent {
  margin-block: 10px;
}

.rental-dialog .btn[type="submit"] {
  width: 100%;
}

.quick-form .form__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
}

.rental-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-inline-start: 3px solid var(--accent);
  background: var(--soft);
  font-size: .86rem;
}

[id^="rental-clear"] {
  flex: 0 0 auto;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .rental-dialog__header {
    padding-inline: 14px;
  }

  .rental-dialog .form {
    padding-inline: 14px;
  }

  .rental-dialog input:not([type="checkbox"]) {
    font-size: 16px;
  }
}

.category__item > img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 0;
  background: #eeede8;
}

.gallery .carousel__track img,
.photo .carousel__track img,
.project-grid > article > img,
.split > figure img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #eeede8;
}

.photo .carousel__track img,
.video .split > figure img {
  background: var(--dark);
}

@media (max-width: 700px) {
  .feedback {
    padding-block: 30px !important;
  }

  .feedback__wrap {
    gap: 12px;
  }

}

.estimate {
  margin-block: 16px 24px;
  padding: clamp(13px, 2vw, 21px);
  border: 1px solid var(--line);
  background: var(--soft);
}

.estimate__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.estimate__reset {
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: .86rem;
  text-decoration: underline;
  cursor: pointer;
}

.estimate__fields {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.estimate label {
  font-size: .92rem;
  line-height: 1.35;
}

.estimate :is(select,input) {
  min-width: 0;
}

.estimate__extras {
  min-width: 0;
  margin-block: 12px 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.estimate__extras > summary {
  padding: 9px 12px;
  min-height: 42px;
  font-weight: 680;
  cursor: pointer;
}

.estimate__options-grid {
  padding: 4px 12px 12px;
}

.estimate__options-grid .estimate__choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.estimate__options-grid small {
  color: var(--muted);
  font-weight: 450;
}

#estimate-options-note:not(:empty) {
  margin-top: 8px;
}

.estimate__muted {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 450;
  line-height: 1.42;
}

.estimate__result {
  margin-bottom: 8px;
  padding: 10px 11px;
  border-left: 3px solid var(--accent);
  background: var(--white);
}

.estimate__result-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-weight: 730;
}

.estimate__result-heading output {
  font-size: 1.15rem;
  white-space: nowrap;
}

.estimate__result ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: .82rem;
  line-height: 1.4;
}

.estimate__result ul:empty {
  margin: 0;
}

@media (max-width: 480px) {
  .estimate__heading {
    align-items: flex-start;
  }
  .estimate__fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .estimate__fields label:first-child,
  .estimate__fields label[for="estimate-floor"] {
    grid-column: 1 / -1;
  }
}

.estimate-dialog {
  width: min(920px, calc(100vw - 24px));
}

.estimate-dialog .estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px clamp(16px, 3vw, 32px);
  align-items: start;
  margin: 8px 14px 14px;
}

.estimate__heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.estimate__extras {
  margin-bottom: 0;
}

.estimate__options,
.estimate__summary {
  min-width: 0;
}

@media (min-width: 701px) {
  .estimate-dialog .estimate {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .estimate__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.estimate__attach {
  margin-top: 12px;
}

.estimate__attach:disabled {
  opacity: .6;
  cursor: default;
}


.estimate__caption {
  margin-bottom: 8px;
  font-weight: 730;
}

.rental-estimate {
  margin-top: 12px;
  padding: 8px 10px;
  border-inline-start: 3px solid var(--accent);
  background: var(--soft);
  font-size: .86rem;
}

.rental-estimate ul {
  margin: 4px 0;
  padding-inline-start: 18px;
}

[id^="rental-remove-estimate"] {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.promo__result {
  margin-block: 8px 12px;
  max-width: 27rem;
  font-weight: 650;
}

.principles__action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
}

.estimate__totals,
.estimate__totals dd {
  margin: 0;
}

.estimate__totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding-block: 4px;
}

.estimate__totals > div + div {
  border-top: 1px solid var(--line);
}

.estimate__totals output {
  white-space: nowrap;
}

.rental-estimate .rental-estimate__totals {
  list-style: none;
  padding-inline: 0;
  font-weight: 670;
}

#quote .feedback__wrap {
  align-items: start;
}

#quote .quick-form {
  max-width: 42rem;
  padding: clamp(14px, 3vw, 24px);
}

.quick-form .form__consent {
  margin-block: 10px;
}

.rental-estimate__details summary {
  cursor: pointer;
}

.category__item > img,
.gallery .carousel__track img {
  aspect-ratio: 5 / 4;
  object-fit: contain;
}

@media (min-width: 481px) {
  .category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery .carousel__track {
  grid-auto-columns: calc((100% - 16px) / 2);
}

@media (max-width: 700px) {
  .gallery .carousel__track {
    grid-auto-columns: 100%;
  }
}

.form__consent-link.form__policy-link {
  margin-inline-start: 12px;
}

.contact-numbers {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
