:root {
  --color-dark: #062f36;
  --color-deep: #03242a;
  --color-dark-secondary: #0a424a;
  --color-accent: #006676;
  --color-accent-strong: #007b8c;
  --color-background: #f8f5f0;
  --color-paper: #fffdf9;
  --color-card: #ffffff;
  --color-text: #182225;
  --color-muted: #6f7779;
  --color-border: #d9dfdf;
  --color-line: rgba(6, 47, 54, 0.14);
  --shadow-card: 0 18px 46px rgba(19, 31, 34, 0.14);
  --shadow-soft: 0 14px 34px rgba(6, 47, 54, 0.12);
  --radius: 8px;
  --radius-large: 12px;
  --container: min(1180px, calc(100vw - 40px));
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-background);
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(248, 245, 240, 0.95), rgba(255, 253, 249, 0.98) 42%, rgba(248, 245, 240, 1));
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(0, 103, 118, 0.45);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(20px, 4vw, 58px);
  color: #fff;
  transition: background 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 15px;
  background: rgba(3, 36, 42, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(2, 20, 24, 0.18);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: max-content;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.brand__role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav .nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(0, 103, 118, 0.46);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  margin: 6px 0;
  background: #fff;
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle::before {
  content: "";
  display: none;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 100px 24px 40px;
  color: #fff;
  background: rgba(3, 36, 42, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
}

.mobile-menu a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(470px, 39vw, 560px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--color-dark);
}

.hero__video,
.hero__fallback,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: 1;
  object-fit: cover;
  opacity: 1;
}

.hero__fallback {
  z-index: 0;
  background-image: url("../assets/images/hero-lutsk.png");
  background-size: cover;
  background-position: center 47%;
}

.hero__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(1, 26, 31, 0.72), rgba(3, 36, 42, 0.44) 50%, rgba(3, 36, 42, 0.68)),
    linear-gradient(180deg, rgba(2, 20, 24, 0.54), rgba(2, 20, 24, 0.16) 45%, rgba(2, 20, 24, 0.74));
}

.hero__content {
  position: relative;
  z-index: 3;
  width: var(--container);
  margin: 0 auto;
  padding: 104px 0 44px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(238, 246, 247, 0.78);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(46px, 4.4vw, 60px);
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #078195);
  border-color: rgba(255, 255, 255, 0.18);
}

.button--ghost {
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.66);
}

.button--light {
  color: var(--color-deep);
  background: linear-gradient(135deg, #f5ebdc, #fff8ee);
}

.section {
  padding: clamp(54px, 8vw, 104px) 0;
}

.section--first {
  padding-top: clamp(44px, 6vw, 70px);
}

.section--compact {
  padding-block: clamp(40px, 6vw, 72px);
}

.section--form {
  padding-bottom: clamp(42px, 7vw, 90px);
}

.section-heading {
  width: var(--container);
  margin: 0 auto clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 42px);
}

.section-heading span {
  height: 1px;
  background: var(--color-line);
}

.section-heading h2,
.request h2,
.contacts h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(36px, 4.3vw, 54px);
  text-align: center;
}

.carousel {
  position: relative;
  width: min(1320px, 100vw);
  margin: 0 auto;
  padding: 0 clamp(10px, 4vw, 72px) 38px;
}

.carousel__viewport {
  overflow: hidden;
  padding: 24px 0 36px;
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  gap: 22px;
  align-items: stretch;
  will-change: transform;
  transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.property-card {
  flex: 0 0 clamp(288px, 31vw, 410px);
  min-height: 364px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: var(--color-dark);
  box-shadow: var(--shadow-soft);
  transform: scale(0.92);
  opacity: 1;
  transition: transform 420ms ease, opacity 420ms ease, box-shadow 420ms ease;
}

.property-card.is-active {
  transform: scale(1.04);
  opacity: 1;
  box-shadow: var(--shadow-card);
}

.property-card__media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.property-card:hover img {
  transform: scale(1.045);
}

.property-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 36, 42, 0.96));
}

