/* Base styles */
:root {
  --primary-color: #4a1010;
  --text-white: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background-color: rgb(250, 248, 248);
}

.container {
  max-width: 90pc;
  margin: 0 auto;
  padding: 0 rem;
}

/* Navigation */
.nav {
  background-color: var(--primary-color);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 90%;
  margin: 0 auto;   
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 26px;
  font-weight: bold;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.mobile-menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links button {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.nav-links button:hover {
  color: #cbd5e0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 5;
    padding: 2rem;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links button {
    font-size: 1.5rem;
    margin: 1rem 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 540px;
  width: 90%;
  margin: 1rem auto;
  border-radius: 0.5rem;
  overflow: hidden;
  background-image: url("images/bg.png");
  background-size: cover;
  background-position: 60% 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  padding-top: 0;
  color: #28282999;
  max-width: 40rem;
}

description {
}

.hero-content h1 {
  font-size: 2.1rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
    padding-bottom: 18rem;
  }
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.5rem;
  }
}

/* Size Grid */
.size-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1280px) {
  .size-grid {
    grid-template-columns: repeat(7, auto);
  }
}

.size-card {
  text-align: center;
  background-color: white;
  border-radius: 0.5rem;
  padding: 0.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.size-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.size-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.size-info {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  align-items: center;
}

.price-option {
  margin-bottom: 0.5rem;
}

hr {
  overflow: visible;
  height: 1px;
  width: 80%;
  margin: 0 10% 0 10%;
  border: 0;
  border-top: 1px solid #000;
}

.price {
  font-size: 1rem;
  color: #751919a8;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.choose-button {
  color: white;
  background: #6484c9;
  border: 1px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
}

.choose-button:hover {
  color: #1d4ed8;
}

/* Modal */
.modal-container {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 55rem;
  margin: 1rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
}

.close-button {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
}

.close-button:hover {
  color: #374151;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px var(--shadow-color);
}

.form-group select, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px var(--shadow-color);
}

.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.readonly {
  background-color: #f3f4f6;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.submit-button,
.cancel-button {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.submit-button {
  background-color: #2563eb;
  color: white;
}

.submit-button:hover {
  background-color: #1d4ed8;
}

.cancel-button {
  background-color: #e5e7eb;
  color: #1f2937;
}

.cancel-button:hover {
  background-color: #d1d5db;
}

.hidden {
  display: none;
}

/* Gallery Slideshow */
.gallery-slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: opacity 0.3s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.gallery-prev {
  left: -25px;
}

.gallery-next {
  right: -25px;
}

.gallery-counter {
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

@media (max-width: 900px) {
  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.hidden {
  display: none;
}

.checkbox-option {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.checkbox-option input[type="checkbox"] {
  margin: 0;
}