/* =========================================================
   K Garáž – administrace webu
   Stejné barvy a písmo jako web, jen klidnější a hustší rozvržení pro práci.
   ========================================================= */

/* Písmo Saira ze složky fonts/ webu */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-ext-wdth-normal.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: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-wdth-normal.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;
}

@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-ext-wdth-italic.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: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-wdth-italic.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 {
  --bg: #0a0b0d;
  --surface: #131518;
  --surface-2: #1a1d21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-2: #a9aeb5;
  --text-3: #878d95;
  --red: #e1131b;
  --red-hover: #c4101a;
  --red-text: #ff4a51;
  --green: #3ecf8e;
  --font: "Saira", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --wrap: 1180px;
  --pad: clamp(16px, 3.5vw, 32px);
  --slant: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset,
legend,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ico {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- Tlačítka ---------- */
.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.abtn .ico {
  font-size: 18px;
}

.abtn--primary {
  padding-inline: 30px;
  background: var(--red);
  color: #fff;
  clip-path: var(--slant);
}

.abtn--primary:hover {
  background: var(--red-hover);
}

.abtn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.abtn--line {
  border-color: var(--line-2);
  color: #fff;
}

.abtn--line:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.abtn--danger {
  border-color: rgba(255, 74, 81, 0.5);
  color: var(--red-text);
}

.abtn--danger:hover {
  background: rgba(225, 19, 27, 0.12);
  border-color: var(--red-text);
}

.abtn--text {
  min-height: 44px;
  padding: 0 6px;
  color: var(--text-2);
  font-weight: 600;
}

.abtn--text:hover {
  color: #fff;
}

.abtn--text-danger {
  color: var(--red-text);
}

.abtn--text-danger:hover {
  color: #fff;
}

.abtn:disabled,
.abtn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Malé čtvercové tlačítko s ikonou (pořadí, smazat) */
.ibtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.ibtn .ico {
  font-size: 19px;
}

.ibtn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.ibtn--danger:hover:not(:disabled) {
  border-color: var(--red-text);
  color: var(--red-text);
  background: rgba(225, 19, 27, 0.08);
}

.ibtn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---------- Pole formuláře ---------- */
.fld {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.fld--wide {
  grid-column: 1 / -1;
}

.fld__label {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}

.fld__req {
  color: var(--red-text);
}

.fld__hint {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.45;
}

.fld__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: #fff;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.fld__input {
  min-height: 170px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

select.fld__input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aeb5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.fld__input::placeholder {
  color: #5f656d;
}

.fld__input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.fld__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 19, 27, 0.28);
}

.fld__input:disabled {
  opacity: 0.45;
}

.fld__input[aria-invalid="true"] {
  border-color: var(--red-text);
}

.fld__err {
  color: var(--red-text);
  font-weight: 600;
  font-size: 14px;
}

.fld__err:empty {
  display: none;
}

/* Číslo s jednotkou (Kč, km) */
.unit {
  position: relative;
}

.unit .fld__input {
  padding-right: 64px;
}

.unit__text {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-weight: 600;
  pointer-events: none;
}

/* Přepínač z několika možností (Nový / Použitý …) */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice__opt {
  position: relative;
}

.choice__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice__opt span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.choice__opt span .ico {
  font-size: 19px;
}

.choice__opt input:checked + span {
  border-color: var(--red);
  background: rgba(225, 19, 27, 0.12);
  box-shadow: inset 0 0 0 1px var(--red);
  color: #fff;
}

.choice__opt input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

/* Zaškrtávátko vedle pole (Cena na dotaz) – ve výšce pole */
.fld--check {
  justify-content: flex-end;
}

.fld--check .check {
  min-height: 48px;
}

/* Zobrazit / skrýt heslo */
.pw {
  position: relative;
}

.pw__input {
  padding-right: 104px;
}

.pw__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}

.pw__toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Přihlášení ---------- */
.adm--login {
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(225, 19, 27, 0.14), transparent 70%),
    var(--bg);
}

.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: min(420px, 100%);
}

.login__logo img {
  width: 220px;
  height: auto;
}

.login__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 34px 30px 30px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.login__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 56px;
  height: 3px;
  background: var(--red);
}

.login__avatar {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  fill: var(--red);
}

.login__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 28px;
  line-height: 1.1;
}

.login__lead {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 15px;
}

.login__error {
  color: var(--red-text);
  font-weight: 600;
  font-size: 15px;
}

.login__submit {
  margin-top: 12px;
  width: 100%;
  min-height: 52px;
}

.login__back {
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 5px;
}

.login__back:hover {
  color: #fff;
}

/* ---------- Horní lišta ---------- */
.top {
  border-bottom: 1px solid var(--line);
  background: #08090b;
}

.top__in {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
}

.top__logo img {
  width: 150px;
  height: auto;
}

.top__title {
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
}

.top__acts {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
}

.top__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.top__link--out {
  color: #fff;
}

/* ---------- Výběr části: auta, motorky, díly, půjčovna ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tabs__in {
  display: flex;
  gap: 6px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
}

.tab {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  min-height: 52px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 15.5px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  clip-path: var(--slant);
  transition: background-color 0.15s, color 0.15s;
}

.tab .ico {
  font-size: 20px;
}

.tab:hover {
  background: var(--surface-2);
  color: #fff;
}

.tab[aria-current="page"] {
  background: var(--red);
  color: #fff;
}

.tab__count {
  min-width: 26px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: inherit;
  font-weight: 700;
  font-size: 13px;
}

.tab[aria-current="page"] .tab__count {
  background: rgba(0, 0, 0, 0.22);
}

.tab:focus-visible {
  outline-offset: -5px;
}

/* ---------- Obsah ---------- */
.main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--pad) 120px;
}

