@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;
  height: 100%;
  background: #f4efe6;
  color: #145a86;
  overflow: hidden;
}

body {
  height: 100dvh;
}

.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;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

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

.mast {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 8%;
  right: 8%;
  text-align: center;
  pointer-events: none;
}

.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, 24px); }

.catalog {
  margin-top: 8px;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.05;
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.leaf {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  appearance: none;
  background-color: #d7ebf8;
  background-position: center 68%;
  background-size: cover;
  background-repeat: no-repeat;
}

.sons { background-image: url("pismo-synoviam.jpg?v=5"); }

.daughters { background-image: url("pismo-docheriam.jpg?v=5"); }

.leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(244, 239, 230, 0.28) 0%,
    rgba(244, 239, 230, 0.05) 28%,
    transparent 46%
  );
}

.leaf:hover { filter: saturate(1.05) brightness(1.03); }

.copy {
  position: absolute;
  z-index: 1;
  top: 132px;
  left: 8%;
  right: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  font-family: "Lemon Milk Pro", "Montserrat Black", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #4eb6ea;
  -webkit-text-fill-color: #4eb6ea;
  text-shadow: 0.04em 0.045em 0.08em rgba(12, 40, 68, 0.55);
}

.press {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #3a2714;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.press svg {
  display: block;
  width: 36px;
  height: 26px;
  overflow: visible;
}

.press path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Планшет */
@media (max-width: 1100px) and (min-width: 801px) {
  .mast { top: 22px; left: 5%; right: 5%; }
  .catalog { font-size: clamp(32px, 3.8vw, 48px); }
  .copy { top: 110px; }
  .title { font-size: clamp(24px, 2.8vw, 36px); }
  .press { font-size: 18px; }
}

/* Телефон */
@media (max-width: 800px) {
  body {
    overflow: auto;
  }

  .back {
    top: 12px;
    left: 14px;
    font-size: 13px;
  }

  .spread {
    grid-template-columns: 1fr;
    height: auto;
  }

  .leaf {
    min-height: 88vh;
    min-height: 88dvh;
  }

  .mast {
    top: 42px;
    left: 6%;
    right: 6%;
  }

  .brand { font-size: clamp(14px, 3.8vw, 18px); }

  .catalog {
    margin-top: 6px;
    font-size: clamp(28px, 8vw, 40px);
  }

  .copy {
    top: 20%;
    left: 6%;
    right: 6%;
  }

  .title {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .press {
    margin-top: 14px;
    font-size: 18px;
    min-height: 48px;
  }
}

/* Узкий телефон */
@media (max-width: 400px) {
  .title { font-size: 24px; }
  .press { font-size: 16px; }
}

/* Телефон лёжа */
@media (max-height: 480px) and (orientation: landscape) {
  .spread { grid-template-columns: 1fr 1fr; height: 100%; }
  .leaf { min-height: 100vh; min-height: 100dvh; }
  .copy { top: 18%; }
  .title { font-size: 22px; }
  .press { margin-top: 8px; font-size: 14px; }
  .mast { top: 10px; }
  .catalog { font-size: 22px; }
}

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