/* Base styles */
:root {
  --primary-color: #1b1f3b;
  --accent-color-1: #f0b90b;
  --accent-color-2: #e94e77;
  --bg-gradient-start: #ece9e6;
  --bg-gradient-end: #ffffff;
  --text-dark: #2e2e2e;
  --text-light: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(
    to bottom,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.3rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color-1);
}

h2.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color-2);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color-1);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--accent-color-1);
  color: var(--text-dark);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-color-2);
  color: var(--text-light);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--accent-color-2);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--accent-color-1);
  color: var(--text-dark);
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--text-light);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.logo a::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color-1);
  border-radius: 50%;
  bottom: 5px;
  right: -10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color-1);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cookie-content p {
  margin: 0;
  padding-right: 1rem;
}

#acceptCookies {
  background-color: var(--accent-color-1);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

#acceptCookies:hover {
  background-color: var(--accent-color-2);
  color: var(--text-light);
}

/* Hero section */
.hero {
  height: 90vh;
  min-height: 600px;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./img/DGmSe.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Advantages section */
.advantages {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.advantages h2 {
  text-align: center;
}

.advantages h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-10px);
}

.advantage-card h3 {
  color: var(--primary-color);
  margin: 1rem 0;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background-color: var(--accent-color-1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Services section */
.services {
  padding: 5rem 0;
}

.services h2 {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: var(--text-light);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* About section */
.about {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-content h2 {
  text-align: left;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials section */
.testimonials {
  padding: 5rem 0;
}

.testimonials h2 {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5rem;
  color: var(--accent-color-1);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #666;
}

/* Form section */
.contact {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h2 {
  text-align: left;
}

.form-container {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color-1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
}

button[type="submit"] {
  justify-self: start;
  padding: 0.8rem 2rem;
}

/* FAQ section */
.faq {
  padding: 5rem 0;
}

.faq h2 {
  text-align: center;
}

.faq-container {
  margin-top: 3rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: var(--text-light);
  padding: 1.2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-color-1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
}

.faq-content-inner {
  padding: 1.2rem;
}

input[type="checkbox"].faq-toggle {
  display: none;
}

input[type="checkbox"].faq-toggle:checked ~ .faq-question {
  background-color: var(--primary-color);
  color: var(--text-light);
}

input[type="checkbox"].faq-toggle:checked ~ .faq-question::after {
  content: "−";
  color: var(--accent-color-1);
}

input[type="checkbox"].faq-toggle:checked ~ .faq-content {
  max-height: 1000px;
}

/* Contact map section */
.contact-map {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.contact-map h2 {
  text-align: center;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--accent-color-1);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color-1);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--text-light);
}

.footer-column a:hover {
  color: var(--accent-color-1);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Policy pages */
.policy-page {
  padding: 5rem 0;
}

.policy-container {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.policy-container h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.policy-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Thank you page */
.thank-you {
  padding: 8rem 0;
  text-align: center;
}

.thank-you-container {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.thank-you h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.success-icon {
  color: var(--accent-color-1);
  font-size: 4rem;
  margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--primary-color);
    padding: 80px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 1.5rem 0;
  }

  .menu-toggle:checked ~ nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    height: auto;
    padding: 5rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .service-img {
    height: 160px;
  }

  .policy-container {
    padding: 1.5rem;
  }
}
