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

:root {
  --primary-blue: #1a3a52;
  --accent-green: #2d5a4d;
  --light-gray: #f5f5f5;
  --medium-gray: #e8e8e8;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --note-yellow: #fef7e6;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--light-gray);
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--medium-gray);
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: block;
  margin-bottom: 2rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.75rem;
}

.sidebar-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary-blue);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem 3rem;
  max-width: 1400px;
}

h1, h2, h3, h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero-section {
  background-color: var(--white);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.definition-block {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-blue);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.note-block {
  background-color: var(--note-yellow);
  border-left: 4px solid #d4a017;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.product-category {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-light);
  background-color: var(--light-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #2d5a7d;
  color: var(--white);
}

.btn-outline {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.text-link {
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--primary-blue);
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.index-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary-blue);
  transition: background-color 0.2s;
}

.index-item:hover {
  background-color: var(--medium-gray);
}

.faq-section {
  margin: 3rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.faq-question {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.cta-section {
  text-align: center;
  padding: 3rem 0;
  margin: 3rem 0;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 3rem 2rem;
  margin-left: 260px;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.comparison-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background-color: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--medium-gray);
}

.comparison-table th {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.thank-you-container {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 58, 82, 0.98);
  color: var(--white);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-cookie {
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  white-space: nowrap;
}

.btn-accept {
  background-color: #4caf50;
  color: white;
}

.btn-decline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

@media (max-width: 992px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--medium-gray);
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .footer {
    margin-left: 0;
  }

  .wrapper {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

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

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

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