/* Моя талисмания — Nordic Cyber-Minimalism */

:root {
  --bg-deep: #0d1214;
  --bg-stone: #141c1f;
  --bg-elevated: #1a2428;
  --pine: #1e3a34;
  --moss: #2a4a42;
  --frost: #7a9aa3;
  --mist-blue: #8fb0b8;
  --text: #e8eef0;
  --text-mute: #8a9aa2;
  --amber: #f2a93b;
  --amber-hot: #ffb342;
  --border: rgba(180, 210, 215, 0.09);
  --glass: rgba(16, 28, 30, 0.74);
  --glow: 0 0 25px rgba(242, 169, 59, 0.18);
  --glow-strong: 0 0 36px rgba(242, 169, 59, 0.32);
  --cool-glow: 0 0 40px rgba(120, 170, 175, 0.12);
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Syne", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 10% 20%, rgba(30, 58, 52, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 80%, rgba(42, 74, 66, 0.3), transparent 50%),
    linear-gradient(180deg, #0b1416 0%, var(--bg-deep) 40%, #0a1012 100%);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

/* Atmosphere — cool forest mist */
.forest-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.altai-outline,
.altai-treeband {
  position: absolute;
  left: 0;
  width: 100%;
  fill: none;
}

.altai-outline {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.altai-outline--far {
  bottom: 24vh;
  height: min(26vh, 260px);
  stroke: rgba(150, 185, 190, 0.08);
  stroke-width: 1.15;
  filter: blur(0.4px);
  opacity: 0.65;
}

.altai-outline--near {
  bottom: 18vh;
  height: min(24vh, 220px);
  stroke: rgba(110, 150, 145, 0.11);
  stroke-width: 1.35;
  opacity: 0.55;
}

.altai-treeband {
  bottom: 13vh;
  height: min(12vh, 110px);
  fill: rgba(10, 28, 26, 0.28);
  opacity: 0.5;
  filter: blur(0.3px);
}

.fog {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
}

.fog--1 {
  top: -12%;
  left: -14%;
  background: radial-gradient(circle, rgba(120, 160, 165, 0.38), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.fog--2 {
  bottom: 0;
  right: -18%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(30, 58, 52, 0.7), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.fog--3 {
  top: 40%;
  left: 35%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(143, 176, 184, 0.18), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

.mist-sheet {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 28vh;
  filter: blur(28px);
  opacity: 0.28;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 190, 195, 0.35) 25%,
    rgba(180, 205, 210, 0.22) 50%,
    rgba(140, 175, 180, 0.3) 75%,
    transparent 100%
  );
  animation: mist-drift 28s linear infinite;
}

.mist-sheet--1 {
  top: 22%;
  animation-duration: 32s;
}

.mist-sheet--2 {
  bottom: 18%;
  opacity: 0.2;
  animation-duration: 40s;
  animation-direction: reverse;
}

.pine-canopy {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0 38px,
      rgba(46, 90, 78, 0.55) 38px 39px,
      transparent 39px 78px
    ),
    repeating-linear-gradient(
      22deg,
      transparent 0 52px,
      rgba(28, 55, 50, 0.4) 52px 53px,
      transparent 53px 104px
    );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}

.amber-glow {
  position: absolute;
  top: 16%;
  right: 10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 169, 59, 0.1), transparent 68%),
    radial-gradient(circle at 30% 70%, rgba(120, 170, 175, 0.12), transparent 60%);
  filter: blur(40px);
  animation: pulse-glow 7s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(4%, 6%); }
}

@keyframes mist-drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.1); }
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 18, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.logo:hover {
  color: var(--amber);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--amber);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.cart-btn:hover,
.cart-btn:focus-visible {
  color: var(--amber);
  border-color: rgba(242, 169, 59, 0.35);
  box-shadow: var(--glow);
}

.cart-btn__count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: #121417;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(143, 176, 184, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(30, 58, 52, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 50%, rgba(42, 74, 66, 0.4), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(242, 169, 59, 0.06), transparent 50%),
    linear-gradient(180deg, #0f1a1c 0%, #0c1416 45%, #081012 100%);
}

