:root {
  --primary: #0f4b3a;
  --primary-dark: #0c5a43;
  --primary-soft: #eef5f1;
  --text: #1e1e1e;
  --text-soft: #5f6662;
  --bg: #f7f5f1;
  --white: #ffffff;
  --border: #e6ece8;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 18px 40px rgba(0, 0, 0, 0.07);
  --focus-ring: 0 0 0 3px rgba(157, 214, 190, 0.55);
  --topbar-height: 44px;
  --navbar-height: 134px;
  --header-offset: calc(var(--topbar-height) + var(--navbar-height));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.topbar-link,
.topbar-phone {
  color: var(--white);
  font-weight: 600;
}

.topbar-link:hover,
.topbar-phone:hover {
  text-decoration: underline;
}

.navbar {
  position: relative;
  z-index: 1999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece8df;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 134px;
}

.logo {
  position: relative;
  z-index: 1003;
  flex-shrink: 0;
}

.logo img {
  height: 132px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #1f2b27;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  position: relative;
  z-index: 1003;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-of-type(3) {
  opacity: 0;
}

.menu-toggle.active span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(15, 27, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  position: relative;
  padding: 80px 0 88px;
  margin-top: var(--header-offset);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #efe8db 0%, #f8f4ec 48%, #f0eadf 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: 78px;
}

.hero-left h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.03;
  margin: 0 0 22px;
  color: var(--primary);
  letter-spacing: -0.03em;
  max-width: 760px;
}

.hero-text {
  font-size: 17px;
  color: #3f4844;
  margin: 0 0 30px;
  max-width: 690px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.eyebrow-light {
  color: #d7efe6;
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 14px 16px;
  margin: 0 0 34px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f9fbfc;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-buttons-shifted {
  padding-left: 64px;
}

.hero-buttons-shifted .btn {
  min-width: 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  transition: 0.2s ease;
}

.btn-green {
  background: #0f6b4f;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 107, 79, 0.22);
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary-green {
  background: #0f6b4f;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 107, 79, 0.22);
}

.btn-secondary-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-image-card {
  width: 100%;
  max-width: 420px;
  height: 610px;
  margin-left: auto;
  margin-right: 22px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.14);
  background: #ddd;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 82px 0;
}

.section-soft {
  background: #f3eee6;
}

.section-dark {
  background: #143f33;
  color: var(--white);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-text {
  margin: 0;
  color: var(--text-soft);
  max-width: 760px;
}

.section-text-light {
  color: rgba(255, 255, 255, 0.88);
}

.trust-section {
  background: #fffdf9;
}

.trust-head {
  text-align: center;
}

.trust-head .section-text {
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.trust-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #ece8df;
}

.trust-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  font-size: 26px;
  margin-bottom: 18px;
}

.trust-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #12392d;
  font-size: 21px;
  line-height: 1.25;
}

.trust-card p {
  margin: 0;
  color: #5d645f;
}

.trust-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  color: #12392d;
}

.objects-card {
  background: var(--white);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid #ebe8e1;
}

.objects-dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.object-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  border: 1px solid #e7ebe8;
  background: #fcfcfb;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}

.object-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.object-item img {
  width: 150px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.object-text strong {
  display: block;
  margin-bottom: 6px;
  color: #12392d;
  font-size: 18px;
}

.object-text p {
  margin: 0;
  color: #5b625e;
  font-size: 14px;
}

.object-reference {
  margin-top: 6px !important;
  font-size: 13px !important;
  color: var(--primary) !important;
  font-weight: 700;
}

.object-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.object-status-verfuegbar {
  background: #e7f3ee;
  color: var(--primary);
}

.object-status-reserviert {
  background: #fff3cd;
  color: #8a6d00;
}

.object-status-verkauft {
  background: #e6e6e6;
  color: #444;
}

.objects-empty {
  color: #666;
  padding: 10px 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  align-items: center;
}

.profile-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  max-width: 390px;
  margin: 0 auto 0 0;
}

.profile-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center top;
}

.profile-content {
  padding: 24px;
}

.profile-content h3 {
  margin-top: 0;
  color: #12392d;
}

.role {
  color: var(--primary);
  font-weight: 700;
}

.info-box {
  background: var(--white);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.dark-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #9dd6be;
  font-weight: 800;
}

.faq-container {
  max-width: 900px;
}

.faq-item {
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: var(--white);
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: #12392d;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 22px 20px;
  margin: 0;
  color: #5d645f;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.contact-info-card,
.form-box {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-medium);
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.contact-card-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.contact-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 24px;
}

.contact-card-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--primary);
}

.contact-card-text span {
  display: block;
  color: #47504c;
  line-height: 1.5;
}

