:root {
  --pink: #eb5476;
  --pink-soft: #fff0f3;
  --text: #2c2927;
  --muted: #716a66;
  --border: #f1d9dc;
  --paper: #fffdfc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 221, 227, 0.42), transparent 340px),
    linear-gradient(180deg, #ffffff 0%, #fff8f7 82%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 18px;
}

.data-error {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: min(520px, calc(100% - 28px));
  border: 1px solid #f2b9c3;
  border-radius: 8px;
  padding: 12px 14px;
  color: #8c2440;
  background: #fff0f3;
  box-shadow: 0 12px 28px rgba(80, 50, 42, 0.14);
  font-size: 14px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.header {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo span {
  display: block;
  color: var(--pink);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 44px;
  line-height: 0.85;
}

.logo span::after {
  content: "♥";
  margin-left: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  vertical-align: 65%;
}

.logo small {
  display: block;
  margin: 7px 0 0 45px;
  color: #77706f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
}

.logo img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav a {
  position: relative;
  padding: 28px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav .active {
  color: var(--pink);
}

.nav .active::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--pink);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #e94d70, #df436b);
  box-shadow: 0 12px 28px rgba(223, 67, 107, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 42px;
  min-height: 370px;
  padding: 48px 18px 44px 14px;
}

.handwrite {
  margin: 0 0 16px;
  color: #312c2c;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 28px;
}

.handwrite span {
  color: var(--pink);
  font-family: Arial, sans-serif;
  font-size: 16px;
}

h1,
.benefits > h2,
.apply-box h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
}

h1 strong {
  display: block;
  margin-top: 10px;
  color: var(--pink);
  font-weight: 500;
}

.intro {
  max-width: 520px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.gift-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 560px);
  max-width: 560px;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f2b9c3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(223, 67, 107, 0.06);
}

.gift-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
}

.gift-box p {
  margin: 0;
  color: #5d5551;
  font-size: 14px;
  line-height: 1.45;
}

.gift-box b {
  color: var(--text);
  font-size: 14px;
}

.gift-icon,
.ship-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid var(--pink);
  border-radius: 9px;
  background: var(--pink-soft);
}

.gift-icon::before,
.gift-icon::after,
.ship-icon::before,
.ship-icon::after {
  position: absolute;
  background: var(--pink);
  content: "";
}

.gift-icon::before {
  top: 0;
  left: 14px;
  width: 2px;
  height: 100%;
}

.gift-icon::after {
  top: 13px;
  left: 0;
  width: 100%;
  height: 2px;
}

.ship-icon {
  border-radius: 50%;
}

.ship-icon::before {
  left: 8px;
  top: 12px;
  width: 20px;
  height: 10px;
  border-radius: 2px;
  background: transparent;
  border: 2px solid var(--pink);
}

.ship-icon::after {
  left: 10px;
  top: 23px;
  width: 16px;
  height: 2px;
}

.photo-wall {
  position: relative;
  min-height: 330px;
}

.photo-wall p {
  position: absolute;
  top: 28px;
  right: 4px;
  margin: 0;
  color: #7d6d68;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  transform: rotate(-11deg);
}

.polaroid {
  position: absolute;
  padding: 8px 8px 18px;
  background: #ffffff;
  box-shadow: 0 12px 18px rgba(50, 30, 25, 0.13);
}

