/* MyPadelGear. Põhjamaine ajakirjalik kujundus: soe paberivärv, tume tekst,
   palju õhku, õhukesed jooned ja rahulik ilmumine kerimisel. */

:root {
  --paper: #f3f0e9;
  --paper-deep: #ebe7dd;
  --ink: #1c1b18;
  --muted: #706b61;
  --line: #d8d2c5;
  --forest: #2f4a38;
  --error: #8a3b2c;

  --measure: 34rem;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 11vw, 168px);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 8.5vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0; max-width: var(--measure); }

a { color: inherit; }

/* Ruudustik */

.wrap {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.5vw, 32px);
  row-gap: 0;
}

main { flex: 1; }

section { padding-block: var(--section); }

section + section { border-top: 1px solid var(--line); }

/* Päis */

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 40px);
  font-size: .85rem;
  letter-spacing: .04em;
}

.top nav a, .top nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease;
}

.top nav a:hover, .top nav button:hover { color: var(--ink); }

/* Väiksed sildid ja abitekst */

.label {
  margin: 0 0 clamp(28px, 4vw, 48px);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

.small { font-size: .875rem; }

/* Avaleht */

.hero { padding-block: clamp(56px, 9vw, 120px) clamp(64px, 10vw, 140px); }

.hero h1 { grid-column: 1 / span 9; }

.hero .intro {
  grid-column: 7 / span 5;
  margin-top: clamp(24px, 3.5vw, 48px);
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero .actions {
  grid-column: 1 / span 6;
  margin-top: clamp(36px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.hero figure {
  grid-column: 10 / span 3;
  grid-row: 1 / span 3;
  margin: 0;
  align-self: start;
  justify-self: end;
  width: min(100%, 13rem);
  opacity: .9;
}

.hero figure img { width: 100%; height: auto; display: block; }

.hero .aside {
  grid-column: 1 / span 5;
  margin-top: clamp(28px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

/* Nupud ja lingid */

.button {
  display: inline-block;
  padding: .8rem 1.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.button:hover { background: var(--ink); color: var(--paper); }
.button:disabled { opacity: .45; cursor: default; }
.button.solid { background: var(--ink); color: var(--paper); }
.button.solid:hover { background: var(--forest); border-color: var(--forest); }

.quiet {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}

.quiet:hover { color: var(--ink); border-color: var(--ink); }

/* Sammud */

.steps h2 { grid-column: 1 / span 7; margin-bottom: clamp(36px, 5vw, 64px); }

.steps ol {
  grid-column: 1 / span 12;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps .no {
  grid-column: 1 / span 2;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  padding-top: .3rem;
}

.steps h3 { grid-column: 3 / span 4; }

.steps p { grid-column: 8 / span 5; color: var(--muted); }

/* Tiimile */

.team .label {
  grid-column: 1 / span 2;
  margin: 0;
  padding-top: .5rem;
}

.team .statement {
  grid-column: 3 / span 9;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: none;
}

.team .body {
  grid-column: 7 / span 5;
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--muted);
}

.team .actions { grid-column: 7 / span 5; margin-top: 32px; }

/* Märkus tootmisest */

.made h2 { grid-column: 1 / span 5; }

.made .body {
  grid-column: 7 / span 5;
  display: grid;
  gap: 20px;
  color: var(--muted);
}

/* Konto */

.account { padding-block: clamp(48px, 7vw, 96px); }

.account h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); grid-column: 1 / span 12; }

.panel { grid-column: 1 / span 6; }

.panel-wide { grid-column: 1 / span 9; }

.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}

.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--ink); }

form { display: grid; gap: 24px; justify-items: start; }

form.row { grid-template-columns: 1fr auto; align-items: end; gap: 20px; }

label {
  display: grid;
  gap: 6px;
  width: 100%;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  transition: border-color .25s ease;
}

input:hover { border-color: var(--muted); }
input:focus { outline: none; border-color: var(--ink); }

input::placeholder { color: #a8a298; }

.hint {
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: 0;
  text-transform: none;
}

.section-head {
  grid-column: 1 / span 12;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(56px, 7vw, 96px) 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 { font-size: 1.15rem; letter-spacing: -0.01em; }

.list {
  grid-column: 1 / span 12;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.list li span:first-child { flex: 0 0 auto; }
.list li span:nth-child(2) { flex: 1; }

.thumb {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: #fff;
}

.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.list .when { color: var(--muted); font-size: .85rem; }

.empty { grid-column: 1 / span 12; color: var(--muted); padding: 6px 0; }

.error { grid-column: 1 / span 12; color: var(--error); margin-top: 20px; }

.note { grid-column: 1 / span 12; color: var(--muted); font-size: .9rem; }

/* Toode */

.product { margin-top: clamp(32px, 5vw, 64px); align-items: start; }

.product + .product { margin-top: clamp(64px, 9vw, 120px); }

.product-image {
  grid-column: 1 / span 6;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.product-image img { width: 100%; height: auto; display: block; }

.product-details { grid-column: 8 / span 5; }

.product-details h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.product-details .summary { margin-top: 14px; color: var(--muted); }

.product-details .price {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.product-details .description { margin-top: 14px; font-size: .95rem; }

.field-label {
  margin: clamp(28px, 4vw, 40px) 0 12px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.field-label .chosen { color: var(--ink); letter-spacing: .04em; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }

.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.swatch:hover { border-color: var(--muted); }

.swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink);
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }

.product-details .button { margin-top: clamp(28px, 4vw, 40px); }
.product-details .small { margin-top: 14px; }

/* Disainer */

.size-option {
  min-width: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

.size-option:hover { color: var(--ink); border-color: var(--muted); }
.size-option.active { color: var(--ink); border-color: var(--ink); }

.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file { display: inline-block; cursor: pointer; }
.file .button { display: inline-block; }
.file input:focus-visible + .button { outline: 1px solid var(--ink); outline-offset: 3px; }

#studio .product-details > .button { margin-top: clamp(24px, 3vw, 36px); }
#studio #status { margin-top: 14px; }

.stage-column { grid-column: 1 / span 6; align-self: start; }

.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.zone {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  text-align: center;
  cursor: pointer;
}
.zone canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .25s ease;
}
.zone:hover canvas { border-color: var(--muted); }
.zone.active { color: var(--ink); }
.zone.active canvas { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.zone:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

#stage {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
}
#stage.dragging { cursor: grabbing; }
#stage:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.stage-hint { margin-top: 12px; }

.mockups .field-label { margin-top: clamp(20px, 3vw, 32px); }
.mockup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mockup-pair img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }

.add-row, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.add-row + .small { margin-top: 12px; }
.chips:not(:empty) { margin-top: 14px; }
.file input:focus-visible + .size-option { outline: 1px solid var(--ink); outline-offset: 3px; }
.add-row .file {
  display: inline-block;
  width: auto;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.file .size-option { display: inline-block; }

.editor {
  margin-top: 20px;
  padding: 4px 18px 18px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.editor .field-label { margin-top: 18px; }
.editor .chips { margin-top: 0; }
.editor-actions { margin-top: 18px; }
.warn { color: var(--error); margin-top: 14px; }

input[type=range] {
  padding: 0;
  border: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.ink-picker {
  padding: 0;
  overflow: hidden;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  -webkit-appearance: none;
  appearance: none;
}
.ink-picker::-webkit-color-swatch-wrapper { padding: 0; }
.ink-picker::-webkit-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.ink-picker::-moz-color-swatch { border: 0; border-radius: 50%; opacity: 0; }

.order-panel { grid-column: 1 / span 12; }
.order-panel .section-head { margin-top: clamp(48px, 6vw, 80px); }

.order-table { width: 100%; max-width: 44rem; border-collapse: collapse; }
.order-table th {
  padding: 0 16px 10px 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-align: left;
  text-transform: uppercase;
}
.order-table td { padding: 6px 16px 6px 0; vertical-align: bottom; }
.order-table td:first-child { width: 7rem; }
.order-table td[data-label=Number] { width: 5rem; }
.order-table td:last-child { width: 1%; white-space: nowrap; }
.order-add { margin-top: 18px; }
.order-panel .totals .button { margin-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ostukorv */

.totals {
  grid-column: 1 / span 12;
  margin-top: 28px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.total { font-size: 1.25rem; }

.order-line { display: flex; gap: 10px; align-items: center; }

.quantity {
  padding: .35rem .5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}

/* Haldus */

.admin-order {
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
}

.admin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.admin-head h2 { font-size: 1.15rem; letter-spacing: -0.01em; }

.admin-status {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.admin-body {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 20px;
}

.admin-pictures { display: grid; gap: 10px; }

.admin-pictures img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-details { display: grid; gap: 6px; align-content: start; }

.admin-line {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 12px;
  max-width: none;
  font-size: .95rem;
}

.admin-label {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: .18rem;
}

.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.admin-summary { color: var(--muted); margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }

.admin-table th {
  padding: 0 12px 12px 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: inherit;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 16px 12px 16px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.admin-table .number { text-align: right; font-variant-numeric: tabular-nums; }

.admin-table .admin-row-action { text-align: right; padding-right: 0; }

.admin-table .button { padding-block: 8px; white-space: nowrap; }

.admin-table tr.blocked td:not(.admin-row-action) { opacity: .5; }

.admin-email { display: block; overflow-wrap: anywhere; }

.admin-note { display: block; color: var(--muted); font-size: .85rem; }

.admin-note.warn { color: #a3361f; }

@media (max-width: 860px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-pictures { max-width: 12rem; }
  .admin-line { grid-template-columns: 1fr; gap: 2px; }

  /* Tabel muutub kitsal ekraanil kaartideks: iga lahter oma real koos sildiga. */
  .admin-table thead { display: none; }
  .admin-table tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .admin-table td {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-top: .18rem;
  }
  .admin-table .number { text-align: left; }
  .admin-table .admin-row-action { display: block; padding-top: 12px; text-align: left; }
  .admin-table .admin-row-action::before { content: none; }
}

/* Minu andmed */

.details-form {
  grid-column: 1 / span 12;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  align-items: end;
  gap: 20px 24px;
  justify-items: stretch;
}

.details-form button { justify-self: start; grid-column: 1 / -1; }

select {
  width: 100%;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

select:focus { outline: none; border-color: var(--ink); }

@media (max-width: 640px) {
  .details-form { grid-template-columns: 1fr; }
}

/* Kasutaja menüü */

.user-menu { position: relative; }

.user-button {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s ease;
}

.user-button:hover { color: var(--ink); }
.top nav .user-button { gap: .45em; }
.user-button svg { width: 1.35em; height: 1.35em; margin: -.2em 0; }

.user-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 15;
  min-width: 13rem;
  display: grid;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(28, 27, 24, .08);
}

.top nav .user-drop a, .top nav .user-drop button {
  padding: .7rem 1rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.top nav .user-drop a:hover, .top nav .user-drop button:hover { background: var(--paper-deep); }

.user-who {
  padding: .7rem 1rem;
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

/* Teated */

.notes {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(30rem, calc(100vw - 32px));
}

.note-item {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 14px 44px 14px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.note-item.shown { opacity: 1; transform: none; }
.note-item.bad { background: var(--error); border-color: var(--error); }

.note-close {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}

.note-close:hover { opacity: 1; }

/* Google'i nupp: Google'i enda juhise järgi valge taust, hall joon, nende logo */

.google-box { margin-top: clamp(28px, 4vw, 40px); }

.google-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.google-or::before, .google-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: .7rem 1.25rem;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.google-button:hover { background: #f7f8f8; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.google-button:disabled { opacity: .6; cursor: default; }
.google-button svg { width: 18px; height: 18px; flex: none; }

/* Jalus */

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

footer .grid > * { grid-column: span 6; }
footer p { margin: 0; }

/* Ilmumine kerimisel */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}

.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* Kitsas ekraan */

@media (max-width: 560px) {
  .top { padding: 20px 0 16px; }
  .top nav { gap: 20px; font-size: .8rem; }
  .top nav .section-link { display: none; }

  .section-head { display: grid; gap: 8px; }
  form.row { grid-template-columns: 1fr; }
  .list li { flex-wrap: wrap; gap: 8px 16px; }
  .list li span:nth-child(2) { flex: 1 0 60%; }
  .order-table td { padding-right: 10px; }
  .order-table td:first-child { width: 4.5rem; }
  .order-table td[data-label=Number] { width: 3.5rem; }
}

@media (max-width: 860px) {
  .hero h1,
  .hero .intro,
  .hero .actions,
  .hero .aside,
  .steps h2,
  .team .statement,
  .team .body,
  .team .actions,
  .made h2,
  .made .body,
  .team .label,
  .panel,
  .panel-wide,
  .product-image,
  .stage-column,
  .product-details { grid-column: 1 / span 12; }

  .product-details { margin-top: 28px; }

  .hero figure {
    grid-column: 1 / span 12;
    grid-row: auto;
    justify-self: start;
    width: 9rem;
    margin-top: 48px;
  }

  .steps li { row-gap: 10px; }
  .steps .no { grid-column: 1 / span 12; padding-top: 0; }
  .steps h3 { grid-column: 1 / span 12; }
  .steps p { grid-column: 1 / span 12; margin-top: 6px; }

  footer .grid > * { grid-column: 1 / span 12; }
  footer .grid > * + * { margin-top: 10px; }
}
