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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.is-locked { overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { margin-top: var(--section-gap); scroll-margin-top: calc(20 * var(--wm)); }

.h2 { font-size: var(--fs-h2); line-height: 1; font-weight: 700; }
.lead { font-size: var(--fs-body); line-height: var(--lh-body); }
.hand { font-family: var(--font-hand); font-size: calc(24 * var(--wm)); line-height: calc(29 * var(--wm)); letter-spacing: -0.05em; font-weight: 400; }

.label {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--wm));
  font-size: calc(14 * var(--wm));
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: calc(19 * var(--wm));
  height: calc(20 * var(--wm));
  background: url("../../assets/icons/subtract.svg") center / contain no-repeat;
}

.card { background: var(--color-white); border-radius: var(--radius-l); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--wm));
  padding: calc(8 * var(--wm)) calc(18 * var(--wm));
  border-radius: var(--radius-l);
  background: var(--color-chip);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 600;
  white-space: nowrap;
}
.chip--red { background: var(--color-red); color: var(--color-white); }

.num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(33 * var(--wm));
  height: calc(33 * var(--wm));
  border-radius: 50%;
  background: var(--color-chip);
  font-size: var(--fs-small);
  font-weight: 600;
}
.num--red { background: var(--color-red); color: var(--color-white); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--wm));
  padding: calc(16 * var(--wm)) calc(22 * var(--wm));
  border-radius: var(--radius-s);
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-body);
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.button:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.button--outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.button--outline:hover { background: var(--color-text); color: var(--color-white); border-color: var(--color-text); }
.button--white { background: var(--color-white); color: var(--color-text); border-color: var(--color-white); }
.button--white:hover { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.button--ghost-white { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.button--ghost-white:hover { background: var(--color-white); color: var(--color-red); }
.button--block { width: 100%; }

.arrows { display: flex; gap: calc(12 * var(--wm)); }
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(46 * var(--wm));
  height: calc(46 * var(--wm));
  border-radius: 50%;
  border: 1px solid var(--color-text);
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.arrow img { width: calc(13 * var(--wm)); height: calc(14 * var(--wm)); }
.arrow--next img { transform: scaleX(-1); }
.arrow:disabled { opacity: 0.5; cursor: default; }
.arrow:not(:disabled):hover { background: var(--color-white); }

.chevron {
  flex: none;
  width: calc(20 * var(--wm));
  height: calc(20 * var(--wm));
  background: url("../../assets/icons/expand-icon.svg") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.is-open > * > .chevron, .is-open > .chevron, [open] > summary .chevron { transform: rotate(180deg); }

.slider {
  display: flex;
  gap: calc(20 * var(--wm));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: none; scroll-snap-align: start; }
@media (hover: hover) { .slider { cursor: grab; } }
.slider.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.slider.is-dragging * { pointer-events: none; }

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

@media (min-width: 768px) {
  .m-only { display: none !important; }
}

@media (max-width: 767px) {
  .d-only { display: none !important; }
  .hand { font-size: calc(22 * var(--wm)); line-height: calc(26 * var(--wm)); }
  .button { padding: calc(18 * var(--wm)) calc(22 * var(--wm)); font-weight: 500; }
  .slider { gap: calc(16 * var(--wm)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
}
