:root {
  --bg: #fce6f3;
  --accent: #e5098a;
  --berry: #861653;
  --ink: #301522;
  --white: #ffffff;
  --muted: #6e465a;
  --button-gradient: linear-gradient(135deg, #e5098a 0%, #b41468 52%, #861653 100%);
  --button-gradient-hover: linear-gradient(135deg, #d90881 0%, #a61160 52%, #771249 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fff4fa 0%, var(--bg) 42%, #fbe1ef 100%);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-shell {
  display: grid;
  width: min(680px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(14px, 2.2svh, 28px);
  margin: 0 auto;
  padding: calc(clamp(20px, 4vh, 48px) + env(safe-area-inset-top)) max(0px, env(safe-area-inset-right)) calc(clamp(16px, 3vh, 36px) + env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left));
}

main { display: contents; }

.hero,
.products,
.contacts { width: 100%; }

.hero {
  padding: 0 8px;
  text-align: center;
}

.logo-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid rgba(134, 22, 83, .18);
  border-radius: 50%;
  background: var(--white);
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 6px;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero__tagline {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.hero__copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.products__heading {
  margin-bottom: 12px;
  text-align: center;
}

.products__title {
  margin: 0 0 4px;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.products__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.product-card {
  display: block;
  width: 100%;
  height: clamp(180px, 22svh, 250px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(134, 22, 83, .07);
  transition: transform .18s ease;
}

.product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card--pink img,
.product-card--brown-sneakers img { object-position: center 38%; }
.product-card--white img { object-position: center 42%; }
.product-card--brown-shoes img { object-position: center center; }

.product-card:hover {
  transform: scale(1.02);
}

.product-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.contacts { padding: 0 0 max(14px, env(safe-area-inset-bottom)); }

.section-heading {
  width: 100%;
  margin: 0 0 14px;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.link-list {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 10px 17px 10px 14px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--button-gradient);
  box-shadow: 0 6px 14px rgba(134, 22, 83, .15);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-link__icon {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 8px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, .13);
}

.contact-link__text { min-width: 0; }

.contact-link strong,
.contact-link small { display: block; }

.contact-link strong {
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.contact-link small {
  overflow: hidden;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
  opacity: .82;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-link__arrow {
  width: 24px;
  height: 24px;
  padding: 1px;
  color: var(--white);
  transition: transform .18s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  background: var(--button-gradient-hover);
  box-shadow: 0 8px 16px rgba(134, 22, 83, .2);
}

.contact-link:hover .contact-link__arrow { transform: translateX(2px); }

.contact-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(134, 22, 83, .14);
}

.contact-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.reveal { animation: reveal-up .45s both ease-out; }
.reveal--2 { animation-delay: .06s; }
.reveal--3 { animation-delay: .12s; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 639px) {
  .page-shell {
    width: min(680px, calc(100% - 32px));
    gap: 14px;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .hero { padding-bottom: 0; }

  .logo-wrap {
    width: 102px;
    height: 102px;
    margin-bottom: 12px;
  }

  h1 { font-size: clamp(38px, 11vw, 44px); }
  .hero__tagline { font-size: 17px; }
  .hero__copy { font-size: 17px; }

  .section-heading { margin-bottom: 12px; }
  h2 { font-size: 28px; }

  .link-list { gap: 10px; }

  .contact-link {
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    min-height: 70px;
    gap: 12px;
    padding: 9px 14px 9px 12px;
    border-radius: 15px;
  }

  .contact-link__icon {
    width: 48px;
    height: 48px;
    padding: 7px;
  }

  .contact-link strong { font-size: 17px; }
  .contact-link small { font-size: 13px; }

  .contact-link__arrow {
    width: 24px;
    height: 24px;
  }

  .products__heading { margin-bottom: 10px; }
  .products__title { font-size: clamp(21px, 6vw, 24px); }
  .products__subtitle { font-size: 14px; }
  .products__grid { gap: 4px; }
  .product-card { height: clamp(115px, 16svh, 155px); }

}

@media (max-height: 900px) and (min-width: 700px) {
  .page-shell {
    gap: 8px;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .hero { padding-bottom: 0; }

  .logo-wrap {
    width: 78px;
    height: 78px;
    margin-bottom: 5px;
    padding: 3px;
  }

  h1 {
    margin-bottom: 4px;
    font-size: 38px;
    line-height: 1.05;
  }

  .hero__tagline {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.25;
  }

  .hero__copy {
    font-size: 14px;
    line-height: 1.25;
  }

  .section-heading { margin-bottom: 8px; }
  h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .link-list { gap: 7px; }

  .contact-link {
    min-height: 62px;
    padding: 8px 14px;
  }

  .contact-link__icon {
    width: 46px;
    height: 46px;
    padding: 6px;
  }

  .products__heading { margin-bottom: 8px; }
  .products__title {
    margin-bottom: 3px;
    font-size: 25px;
    line-height: 1.05;
  }

  .products__subtitle {
    font-size: 13px;
    line-height: 1.2;
  }

  .products__grid { gap: 5px; }
  .product-card { height: 155px; }

  .contact-link strong { font-size: 17px; }
  .contact-link small { font-size: 13px; }

}

@media (min-width: 700px) {
  .contacts { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (min-height: 901px) and (min-width: 640px) {
  .logo-wrap { margin-bottom: 16px; }
  .section-heading { margin-bottom: 16px; }
  .link-list { gap: 14px; }

}

@media (max-height: 699px) {
  .page-shell {
    align-content: start;
    gap: 8px;
  }
}

@media (max-width: 359px) {
  .page-shell { width: calc(100% - 24px); }

  .contact-link {
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 9px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .contact-link__icon {
    width: 46px;
    height: 46px;
    padding: 6px;
  }

  .products__grid { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .product-card:hover { transform: none; }
}
