:root {
  --color-bg: #181c14;
  --color-surface: #3c3d37;
  --color-muted: #697565;
  --color-text: #ecdfcc;
  --color-accent: #b6c3aa;
  --font-base: "Segoe UI", Arial, sans-serif;
  --font-heading: "Trebuchet MS", "Segoe UI", sans-serif;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-hard: 0 12px 34px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.2rem;
  --space-xxl: 3rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background: linear-gradient(160deg, var(--color-bg), #10130d 60%);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

footer,
main,
section,
article,
form,
fieldset {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(24, 28, 20, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(236, 223, 204, 0.15);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-start;
}

.header-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: auto;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.header-toggle {
  display: none;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0.5rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(236, 223, 204, 0.35);
}

.header-toggle-open,
.header-toggle-close {
  font-size: 1.2rem;
  line-height: 1;
}

.header-toggle-close {
  display: none;
}

.site-header.menu-open .header-toggle-open {
  display: none;
}

.site-header.menu-open .header-toggle-close {
  display: inline;
}

.header-link,
a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.header-link:hover,
.header-link:focus-visible,
a:hover,
a:focus-visible {
  color: var(--color-accent);
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
  display: grid;
  gap: var(--space-lg);
}

section {
  background: linear-gradient(180deg, rgba(60, 61, 55, 0.95), rgba(60, 61, 55, 0.85));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(236, 223, 204, 0.12);
  padding: var(--space-xl);
}

section article {
  min-width: 0;
}

section:hover {
  box-shadow: var(--shadow-hard);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

#hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

figure {
  margin: 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.rating,
.badge,
.price {
  font-weight: 600;
}

.price {
  font-size: 1.35rem;
}

s {
  opacity: 0.75;
  margin-left: var(--space-sm);
}

fieldset {
  margin: var(--space-md) 0 0;
  border: 1px solid rgba(236, 223, 204, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

legend {
  font-weight: 700;
  padding: 0 var(--space-sm);
}

label {
  display: block;
  margin-top: var(--space-sm);
  font-weight: 600;
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: rgba(24, 28, 20, 0.8);
  border: 1px solid rgba(236, 223, 204, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-top: var(--space-xs);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  border-color: var(--color-accent);
}

button,
.button-link {
  display: inline-block;
  text-align: center;
  background: var(--color-muted);
  border: 1px solid transparent;
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: var(--space-md);
}

.button-link {
  max-width: 100%;
}

button:hover,
.button-link:hover {
  transform: translateY(-2px);
  background: #7f8d7b;
  color: #0f120b;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.check input {
  width: auto;
  margin-top: 0.25rem;
}

small {
  min-height: 1.2em;
  display: block;
  color: #f9b4b4;
  font-size: 0.88rem;
  word-break: break-word;
}

footer {
  margin-top: var(--space-xl);
  background: var(--color-surface);
  border-top: 1px solid rgba(236, 223, 204, 0.12);
  padding: var(--space-lg);
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
  padding: 0;
}

address {
  font-style: normal;
  margin-top: var(--space-sm);
}

#cookie-banner {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  max-width: 460px;
  padding: var(--space-lg);
  z-index: 40;
}

#cookie-banner article {
  background: #252920;
  border-radius: var(--radius-md);
  border: 1px solid rgba(236, 223, 204, 0.2);
  padding: var(--space-lg);
}

#cookie-banner nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  padding: 0;
  margin-top: var(--space-sm);
  justify-content: flex-start;
}

#cookie-banner button {
  width: auto;
  margin-top: 0;
}

@media (max-width: 1199px) {
  main,
  .header-inner {
    max-width: 980px;
  }
}

@media (max-width: 991px) {
  #hero {
    grid-template-columns: 1fr;
  }

  main {
    padding: var(--space-lg) var(--space-md) var(--space-xxl);
  }

  section {
    padding: var(--space-lg);
  }

  .header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
  }

  .site-header.menu-open .header-nav {
    display: flex;
  }

  .header-link {
    width: 100%;
    padding: 0.35rem 0;
  }
}

@media (max-width: 767px) {
  .header-brand {
    margin-right: 0;
  }

  #cookie-banner {
    left: var(--space-sm);
    right: var(--space-sm);
    max-width: none;
    bottom: var(--space-sm);
    padding: 0;
  }

  #cookie-banner article {
    padding: var(--space-md);
  }

  #cookie-banner nav {
    gap: var(--space-xs);
  }

  #cookie-banner button {
    width: 100%;
  }
}

@media (max-width: 575px) {
  main {
    padding: var(--space-md) var(--space-sm) var(--space-xl);
    gap: var(--space-md);
  }

  section {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .header-inner,
  footer nav {
    padding: var(--space-sm);
  }

  fieldset {
    padding: var(--space-md);
  }

  button,
  .button-link {
    width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 399px) {
  :root {
    --space-sm: 0.6rem;
    --space-md: 0.8rem;
    --space-lg: 1rem;
  }

  html,
  body {
    font-size: 15px;
  }

  .header-inner,
  .header-nav {
    gap: 0.45rem;
  }

  section {
    padding: 0.85rem;
  }

  fieldset {
    padding: 0.75rem;
  }

  .price {
    font-size: 1.2rem;
  }

  input,
  textarea,
  button,
  .button-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  html,
  body {
    font-size: 14px;
  }

  main {
    padding: 0.75rem 0.5rem 1.25rem;
  }

  .header-inner,
  footer nav {
    padding: 0.6rem 0.4rem;
  }

  section {
    padding: 0.7rem;
    border-radius: var(--radius-sm);
  }

  fieldset {
    padding: 0.65rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.12rem;
  }

  #cookie-banner {
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
  }

  #cookie-banner {
    max-width: 100%;
  }
}