.hero__forest {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__altai-ridge {
  position: absolute;
  left: 0;
  bottom: clamp(7.5rem, 18vh, 11rem);
  width: 100%;
  height: clamp(90px, 16vh, 180px);
  fill: none;
  stroke: rgba(165, 198, 203, 0.14);
  stroke-width: 1.2;
  opacity: 0.55;
  filter: blur(0.4px);
}

.hero__trees {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  color: #071012;
}

.hero__trees--back {
  height: clamp(160px, 28vh, 280px);
  color: #0f2420;
  opacity: 0.55;
  filter: blur(1.5px);
}

.hero__trees--mid {
  height: clamp(140px, 24vh, 240px);
  color: #0a1a18;
  opacity: 0.75;
}

.hero__trees--front {
  height: clamp(110px, 18vh, 180px);
  color: #050c0d;
  opacity: 0.92;
}

.hero__ground-mist {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(160, 195, 200, 0.08) 40%, rgba(12, 22, 24, 0.85) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(180, 210, 215, 0.16), transparent 70%);
  animation: ground-mist 10s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes ground-mist {
  from { opacity: 0.7; transform: scaleX(1); }
  to { opacity: 1; transform: scaleX(1.04); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 22, 0.15) 0%, transparent 35%, rgba(8, 14, 16, 0.7) 100%),
    radial-gradient(ellipse at center, transparent 15%, rgba(8, 16, 18, 0.5) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  animation: rise 1s var(--ease) both;
  text-shadow: 0 2px 40px rgba(8, 16, 18, 0.65);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 1.5rem;
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--amber);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  margin: 0 auto 2.25rem;
  max-width: 34rem;
  color: var(--text-mute);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
}

.hero__runes {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  letter-spacing: 0.6em;
  color: rgba(160, 195, 200, 0.35);
  font-size: 1.1rem;
  animation: fade-rune 4s ease-in-out infinite;
}

@keyframes fade-rune {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  color: #121417;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: var(--glow-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(242, 169, 59, 0.45);
  color: var(--amber);
  box-shadow: var(--glow);
}

.btn--block {
  width: 100%;
}

/* Sections */
.catalog,
.contact,
.philosophy {
  position: relative;
  z-index: 1;
}

.catalog,
.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.35rem 0 0.85rem;
}

.section-head__text {
  margin: 0;
  color: var(--text-mute);
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}

.product-card:hover {
  border-color: rgba(143, 176, 184, 0.28);
  box-shadow: var(--glow), var(--cool-glow);
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
}

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

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.2rem 1.35rem;
  flex: 1;
}

.product-card__body h3 {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.product-card__stone {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.product-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-mute);
  white-space: pre-line;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal__desc {
  white-space: pre-line !important;
  color: var(--text-mute);
  line-height: 1.65;
}

.product-card__energy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 169, 59, 0.9);
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-card__media {
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
}

.catalog-count {
  margin: 0.75rem 0 0;
  color: var(--text-mute);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.5rem 0 2rem;
}

.filter-chip {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 28, 30, 0.45);
  color: var(--text-mute);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--amber);
  border-color: rgba(242, 169, 59, 0.4);
}

.filter-chip.is-active {
  color: #121417;
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  border-color: transparent;
  box-shadow: var(--glow);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.product-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.product-modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.25rem;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

.product-modal.is-open .product-modal__panel {
  transform: translateY(0);
}

.product-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

.product-modal__body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.modal__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.modal__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.modal__info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.35rem 0 0.65rem;
}

.modal__energy {
  margin: 0 0 0.75rem;
  color: rgba(242, 169, 59, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.modal__price {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.modal__block {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal__block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.modal__block p {
  margin: 0;
  color: var(--text-mute);
  line-height: 1.6;
}

.modal__label {
  color: var(--text) !important;
  margin-bottom: 0.35rem !important;
}

.modal__block--legend p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mute);
}

.modal__info .btn {
  width: 100%;
  margin-top: 0.35rem;
}

@media (max-width: 860px) {
  .product-modal__body {
    grid-template-columns: 1fr;
  }

  .modal__media img {
    aspect-ratio: 1 / 1;
  }

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

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.product-card .btn {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
}

/* Philosophy */
.philosophy {
  position: relative;
  margin: 1rem 0 2rem;
  padding: 6rem 1.25rem;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(143, 176, 184, 0.1), transparent 45%),
    radial-gradient(ellipse at 25% 70%, rgba(30, 58, 52, 0.45), transparent 50%),
    linear-gradient(180deg, transparent, rgba(12, 24, 26, 0.75), transparent);
}

.philosophy__woods {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 14, 15, 0.75) 0%, transparent 18%, transparent 82%, rgba(6, 14, 15, 0.75) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 70px,
      rgba(14, 36, 32, 0.45) 70px 78px,
      transparent 78px 150px,
      rgba(10, 28, 26, 0.35) 150px 156px,
      transparent 156px 240px
    );
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

.philosophy__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.philosophy__content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.philosophy__content p:last-child {
  margin: 0;
  color: var(--text-mute);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.65;
}

.philosophy__runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rune {
  position: absolute;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: rgba(160, 195, 200, 0.22);
  animation: float-rune 10s ease-in-out infinite;
}

.rune--1 { top: 18%; left: 12%; animation-delay: 0s; }
.rune--2 { top: 28%; right: 16%; animation-delay: -2s; }
.rune--3 { bottom: 22%; left: 22%; animation-delay: -4s; }
.rune--4 { bottom: 18%; right: 12%; animation-delay: -6s; }
.rune--5 { top: 48%; left: 48%; animation-delay: -1s; font-size: 1.6rem; }

@keyframes float-rune {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-18px) rotate(6deg); opacity: 0.8; }
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.35rem;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 1.75rem 1.5rem;
}

