:root {
  --green: #618900;
  --green-light: #92aa58;
  --green-dark: #466400;
  --orange: #ff8800;
  --ink: #2f3438;
  --muted: #667078;
  --line: #e8e9e6;
  --surface: #ffffff;
  --surface-soft: #f7f8f4;
  --footer: #303438;
  --shadow: 0 18px 50px rgba(39, 53, 24, 0.09);
  --radius: 4px;
  --site-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Ubuntu", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--green);
}

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

.site-width {
  width: min(calc(100% - 40px), var(--site-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--green-dark);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.top-bar {
  min-height: 34px;
  border-bottom: 1px solid #f0f0ee;
  background: var(--surface);
  color: var(--orange);
  font-size: 12px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
}

.top-bar a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(27, 38, 17, 0.04);
}

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

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 210px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav,
.service-nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.primary-nav a,
.service-nav a {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a {
  padding: 13px 12px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--orange);
}

.service-nav {
  background: var(--green);
}

.service-nav a {
  padding: 11px 18px;
  color: var(--surface);
}

.service-nav a:hover,
.service-nav a:focus-visible {
  background: var(--green-dark);
  color: var(--surface);
}

.page-heading {
  padding: 28px 0 30px;
  background: var(--green-light);
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-layout {
  padding-block: 54px 70px;
}

.intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.intro p {
  margin: 0;
}

.intro__lead {
  color: var(--green);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 600;
  line-height: 1.3;
}

.order-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 38px 46px 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--green);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.form-section legend span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--surface);
  font-size: 16px;
  place-items: center;
}

.section-help {
  margin: 6px 0 22px 48px;
  color: var(--muted);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.package-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.package-option:hover {
  border-color: var(--green-light);
  box-shadow: 0 8px 24px rgba(73, 104, 27, 0.08);
  transform: translateY(-1px);
}

.package-option:has(input:checked) {
  border-color: var(--green);
  background: #f1f6e8;
  box-shadow: inset 4px 0 0 var(--orange);
}

input[type="radio"],
input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--green);
}

.package-option__copy {
  display: grid;
  gap: 3px;
}

.package-option__copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.package-option__copy small {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.installation-section {
  background: linear-gradient(100deg, #f4f8ed, #ffffff 72%);
}

.installation-section p {
  margin: 15px 0 0 48px;
  max-width: 920px;
}

.vat-question {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 7px 0 26px 48px;
}

.vat-question p {
  margin: 0;
  font-weight: 600;
}

.vat-question label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #42494e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.required {
  color: var(--orange);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dfe1dc;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(97, 137, 0, 0.14);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 7px 0 27px 48px;
  padding: 17px 20px;
  border-left: 4px solid var(--orange);
  background: var(--surface-soft);
  cursor: pointer;
}

.signature-grid {
  margin-bottom: 25px;
}

.legal-note {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 28px;
}

.submit-row p {
  margin: 0;
}

button[type="submit"] {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 13px 25px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  background: var(--green);
  color: var(--surface);
}

.site-footer {
  background: var(--footer);
  color: #dfe4e5;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  gap: 60px;
  padding-block: 42px;
}

.footer-grid p {
  margin: 8px 0 0;
}

.footer-logo {
  width: 175px;
  padding: 7px 10px;
  border-radius: 2px;
  background: var(--surface);
}

.footer-grid address {
  justify-self: end;
  max-width: 650px;
  font-style: normal;
  text-align: right;
}

.footer-grid address strong {
  color: var(--surface);
  font-size: 15px;
}

.footer-grid address strong span {
  font-weight: 400;
}

.footer-bottom {
  padding: 13px 0;
  background: #222629;
  color: #adb5b8;
  font-size: 12px;
}

@media (max-width: 860px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
  }

  .primary-nav,
  .service-nav__inner {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .primary-nav a {
    padding: 7px 14px 7px 0;
  }

  .service-nav a {
    padding: 10px 14px;
  }

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

@media (max-width: 680px) {
  body {
    line-height: 1.7;
  }

  .site-width {
    width: min(calc(100% - 28px), var(--site-width));
  }

  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 7px;
  }

  .brand img {
    width: 185px;
  }

  .page-heading {
    padding-block: 23px;
  }

  .form-layout {
    padding-block: 38px 50px;
  }

  .form-section {
    padding: 29px 20px 34px;
  }

  .form-section legend {
    font-size: 20px;
  }

  .form-section legend span {
    width: 32px;
    height: 32px;
  }

  .section-help,
  .installation-section p,
  .vat-question,
  .agreement-check {
    margin-left: 0;
  }

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

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-grid address {
    justify-self: start;
    text-align: left;
  }
}

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

@media print {
  .top-bar,
  .primary-nav,
  .service-nav,
  button[type="submit"] {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .form-layout {
    padding-block: 24px;
  }

  .order-form {
    box-shadow: none;
  }

  .form-section {
    break-inside: avoid;
  }
}
