:root {
  --teal: #1e424d;
  --gold: #e49516;
  --white: #ffffff;
  --bg: #f6f8f8;
  --line: #d7e1e3;
  --text: #1e424d;
  --muted: #5e7278;
  --danger: #e49516;
  --container: 1440px;
  --space: 80px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(30, 66, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  display: block;
  width: 161px;
  height: 44px;
}

.logo-box {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

.logo-text {
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a.active {
  color: var(--teal);
  font-weight: 700;
}

.header-phone {
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--teal);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 66, 77, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 24px;
  z-index: 50;
  overflow-y: auto;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav .logo {
  margin-bottom: 24px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-links a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
}

.hero-media {
  position: relative;
  min-height: 600px;
  background: var(--teal);
}

.hero-bg,
.hero-overlay,
.hero-content {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: center/cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(30, 66, 77, 0.9) 0%, rgba(30, 66, 77, 0.68) 42%, rgba(30, 66, 77, 0.8) 100%);
}

.hero-content {
  display: flex;
  align-items: center;
}



.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 20px;
  background: var(--gold);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-title {
  margin: 24px 0 0;
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre-line;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--teal);
}

.btn-dark {
  background: var(--teal);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--teal);
}

.stats-bar {
  background: #eef4f5;
  border-top: 2px solid rgba(228, 149, 22, 0.25);
  border-bottom: 2px solid rgba(228, 149, 22, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 32px 16px;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-value {
  color: var(--gold);
  font-size: 44px;
  font-weight: 700;
}

.stat-label {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-line;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: #eef4f5;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  color: var(--teal);
  font-size: 32px;
  font-weight: 700;
}

.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(30, 66, 77, 0.07);
}

.lot-card.is-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lot-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(228, 149, 22, 0.45);
}

.lot-image {
  position: relative;
  height: 220px;
  background: #dfe7e9 center/cover no-repeat;
}

.lot-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 66, 77, 0.03) 0%, rgba(30, 66, 77, 0.42) 100%);
}

.lot-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.lot-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lot-id {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(228, 149, 22, 0.35);
  background: rgba(228, 149, 22, 0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.lot-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.lot-highlight-item {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(228, 149, 22, 0.08), rgba(228, 149, 22, 0.03));
  border: 1px solid rgba(228, 149, 22, 0.18);
}

.lot-highlight-item strong {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lot-highlight-item span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.lot-title {
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
}

.lot-price {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
}

.timer-row,
.step-row,
.status-row,
.lot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timer-row {
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.timer-row .label,
.step-row,
.status-row,
.lot-meta {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  background: rgba(228, 149, 22, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pill.status-off {
  background: rgba(228, 149, 22, 0.14);
  color: var(--teal);
}

.status-pill.status-live {
  background: rgba(228, 149, 22, 0.18);
  color: var(--teal);
}

.status-pill.status-final {
  background: rgba(30, 66, 77, 0.1);
  color: var(--teal);
}

.lot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.lot-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-outline {
  border: 1px solid var(--teal);
  color: var(--teal);
}

.btn-outline-dark {
  border: 1px solid var(--teal);
  color: var(--white);
  background: var(--teal);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
}

.form-control::placeholder {
  color: var(--muted);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.dev-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(228, 149, 22, 0.08);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.6;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.presentation-card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(30, 66, 77, 0.08);
}

.presentation-card--wide {
  grid-column: span 2;
}

.presentation-media {
  min-height: 360px;
  background: #dfe7e9 center/cover no-repeat;
}

.presentation-card--wide .presentation-media {
  min-height: 420px;
}

.presentation-body {
  padding: 24px;
}

.presentation-body h3 {
  color: var(--teal);
  font-size: 26px;
  font-weight: 700;
}

.accent-line {
  width: 64px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--gold);
}

.presentation-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.presentation-grid-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.step-card {
  padding: 24px;
  background: var(--white);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
}

.step-card h3 {
  margin: 16px 0 0;
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
}

.step-card p {
  margin: 10px 0 0;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  background: var(--teal);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  background: var(--white);
}

.footer-copy,
.footer-text,
.footer-col a,
.footer-col div {
  color: #aabbcc;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.footer-col a,
.footer-col div {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #7a8a99;
  font-size: 12px;
}

.offer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.offer-modal[hidden] {
  display: none;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 66, 77, 0.52);
}

.offer-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(30, 66, 77, 0.22);
}

.lot-modal,
.action-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 61;
}

.lot-modal[hidden],
.action-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 66, 77, 0.62);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(30, 66, 77, 0.22);
  max-height: calc(100vh - 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--teal);
  z-index: 2;
}

.lot-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.lot-modal-image {
  min-height: 520px;
  background: #dfe7e9 center/cover no-repeat;
}

.lot-modal-body,
.action-modal-body {
  padding: 28px;
}

.lot-modal-body h3,
.action-modal-body h3 {
  margin: 0;
  color: var(--teal);
  font-size: 28px;
  font-weight: 700;
}

.lot-modal-body p,
.action-modal-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.lot-modal-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--text);
  font-size: 14px;
}

.action-modal-body form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

[data-amount-group][hidden] {
  display: none;
}

.agency-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}

.agency-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.agency-fields[hidden] {
  display: none;
}

.agency-fields {
  display: grid;
  gap: 12px;
}

.action-modal-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(30, 66, 77, 0.06);
  border-left: 3px solid var(--gold);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.6;
}

.inline-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.offer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--teal);
}

.action-submit {
  background: var(--gold);
  color: var(--teal);
}

@media (max-width: 1200px) {
  :root {
    --space: 40px;
  }

  .lots-grid,
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .presentation-grid,
  .lot-modal-grid {
    grid-template-columns: 1fr;
  }

  .presentation-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-phone {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-title {
    font-size: 38px;
  }

  .stats-grid,
  .lots-grid,
  .how-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .presentation-grid-inline {
    grid-template-columns: 1fr;
  }

  .stat {
    justify-content: flex-start;
    padding: 24px 0;
  }

  .stat:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
  }

  .lot-modal-image {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  :root {
    --space: 20px;
  }

  .hero-media {
    min-height: 480px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-actions,
  .lot-actions,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .action-modal,
  .lot-modal,
  .offer-modal {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-dialog,
  .offer-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    margin: auto 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .action-modal-body,
  .lot-modal-body {
    padding: 20px 16px;
  }

  .offer-modal-dialog table {
    min-width: 720px;
  }

  .offer-modal-dialog > div:last-child {
    padding: 12px 12px 16px !important;
  }

  .hero-actions .btn,
  .lot-actions .btn {
    width: 100%;
  }


  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
