:root {
  --bg: #0F1720;
  --panel: #0F2937;
  --ink: #E6EEF4;
  --accent: #E50914;
  --muted: #A7B0B8;
  --white: #ffffff;
  --black: #000000;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  --radius-sm: 2px;
  --radius-md: 4px;
  --border-thin: 1px;
  --border-medium: 2px;
  --border-thick: 4px;
  --shadow-sharp: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.25);
  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--accent);
}

button,
.button {
  background: transparent;
  color: var(--ink);
  border: var(--border-thin) solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 479px) {
  button,
  .button {
    padding: var(--space-sm) var(--space-sm);
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    min-width: 120px;
  }
}

button:hover,
.button:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

button.primary,
.button.primary {
  background: var(--accent);
  color: var(--white);
}

button.primary:hover,
.button.primary:hover {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-tight);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 479px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

.thank-you-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

@media (max-width: 479px) {
  .thank-you-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .thank-you-buttons .button {
    width: 100%;
    max-width: 280px;
    margin: 0;
  }
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--angled {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  padding: var(--space-xxl) 0;
  margin: var(--space-lg) 0;
}

.section--dark {
  background-color: var(--panel);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (max-width: 479px) {
  .grid {
    gap: var(--space-md);
  }
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 480px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.flex-end {
  justify-content: flex-end;
  align-items: center;
}

.header {
  padding: var(--space-md) 0;
  position: relative;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: var(--space-lg);
  flex-wrap: nowrap;
}

.nav__list {
  display: none;
  list-style: none;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav__list.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 80vw;
  background-color: var(--panel);
  padding: var(--space-lg) var(--space-md);
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  animation: slideInRight 0.3s ease forwards;
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.nav__item {
  margin-left: 0;
  width: 100%;
}

.nav__close-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(167, 176, 184, 0.2);
}

.nav__close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav__close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: all var(--transition-fast);
}

.nav__close-line:nth-child(1) {
  transform: rotate(45deg);
}

.nav__close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.nav__close:hover .nav__close-line {
  background-color: var(--accent);
}

.nav__link {
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-medium);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.burger {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  margin-left: 0;
  flex-shrink: 0;
}

.burger__line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all var(--transition-fast);
}

.burger__line:nth-child(1) {
  top: 6px;
}

.burger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger__line:nth-child(3) {
  bottom: 6px;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav__list {
    flex-wrap: nowrap;
  }
  
  .nav__list.active {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 80vw;
  }
}

@media (min-width: 992px) {
  .burger {
    display: none;
  }
  
  .nav__list {
    display: flex !important;
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    position: relative;
    top: initial;
    left: initial;
    right: initial;
    background-color: transparent;
    padding: 0;
    width: auto;
    max-width: none;
    box-shadow: none;
    transform: none;
    animation: none;
    overflow: visible;
  }
  
  .nav__list.active {
    position: relative;
    top: initial;
    left: initial;
    right: initial;
    background-color: transparent;
    padding: 0;
    flex-direction: row;
    width: auto;
    max-width: none;
    box-shadow: none;
    transform: none;
    animation: none;
    overflow: visible;
  }
  
  .nav__item {
    width: auto;
  }
  
  .nav__close-wrapper {
    display: none;
  }
}

.hero {
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero__title {
  max-width: 15ch;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  max-width: 40ch;
  margin-bottom: var(--space-lg);
}

.hero__cta {
  margin-top: var(--space-lg);
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  opacity: 0.8;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(15, 23, 32, 0) 50%);
  z-index: 2;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(229, 9, 20, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(229, 9, 20, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(229, 9, 20, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(229, 9, 20, 0.05) 75%);
  background-size: 20px 20px;
  z-index: 2;
  opacity: 0.2;
}

.card {
  background-color: var(--panel);
  padding: var(--space-lg);
  position: relative;
  transition: transform var(--transition-medium);
  border: var(--border-thin) solid rgba(167, 176, 184, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 479px) {
  .card {
    padding: var(--space-md);
  }
}

.card:hover {
  transform: translateY(-5px) rotate(0.5deg);
}

.card__title {
  margin-bottom: var(--space-sm);
  min-height: 3.5rem;
}

@media (max-width: 479px) {
  .card__title {
    min-height: auto;
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

.card p {
  flex-grow: 1;
  min-height: 4rem;
}

@media (max-width: 479px) {
  .card p {
    min-height: auto;
    font-size: clamp(0.875rem, 3vw, 1rem);
  }
}

.card__image {
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .card__image {
    height: 150px;
  }
}

.card__image img {
  transition: transform var(--transition-medium);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin: var(--space-md) 0;
  text-align: right;
}

.card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-md);
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(167, 176, 184, 0.1);
  padding-bottom: var(--space-lg);
}

.product:last-child {
  border-bottom: none;
}

.product__image {
  overflow: hidden;
  position: relative;
}

.product__content {
  display: flex;
  flex-direction: column;
}

.product__title {
  margin-bottom: var(--space-xs);
}

.product__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin: var(--space-sm) 0 var(--space-md);
}

.product__description {
  margin-bottom: var(--space-md);
}

.product__cta {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .product {
    grid-template-columns: 1fr 1fr;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

@media (max-width: 479px) {
  .filters {
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
  }
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 479px) {
  .filter-btn {
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    padding: var(--space-xs);
  }
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: transparent;
}

.footer {
  background-color: var(--panel);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__title {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer__list {
  list-style: none;
}

.footer__item {
  margin-bottom: var(--space-sm);
}

.footer__link {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--ink);
}

.footer__bottom {
  border-top: 1px solid rgba(167, 176, 184, 0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__copyright {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.footer__policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.footer__policy-link {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer__copyright {
    margin-bottom: 0;
    text-align: left;
  }
}

.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--space-sm);
  background-color: rgba(230, 238, 244, 0.05);
  border: var(--border-thin) solid var(--muted);
  color: var(--ink);
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form__checkbox input {
  margin-top: 0.25rem;
}

.form__checkbox-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.form__submit {
  margin-top: var(--space-md);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-accent {
  color: var(--accent);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--panel);
  padding: var(--space-md);
  width: calc(100% - 40px);
  max-width: 400px;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  border-radius: var(--radius-sm);
  display: none;
}

.cookie-consent.active {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-consent__buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@keyframes slideUp {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body.legal {
  background-color: var(--bg);
  color: var(--ink);
  padding: var(--space-xl) var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

body.legal h1 {
  margin-bottom: var(--space-lg);
  color: var(--accent);
  font-size: 2.5rem;
}

body.legal h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--ink);
  font-size: 1.8rem;
}

body.legal h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--ink);
  font-size: 1.3rem;
}

body.legal p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

body.legal a {
  color: var(--accent);
  text-decoration: underline;
}

body.legal a:hover {
  color: var(--white);
}

body.legal ul, body.legal ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

body.legal li {
  margin-bottom: var(--space-sm);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
}

.error-page__title {
  font-size: clamp(4rem, 15vw, 10rem);
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.error-page__text {
  margin-bottom: var(--space-lg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card:hover .card__image img {
    transform: none;
  }
}