.contact-link {
  color: inherit;
  word-break: break-word;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-grid textarea {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8ddd9;
  border-radius: 14px;
  padding: 15px 16px;
  background: var(--white);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.checkbox-wrap {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #5d645f;
}

.checkbox-wrap input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 4px 0 0 0;
  padding: 0;
  align-self: start;
  justify-self: start;
  box-shadow: none;
  transform: none;
}

.checkbox-wrap span {
  display: block;
  min-width: 0;
  word-break: break-word;
}

.checkbox-wrap a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.object-checkbox-wrap {
  margin-top: 14px;
}

.form-status {
  display: none;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.success {
  background: #e7f3ee;
  color: #0f4b3a;
  border: 1px solid #cfe4da;
}

.form-status.error {
  background: #fff1f1;
  color: #8a1f1f;
  border: 1px solid #f0c7c7;
}

.submit-btn {
  align-self: flex-start;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 26px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.footer h3 {
  margin-top: 0;
}

.footer a,
.footer-link {
  color: var(--white);
}

.footer a:hover,
.footer-link:hover {
  text-decoration: underline;
}

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.scroll-top-btn.show {
  display: inline-flex;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #ececec;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #113f32;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.modal-content {
  padding: 0;
}

.object-modal-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.object-modal-visual {
  background: #e8e8e8;
  min-height: 420px;
}

.object-modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.object-modal-info {
  padding: 28px;
}

.object-modal-info h4 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
  color: #12392d;
}

.object-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.object-modal-meta-item {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px 14px;
}

.object-modal-meta-item strong {
  display: block;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 4px;
}

.object-modal-description {
  margin: 18px 0;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

.object-modal-id {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  word-break: break-word;
}

.object-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.object-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.object-action-btn.primary {
  background: var(--primary);
  color: var(--white);
}

.object-action-btn.primary:hover {
  background: var(--primary-dark);
}

.object-action-btn.primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.object-action-btn.secondary {
  background: #eef4f1;
  color: var(--primary);
  border: 1px solid #d9e6df;
}

.object-action-btn.secondary:hover {
  background: #e4efe9;
}

.object-action-btn.outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.object-action-btn.outline:hover {
  background: #f6fbf8;
}

.object-inquiry-form {
  margin-top: 18px;
  background: #f8fbf9;
  border: 1px solid #e1ebe5;
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.object-inquiry-form h5 {
  margin: 0 0 14px 0;
  font-size: 20px;
  color: var(--primary);
}

.object-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.object-form-group {
  display: flex;
  flex-direction: column;
}

.object-form-group.full {
  grid-column: 1 / -1;
}

.object-form-group label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.object-form-group input,
.object-form-group textarea {
  width: 100%;
  border: 1px solid #cfdad4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}

.object-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.object-form-note {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.object-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 75, 58, 0.92);
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  z-index: 4;
}

.object-modal-prev {
  left: 14px;
}

.object-modal-next {
  right: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

header[id],
section[id] {
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

@media (max-width: 1180px) {
  .hero-tags {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .split-grid,
  .contact-layout,
  .cards-grid,
  .footer-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card {
    margin: 0 auto;
    max-width: 400px;
    height: 560px;
  }

  .hero-buttons-shifted {
    padding-left: 0;
  }

  .profile-card {
    max-width: 390px;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-container {
    min-height: 104px;
  }

  .logo img {
    height: 98px;
    max-width: 250px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    font-size: 13px;
  }

  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 10px 0;
  }

  .topbar-link,
  .topbar-phone {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-offset) + 12px);
    right: 12px;
    left: 12px;
    z-index: 2002;
    background: var(--white);
    border: 1px solid #ece8df;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    flex-wrap: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    max-height: calc(100vh - var(--header-offset) - 24px);
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: #f3f7f5;
    color: var(--primary);
  }

  .hero-grid,
  .about-grid,
  .split-grid,
  .contact-layout,
  .cards-grid,
  .footer-grid,
  .contact-form-grid,
  .object-modal-layout,
  .object-modal-meta,
  .object-form-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-left h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-tags {
    grid-template-columns: 1fr;
  }

  .hero-tags span {
    white-space: normal;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons-shifted {
    padding-left: 0;
  }

  .hero-buttons-shifted .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-image-card {
    max-width: 100%;
    height: 430px;
    margin-right: 0;
  }

  .profile-card {
    max-width: 100%;
  }

  .profile-card img {
    height: 220px;
  }

  .object-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .object-item img {
    width: 100%;
    height: 200px;
  }

  .contact-info-card,
  .form-box {
    padding: 24px 20px;
  }

  .checkbox-wrap {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 13px;
  }

  .checkbox-wrap input[type="checkbox"] {
    width: 13px;
    min-width: 13px;
    height: 13px;
    margin-top: 4px;
  }

  .checkbox-wrap span {
    line-height: 1.6;
  }

  .scroll-top-text {
    display: none;
  }

  .submit-btn {
    width: 100%;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-box {
    max-height: 94vh;
    border-radius: 18px;
  }

  .modal-header {
    padding: 16px;
  }

  .object-modal-info {
    padding: 20px;
  }

  .object-modal-info h4 {
    font-size: 24px;
  }

  .object-modal-visual,
  .object-modal-image {
    min-height: 260px;
  }

  .object-modal-actions {
    flex-direction: column;
  }

  .object-action-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    min-height: 86px;
  }

  .logo img {
    height: 74px;
    max-width: 190px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-image-card {
    height: 360px;
    border-radius: 22px;
  }

  .profile-card img {
    height: 190px;
  }

  .object-item img {
    height: 180px;
  }

  .contact-card-item {
    grid-template-columns: 46px 1fr;
    padding: 14px;
  }

  .contact-card-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .checkbox-wrap {
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 9px;
    font-size: 12.5px;
  }

  .checkbox-wrap input[type="checkbox"] {
    width: 12px;
    min-width: 12px;
    height: 12px;
    margin-top: 4px;
  }

  .checkbox-wrap span {
    line-height: 1.55;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    padding: 11px 13px;
  }

  .object-modal-nav {
    display: none;
  }
}