.property-card__body {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
  background: linear-gradient(180deg, rgba(3, 36, 42, 0.94), rgba(3, 36, 42, 1));
}

.property-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.property-card__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
}

.property-card__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.property-card__feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.property-card__feature svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.property-card__feature span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-card__button {
  width: 100%;
  min-height: 42px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.03);
}

.carousel__arrow {
  position: absolute;
  z-index: 5;
  top: 42%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--color-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(6, 47, 54, 0.12);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(8, 38, 43, 0.15);
}

.carousel__arrow--prev {
  left: clamp(10px, 2vw, 24px);
}

.carousel__arrow--prev svg {
  transform: rotate(180deg);
}

.carousel__arrow--next {
  right: clamp(10px, 2vw, 24px);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(6, 47, 54, 0.18);
}

.carousel__dot.is-active {
  background: var(--color-accent);
}

.services,
.contacts,
.footer__inner {
  width: var(--container);
  margin: 0 auto;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 36px rgba(6, 47, 54, 0.06);
}

.service-card {
  min-height: 164px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px 28px;
  border-right: 1px solid var(--color-line);
}

.service-card:last-child {
  border-right: 0;
}

.service-card svg {
  width: 42px;
  height: 42px;
  color: var(--color-accent);
}

.service-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.steps {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 5vw, 72px);
  text-align: center;
}

.step {
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: calc(-1 * clamp(20px, 5vw, 72px) / 2);
  width: 34px;
  height: 1px;
  background: var(--color-line);
}

.step__icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #0b7281, var(--color-dark));
  box-shadow: var(--shadow-soft);
}

.step__icon svg {
  width: 36px;
  height: 36px;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 34px;
}

.step p {
  margin: 0;
  color: #4b5558;
  font-size: 16px;
  line-height: 1.55;
}

.request {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 5vw, 54px);
  color: #fff;
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(0, 103, 118, 0.32), transparent 48%),
    linear-gradient(135deg, var(--color-dark), var(--color-deep));
  box-shadow: 0 22px 52px rgba(6, 47, 54, 0.2);
}

.request__copy {
  align-self: center;
}

.request__copy .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.request h2 {
  max-width: 460px;
  color: #fff;
  text-align: left;
}

.request p {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  resize: vertical;
}

.field textarea {
  min-height: 106px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #f3b4a8;
}

.field__error {
  min-height: 18px;
  color: #ffd2c9;
  font-size: 12px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #e3f6f3;
  font-weight: 700;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  align-items: center;
  gap: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.contacts h2 {
  text-align: left;
}

.contacts__role {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 13px;
}

.contact-list a,
.contact-list span,
.footer__inner a,
.footer__inner > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #354145;
}

.contact-list svg,
.footer__inner svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--color-dark);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.socials svg {
  width: 21px;
  height: 21px;
}

.footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--color-dark);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, auto) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
}

.footer__brand {
  display: grid;
  gap: 3px;
}

.footer__brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.footer__brand span {
  color: rgba(255, 255, 255, 0.65);
}

.footer__inner a,
.footer__inner > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.footer__inner svg {
  color: rgba(255, 255, 255, 0.62);
}

.socials--footer a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  text-align: center;
}

.developer-row {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.68);
  background: #021b20;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.developer-row a {
  color: #91d7df;
  font-weight: 800;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 103, 118, 0.28), transparent 46%),
    var(--color-dark);
}

