/* ATQ – koncept poptávky. Barvy, písmo a tvar tlačítek odpovídají webu atq.cz. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --main: #0096be;          /* ATQ --color-main */
  --main-strong: #007a9b;   /* tmavší odstín pro text a tlačítka kvůli kontrastu */
  --main-soft: #e6f5f9;
  --ink: #131313;           /* ATQ --color-primary */
  --ink-soft: #3e3e3e;
  --muted: #5c5f62;
  --line: #dbdbdb;
  --line-soft: #ececec;
  --mist: #f5f6f7;
  --paper: #fff;
  --danger: #b3261e;
  --radius: 14px;
  --radius-small: 10px;
  --wrap: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ pruh konceptu a hlavička */

.concept-bar {
  background: var(--main-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 7px 16px;
}

.site-header {
  background: #000;
  color: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  margin-right: auto;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--main);
}

/* ------------------------------------------------------------ tlačítka */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.btn-main {
  background: var(--main-strong);
  color: #fff;
}

.btn-main:hover {
  background: var(--ink);
}

.site-header .btn-main:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--main-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ úvod */

.hero {
  background: var(--ink);
  color: #fff;
  padding-block: 62px 56px;
}

.kicker {
  color: var(--main-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #4cc4e4;
}

.hero h1 {
  margin-top: 12px;
  max-width: 16ch;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-top: 20px;
  max-width: 52ch;
  color: #d6d8da;
  font-size: 19px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid #333;
}

.facts li {
  padding: 22px 24px 0 0;
}

.facts li + li {
  padding-left: 24px;
  border-left: 1px solid #333;
}

.facts strong {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.facts span {
  color: #b9bcbf;
  font-size: 15px;
}

/* ------------------------------------------------------------ poptávka */

.enquiry {
  background: var(--mist);
  padding-block: 44px 76px;
  scroll-margin-top: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 4px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.step-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.step-mark svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.step.is-current {
  border-top-color: var(--main);
  color: var(--ink);
}

.step.is-current .step-mark {
  background: var(--ink);
  color: #fff;
}

.step.is-done {
  border-top-color: var(--main-strong);
  color: var(--ink-soft);
}

.step.is-done .step-mark {
  background: var(--main-strong);
  color: #fff;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
}

.panel h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.panel h2:focus {
  outline: none;
}

.panel .kicker + h2 {
  margin-top: 8px;
}

.lead {
  margin-top: 10px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

/* volba zakázky */

.jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.job:hover {
  border-color: #b4b7ba;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.job-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--main-soft);
  color: var(--main-strong);
}

.job-icon svg {
  width: 30px;
  height: 30px;
}

.job-title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.job-lead {
  color: var(--muted);
  font-size: 16px;
}

.job-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.job-asks span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.job-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--main-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.job-go svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

/* pole formuláře */

.field {
  margin-top: 24px;
}

.field > label:not(.check):not(.dropzone),
.field > legend,
.field > .label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
}

.optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid #c9c9c9;
  border-radius: var(--radius-small);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

::placeholder {
  color: #8a8d90;
  opacity: 1;
}

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

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--main-strong);
  box-shadow: 0 0 0 4px rgba(0, 150, 190, 0.22);
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="tel"],
.has-error textarea,
.has-error .option-box {
  border-color: var(--danger);
}

.field-error {
  margin-top: 7px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
}

.form-error {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #f1cdc9;
  border-radius: var(--radius-small);
  background: #fcefee;
  color: #7d1a14;
  font-weight: 700;
}

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

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

/* možnosti */

.options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}

.options-wrap {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.option-box {
  display: flex;
  align-items: center;
  min-height: 52px;
  height: 100%;
  padding: 11px 16px;
  border: 1.5px solid #c9c9c9;
  border-radius: var(--radius-small);
  background: var(--paper);
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover .option-box {
  border-color: #818181;
}

.option input:checked + .option-box {
  border-color: var(--main-strong);
  background: var(--main-soft);
  box-shadow: inset 0 0 0 1px var(--main-strong);
}

.option input:focus-visible + .option-box {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
}

.check-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 1.5px solid #9a9a9a;
  border-radius: 7px;
  background: var(--paper);
  color: transparent;
}

.check-box svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.check input:checked + .check-box {
  border-color: var(--main-strong);
  background: var(--main-strong);
  color: #fff;
}

.check input:focus-visible + .check-box {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

/* soubory */

.dropzone {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 24px 20px;
  border: 2px dashed #b4b7ba;
  border-radius: var(--radius-small);
  background: var(--mist);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--main-strong);
  background: var(--main-soft);
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone:focus-within {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

.dropzone-title {
  display: block;
  font-weight: 700;
}

.dropzone-hint {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper);
}

.file-list svg,
.mail-files svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--main-strong);
}

.file-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.file-size {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.file-remove {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.file-remove:hover {
  color: var(--danger);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

/* proč se ptáme */

.why {
  position: sticky;
  top: 20px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.why h3 {
  color: #4cc4e4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.why ul {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.why li {
  position: relative;
  padding-left: 22px;
  color: #e3e4e5;
  font-size: 16px;
}

.why li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--main);
}

/* kontrola a náhled e-mailu */

.review {
  margin-top: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.review header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--mist);
}

.review h3 {
  font-size: 17px;
  font-weight: 800;
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
}

.rows dt {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.rows dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sent-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--main-strong);
  color: #fff;
}

.sent-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 3;
}

.mail {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.mail-head {
  padding: 16px 20px;
  background: var(--ink);
  color: #fff;
}

.mail-head > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding-block: 3px;
}

.mail-head dt {
  color: #a9adb0;
  font-size: 15px;
}

.mail-head dd {
  overflow-wrap: anywhere;
}

.mail-subject {
  font-weight: 800;
}

.mail .rows > div:first-child {
  border-top: 0;
}

.mail-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--mist);
}

.mail-files li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
}

/* ------------------------------------------------------------ patička */

.site-footer {
  background: #000;
  color: #c9c9c9;
  padding-block: 30px;
  font-size: 15px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.no-js-note {
  margin-top: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.js .no-js-note {
  display: none;
}

/* ------------------------------------------------------------ užší obrazovky */

@media (max-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .why {
    position: static;
  }

  .jobs {
    grid-template-columns: minmax(0, 1fr);
  }

  .job {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
  }

  .job-title {
    margin-top: 0;
    flex: 1 1 60%;
  }

  .job-lead,
  .job-asks,
  .job-go {
    flex: 1 1 100%;
  }

  .job-go {
    padding-top: 6px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .header-row {
    padding-block: 14px;
  }

  .brand img {
    height: 36px;
  }

  .header-row .btn {
    min-height: 44px;
    padding: 9px 20px;
    font-size: 14px;
  }

  .hero {
    padding-block: 40px 36px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 30px;
  }

  .facts li,
  .facts li + li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid #333;
  }

  .enquiry {
    padding-block: 28px 52px;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
  }

  .grid-2,
  .options,
  .options-wrap {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }

  .rows > div,
  .mail-head > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .actions .btn-main {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
