@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-violet: #7e35ed;
  --color-sky: #29ddfc;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-yellow: #ecea52;
  --color-green: #57d163;
  --color-gray-light: #eeeeee;
  --color-gray-normal: #d9d9d9;
  --color-gray-dark: #8d8d8d;
  --color-red: #ff0000;
  --page-gradient: linear-gradient(90deg, var(--color-sky) 0%, var(--color-violet) 100%);

  --max-width-desktop: 1280px;
  --gap-2: 2px;
  --gap-4: 4px;
  --gap-8: 8px;
  --gap-12: 12px;
  --gap-24: 24px;
  --gap-40: 40px;
  --gap-80: 80px;
  --gap-160: 160px;
  --padding-8: 8px;
  --padding-12: 12px;
  --padding-16: 16px;
  --padding-18: 18px;
  --padding-24: 24px;
  --padding-40: 40px;
  --padding-80: 80px;
  --padding-120: 120px;
  --padding-160: 160px;

  --font-family-primary: "Inter", sans-serif;
  --font-h1-size: 64px;
  --font-h2-size: 48px;
  --font-h3-size: 32px;
  --font-title-size: 24px;
  --font-label-size: 18px;
  --font-body-size: 16px;
  --font-button-size: 24px;
  --font-link-size: 16px;
  --font-helper-size: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-black);
  background: var(--color-white);
  font-family: var(--font-family-primary);
  font-size: var(--font-body-size);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

ventanas-menu,
ventanas-consultation,
ventanas-footer {
  display: contents;
}

.hero__logo-link {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__logo-link .hero__logo {
  pointer-events: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
}

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

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: var(--font-h1-size);
  font-weight: 700;
  line-height: 1;
}

h2 {
  font-size: var(--font-h2-size);
  font-weight: 700;
  line-height: 1;
}

.content-width {
  position: relative;
  width: var(--max-width-desktop);
  height: 100%;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  height: 65px;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 24px;
  font-size: var(--font-button-size);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.button--primary {
  color: var(--color-white);
  background: var(--color-green);
}

.button--primary:hover,
.button--primary:focus-visible {
  color: var(--color-black);
  background: var(--color-white);
}

.button--secondary {
  color: var(--color-black);
  background: var(--color-yellow);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--color-white);
}

.phone {
  display: inline-flex;
  align-items: center;
}

.hero {
  position: relative;
  height: 1127px;
  overflow: hidden;
}

.hero__art,
.hero__color-gradient,
.hero__light-gradient,
.hero__villa,
.hero__triangle {
  position: absolute;
  left: 0;
  width: 100%;
}

.hero__art {
  inset: 0;
  height: 100%;
}

.hero__color-gradient,
.hero__light-gradient {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.hero__color-gradient {
  z-index: 0;
}

.hero__light-gradient {
  z-index: 1;
}

.hero__villa {
  z-index: 2;
  top: 427px;
  height: 700px;
  object-fit: cover;
}

.hero__triangle {
  z-index: 3;
  bottom: 0;
  left: -1px;
  width: calc(100% + 2px);
  max-width: none;
  height: 142px;
}

.hero__content {
  z-index: 4;
}

.hero__menu {
  position: absolute;
  inset: 0 0 auto;
  height: 184px;
}

.phone--header {
  position: absolute;
  top: 80px;
  left: 0;
  gap: 8px;
  font-size: var(--font-label-size);
  line-height: 1.2;
}

.hero__logo {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 164px;
  height: 160px;
  transform: translateX(-50%);
}

.languages {
  position: absolute;
  top: 80px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.language {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.language:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 3px;
}

.hero__headline {
  position: absolute;
  top: 208px;
  left: 0;
  width: 100%;
  text-align: center;
}

.hero__headline h1 {
  height: 128px;
}

.hero__headline p {
  margin-top: 8px;
  font-size: var(--font-title-size);
  font-weight: 500;
  line-height: 1.2;
}

.about {
  position: relative;
  height: 641px;
  overflow: hidden;
  color: var(--color-white);
}

.about__art {
  position: absolute;
  inset: 0;
}

.about__gradient {
  position: absolute;
  inset: 0 0 auto;
  height: 499px;
  background: var(--page-gradient);
}

.about__triangle {
  position: absolute;
  top: 499px;
  left: 0;
  width: 100%;
  height: 142px;
}

.about__content {
  z-index: 1;
}

.process {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 130px;
  grid-template-columns: repeat(4, 320px);
}

.process__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: var(--font-label-size);
  line-height: 1.2;
  text-align: center;
}

.process__item img {
  width: 100px;
  height: 100px;
}

.about__info {
  position: absolute;
  top: 210px;
  left: 0;
  display: grid;
  width: 100%;
  height: 144px;
  grid-template-columns: 752px 488px;
  gap: 40px;
}

.about__info h2 {
  height: 144px;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--font-label-size);
  line-height: 1.2;
}