.main:focus {
  outline: none;
}

.main__loading {
  color: var(--text-2);
}

.warn {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 74, 81, 0.45);
  border-radius: var(--radius);
  background: rgba(225, 19, 27, 0.08);
  color: #fff;
  font-size: 15px;
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}

.head__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.head__sub {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.head__sub a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.group + .group {
  margin-top: 36px;
}

.group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 19px;
}

.group__count {
  color: var(--text-3);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Seznam položek ---------- */
.rows {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s, background-color 0.6s;
}

.row:hover {
  border-color: var(--line-2);
}

.row.is-fresh {
  border-color: rgba(62, 207, 142, 0.6);
  background: rgba(62, 207, 142, 0.07);
}

.row__thumb {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
}

.row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row__thumb .ico {
  font-size: 30px;
}

.row__main {
  min-width: 0;
}

.row__name {
  display: inline;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
}

.row__name:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 5px;
  color: var(--text-2);
  font-size: 14.5px;
}

.row__meta span + span {
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}

.row__price {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 112.5%;
  font-size: 17px;
  white-space: nowrap;
  text-align: right;
}

.row__price small {
  color: var(--text-3);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
}

.row__price--ask {
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
}

.row__acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row__acts .abtn {
  min-height: 44px;
  padding: 0 16px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--text-2);
}

/* ---------- Formulář ---------- */
.form {
  display: grid;
  gap: 18px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: -8px 0 4px;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.back:hover {
  color: #fff;
}

.back .ico {
  font-size: 18px;
}

.card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.card__title {
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 19px;
  line-height: 1.25;
}

.card__note {
  margin-top: -10px;
  color: var(--text-3);
  font-size: 14px;
}

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

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

/* Spodní lišta s Uložit – vždy po ruce */
.bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px calc(var(--pad) * -1) -120px;
  padding: 14px var(--pad) max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  background: rgba(10, 11, 13, 0.96);
}

.bar__end {
  margin-left: auto;
}

.bar__status {
  color: var(--text-2);
  font-size: 14px;
}

/* Fotky */
.photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.photo {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
}

.photo__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.photo__main {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 9px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.photo__acts {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
}

.photo__acts .ibtn {
  width: 40px;
  height: 40px;
}

.photo__progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.photo__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.2s;
}

.photo--busy .photo__img {
  opacity: 0.45;
}

.photos__add {
  display: flex;
}

.photos__drop {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.photos__drop .ico {
  font-size: 26px;
  color: var(--red);
}

.photos__drop small {
  color: var(--text-3);
  font-weight: 500;
  font-size: 13px;
}

.photos__drop:hover,
.photos.is-dragover .photos__drop {
  border-color: var(--red);
  background: rgba(225, 19, 27, 0.06);
}

.photos input[type="file"]:focus-visible + .photos__drop {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Štítky (výbava, údaje) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips:empty {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
}

.chip button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}

.chip button:hover {
  background: rgba(225, 19, 27, 0.15);
  color: #fff;
}

.chip .ico {
  font-size: 15px;
}

.adder {
  display: flex;
  gap: 8px;
}

.adder .fld__input {
  flex: 1;
}

/* Další parametry: název + hodnota */
.params {
  display: grid;
  gap: 10px;
}

.param {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 44px;
  gap: 8px;
  align-items: center;
}

/* ---------- Okna (potvrzení, heslo) ---------- */
.dlg {
  width: min(480px, calc(100% - 24px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
}

.dlg::backdrop {
  background: rgba(6, 7, 8, 0.72);
}

.dlg__box {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.dlg__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 24px;
  line-height: 1.15;
}

.dlg__text {
  color: var(--text-2);
}

.dlg__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.dlg__acts .abtn--danger-solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.dlg__acts .abtn--danger-solid:hover {
  background: var(--red-hover);
}

/* ---------- Oznámení vpravo dole ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(460px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #1b1e22;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  font-size: 15px;
  pointer-events: auto;
  animation: toast-in 0.25s ease-out;
}

.toast .ico {
  font-size: 19px;
  color: var(--green);
}

.toast--error {
  border-left-color: var(--red-text);
}

.toast--error .ico {
  color: var(--red-text);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

/* ---------- Tablet a telefon ---------- */
@media (max-width: 960px) {
  .tabs__in {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tab {
    white-space: normal;
  }

  .row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas: "thumb main price" "acts acts acts";
  }

  .row__thumb {
    grid-area: thumb;
    width: 96px;
  }

  .row__main {
    grid-area: main;
  }

  .row__price {
    grid-area: price;
  }

  .row__acts {
    grid-area: acts;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .top__in {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-block: 10px;
  }

  .top__logo img {
    width: 120px;
  }

  .top__title {
    padding-left: 14px;
    font-size: 14px;
  }

  .top__acts {
    order: 3;
    width: 100%;
    margin: 0 -12px;
    overflow-x: auto;
  }

  .top__link {
    font-size: 14.5px;
    white-space: nowrap;
  }

  .tabs {
    position: static;
  }

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

  .tab {
    min-height: 48px;
    padding: 0 12px;
    font-size: 14.5px;
  }

  .tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .row {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "thumb main" "price price" "acts acts";
    gap: 10px 14px;
  }

  .row__thumb {
    width: 84px;
  }

  .row__price {
    text-align: left;
  }

  .row__acts {
    justify-content: flex-start;
  }

  .row__acts .abtn {
    flex: 1;
  }

  .head .abtn--primary {
    width: 100%;
  }

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

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

  .param .fld__input:nth-child(2) {
    grid-row: 2;
  }

  .bar .abtn--primary {
    flex: 1;
  }

  .toasts {
    bottom: 96px;
  }
}
