:root {
      --black: #171717;
      --red: #ef2029;
      --green: #188a3b;
      --gray: #666;
      --light-gray: #f6f6f6;
      --border: #dedede;
      --shadow: 0 4px 18px rgba(0,0,0,.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: #111;
      background: #fff;
    }

    .hero {
      position: relative;
      min-height: 205px;
      background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.05)), url("../img/headbackground.png");
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .hero-logo-left,
    .hero-logo-right {
      position: absolute;
      top: 30px;
      z-index: 2;
    }

    .hero-logo-left {
      left: 30px;
    }

    .hero-logo-right {
      right: 30px;
    }

    .hero-logo-left img,
    .hero-logo-right img {
      width: 250px;
      max-width: 26vw;
      height: auto;
      display: block;
    }

    .hero-title {
      margin: 0;
      font-family: "Franklin Gothic Heavy", "Arial Black", Impact, sans-serif;
      font-size: clamp(42px, 6vw, 112pt);
      line-height: .9;
      color: #fff;
      text-align: center;
      letter-spacing: 2px;
      text-shadow: 0 5px 15px rgba(0,0,0,.45);
      white-space: nowrap;
      padding: 0 300px;
    }

    .page {
      display: grid;
      grid-template-columns: minmax(430px, 56%) minmax(420px, 44%);
      gap: 34px;
      max-width: 1280px;
      margin: 0 auto;
      padding: 26px 34px 54px;
      align-items: start;
    }

    .product-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      min-width: 0;
    }

    .shirt-preview {
      width: 100%;
      min-height: 520px;
      display: grid;
      place-items: center;
    }

    .shirt-preview img {
      max-width: 92%;
      max-height: 560px;
      object-fit: contain;
    }

    .thumbs {
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 18px;
    }

    .thumb {
      width: 94px;
      height: 89px;
      border: 1px solid #d0d0d0;
      border-radius: 5px;
      background: #fff;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 12px;
      transition: border-color .15s, box-shadow .15s;
    }

    .thumb.active {
      border-color: #111;
      box-shadow: 0 0 0 1px #111 inset;
    }

    .thumb img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .form-card {
      background: #fff;
      border: 1px solid #e1e1e1;
      border-radius: 5px;
      box-shadow: var(--shadow);
      padding: 22px 26px 20px;
      width: 100%;
      max-width: 520px;
      margin-left: auto;
    }

    h1 {
      margin: 0 0 6px;
      font-size: 23px;
      font-weight: 700;
      letter-spacing: .2px;
    }

    .price {
      margin-bottom: 18px;
      font-size: 14px;
      color: #333;
    }

    .field-group {
      margin-bottom: 15px;
    }

    label,
    .group-label {
      display: block;
      margin-bottom: 6px;
      font-size: 12px;
      line-height: 1.35;
    }

    .required::after {
      content: " *";
      font-weight: bold;
    }

    .option-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .option-btn {
      border: 1px solid var(--border);
      border-radius: 3px;
      background: #fff;
      color: #111;
      padding: 7px 12px;
      font-size: 13px;
      cursor: pointer;
      min-width: 40px;
    }

    .option-btn.active {
      background: var(--black);
      color: #fff;
      border-color: var(--black);
    }

    .option-btn.unavailable,
    .option-btn.unavailable:hover {
      position: relative;
      color: #b00000;
      background: #f1f1f1;
      border-color: #cfcfcf;
      cursor: not-allowed;
      opacity: .65;
    }

    .option-btn.unavailable::after {
      content: "";
      position: absolute;
      left: 7px;
      right: 7px;
      top: 50%;
      border-top: 2px solid #c50000;
      transform: rotate(-18deg);
      transform-origin: center;
    }


    input,
    select {
      width: 100%;
      height: 31px;
      border: 1px solid var(--border);
      background: #fff;
      color: #111;
      padding: 6px 9px;
      font-size: 13px;
      border-radius: 3px;
    }

    input::placeholder {
      color: #aaa;
    }

    input.is-invalid {
      border-color: #c50000;
      box-shadow: 0 0 0 1px #c50000 inset;
    }

    input[readonly] {
      background: #f3f3f3;
      color: #555;
      cursor: not-allowed;
    }

    .counter {
      margin-top: 3px;
      text-align: right;
      color: #777;
      font-size: 12px;
    }

    .hint {
      margin-top: 8px;
      font-size: 12px;
      min-height: 17px;
      color: #666;
    }

    .hint.ok {
      color: var(--green);
      font-weight: bold;
    }

    .hint.error {
      color: #c50000;
      font-weight: bold;
    }

    .voucher-row {
      display: grid;
      grid-template-columns: 1fr 96px;
      gap: 10px;
      align-items: start;
    }

    .check-btn {
      height: 31px;
      border: 0;
      border-radius: 3px;
      background: var(--black);
      color: #fff;
      font-weight: 700;
      cursor: pointer;
      font-size: 13px;
    }

    .two-col,
    .three-col {
      display: grid;
      gap: 10px;
    }

    .two-col {
      grid-template-columns: 1fr 1fr;
    }

    .three-col {
      grid-template-columns: .75fr 1fr 1fr;
    }

    .address-divider {
      border: 0;
      border-top: 1px solid #bcbcbc;
      margin: 20px 0 14px;
    }

    .address-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .checkbox-row {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 8px;
      align-items: start;
      font-size: 12px;
      margin: 9px 0;
      line-height: 1.35;
    }

    .checkbox-row input {
      width: 15px;
      height: 15px;
      margin: 0;
    }

    a {
      color: #006da8;
      text-decoration: underline;
    }

    .submit-btn {
      width: 100%;
      border: 0;
      background: var(--red);
      color: #fff;
      height: 43px;
      border-radius: 7px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 10px;
    }

    .submit-btn:hover {
      filter: brightness(.96);
    }

    .form-message {
      margin-top: 12px;
      padding: 11px;
      border-radius: 4px;
      font-size: 13px;
      display: none;
    }

    .form-message.success {
      display: block;
      color: var(--green);
      background: #eaf8ee;
      border: 1px solid #bfe6ca;
    }

    .form-message.error {
      display: block;
      color: #b00000;
      background: #fff0f0;
      border: 1px solid #ffc0c0;
    }

    .hidden {
      display: none;
    }

    @media (max-width: 1100px) {
      .hero-title {
        padding: 0 210px;
      }

      .hero-logo-left img,
      .hero-logo-right img {
        width: 200px;
      }

      .page {
        grid-template-columns: 1fr;
        max-width: 760px;
      }

      .form-card {
        margin: 0 auto;
        max-width: 620px;
      }
    }

    @media (max-width: 760px) {
      .hero {
        min-height: 180px;
        align-items: flex-end;
        padding-bottom: 22px;
      }

      .hero-logo-left,
      .hero-logo-right {
        top: 18px;
      }

      .hero-logo-left {
        left: 18px;
      }

      .hero-logo-right {
        right: 18px;
      }

      .hero-logo-left img,
      .hero-logo-right img {
        width: 140px;
        max-width: 38vw;
      }

      .hero-title {
        font-size: clamp(38px, 12vw, 76px);
        padding: 0 18px;
        white-space: normal;
      }

      .page {
        padding: 20px 14px 38px;
        gap: 18px;
      }

      .shirt-preview {
        min-height: 380px;
      }

      .shirt-preview img {
        max-height: 410px;
      }

      .thumb {
        width: 68px;
        height: 66px;
      }

      .form-card {
        padding: 18px 16px;
      }

      .two-col,
      .three-col,
      .voucher-row {
        grid-template-columns: 1fr;
      }

      .check-btn {
        width: 100%;
      }
    }