.about__copy p:first-child {
  height: 88px;
}

.about__copy p:last-child {
  height: 44px;
}

.about__action {
  position: absolute;
  top: 434px;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: center;
}

.about__action .button {
  width: 389px;
}

.catalog {
  position: relative;
  height: 1692px;
  background: var(--color-white);
}

.catalog__content h2 {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  text-align: center;
}

.catalog__grid {
  position: absolute;
  top: 208px;
  left: 0;
  display: grid;
  width: 1280px;
  grid-auto-rows: 341px;
  grid-template-columns: repeat(4, 320px);
}

.catalog-card {
  display: flex;
  height: 341px;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  font-size: var(--font-title-size);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.catalog-card img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.catalog-card span {
  margin-top: 12px;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  position: relative;
  z-index: 1;
  color: var(--color-violet);
  border-color: var(--color-white);
  box-shadow: 0 8px 32px rgb(126 53 237 / 14%);
  outline: 0;
}

.gallery {
  position: relative;
  height: 866px;
  overflow: hidden;
  background: var(--color-gray-light);
}

.gallery__heading {
  height: 286px;
}

.gallery__heading h2 {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  text-align: center;
}

.gallery__filters {
  position: absolute;
  top: 168px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.filter-tag {
  height: 38px;
  padding: 8px 18px;
  border: 1px solid var(--color-gray-normal);
  border-radius: 24px;
  background: var(--color-gray-light);
  font-size: var(--font-label-size);
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.filter-tag:hover,
.filter-tag:focus-visible {
  border-color: var(--color-white);
  background: var(--color-white);
  outline: 0;
}

.filter-tag.is-active {
  color: var(--color-white);
  border-color: var(--color-violet);
  background: var(--color-violet);
}

.gallery__carousel {
  position: absolute;
  top: 286px;
  left: 50%;
  display: grid;
  width: 2160px;
  height: 460px;
  align-items: center;
  grid-template-columns: 600px 800px 600px;
  column-gap: 80px;
  cursor: grab;
  touch-action: pan-y;
  transform: translateX(-50%);
  user-select: none;
  --gallery-drag-x: 0px;
}

.gallery__carousel:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 8px;
}

.gallery__carousel img {
  max-width: none;
  transform: translate3d(var(--gallery-drag-x), 0, 0) scale(var(--gallery-scale, 1));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
  -webkit-user-drag: none;
}

.gallery__carousel.is-dragging,
.gallery__carousel.is-dragging img {
  cursor: grabbing;
}

.gallery__carousel.is-dragging img {
  transition: none;
}

.gallery__carousel.is-resetting img {
  transition: none;
}

.gallery__carousel.is-switching img {
  opacity: 0.18;
}

.gallery__side {
  width: 600px;
  height: 345px;
  cursor: grab;
}

.gallery__side:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 4px;
}

.gallery__main {
  width: 800px;
  height: 460px;
  cursor: grab;
}

.coverage {
  position: relative;
  height: 806px;
  background: var(--color-white);
}

.coverage__body {
  top: 160px;
  display: grid;
  height: 486px;
  align-items: center;
  grid-template-columns: 598px 602px;
  gap: 80px;
}

.coverage__body h2 {
  color: transparent;
  background: var(--page-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.coverage__body img {
  width: 602px;
  height: 486px;
}

.consultation {
  position: relative;
  height: 1122px;
  color: var(--color-white);
  background: var(--page-gradient);
}

.consultation__content {
  position: relative;
  width: 800px;
  height: 100%;
  margin: 0 auto;
}

.consultation__headline {
  position: absolute;
  top: 120px;
  left: 0;
  width: 800px;
  height: 116px;
  text-align: center;
}

.consultation__headline h2 {
  height: 48px;
}

.consultation__headline p {
  margin-top: 24px;
  font-size: var(--font-label-size);
  line-height: 1.2;
}

.consultation__form {
  position: absolute;
  top: 316px;
  left: 0;
  display: grid;
  width: 800px;
  grid-template-rows: 46px 46px 46px 160px 38px;
  row-gap: 24px;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.consultation__form input[type="text"],
.consultation__form input[type="email"],
.consultation__form input[type="tel"],
.consultation__form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  outline: 0;
  color: var(--color-black);
  background: var(--color-white);
  caret-color: var(--color-black);
  font-size: var(--font-label-size);
  line-height: 1.2;
}

.consultation__form input[type="text"],
.consultation__form input[type="email"],
.consultation__form input[type="tel"] {
  height: 46px;
  padding: 12px 16px;
}

.consultation__form textarea {
  height: 160px;
  padding: 12px 16px;
  resize: none;
}

.consultation__form input::placeholder,
.consultation__form textarea::placeholder {
  color: var(--color-gray-dark);
  opacity: 1;
}

.consultation__form input:hover::placeholder,
.consultation__form textarea:hover::placeholder,
.consultation__form input:focus::placeholder,
.consultation__form textarea:focus::placeholder {
  color: var(--color-black);
}

.consultation__form input:focus,
.consultation__form textarea:focus {
  box-shadow: 0 0 0 2px var(--color-violet);
}

.form-field {
  position: relative;
  display: flex;
  width: 100%;
  height: 46px;
  flex-direction: column;
  gap: var(--gap-4);
}

.form-field > input {
  height: 100%;
}

.form-error {
  display: none;
  width: 100%;
  padding: 0 var(--padding-16);
  color: var(--color-red);
  font-size: var(--font-helper-size);
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.form-field.has-error .form-error {
  display: block;
}

.form-field.has-error > input {
  border: 1px solid var(--color-red);
  box-shadow: none;
}

.phone-control {
  display: flex;
  width: 100%;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--color-black);
  background: var(--color-white);
}

.phone-control:focus-within {
  box-shadow: 0 0 0 2px var(--color-violet);
}

.phone-control select {
  width: 150px;
  flex: 0 0 150px;
  padding: 0 48px 0 16px;
  border: 0;
  border-right: 1px solid var(--color-gray-normal);
  outline: 0;
  color: var(--color-black);
  appearance: none;
  background-color: var(--color-white);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-black) 50%),
    linear-gradient(135deg, var(--color-black) 50%, transparent 50%);
  background-position:
    calc(100% - 28px) calc(50% - 1px),
    calc(100% - 24px) calc(50% - 1px);
  background-repeat: no-repeat;
  background-size: 4px 4px;
  font: inherit;
  cursor: pointer;
}

.phone-control input[type="tel"] {
  width: auto;
  min-width: 0;
  height: 46px;
  flex: 1 1 auto;
  border-radius: 0;
  background: transparent;
}

.phone-control input[type="tel"]:focus {
  box-shadow: none;
}

.consent {
  position: relative;
  display: grid;
  width: 800px;
  height: 38px;
  align-items: start;
  grid-template-columns: 24px 764px;
  gap: 12px;
  font-size: var(--font-body-size);
  line-height: 1.2;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  border: 1px solid var(--color-white);
  border-radius: 8px;
}

.consent__box img {
  width: 24px;
  height: 24px;
  opacity: 0;
}

.consent a {
  text-decoration: underline;
}

.consent:hover .consent__box,
.consent input:focus-visible + .consent__box {
  background: var(--color-white);
  outline: 0;
}

.consent input:checked + .consent__box {
  border-color: var(--color-violet);
  background: var(--color-violet);
}

.consent input:checked + .consent__box img {
  opacity: 1;
}

.consultation__note {
  position: absolute;
  top: 828px;
  left: 0;
  width: 800px;
  font-size: var(--font-title-size);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.consultation__note.is-error {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.consultation__submit {
  position: absolute;
  top: 937px;
  left: 181px;
  width: 438px;
}

.consultation__submit:disabled {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.consultation__submit:disabled:hover,
.consultation__submit:disabled:focus-visible {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.footer {
  position: relative;
  height: 960px;
  color: var(--color-white);
  background: var(--color-black);
}

.footer__logo-link {
  position: absolute;
  top: 160px;
  left: 538px;
  width: 204px;
  height: 200px;
}

.footer__logo {
  width: 204px;
  height: 200px;
}

.footer__contacts {
  position: absolute;
  top: 520px;
  left: 0;
  width: 100%;
  height: 101px;
}

.phone--footer {
  position: absolute;
  top: 0;
  left: 50%;
  gap: 12px;
  transform: translateX(-50%);
  font-size: var(--font-title-size);
  font-weight: 500;
  line-height: 1.2;
}

.phone--footer img {
  width: 32px;
  height: 32px;
}

.footer address {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  font-size: var(--font-title-size);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.footer__privacy {
  position: absolute;
  top: 781px;
  left: 50%;
  font-size: var(--font-link-size);
  line-height: 1.2;
  text-decoration: underline;
  transform: translateX(-50%);
  white-space: nowrap;
}

.footer__privacy:hover,
.footer__privacy:focus-visible {
  color: var(--color-sky);
  outline: 0;
}

@media (min-width: 1728px) {
  .hero {
    height: calc(426px + 40.5671296296vw);
  }

  .hero__villa {
    top: 426px;
    height: auto;
    object-fit: contain;
  }

  .hero__triangle {
    height: auto;
  }
}

@media (max-width: 1359px) {
  .content-width {
    width: calc(100% - 80px);
  }

  .process {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__info {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .catalog__grid {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__logo-link {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1023px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 36px;
  }

  .content-width {
    width: calc(100% - 40px);
  }

  .hero {
    height: 820px;
  }

  .hero__villa {
    top: 360px;
    height: 460px;
  }

  .phone--header {
    top: 32px;
  }

  .languages {
    top: 32px;
  }

  .hero__logo {
    top: 78px;
    width: 123px;
    height: 120px;
  }

  .hero__headline {
    top: 225px;
  }

  .hero__headline h1 {
    height: auto;
  }

  .hero__headline p {
    font-size: 20px;
  }

  .about {
    height: auto;
    min-height: 940px;
    padding-bottom: 120px;
    background: var(--page-gradient);
  }

  .about__art {
    display: none;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-top: 40px;
  }

  .process,
  .about__info,
  .about__action {
    position: static;
  }

  .process {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--gap-24);
  }

  .about__info {
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 40px;
  }

  .about__info h2,
  .about__copy p:first-child,
  .about__copy p:last-child {
    height: auto;
  }

  .catalog {
    height: auto;
    padding: 80px 0;
  }

  .catalog__content h2,
  .catalog__grid {
    position: static;
  }

  .catalog__grid {
    width: 100%;
    margin-top: 64px;
    grid-auto-rows: minmax(300px, auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .catalog-card {
    width: 100%;
  }

  .gallery {
    height: auto;
    padding: 80px 0;
  }

  .gallery__heading {
    height: auto;
  }

  .gallery__heading h2,
  .gallery__filters,
  .gallery__carousel {
    position: static;
    transform: none;
  }

  .gallery__filters {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    white-space: normal;
  }

  .gallery__carousel {
    display: grid;
    width: max-content;
    height: auto;
    align-items: center;
    margin: 64px 0 0 50%;
    grid-template-columns:
      min(600px, calc(75vw - 30px))
      min(800px, calc(100vw - 40px))
      min(600px, calc(75vw - 30px));
    column-gap: clamp(24px, 5vw, 80px);
    overflow: visible;
    transform: translateX(-50%);
  }

  .gallery__carousel img {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
  }

  .coverage {
    height: auto;
    padding: 100px 0;
  }

  .coverage__body {
    top: auto;
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 64px;
  }

  .coverage__body h2 {
    width: 100%;
  }

  .coverage__body img {
    width: min(602px, 100%);
    height: auto;
  }

  .consultation__content,
  .consultation__headline,
  .consultation__form,
  .consent,
  .consultation__note {
    width: calc(100vw - 40px);
  }

  .consent {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .consultation__submit {
    left: 50%;
    width: min(438px, calc(100vw - 40px));
    transform: translateX(-50%);
  }
}

@media (max-width: 599px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  .phone--header span {
    display: none;
  }

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

  .about__action .button,
  .button {
    width: 100%;
    padding-inline: 18px;
    font-size: 20px;
  }

  .consultation {
    height: 1180px;
  }

  .consultation__headline p br,
  .consent br {
    display: none;
  }

  .consultation__form {
    top: 340px;
  }

  .consultation__note {
    top: 860px;
  }

  .consultation__submit {
    top: 980px;
  }

  .footer address {
    padding: 0 20px;
    font-size: 20px;
  }
}

/* Responsive 01/hero tokens from Figma node 536:1537. */
.hero {
  --hero-logo-height: 100px;
  --hero-h1-size: 30px;
  --hero-title-size: 18px;
  --hero-label-size: 16px;
  --hero-headline-padding: 12px;
  --hero-content-inset: 12px;
  --hero-villa-height-adjust: 0px;
  --hero-photo-top: 260px;
  --hero-height: 520px;
  --hero-menu-height: calc(var(--hero-logo-height) + 24px);

  height: var(--hero-height);
}

.content-width.hero__content {
  width: min(1280px, 100%);
  height: var(--hero-photo-top);
}

.hero__menu,
.hero__headline {
  right: auto;
  left: var(--hero-content-inset);
  width: calc(100% - var(--hero-content-inset) - var(--hero-content-inset));
}

.hero__menu {
  height: var(--hero-menu-height);
}

.phone--header,
.languages {
  top: calc(50% - 12px);
}

.phone--header {
  font-size: var(--hero-label-size);
}

.phone--header span {
  display: inline;
}

.hero__logo {
  top: 12px;
  width: auto;
  height: var(--hero-logo-height);
}

.hero__headline {
  top: var(--hero-menu-height);
  height: auto;
  padding-block: var(--hero-headline-padding);
}

.hero__headline h1 {
  height: auto;
  font-size: var(--hero-h1-size);
}

.hero__headline p {
  margin-top: 8px;
  font-size: var(--hero-title-size);
}

.hero__villa {
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: none;
}

.hero__triangle {
  bottom: 0;
  height: auto;
}

@media (max-width: 640px) {
  .hero__villa {
    left: 50%;
    width: auto;
    height: calc(var(--hero-photo-top) + var(--hero-villa-height-adjust));
    transform: translateX(-50%);
  }
}

@media (max-width: 390px) {
  .phone--header span {
    display: none;
  }

  .hero__logo {
    width: calc(var(--hero-logo-height) + 3px);
  }
}

@media (max-width: 360px) {
  .hero {
    --hero-villa-height-adjust: -0.25px;
  }

  .hero__headline p {
    margin-top: 9px;
  }
}

@media (min-width: 361px) and (max-width: 390px) {
  .hero {
    --hero-h1-size: calc(6.6666666667vw + 6px);
    --hero-title-size: calc(3.3333333333vw + 6px);
    --hero-headline-padding: calc(10vw - 24px);
    --hero-photo-top: calc(33.3333333333vw + 140px);
    --hero-height: calc(66.6666666667vw + 280px);
    --hero-villa-height-adjust: calc(1.4583333333vw - 5.5px);
  }
}

@media (min-width: 391px) and (max-width: 640px) {
  .hero {
    --hero-h1-size: calc(3.2vw + 19.52px);
    --hero-title-size: calc(0.4vw + 17.44px);
    --hero-headline-padding: calc(0.8vw + 10.88px);
    --hero-photo-top: calc(8.8vw + 235.68px);
    --hero-height: calc(17.6vw + 471.36px);
    --hero-label-size: 18px;
    --hero-villa-height-adjust: calc(0.28564px - 0.0251vw);
  }

  .hero__headline h1 {
    transform: translateY(calc(0.4vw - 1.56px));
  }

  .hero__logo {
    width: calc(var(--hero-logo-height) + 4.570281px - 0.401606vw);
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .hero {
    --hero-logo-height: 15.625vw;
    --hero-h1-size: 6.25vw;
    --hero-title-size: calc(0.78125vw + 15px);
    --hero-headline-padding: calc(1.5625vw + 6px);
    --hero-photo-top: calc(40.625vw + 32px);
    --hero-height: calc(81.1921296296vw + 32px);
    --hero-label-size: 18px;
  }

  .hero__headline h1 {
    transform: translateY(calc(6px - 0.78125vw));
  }

  .hero__logo {
    width: calc(var(--hero-logo-height) + 0.78125vw - 3px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    --hero-logo-height: calc(7.8125vw + 60px);
    --hero-h1-size: calc(3.125vw + 24px);
    --hero-title-size: calc(0.390625vw + 18px);
    --hero-headline-padding: calc(0.78125vw + 12px);
    --hero-photo-top: calc(16.40625vw + 218px);
    --hero-height: calc(56.640625vw + 221px);
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .hero {
    --hero-logo-height: calc(7.8125vw + 60px);
    --hero-h1-size: calc(3.125vw + 24px);
    --hero-title-size: calc(0.78125vw + 14px);
    --hero-label-size: calc(0.78125vw + 8px);
    --hero-headline-padding: calc(1.5625vw + 4px);
    --hero-photo-top: calc(15.625vw + 226px);
    --hero-height: calc(56.25vw + 225px);
  }

  .hero__menu,
  .hero__headline {
    width: calc(100% + 9.375vw - 120px);
  }

  .hero__headline p {
    margin-top: 9px;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .hero {
    --hero-logo-height: 160px;
    --hero-h1-size: 64px;
    --hero-title-size: 24px;
    --hero-label-size: 18px;
    --hero-headline-padding: 24px;
    --hero-photo-top: 426px;
    --hero-height: calc(41.25vw + 417px);
    --hero-content-inset: calc(108px - 7.5vw);
  }

  .hero__menu,
  .hero__headline {
    width: 100%;
  }

  .hero__headline p {
    margin-top: 9px;
  }

  .hero__villa {
    left: calc(8.216px - 0.641875vw);
    width: calc(100% + 1.28375vw - 16.432px);
  }
}

@media (min-width: 1441px) {
  .hero {
    --hero-logo-height: 160px;
    --hero-h1-size: 64px;
    --hero-title-size: 24px;
    --hero-label-size: 18px;
    --hero-headline-padding: 24px;
    --hero-content-inset: 0px;
    --hero-photo-top: 426px;
    --hero-height: calc(40.2777777778vw + 431px);
  }


  .hero__headline p {
    margin-top: 9px;
  }
}

@media (min-width: 1729px) {
  .hero {
    --hero-height: calc(40.5671296296vw + 426px);
  }
}

/* The compact page follows the 360 px mobile frame while retaining fluid
   horizontal insets up to the existing tablet breakpoint. */
@media (max-width: 599px) {
  h2 {
    font-size: var(--font-title-size);
  }

  .about {
    height: 690px;
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .about__art {
    display: block;
  }

  .about__gradient {
    height: 660px;
  }

  .about__triangle {
    top: 660px;
    height: 30px;
  }

  .about__content {
    display: block;
    width: calc(100% - 24px);
    padding: 0;
  }

  .process {
    position: absolute;
    top: 40px;
    left: 0;
    display: grid;
    width: 100%;
    height: 206px;
    grid-auto-rows: 91px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--gap-24);
  }

  .process__item {
    gap: 8px;
    font-size: var(--font-body-size);
  }

  .process__item img {
    width: 64px;
    height: 64px;
  }

  .about__info {
    position: absolute;
    top: 264px;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
  }

  .about__info h2 {
    height: 72px;
    font-size: var(--font-title-size);
    line-height: 1;
  }

  .about__copy {
    gap: 12px;
    margin-top: 24px;
    font-size: var(--font-body-size);
    line-height: 1.2;
  }

  .about__copy p:first-child,
  .about__copy p:last-child {
    height: auto;
  }

  .about__action {
    position: absolute;
    top: 562px;
    left: 0;
    display: block;
    width: 100%;
  }

  .about__action .button,
  .consultation__submit {
    height: 59px;
    padding: 18px;
    font-size: var(--font-label-size);
  }

  .about__action .button {
    width: 100%;
  }

  .catalog {
    height: 1719px;
    padding: 0;
  }

  .catalog__content {
    width: 100%;
  }

  .catalog__content h2 {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    font-size: var(--font-title-size);
  }

  .catalog__grid {
    position: absolute;
    top: 104px;
    left: 0;
    width: 100%;
    margin: 0;
    grid-auto-rows: 219px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .catalog-card {
    width: 100%;
    height: 219px;
    padding: 40px 0;
    font-size: var(--font-label-size);
  }

  .catalog-card img {
    width: 104px;
    height: 104px;
  }

  .catalog-card span {
    margin-top: 12px;
  }

  .gallery {
    height: 431px;
    padding: 0;
  }

  .gallery__heading {
    width: 100%;
    height: 0;
  }

  .gallery__heading h2 {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    font-size: var(--font-title-size);
    line-height: 1;
  }

  .gallery__filters {
    position: absolute;
    top: 88px;
    left: 12px;
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    transform: none;
    white-space: nowrap;
  }

  .filter-tag {
    height: 35px;
    padding: 7px 17px;
    font-size: var(--font-body-size);
  }

  .gallery__carousel {
    position: absolute;
    top: 163px;
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    height: auto;
    margin: 0;
    overflow: visible;
    transform: none;
  }

  .gallery__side {
    display: none;
  }

  .gallery__main {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  .coverage {
    height: 591px;
    padding: 0;
  }

  .coverage__body {
    top: 80px;
    display: flex;
    width: calc(100% - 24px);
    height: auto;
    flex-direction: column;
    gap: 40px;
  }

  .coverage__body h2 {
    width: 100%;
    font-size: var(--font-title-size);
    line-height: 1;
    text-align: center;
  }

  .coverage__body h2 br {
    display: none;
  }

  .coverage__body img {
    width: 100%;
    height: auto;
  }

  .consultation {
    height: 883px;
  }

  .consultation__content {
    width: 100%;
  }

  .consultation__headline {
    top: 80px;
    left: 12px;
    width: calc(100% - 24px);
    height: auto;
  }

  .consultation__headline h2 {
    height: 24px;
    font-size: var(--font-title-size);
  }

  .consultation__headline p {
    margin-top: 12px;
    font-size: var(--font-body-size);
    line-height: 1.2;
  }

  .consultation__headline p br {
    display: none;
  }

  .consultation__form {
    top: 232px;
    left: 12px;
    width: calc(100% - 24px);
    grid-template-rows: 44px auto 44px 162px 58px;
    row-gap: 11px;
  }

  .consultation__form input[type="text"],
  .consultation__form input[type="email"],
  .consultation__form input[type="tel"],
  .consultation__form textarea {
    font-size: var(--font-body-size);
  }

  .consultation__form input[type="text"],
  .consultation__form input[type="email"],
  .consultation__form input[type="tel"],
  .phone-control {
    height: 44px;
  }

  .form-field {
    height: auto;
    min-height: 44px;
  }

  .form-field > input {
    height: 44px;
    flex: 0 0 44px;
  }

  .form-error {
    white-space: normal;
  }

  .consultation__form textarea {
    height: 160px;
  }

  .phone-control input[type="tel"] {
    height: 44px;
  }

  .consent {
    width: 100%;
    height: 58px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    margin-top: 4px;
    font-size: 14px;
  }

  .consent__box {
    margin-top: 11px;
  }

  .consent br {
    display: inline;
  }

  .consultation__note {
    top: 664px;
    left: 12px;
    width: calc(100% - 24px);
    font-size: var(--font-label-size);
  }

  .consultation__submit {
    top: 745px;
    left: 12px;
    width: calc(100% - 24px);
    transform: none;
  }

  .footer {
    height: 653px;
  }

  .footer__content {
    width: 100%;
  }

  .footer__logo-link {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__contacts {
    top: 360px;
  }

  .phone--footer {
    font-size: var(--font-label-size);
    white-space: nowrap;
  }

  .footer address {
    top: 72px;
    padding: 0 24px;
    font-size: var(--font-label-size);
  }

  .footer__privacy {
    top: 557px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) and (max-width: 1359px) {
  .catalog__grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-card {
    width: 100%;
  }

  .coverage__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .coverage__body img {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
