/* Home extras */
.urgency {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.countdown {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 61, 110, 0.08);
  border: 1px solid rgba(255, 61, 110, 0.18);
  text-align: right;
}

.countdown__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.countdown__time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--bloom-deep);
}

@media (max-width: 820px) {
  .urgency {
    justify-items: start;
    width: 100%;
  }

  .countdown {
    text-align: left;
  }
}

/* Inner pages */
.page-hero {
  padding: calc(var(--topbar) + 48px) 0 36px;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 8px 0 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumbs a:hover {
  color: var(--bloom);
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.5;
}

.nav a.is-current {
  color: var(--bloom);
}

.nav a.is-current::after {
  transform: scaleX(1);
}

.cart-trigger {
  text-decoration: none;
}

/* Catalog layout */
.page-hero--catalog {
  padding-bottom: 28px;
}

.page-hero--catalog h1 {
  background: linear-gradient(90deg, var(--ink) 0%, #244438 55%, var(--bloom-deep) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}

.catalog-aside {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
  background: rgba(250, 253, 251, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.catalog-aside h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.filter-block + .filter-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-block p {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 10px;
}

.filter-stack {
  display: grid;
  gap: 8px;
}

.filter-stack .filter {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.catalog-aside .btn--block {
  margin-top: 18px;
  width: 100%;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(250, 253, 251, 0.75);
  border: 1px solid var(--line);
}

.catalog-toolbar strong {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.catalog-section + .catalog-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.catalog-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-section__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 4px;
}

.catalog-section__head p {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.catalog-section__head span {
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sort-select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--ink);
}

.catalog-layout .bouquet-grid .bouquet {
  border-radius: 24px;
}

.bouquet-link {
  color: inherit;
}

.bouquet-link:hover h3 {
  color: var(--bloom);
}

/* Product page */
.product-page {
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
}

.page-hero--product {
  padding-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--topbar) + 16px);
}

.product-main-img {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d9e5dd;
  box-shadow: var(--shadow);
  position: relative;
}

.product-main-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(11, 26, 20, 0.18));
  pointer-events: none;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.25s ease;
}

.product-main-img img.is-switching {
  opacity: 0.35;
}

.product-main-img:hover img {
  transform: scale(1.04);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-thumbs button {
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  background: #d9e5dd;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs button.is-active,
.product-thumbs button:hover {
  border-color: var(--bloom);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 61, 110, 0.16);
}

.product-info {
  background: rgba(250, 253, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.product-info .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(47, 158, 111, 0.12);
  color: var(--leaf);
}

.pill--bloom {
  background: rgba(255, 61, 110, 0.12);
  color: var(--bloom-deep);
}

.product-info h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.product-price.is-pulse {
  animation: pricePulse 0.35s var(--ease-out);
}

.product-size-hint {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.product-desc {
  color: var(--muted);
  margin-bottom: 0;
}

.size-picker,
.qty-picker {
  margin-bottom: 18px;
}

.size-picker p,
.qty-picker p,
.composition h3,
.product-about h2 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 10px;
}

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

.size-options button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.size-options__label {
  display: block;
  font-size: 1.05rem;
}

.size-options button small {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.size-options button em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.size-options button.is-active,
.size-options button:hover {
  border-color: var(--bloom);
  background: rgba(255, 61, 110, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 61, 110, 0.1);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.qty-control button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 700;
}

.qty-control button:hover {
  background: var(--mist);
}

.qty-control span {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.product-actions .btn {
  flex: 1;
  min-width: 140px;
}

.product-perks {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(47, 158, 111, 0.08);
  border: 1px solid rgba(47, 158, 111, 0.16);
}

.product-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.product-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 158, 111, 0.18);
}

.product-about {
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-about .product-desc {
  line-height: 1.6;
}

.composition ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composition li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}

.related {
  margin-top: 72px;
}

.related__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.related h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.product-mobile-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 20px;
  background: rgba(11, 26, 20, 0.94);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(11, 26, 20, 0.3);
  border: 1px solid rgba(250, 253, 251, 0.1);
  backdrop-filter: blur(10px);
}

.product-mobile-bar strong {
  display: block;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.product-mobile-bar span {
  font-size: 0.78rem;
  color: rgba(250, 253, 251, 0.7);
}

@keyframes pricePulse {
  from { transform: scale(0.97); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

/* Cart / checkout */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.page-hero--cart h1 {
  background: linear-gradient(90deg, var(--ink) 0%, #244438 60%, var(--bloom-deep) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel {
  background: rgba(250, 253, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.panel h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cart-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-panel__head h2 {
  margin-bottom: 0;
}

.cart-panel__head span {
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cart-lines {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--mist-2);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cart-item__media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  width: 104px;
  height: 104px;
  background: #d9e5dd;
}

.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.cart-item:hover img {
  transform: scale(1.05);
}

.cart-item h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.cart-item h3 a:hover {
  color: var(--bloom);
}

.cart-item .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cart-item .line-total {
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 96px;
}

.cart-item .line-total strong {
  font-size: 1.15rem;
}

.cart-item .remove {
  border: 0;
  background: transparent;
  color: var(--bloom-deep);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cart-item .remove:hover {
  color: var(--bloom);
}

.cart-summary {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
}

.cart-summary .btn + .btn {
  margin-top: 10px;
}

.cart-summary__perks {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(47, 158, 111, 0.08);
  border: 1px solid rgba(47, 158, 111, 0.16);
}

.cart-summary__perks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart-summary__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

.summary-row.total {
  margin: 14px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.empty-cart {
  text-align: center;
  padding: 56px 24px;
  max-width: 520px;
  margin: 0 auto 40px;
}

.empty-cart__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 61, 110, 0.1);
  color: var(--bloom-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 110, 0.12);
}

.empty-cart h2 {
  margin-bottom: 8px;
}

.empty-cart p {
  color: var(--muted);
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--bloom);
  outline-offset: 1px;
}

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

.slots label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.slots input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slots label:has(input:checked),
.slots label:hover {
  border-color: var(--bloom);
  background: rgba(255, 61, 110, 0.06);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.check-row input {
  margin-top: 3px;
}

.success-card {
  max-width: 640px;
  margin: 40px auto 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.success-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 158, 111, 0.15);
  color: var(--leaf);
  font-size: 2rem;
  font-weight: 800;
}

.content-page {
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.page-hero--delivery h1,
.page-hero--about h1,
.page-hero--contacts h1 {
  background: linear-gradient(90deg, var(--ink) 0%, #244438 60%, var(--leaf) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form {
  padding: 28px;
}

.contact-form__head {
  margin-bottom: 4px;
}

.contact-form__head h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-form__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form .field input:hover,
.contact-form .field select:hover,
.contact-form .field textarea:hover {
  border-color: rgba(255, 61, 110, 0.35);
}

.contact-form .btn {
  justify-self: start;
  min-width: 220px;
}

.contacts-aside {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
}

.contact-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card--link:hover {
  border-color: rgba(255, 61, 110, 0.35);
}

.contact-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf);
}

.about-panel {
  padding: 28px;
}

.about-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(47, 158, 111, 0.08);
  border: 1px solid rgba(47, 158, 111, 0.16);
}

.about-path span {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
}

.about-path span[aria-hidden="true"] {
  color: var(--leaf);
  opacity: 0.8;
}

.about-media {
  border-radius: 22px;
  overflow: hidden;
  margin: 8px 0 26px;
  aspect-ratio: 16 / 10;
  background: #d9e5dd;
  box-shadow: var(--shadow-soft);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.about-media:hover img {
  transform: scale(1.03);
}

.content-prose .about-promises {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.about-promises li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mist-2);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-promises li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.about-promises strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.about-promises span {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-aside {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
}

.delivery-panel {
  padding: 28px;
}

.delivery-steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.delivery-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: var(--mist-2);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.delivery-steps li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.delivery-steps__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ink), #1f4034);
  color: var(--white);
  font-weight: 800;
}

.delivery-steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.delivery-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.delivery-price {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: rgba(255, 61, 110, 0.06);
  border: 1px solid rgba(255, 61, 110, 0.16);
}

.delivery-price > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.delivery-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bloom-deep);
}

.delivery-price span {
  font-weight: 700;
  color: var(--ink-soft);
}

.delivery-price p {
  margin: 0;
  color: var(--muted);
}

.delivery-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.delivery-slots span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.delivery-aside {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
}

.contact-card--accent {
  background: linear-gradient(145deg, rgba(47, 158, 111, 0.14), rgba(250, 253, 251, 0.95));
  border-color: rgba(47, 158, 111, 0.22);
}

.delivery-aside .btn + .btn {
  margin-top: 0;
}

.content-prose {
  display: grid;
  gap: 16px;
}

.content-prose h2 {
  font-size: 1.6rem;
}

.content-prose p,
.content-prose li {
  color: var(--muted);
}

.content-prose ul {
  list-style: disc;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-card a:hover {
  color: var(--bloom);
}

@media (max-width: 980px) {
  .catalog-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-layout,
  .product-grid,
  .cart-layout,
  .checkout-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .catalog-aside,
  .product-gallery,
  .delivery-aside,
  .about-aside,
  .contacts-aside,
  .cart-summary {
    position: static;
  }

  .slots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item__media {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .cart-item .line-total {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }

  .cart-item .line-total::before {
    content: "Сумма";
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
  }

  .product-info {
    padding: 20px;
  }

  .size-options {
    grid-template-columns: 1fr;
  }

  .product-actions .btn {
    width: 100%;
  }

  .product-mobile-bar {
    display: flex;
  }

  .product-page {
    padding-bottom: 110px;
  }

  body:has(.product-mobile-bar) {
    padding-bottom: 88px;
  }
}
