* { box-sizing: border-box; }

:root {
  --ink: #262324;
  --muted: #777274;
  --line: #e7e3e1;
  --accent: #2aa8c7;
  --paper: #fff;
  --small: clamp(15px, calc(.58vw + .38vh), 20px);
}

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(42, 168, 199, .18);
  color: var(--ink);
}

.page {
  width: min(1440px, calc(100% - 96px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(34px, 3vw, 56px) 0 clamp(28px, 2.4vw, 42px);
}

header {
  display: flex;
  align-items: flex-start;
}

.logo {
  display: block;
  width: clamp(340px, 22vw, 460px);
  max-width: 48vw;
  height: auto;
}

main {
  align-self: center;
  width: 100%;
  padding: clamp(34px, 4vh, 72px) 0 clamp(42px, 5vh, 88px);
}

h1 {
  margin: 0;
  max-width: 1320px;
  font-size: clamp(58px, calc(4.8vw + .8vh), 108px);
  line-height: 1.01;
  font-weight: 400;
  letter-spacing: -.04em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 0;
  margin-top: clamp(38px, 3vw, 58px);
  padding-top: clamp(20px, 1.5vw, 28px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(16px, .92vw, 20px);
  line-height: 1.45;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: .34em;
  white-space: nowrap;
}

.fact + .fact::before {
  content: "•";
  margin: 0 clamp(15px, 1.6vw, 28px);
  color: var(--accent);
  font-size: 1.35em;
  line-height: 0;
  font-weight: 700;
  transform: translateY(.03em);
}

.fact-value {
  color: var(--ink);
  font-weight: 600;
}

.fact-label {
  color: var(--muted);
  font-weight: 400;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: clamp(20px, 1.6vw, 28px);
  border-top: 1px solid var(--line);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: var(--small);
  line-height: 1.4;
}

.contacts {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.phone {
  color: var(--ink);
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 3px 0 4px;
}

.phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

.phone:hover { color: var(--accent); }

.contact {
  appearance: none;
  border: 0;
  padding: 3px 0 4px;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

.contact:focus-visible {
  outline: 2px solid rgba(42, 168, 199, .35);
  outline-offset: 5px;
}

@media (min-width: 1800px) {
  .page { width: min(1540px, calc(100% - 144px)); }
  h1 { max-width: 1440px; }
}

@media (max-width: 760px) {
  :root { --small: 13px; }

  .page {
    width: min(100% - 36px, 1220px);
    padding: 28px 0 26px;
  }

  .logo { width: 184px; }

  main { padding: 66px 0 70px; }

  h1 {
    max-width: none;
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.07;
    letter-spacing: -.03em;
  }

  .facts {
    display: block;
    margin-top: 34px;
    padding-top: 0;
    border-top: 1px solid var(--line);
  }

  .fact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .42em;
    white-space: normal;
    padding: 14px 0 15px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .fact + .fact::before { content: none; }

  footer { align-items: flex-end; }
  .note { max-width: 180px; }
  .contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .phone, .contact, .note { font-size: 13px; }
}

/* v20: contacts and commercial request */
.contacts-prominent {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 24px);
}
.action-primary,
.action-text {
  font-size: clamp(16px, .92vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.action-primary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px 11px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.action-primary:hover { background: var(--ink); }
.action-text {
  appearance: none;
  border: 0;
  border-bottom: 2px solid var(--accent);
  padding: 3px 0 4px;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, .92vw, 20px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.action-text:hover { color: var(--accent); }
.action-primary:focus-visible,
.action-text:focus-visible {
  outline: 2px solid rgba(42,168,199,.35);
  outline-offset: 4px;
}

.subpage-body,
.legal-body { min-height: 100vh; }
.subpage,
.legal-page {
  width: min(1180px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 3vw, 52px) 0 28px;
}
.subpage-header { display: flex; align-items: flex-start; }
.logo-link { display: inline-block; }
.request-main,
.legal-main { padding: clamp(56px, 7vh, 90px) 0 60px; }
.request-main { max-width: 1040px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.request-title,
.legal-title {
  max-width: 1000px;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1;
}
.request-intro,
.legal-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.5;
}

.request-form {
  margin-top: clamp(42px, 4.5vw, 62px);
  border-top: 1px solid var(--line);
}
.form-block {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}
.form-block-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.form-block-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.form-block-content { min-width: 0; }
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.field-company { grid-column: 1 / -1; }
.field { display: block; }
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus { border-bottom-color: var(--accent); }
textarea {
  display: block;
  min-height: 132px;
  padding-top: 0;
  resize: vertical;
  line-height: 1.5;
}
textarea::placeholder { color: #aaa4a6; }

.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.choice input:checked + span {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(42,168,199,.055);
}
.choice input:focus-visible + span {
  outline: 2px solid rgba(42,168,199,.3);
  outline-offset: 2px;
}
.input-with-unit {
  display: flex;
  align-items: baseline;
  width: min(300px, 100%);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.input-with-unit input { border-bottom: 0; }
.input-with-unit > span { color: var(--muted); white-space: nowrap; }
.other-field { margin-top: 20px; max-width: 560px; }

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.custom-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.file-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.file-button:hover { border-color: var(--accent); color: var(--accent); }
.file-input:focus-visible + .file-button {
  outline: 2px solid rgba(42,168,199,.3);
  outline-offset: 3px;
}
.file-name {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.field-help {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 28px;
  max-width: 880px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.consent-row input { margin-top: 3px; accent-color: var(--accent); }
.consent-row a,
.policy-link,
.subpage-footer a,
.legal-main a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.consent-row a:hover,
.policy-link:hover,
.subpage-footer a:hover,
.legal-main a:hover { color: var(--accent); }
.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.submit-button {
  border: 0;
  padding: 13px 18px 14px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.submit-button:hover { background: var(--accent); }
.policy-link { font-size: 14px; }

.required-note {
  margin-left: .25em;
  color: var(--muted);
  font-size: .78em;
  font-weight: 400;
  text-transform: none;
}
.field-error {
  display: block;
  margin-top: 7px;
  color: #9a3d3d;
  font-size: 13px;
  line-height: 1.4;
}
.field-error[hidden] { display: none; }
input.is-invalid,
textarea.is-invalid,
.input-with-unit:has(input.is-invalid) {
  border-bottom-color: #9a3d3d;
}
.choice-group.is-invalid .choice span {
  border-color: rgba(154,61,61,.65);
}
.consent-row.is-invalid { color: #7f3434; }
.file-error { color: #9a3d3d; }
.validation-summary { max-width: 760px; }
.consent-wrap { margin-top: 28px; }
.consent-wrap .consent-row { margin-top: 0; }

.form-status {
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(42,168,199,.055);
  font-size: 15px;
}
.form-status-error { border-left-color: #a34747; background: rgba(163,71,71,.05); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.subpage-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-main { max-width: 920px; }
.legal-title { font-size: clamp(42px, 5vw, 72px); }
.legal-main section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-main h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}
.legal-main p {
  margin: 0 0 12px;
  color: #4f4a4b;
  font-size: 16px;
  line-height: 1.65;
}
.legal-contact {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 2px 0 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.legal-contact:hover { color: var(--accent); }

@media (max-width: 900px) {
  .form-block { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
  .choice-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .contacts-prominent { gap: 12px; }
  .action-primary,
  .action-text { font-size: 15px !important; }
  .action-primary { min-height: 38px; padding: 9px 12px 10px; }

  .subpage,
  .legal-page { width: calc(100% - 36px); padding-top: 28px; }
  .subpage .logo,
  .legal-page .logo { width: 184px; }
  .request-main,
  .legal-main { padding: 56px 0 48px; }
  .request-title,
  .legal-title { font-size: clamp(38px, 11vw, 52px); }
  .request-intro,
  .legal-lead { font-size: 17px; }

  .form-block {
    display: block;
    padding: 24px 0 26px;
  }
  .form-block-heading { margin-bottom: 18px; }
  .form-block-heading h2 { font-size: 15px; }
  .contact-fields { grid-template-columns: 1fr; gap: 22px; }
  .field-company { grid-column: auto; }
  .choice-grid-three,
  .choice-grid-four { grid-template-columns: 1fr; }
  .choice span { justify-content: flex-start; min-height: 45px; }
  .custom-file { align-items: flex-start; flex-direction: column; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .submit-button { width: 100%; }
  .subpage-footer { flex-direction: column; gap: 10px; }
}


/* v23: cleaner home-page actions */
.page > footer {
  justify-content: center;
}
.page > footer .contacts-prominent {
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .page > footer {
    align-items: stretch;
  }
  .page > footer .contacts-prominent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
    width: 100%;
  }
  .page > footer .action-primary {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
  .page > footer .action-text {
    justify-self: center;
    font-size: 14px !important;
  }
}

/* v24: align home actions with the main content axis */
.page > footer {
  justify-content: flex-start;
}
.page > footer .contacts-prominent {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .page > footer .contacts-prominent {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .page > footer .action-primary {
    grid-column: 1 / -1;
  }
  .page > footer .action-text {
    justify-self: start;
  }
}