.polaroid::before {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  background: rgba(244, 143, 157, 0.52);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.polaroid span,
.product-image,
.mini-photos span {
  display: block;
  background-repeat: no-repeat;
}

.polaroid span {
  width: 180px;
  height: 250px;
  background-size: 1250px auto;
}

.photo-1 {
  left: 4%;
  top: 28px;
  transform: rotate(-7deg);
}

.photo-2 {
  left: 31%;
  top: 18px;
  transform: rotate(-2deg);
}

.photo-3 {
  left: 58%;
  top: 12px;
  transform: rotate(4deg);
}

.photo-4 {
  right: 0;
  top: 112px;
  transform: rotate(8deg);
}

.catalog {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 18px;
  padding: 26px 16px 20px;
  border: 1px solid #f0e2e0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 35px rgba(80, 50, 42, 0.05);
}

.filters h2,
.filters h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-list {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid #f0e3e1;
  list-style: none;
}

.category-list li {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  padding: 0 10px;
  color: #524d4a;
  font-size: 14px;
}

.category-list .selected {
  color: var(--pink);
  background: var(--pink-soft);
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0e3e1;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0;
  color: #494542;
  font-size: 14px;
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--pink);
}

.swatches {
  display: flex;
  gap: 12px;
}

.swatches button {
  width: 27px;
  height: 27px;
  border: 1px solid #ddd2ce;
  border-radius: 50%;
}

.clear-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid #f1d8dc;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 20px;
}

.products-head h2 {
  margin: 0;
  font-size: 21px;
}

.sort,
.sort label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort label {
  color: #6c6663;
  font-size: 14px;
}

select,
.view {
  min-height: 44px;
  border: 1px solid #eee0df;
  border-radius: 8px;
  background: #ffffff;
}

select {
  min-width: 176px;
  padding: 0 16px;
}

.view {
  width: 46px;
  color: #504a47;
}

.view.active {
  color: var(--pink);
  background: var(--pink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee2e0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(60, 35, 30, 0.04);
}

.product-card h3 {
  margin: 15px 14px 12px;
  font-size: 16px;
}

.product-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 14px 17px;
}

.product-card p span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #5c5754;
  background: #f8f4f2;
  font-size: 12px;
}

.choose-button {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  align-self: center;
  margin: auto auto 17px;
  border-radius: 999px;
  padding: 0 14px 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f25f7f, #df436b);
  box-shadow: 0 10px 20px rgba(223, 67, 107, 0.18);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.choose-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
  content: "";
  transform: translateX(-115%);
  transition: transform 0.55s ease;
}

.choose-button span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink);
  background: #ffffff;
  transition: transform 0.2s ease;
}

