@font-face {
  font-family: "Lemon Milk Pro";
  src: url("fonts/lemon-milk-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Light";
  src: url("fonts/manrope-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #f4efe6;
  color: #145a86;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; }

.back {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 4;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #145a86;
}

.back:hover { color: #0e3f66; }

.back:focus-visible,
.model:focus-visible,
.order:focus-visible {
  outline: 2px solid #4eb6ea;
  outline-offset: 4px;
}

.skyall {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px 20px 10px;
}

.skyall::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -40px;
  right: -40px;
  top: -36px;
  height: 86%;
  background: url("sky.png?v=2") center / cover no-repeat;
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
}

.skyall::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(176, 214, 238, 0) 0%,
    rgba(168, 208, 234, 0.22) 28%,
    rgba(150, 198, 228, 0.2) 46%,
    rgba(244, 239, 230, 0.72) 78%,
    #f4efe6 100%
  );
}

.skyall .mark,
.skyall h1 {
  position: relative;
  z-index: 1;
}

.mark {
  margin: 0;
  font-family: "Lemon Milk Pro", "Montserrat Black", sans-serif;
  font-weight: 700;
  line-height: 1;
  color: #4eb6ea;
  -webkit-text-fill-color: #4eb6ea;
  text-shadow: 0.035em 0.035em 0.09em rgba(0, 0, 0, 0.55);
}

.brand { font-size: clamp(16px, 1.6vw, 22px); }

h1 {
  margin: 8px 0 0;
  font-size: clamp(36px, 4.6vw, 64px);
}

.models {
  display: grid;
  gap: 16px;
  padding: 8px 22px 28px;
}

.models[data-who="women"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.models[data-who="men"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.model {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
  text-decoration: none;
  background: #f7f1e6;
  border: 1px solid rgba(78, 54, 34, 0.18);
  box-shadow: 0 4px 12px rgba(62, 42, 24, 0.05);
}

.model:hover { transform: translateY(-4px); }

.model img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 340px;
  object-fit: contain;
  object-position: center top;
  background: #f4efe6;
}

.model .cap {
  padding: 10px 12px 14px;
  text-align: center;
}

.model .name {
  display: block;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.model .verse {
  display: block;
  margin-top: 4px;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 14px;
}

.card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  padding: 8px 28px 40px;
  align-items: start;
}

.views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.views figure {
  margin: 0;
  background: #f7f1e6;
  border: 1px solid rgba(78, 54, 34, 0.18);
}

.views img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4efe6;
}

.views figcaption {
  padding: 8px 10px 10px;
  text-align: center;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a2714;
}

.facts {
  padding: 22px 22px 26px;
  background: #f7f1e6;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 27px,
    rgba(110, 82, 54, 0.13) 28px
  );
  border: 1px solid rgba(78, 54, 34, 0.18);
  box-shadow: 0 4px 12px rgba(62, 42, 24, 0.05);
}

.facts h2 {
  margin: 0;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
}

.facts .verse {
  margin: 6px 0 0;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 18px;
}

.facts h3 {
  margin: 22px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d675f;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sizes li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.size-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  text-align: center;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #145a86;
  background: #fffdf8;
  border: 1px solid rgba(20, 90, 134, 0.35);
  cursor: pointer;
}

.size-btn:hover,
.size-btn:focus-visible {
  border-color: #4eb6ea;
  outline: none;
}

.size-btn.is-on {
  background: #4eb6ea;
  border-color: #4eb6ea;
  color: #fff;
}

.price {
  margin: 0;
  font-family: "Lemon Milk Pro", "Montserrat Black", sans-serif;
  font-size: 28px;
  color: #4eb6ea;
  -webkit-text-fill-color: #4eb6ea;
  text-shadow: 0.03em 0.03em 0.08em rgba(0, 0, 0, 0.45);
}

.price small {
  display: block;
  margin-top: 6px;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #145a86;
  -webkit-text-fill-color: #145a86;
  text-shadow: none;
}

.ship {
  margin: 8px 0 0;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.order {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  padding: 12px 26px 13px;
  border: 1.5px solid #3a2714;
  background: transparent;
  color: #3a2714;
  cursor: pointer;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.order:hover {
  background: #3a2714;
  color: #f7f1e6;
}

.order-note {
  margin: 14px 0 0;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.missing {
  padding: 24px;
  font-family: "Manrope Light", "Segoe UI", sans-serif;
  font-size: 20px;
}

/* Планшет широкий */
@media (max-width: 1100px) and (min-width: 901px) {
  .models[data-who="women"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .models[data-who="men"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model { min-height: 0; }
  .model img { height: 300px; }
  h1 { font-size: clamp(32px, 4vw, 48px); }
}

/* Планшет / большой телефон */
@media (max-width: 900px) {
  .back {
    top: 12px;
    left: 14px;
    font-size: 13px;
  }

  .skyall {
    padding: 36px 14px 8px;
  }

  .card { grid-template-columns: 1fr; padding: 8px 14px 32px; }

  .models {
    gap: 12px;
    padding: 8px 14px 28px;
  }

  .models[data-who="women"],
  .models[data-who="men"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model { min-height: 0; }
  .model img { height: 260px; }

  h1 { font-size: clamp(28px, 7vw, 40px); }

  .order {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 16px;
  }
}

/* Узкий телефон */
@media (max-width: 420px) {
  .models[data-who="women"],
  .models[data-who="men"] {
    grid-template-columns: 1fr;
  }

  .model img { height: 320px; }

  .order-note { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .model:hover { transform: none; }
}