.contact-card h3,
.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-list__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-list a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(242, 169, 59, 0.45);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 16, 18, 0.7);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(242, 169, 59, 0.55);
  box-shadow: var(--glow);
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%),
    linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-note {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--amber);
}

.contact-form .btn {
  margin-top: 0.35rem;
  width: 100%;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  background: linear-gradient(180deg, transparent, rgba(14, 36, 32, 0.35));
}

.logo--footer {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 9, 11, 0.62);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  border-radius: 0;
  border-right: none;
  border-top: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head,
.cart-drawer__foot {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__foot {
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__head h2 {
  font-size: 1.6rem;
}

.icon-close {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  color: var(--text-mute);
  transition: color 0.2s;
}

.icon-close:hover {
  color: var(--amber);
}

.cart-drawer__body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.cart-empty {
  color: var(--text-mute);
  font-size: 0.92rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cart-line h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

.cart-line p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.cart-line__remove {
  color: var(--text-mute);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-line__remove:hover {
  color: var(--amber);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  color: var(--text-mute);
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.cart-drawer__foot .btn {
  width: 100%;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  transform: translateX(-50%) translateY(20px);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid rgba(242, 169, 59, 0.35);
  box-shadow: var(--glow);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(10, 18, 20, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero {
    padding-top: 3rem;
  }

  .philosophy__content {
    padding: 1.75rem 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Admin panel */
.admin-open-btn {
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 169, 59, 0.45);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: box-shadow 0.25s, background 0.25s;
}

.admin-open-btn:hover,
.admin-open-btn:focus-visible {
  box-shadow: var(--glow);
  background: rgba(242, 169, 59, 0.1);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 10, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.admin-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-panel {
  width: min(1120px, 100%);
  max-height: min(92vh, 960px);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.5rem;
}

.admin-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.admin-panel__head h2 {
  font-size: 1.8rem;
}

.admin-panel__head-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-status {
  min-height: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text-mute);
  font-size: 0.85rem;
}

.admin-status.is-error,
.admin-gen-status.is-error {
  color: #ff8e8e;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}

.admin-list-wrap h3,
.admin-editor h3 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 62vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 18, 20, 0.45);
}

.admin-row.is-hidden {
  opacity: 0.55;
}

.admin-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.admin-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.admin-row__body strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row__body span {
  color: var(--text-mute);
  font-size: 0.75rem;
}

.admin-row__actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-row__actions button {
  min-height: 30px;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-row__actions button:hover {
  color: var(--amber);
  border-color: rgba(242, 169, 59, 0.4);
}

.admin-row__actions .is-danger:hover {
  color: #ff8e8e;
  border-color: rgba(255, 142, 142, 0.45);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-field span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 16, 18, 0.7);
  outline: none;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: rgba(242, 169, 59, 0.55);
  box-shadow: var(--glow);
}

.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-upload-block {
  padding: 0.9rem;
  border: 1px dashed rgba(180, 210, 215, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-upload-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.admin-file-btn {
  width: 100%;
  cursor: pointer;
}

.admin-gen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-gen-status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.admin-preview-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 16, 18, 0.55);
}

.admin-preview-box img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.admin-preview-box p {
  margin: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.admin-empty {
  color: var(--text-mute);
  font-size: 0.9rem;
}

.admin-login {
  display: grid;
  gap: 1rem;
  max-width: 360px;
  margin: 1rem 0 0;
}

.admin-workspace[hidden],
.admin-login[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-list {
    max-height: 280px;
  }

  .admin-row {
    grid-template-columns: 48px 1fr;
  }

  .admin-row__actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}
