:root {
  --green: #073f2a;
  --green-soft: #123f2e;
  --terracotta: #c54f32;
  --terracotta-dark: #ad432b;
  --cream: #f7f1e6;
  --paper: #fffaf2;
  --text: #173127;
  --muted: #6e7b73;
  --line: rgba(7, 63, 42, 0.16);
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(7, 63, 42, 0.16);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(7, 63, 42, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(7, 63, 42, 0.06) 1px, transparent 1px),
    var(--cream);
  background-size: 54px 54px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 230, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 165px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 28px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__phone {
  display: none;
  padding: 10px 16px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.menu-button {
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--green);
  transition: transform 0.25s ease;
}

body.menu-open .menu-button span:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 80px;
  z-index: 30;
  display: grid;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--green);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: 0.25s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.menu-button {
  width: 52px;
  height: 52px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 24px;
  height: 2px;
  display: block;
  background: var(--green);
  transition: transform 0.25s ease;
}

body.menu-open .menu-button span:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 104px;
  z-index: 30;
  display: grid;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--green);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: 0.25s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

/* Common */

.section {
  padding: 84px 0;
}

.eyebrow {
  margin: 0;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  color: var(--white);
  background: var(--terracotta);
}

.button--primary:hover {
  background: var(--green);
}

.button--ghost {
  color: var(--green);
  border-color: var(--green);
  background: transparent;
}

.button--ghost:hover {
  color: var(--white);
  background: var(--green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.services__intro h2,
.objects__top h2,
.contacts__content h2 {
  margin: 14px 0 0;
  color: var(--green);
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 500;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -18vw;
  top: 80px;
  width: 58vw;
  height: 58vw;
  background: var(--terracotta);
  opacity: 0.14;
  transform: rotate(-14deg);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__left h1 {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--green);
  font-size: clamp(52px, 11vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.09em;
  font-weight: 500;
}

.hero__left h1 span {
  display: block;
  color: var(--terracotta);
}

.hero__text {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__right {
  position: relative;
}

.hero-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--green);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-card__image {
  position: absolute;
  inset: 18px 18px 132px 18px;
  background:
    linear-gradient(to top, rgba(7, 63, 42, 0.55), transparent),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1200&q=82")
      center / cover;
}

.hero-card__info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 22px;
  color: var(--white);
  background: var(--green);
}

.hero-card__info span {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card__info strong {
  display: block;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-note {
  max-width: 310px;
  margin: -44px 0 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  color: var(--white);
  background: var(--terracotta);
}

.hero-note span {
  font-size: 28px;
  font-weight: 900;
}

.hero-note p {
  margin: 0;
}

/* Approach */

.approach__grid {
  display: grid;
  gap: 16px;
}

.approach-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--green);
  background: var(--paper);
}

.approach-card:nth-child(2) {
  background: var(--green);
  color: var(--white);
}

.approach-card span {
  margin-bottom: auto;
  color: var(--terracotta);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.approach-card h3 {
  margin: 34px 0 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.approach-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.approach-card:nth-child(2) p {
  color: rgba(255, 255, 255, 0.72);
}

/* Services */

.services {
  color: var(--white);
  background: var(--green);
}

.services__grid {
  display: grid;
  gap: 42px;
}

.services__intro h2 {
  color: var(--white);
}

.services__intro p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
}

.service-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-item {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-item span {
  color: var(--terracotta);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.service-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}
/* Liquidity calculator */

.liquidity {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(197, 79, 50, 0.12), transparent 42%),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.liquidity::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: var(--green);
  opacity: 0.08;
  transform: rotate(-12deg);
}

.liquidity__grid {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: start;
}

.liquidity__content h2 {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--green);
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 500;
}

.liquidity__content p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.liquidity__notice {
  max-width: 560px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--terracotta);
  color: var(--green);
  background: rgba(7, 63, 42, 0.06);
  font-size: 15px;
}

.liquidity__notice strong {
  color: var(--terracotta);
}

.liquidity-calculator {
  display: grid;
  gap: 18px;
}

.liquidity-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--green);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.calculator-field {
  display: grid;
  gap: 8px;
}

.calculator-field label {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(7, 63, 42, 0.28);
  outline: none;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}

.calculator-field select:focus {
  border-color: var(--terracotta);
}

.liquidity-form__button {
  width: 100%;
  margin-top: 6px;
}

.liquidity-result {
  padding: 22px;
  color: var(--white);
  background: var(--green);
}

.liquidity-result__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.liquidity-result__top span {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.liquidity-result__top strong {
  color: var(--white);
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.liquidity-result__bar {
  height: 10px;
  margin-top: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.liquidity-result__bar span {
  width: 0%;
  height: 100%;
  display: block;
  background: var(--terracotta);
  transition: width 0.4s ease;
}

.liquidity-result p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.liquidity-result ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.liquidity-result li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.liquidity-result li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
}

.liquidity-result__link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
  font-weight: 900;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.liquidity-result__link:hover {
  color: var(--green);
  background: var(--white);
  transform: translateY(-3px);
}
/* Objects */

.objects__top {
  display: grid;
  gap: 24px;
  margin-bottom: 34px;
}

.objects__grid {
  display: grid;
  gap: 16px;
}

.object-card {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  border: 1px solid var(--green);
  background-size: cover;
  background-position: center;
}

.object-card--flat {
  background-image:
    linear-gradient(to top, rgba(7, 63, 42, 0.78), transparent),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1000&q=82");
}

.object-card--house {
  background-image:
    linear-gradient(to top, rgba(7, 63, 42, 0.78), transparent),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1000&q=82");
}

.object-card--commerce {
  background-image:
    linear-gradient(to top, rgba(7, 63, 42, 0.78), transparent),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1000&q=82");
}

.object-card span {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.object-card h3 {
  max-width: 340px;
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Contacts */

.contacts__grid {
  display: grid;
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--green);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contacts__content p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.contacts__links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--green);
  font-weight: 900;
}

.form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--green);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.form textarea {
  min-height: 120px;
  padding-top: 16px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.form select {
  color: rgba(255, 255, 255, 0.72);
}

.form select option {
  color: var(--text);
}

.form__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

/* Footer */

.footer {
  padding: 34px 0;
  background: var(--green);
  color: rgba(255, 255, 255, 0.62);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.logo--footer {
  width: 190px;
  padding: 10px;
  background: var(--paper);
}

.footer p {
  margin: 0;
}

/* Animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (min-width: 720px) {
  .approach__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .objects__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-item {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 980px) {
      .liquidity__grid {
    grid-template-columns: 0.85fr 1fr;
  }

  .liquidity-calculator {
    grid-template-columns: 1fr 0.9fr;
  }
  .container {
    width: min(100% - 48px, var(--container));
  }

  .menu-button,
  .mobile-menu {
    display: none;
  }

  .nav,
  .header__phone {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .services__grid {
    grid-template-columns: 0.72fr 1fr;
  }

  .objects__top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .contacts__grid {
    grid-template-columns: 1fr 0.78fr;
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .logo {
    width: 168px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-card {
    min-height: 430px;
  }

  .hero-card__info strong {
    font-size: 20px;
  }

  .section {
    padding: 68px 0;
  }
}