.choose-button:focus-visible {
  background: linear-gradient(135deg, #f56b88, #d93763);
  box-shadow: 0 14px 26px rgba(223, 67, 107, 0.28);
  transform: translateY(-2px);
}

.choose-button:focus-visible::before {
  transform: translateX(115%);
}

.choose-button:focus-visible span {
  transform: translateX(3px);
}

.choose-button:active {
  box-shadow: 0 7px 14px rgba(223, 67, 107, 0.22);
  transform: translateY(0) scale(0.98);
}

@media (hover: hover) {
  .choose-button:hover {
    background: linear-gradient(135deg, #f56b88, #d93763);
    box-shadow: 0 14px 26px rgba(223, 67, 107, 0.28);
    transform: translateY(-2px);
  }

  .choose-button:hover::before {
    transform: translateX(115%);
  }

  .choose-button:hover span {
    transform: translateX(3px);
  }
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 0;
  background: #fff6f7;
  touch-action: pan-y;
}

.product-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.product-slide {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  padding: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  background-color: transparent;
}

.carousel-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(42, 32, 34, 0.34);
  box-shadow: 0 8px 18px rgba(40, 28, 30, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
  backdrop-filter: blur(8px);
}

.carousel-button.prev {
  left: 12px;
}

.carousel-button.next {
  right: 12px;
}

.carousel-button::before {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.carousel-button.prev::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.carousel-button.next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

@media (hover: hover) {
  .carousel-button {
    opacity: 0.78;
  }

  .product-image:hover .carousel-button {
    opacity: 1;
  }

  .carousel-button:hover {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(235, 84, 118, 0.86);
    box-shadow: 0 12px 24px rgba(223, 67, 107, 0.28);
    transform: translateY(-50%) scale(1.04);
  }
}

.product-image > button:not(.carousel-button) {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #f5c6ce;
  border-radius: 50%;
  color: var(--pink);
  background: #ffffff;
  font-size: 25px;
  line-height: 1;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 0 14px;
}

.pagination button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.pagination .current {
  color: #ffffff;
  background: var(--pink);
  box-shadow: 0 8px 18px rgba(223, 67, 107, 0.26);
}

.benefits {
  margin-top: 18px;
  padding: 24px 26px 20px;
  border: 1px solid #f3d7db;
  border-radius: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 239, 242, 0.72), rgba(255, 255, 255, 0.92));
}

.benefits > h2 {
  margin: 0 0 26px;
  font-size: clamp(28px, 3vw, 38px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.benefit-grid article {
  min-height: 190px;
  padding: 22px 14px 16px;
  border: 1px solid #f0d7db;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.benefit-icon {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}

.benefit-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.benefit-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}

.benefit-grid p {
  margin: 0;
  color: #504946;
  font-size: 13px;
  line-height: 1.5;
}

.apply-box {
  display: grid;
  grid-template-columns: 360px 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
  padding: 16px 24px;
  border: 1px solid #f2bdc6;
  border-radius: 10px;
  text-align: left;
}

.mini-photos {
  position: relative;
  height: 118px;
}

.mini-photos span {
  position: absolute;
  top: 5px;
  width: 156px;
  height: 105px;
  border: 7px solid #ffffff;
  background-size: 980px auto;
  box-shadow: 0 9px 18px rgba(65, 37, 33, 0.12);
}

.mini-1 {
  left: 16px;
  transform: rotate(-5deg);
}

.mini-2 {
  left: 150px;
  transform: rotate(5deg);
}

.apply-box .handwrite {
  margin-bottom: 6px;
  font-size: 24px;
}

.apply-box h2 {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 26px;
}

.apply-box p:last-child {
  margin: 0;
  color: #5d5551;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 18px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 4px;
}

.footer p {
  margin: 0;
  color: #4e4946;
  font-size: 13px;
}

.footer div {
  display: flex;
  gap: 16px;
}

.footer a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #211f1e;
}

.footer svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1100px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .product-grid,
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apply-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mini-photos {
    width: min(360px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 540px);
    padding-top: 18px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 76px;
  }

  .logo {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(241, 217, 220, 0.9);
    background: rgba(255, 253, 252, 0.9);
    box-shadow: 0 8px 22px rgba(80, 50, 42, 0.07);
    backdrop-filter: blur(14px);
  }

  .logo span,
  .logo small {
    width: min(100% - 28px, 540px);
    margin-right: auto;
    margin-left: auto;
  }

  .logo span {
    font-size: 36px;
  }

  .logo small {
    padding-left: 34px;
    font-size: 9px;
    letter-spacing: 4px;
  }

  .nav {
    gap: 20px;
    padding-bottom: 2px;
  }

  .nav a {
    padding: 8px 0 12px;
    font-size: 12px;
  }

  .button {
    width: 100%;
  }

  .choose-button {
    width: calc(100% - 28px);
    justify-content: center;
    margin: auto 14px 17px;
  }

  .hero {
    gap: 18px;
    padding: 34px 0 20px;
  }

  .filters {
    display: none;
  }

  .products-head,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gift-box {
    grid-template-columns: 1fr 1fr;
  }

  .photo-wall {
    min-height: 360px;
  }

  .polaroid span {
    width: 128px;
    height: 178px;
  }

  .photo-1 { left: 0; top: 10px; }
  .photo-2 { left: 34%; top: 20px; }
  .photo-3 { left: 15%; top: 180px; }
  .photo-4 { right: 0; top: 155px; }

  .products-head {
    display: flex;
    gap: 14px;
  }

  .sort {
    flex-wrap: wrap;
  }

  .product-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits {
    padding: 20px 14px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  .nav {
    gap: 18px;
  }

  .gift-box {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}
