/* Variables */
:root {
  --color-bg: #2e003e;
  --color-accent: #b6ff00;
  --color-heading: #cba6f7;
  --color-text: #e0e0e0;
  --color-button-gradient-start: #4caf50;
  --color-button-gradient-end: #8bc34a;
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: "Arial", sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 5px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}
option {
  background-color: #3d194a;
}
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  color: var(--color-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  text-shadow: 0 0 5px var(--color-accent);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

section {
  padding: 80px 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--color-button-gradient-start),
    var(--color-button-gradient-end)
  );
  color: #fff;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  text-shadow: none;
}

/* Header */
header {
  background-color: rgba(46, 0, 62, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.main-nav .nav-menu {
  display: flex;
  gap: 20px;
}

.main-nav .nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.main-nav .nav-menu a:hover {
  background-color: rgba(182, 255, 0, 0.1);
  color: var(--color-accent);
}

.phone-link {
  background-color: rgba(182, 255, 0, 0.2);
  padding: 8px 15px !important;
  border-radius: var(--border-radius);
  font-weight: bold !important;
}

/* CSS для мобильного меню с использованием чекбокса */
.menu-checkbox {
  display: none;
}

.menu-toggle-label {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1010;
}

.menu-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: all var(--transition-speed) ease;
}

/* Banner */
.banner {
  background-image: url("img/xTfiP.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 0, 62, 0.7);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.banner h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.banner h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--color-accent);
}

.banner h2::after {
  display: none;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Why Us Section */
.why-us {
  background-color: rgba(0, 0, 0, 0.1);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: all var(--transition-speed) ease;
  border-left: 3px solid var(--color-accent);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.service-card h3 {
  padding: 20px 20px 10px;
}

.service-card p {
  padding: 0 20px 20px;
}

/* Contact Form Section */
.contact-form {
  background-color: rgba(0, 0, 0, 0.1);
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group.checkbox input {
  width: auto;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 60px;
  opacity: 0.2;
  color: var(--color-accent);
}

.testimonial p {
  position: relative;
  z-index: 2;
}

.client {
  font-style: italic;
  color: var(--color-heading);
}

/* FAQ Section */
.faq {
  background-color: rgba(0, 0, 0, 0.1);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 25px;
  transition: all var(--transition-speed) ease;
}

.faq-item h3 {
  margin-bottom: 15px;
  color: var(--color-accent);
}

/* Location Section */
.location-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 25px;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-contact h3,
.footer-links h3 {
  position: relative;
  padding-bottom: 15px;
}

.footer-contact h3::after,
.footer-links h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-contact ul li,
.footer-links ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: rgba(46, 0, 62, 0.95);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
  z-index: 1001;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner p {
  margin-bottom: 0;
  margin-right: 20px;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content,
  .benefits-grid,
  .services-grid,
  .testimonial-grid,
  .faq-grid,
  .location-grid,
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  /* Показываем бургер-меню на мобильных устройствах */
  .menu-toggle-label {
    display: block;
    position: relative;
    z-index: 1010;
  }

  /* Скрываем навигационное меню по умолчанию */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  /* Показываем меню при клике на чекбокс */
  .menu-checkbox:checked ~ .nav-menu {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  /* Стили для активной иконки бургер-меню */
  .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about-content,
  .benefits-grid,
  .services-grid,
  .testimonial-grid,
  .faq-grid,
  .location-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 15px;
  }

  section {
    padding: 40px 0;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .banner h2 {
    font-size: 1.3rem;
  }

  .cookie-banner {
    flex-direction: column;
  }

  .cookie-banner button {
    margin-top: 15px;
  }
}