.not-found__card {
  width: min(620px, 100%);
  padding: clamp(32px, 6vw, 58px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.not-found__card h1 {
  max-width: none;
  font-size: clamp(44px, 7vw, 76px);
}

.not-found__card p:not(.eyebrow) {
  margin: 20px auto 28px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 24, 0.72);
  backdrop-filter: blur(10px);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border-radius: var(--radius-large);
  background: var(--color-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.modal__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(2, 20, 24, 0.6);
  font-size: 28px;
  line-height: 1;
}

.modal__content {
  padding: 28px;
}

.modal__price {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.modal__content h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: clamp(32px, 4vw, 48px);
  text-align: left;
}

.modal__content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.modal__content li {
  padding: 9px 12px;
  color: #405054;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #f7faf9;
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 48px;
    background: rgba(3, 36, 42, 0.34);
    border-color: rgba(255, 255, 255, 0.34);
  }

  #mobile-menu-button {
    position: fixed !important;
    top: 18px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 100 !important;
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #mobile-menu-button::before {
    display: block;
    width: 27px;
    height: 21px;
    margin: auto;
    background:
      linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 9px / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 18px / 100% 2px no-repeat;
    border-radius: 2px;
  }

  #mobile-menu-button span {
    display: none;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 20, 24, 0.66), rgba(2, 20, 24, 0.32) 34%, rgba(2, 20, 24, 0.9)),
      linear-gradient(90deg, rgba(3, 36, 42, 0.82), rgba(3, 36, 42, 0.24));
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .service-card:nth-child(odd) {
    border-right: 1px solid var(--color-line);
  }

  .service-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .contacts,
  .footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(540px, calc(100vw - 32px));
  }

  .site-header {
    position: fixed;
    padding: 18px 16px;
    padding-right: 80px;
    gap: 12px;
  }

  .site-header .menu-toggle {
    position: absolute;
    top: 18px;
    right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: 24px;
  }

  .brand__role {
    font-size: 13px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero__content {
    width: auto;
    margin-inline: 16px;
    padding: 118px 0 46px;
  }

  h1 {
    width: min(100%, 320px);
    max-width: 320px;
    font-size: clamp(31px, 8.6vw, 38px);
    line-height: 1.02;
    text-wrap: wrap;
    overflow-wrap: break-word;
  }

  .hero__lead {
    width: min(100%, 320px);
    max-width: 320px;
    margin-top: 22px;
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    gap: 12px;
    width: min(100%, 320px);
    max-width: 320px;
  }

  #mobile-menu-button {
    left: calc(min(100vw, 390px) - 64px) !important;
    right: auto !important;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding-inline: 18px;
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    grid-template-columns: 42px 1fr 42px;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1;
  }

  .carousel {
    padding: 0 0 32px 16px;
  }

  .carousel__viewport {
    padding: 18px 0 28px;
  }

  .carousel__track {
    gap: 14px;
  }

  .property-card {
    flex-basis: 86vw;
    min-height: 374px;
    transform: scale(0.97);
  }

  .property-card.is-active {
    transform: scale(1);
  }

  .property-card__body {
    padding: 0 16px 18px;
  }

  .property-card__price {
    font-size: 31px;
  }

  .property-card__features {
    gap: 6px;
    font-size: 12px;
  }

  .carousel__arrow {
    display: none;
  }

  .services {
    width: calc(100vw - 32px);
  }

  .service-card {
    min-height: 150px;
    padding: 22px 16px;
  }

  .service-card svg {
    width: 36px;
    height: 36px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    align-items: center;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .step__icon {
    grid-row: span 2;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .step__icon svg {
    width: 28px;
    height: 28px;
  }

  .step strong {
    margin: 0;
    font-size: 30px;
  }

  .step p {
    grid-column: 2;
    font-size: 15px;
  }

  .request {
    width: calc(100vw - 32px);
    padding: 26px 18px;
  }

  .request h2,
  .contacts h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .contacts {
    gap: 22px;
  }

  .socials a {
    width: 44px;
    height: 44px;
  }

  .modal {
    padding: 12px;
  }

  .modal__content {
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  :root {
    --container: min(540px, calc(100vw - 24px));
  }

  .brand__name {
    font-size: 21px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .property-card__features {
    grid-template-columns: 1fr;
  }

  .property-card__feature span {
    white-space: normal;
  }
}

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

  .hero__video {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
