:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --surface: #fbfaf6;
  --ink: #111713;
  --muted: #666b66;
  --line: #cacbc4;
  --accent: #156b4b;
  --accent-dark: #0e543a;
  --danger: #a33a31;
  --success: #156b4b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 42px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(21, 107, 75, 0.12);
}

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.status-divider {
  color: #a3a69f;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  min-height: 690px;
}

.intro,
.contact-panel {
  padding: 72px 42px;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.contact-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.eyebrow,
.panel-index {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 42px 0 48px;
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h1 span {
  display: block;
}

h1 span[lang="uz"] {
  margin-top: 20px;
  color: var(--muted);
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  max-width: 820px;
  margin: auto 0 54px;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.phone-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  text-decoration: none;
}

.phone-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-number {
  margin-top: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: color 160ms ease, border-color 160ms ease;
}

.phone-link:hover .phone-number,
.phone-link:focus-visible .phone-number {
  color: var(--accent);
  border-color: var(--accent);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

h2 {
  max-width: 430px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

form {
  margin-top: 34px;
}

.field-group + .field-group {
  margin-top: 24px;
}

.field-group label,
.label-row {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.counter {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input {
  height: 54px;
  padding: 0 16px;
}

textarea {
  min-height: 142px;
  padding: 15px 16px;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #949790;
  opacity: 1;
}

input:hover,
textarea:hover {
  border-color: #999d96;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 107, 75, 0.11);
}

.field-group.has-error input,
.field-group.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.submit-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.submit-button:focus-visible,
.phone-link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid rgba(21, 107, 75, 0.25);
  outline-offset: 4px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-arrow {
  font-size: 20px;
  font-weight: 400;
}

.form-note,
.form-status {
  font-size: 12px;
}

.form-note {
  margin: 13px 0 0;
  color: var(--muted);
}

.form-note span {
  display: block;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-weight: 650;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  }

  .intro,
  .contact-panel {
    padding: 58px 32px;
  }

  h1 {
    font-size: 54px;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    padding: 18px 22px;
  }

  .main-grid {
    display: block;
    min-height: 0;
  }

  .intro,
  .contact-panel {
    padding: 48px 22px;
  }

  .intro {
    min-height: 660px;
  }

  .contact-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  h1 {
    margin: 36px 0 42px;
    font-size: 52px;
  }

  h1 span[lang="uz"] {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  .build-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 7px;
    max-width: 150px;
    line-height: 1.35;
  }

  .status-dot {
    grid-row: 1 / span 2;
    margin-top: 5px;
  }

  .status-divider {
    display: none;
  }

  .intro {
    min-height: 0;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -0.05em;
  }

  h1 span[lang="uz"] {
    margin-top: 16px;
    font-size: 26px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 42px;
  }

  .panel-heading {
    align-items: flex-start;
  }

  h2 {
    max-width: 260px;
    font-size: 21px;
  }

  .phone-number {
    font-size: 21px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .site-header,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro,
  .contact-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wordmark {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 38px;
  }
}

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