:root {
  --paper: #f6f4ef;
  --ink: #171717;
  --muted: #65625d;
  --line: rgba(23, 23, 23, 0.12);
  --panel: rgba(255, 255, 255, 0.78);
  --white: #ffffff;
  --green: #16493f;
  --green-2: #236b5e;
  --red: #b13f38;
  --gold: #d6a849;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --content: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22, 73, 63, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f7f4ec 0%, #edf2ee 48%, #f7f4ec 100%);
  background-size: 46px 46px, auto;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--content);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
}

.brand strong,
.footer strong {
  display: block;
  font-family: "Unbounded", sans-serif;
}

.brand small,
.footer span,
.toolbar span {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #7c2827);
  box-shadow: 0 14px 28px rgba(177, 63, 56, 0.24);
}

.button--light,
.button--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.button--glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.button--full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero__image {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, transparent 68%, var(--paper));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section__head h2,
.object-info h2,
.form-copy h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.08;
}

.hero h1 {
  max-width: 900px;
  font-size: 56px;
}

.hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.hero__actions,
.object-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stats,
.section,
.footer {
  width: var(--content);
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 28px 0 18px;
}

.stats article,
.card,
.object-layout,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 20px;
}

.stats strong {
  display: block;
  font-size: 28px;
}

.stats span,
.card p,
.object-lead,
.details p,
.form-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 58px 0;
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section__head h2,
.form-copy h2 {
  font-size: 36px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  background: var(--green);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  overflow: hidden;
}

.card.is-hidden {
  display: none;
}

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

.card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.chips,
.object-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(35, 107, 94, 0.1);
  font-size: 13px;
  font-weight: 800;
}

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

.object-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  padding: 20px;
}

.gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}

.gallery__main {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  background: #ddd;
}

.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.thumb.is-active {
  border-color: var(--red);
}

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.object-info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.object-info h2 {
  font-size: 32px;
}

.object-lead {
  margin: 0;
}

.details {
  display: grid;
  gap: 12px;
}

.detail {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.detail h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.detail p {
  margin: 0;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--white);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .catalog-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .object-layout,
  .form-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
  }

  .nav,
  .topbar > .button {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

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

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .stats,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions,
  .object-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }
}
