@import url("motion.css");
@import url("atmosphere.css");

:root {
  --blue: #7acbd6;
  --peach: #f4b19a;
  --mint: #87caa4;
  --support-mint: #bbe0d7;
  --support-peach: #f5d4c4;
  --support-green: #bedebd;
  --charcoal: #414141;
  --white: #ffffff;
  --black: #000000;
  --off: #f6f4f1;
  --product-stage: #f5f4f0;
  --line: #e6e2dc;
  --muted: #6b6b6b;
  --danger: #c45c4a;
  --ok: #2f8a5a;
  --header-h: 84px;
  --promo-h: 36px;
  --max: 1280px;
  --radius: 18px;
  --pill: 999px;
  --ease: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family: Archivo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.title {
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.15;
}

.highlight {
  font-weight: 600;
}

.h1 {
  font-size: clamp(40px, 5vw, 56px);
}

.h2 {
  font-size: clamp(32px, 4vw, 40px);
}

.h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.h4 {
  font-size: clamp(18px, 2vw, 24px);
}

.body {
  font-size: 15px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn svg {
  width: 12px;
  height: 12px;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #222;
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--off);
}

.btn-blue {
  background: var(--blue);
  color: var(--black);
}

.btn-blue:hover {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--black);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.page-hero {
  background: var(--off) url("../assets/images/banner-perfume.jpg") center / cover;
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.42) 100%),
    radial-gradient(ellipse at 12% 88%, rgba(122, 203, 214, 0.55) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 12%, rgba(244, 177, 154, 0.4) 0%, transparent 44%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .crumbs,
.page-hero .crumbs a {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .title {
  margin-bottom: 12px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--black);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--charcoal);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: var(--pill);
  background: var(--off);
  overflow: hidden;
}

.qty button,
.qty input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: 0;
  background: transparent;
}

.qty input {
  width: 48px;
}

.price {
  font-weight: 600;
}

.price s {
  color: var(--danger);
  font-weight: 400;
  margin-left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 1100px) {
  .grid-5,
  .vowels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-5,
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .vowels {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .vowels {
    grid-template-columns: 1fr;
  }

  .h1 { font-size: 32px; }
  .btn { width: 100%; justify-content: center; }
}
