/* 
 * Main Stylesheet for domain.com
 * Color Palette:
 * - Midnight Blue (#0D1B2A) — main background and headers
 * - Vibrant Coral (#FF6B6B) — call-to-action buttons, highlights
 * - Soft Mint (#B8E1DD) — section backgrounds
 * - Pale Gold (#FFD670) — accent borders and icons
 * - Pure White (#FFFFFF) — text background areas
 */

/* ---------- CSS Reset & Base Styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  color: #0D1B2A;
}

a {
  text-decoration: none;
  color: #FF6B6B;
  transition: color 0.3s ease;
}

a:hover {
  color: #e55a5a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide scrollbars */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* ---------- Container & Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  section {
    padding: 60px 0;
  }
}

@media (min-width: 992px) {
  section {
    padding: 80px 0;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromBottom {
  from { 
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes countUp {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

@keyframes slide {
  0% { transform: translateX(0); }
  33.33% { transform: translateX(-100%); }
  66.66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* Apply animations */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in {
  animation: slideInFromBottom 0.8s ease forwards;
}

/* ---------- Header & Navigation ---------- */
header {
  background-color: #0D1B2A;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  color: #FFD670;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.mobile-menu-toggle {
  display: block;
  z-index: 1001;
}

.menu-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle-btn.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: #0D1B2A;
  transition: right 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
}

.main-nav.open {
  right: 0;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  margin-bottom: 15px;
}

.main-nav ul li a {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 20px;
  transition: background-color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FF6B6B;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: absolute;
  right: 20px;
  top: 10px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}

.submenu {
  display: none;
  background-color: rgba(255, 255, 255, 0.05);
}

.submenu.open {
  display: block;
}

.submenu li a {
  padding-left: 40px;
  font-size: 1rem;
}

.contact-button {
  display: none;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding-top: 0;
    background-color: transparent;
  }
  
  .main-nav ul {
    display: flex;
  }
  
  .main-nav ul li {
    margin: 0 10px;
    position: relative;
  }
  
  .dropdown-toggle {
    display: none;
  }
  
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: #0D1B2A;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
  }
  
  .dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .submenu li {
    margin: 0;
  }
  
  .submenu li a {
    padding: 10px 15px;
  }
  
  .contact-button {
    display: block;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background-color: #FF6B6B;
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  text-align: center;
}

.btn-primary:hover {
  background-color: #e55a5a;
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FF6B6B;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  border: 2px solid #FF6B6B;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #FF6B6B;
  color: white;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('../img/KQ4PC5.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0 60px;
  color: #fff;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero {
    padding: 180px 0 100px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* ---------- About Section ---------- */
.about {
  background-color: #fff;
}

.about .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text {
  animation: fadeIn 1s ease;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.value-card {
  background-color: #B8E1DD;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
  animation: slideInFromBottom 0.8s ease;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  color: #FF6B6B;
  font-size: 2rem;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
  }
  
  .about-text {
    flex: 1;
    padding-right: 30px;
  }
  
  .about-values {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Services Section ---------- */
.services {
  background-color: #B8E1DD;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 80px;
  background-color: #FF6B6B;
  border-radius: 3px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 1s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-image {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 15px;
}

.service-content p {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Benefits Section ---------- */
.benefits {
  background-color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.3s;
  animation: fadeIn 0.8s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  background-color: #B8E1DD;
}

.benefit-icon {
  color: #FF6B6B;
  font-size: 1.5rem;
  margin-right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
}

.benefit-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Statistics Section ---------- */
.statistics {
  background-color: #0D1B2A;
  color: #fff;
  padding: 60px 0;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  animation: fadeIn 1s ease;
}

.stat-number {
  color: #FF6B6B;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: countUp 2s ease;
}

.stat-label {
  color: #B8E1DD;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1.1rem;
  }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background-color: #B8E1DD;
}

.testimonial-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

@media (min-width: 768px) {
  .testimonial-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-item {
  padding: 0 15px;
}

.testimonial-content {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  margin-top: 40px;
  height: 280px; /* Фиксированная высота */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 30px;
  font-size: 100px;
  color: #FF6B6B;
  opacity: 0.2;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-company {
  font-size: 0.9rem;
  opacity: 0.7;
}

.testimonial-rating {
  color: #FFD670;
  margin-top: 10px;
}

/* ---------- Blog Section ---------- */
.blog {
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  animation: fadeIn 1s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin-bottom: 10px;
}

.blog-excerpt {
  margin-bottom: 15px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Contact Section ---------- */
.contact {
  background-color: #B8E1DD;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info {
  animation: fadeIn 1s ease;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-icon {
  background-color: #0D1B2A;
  color: #FFD670;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-content h3 {
  margin-bottom: 5px;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  animation: slideInFromBottom 0.8s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #FF6B6B;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-form {
    flex: 1;
  }
}

/* ---------- Footer ---------- */
footer {
  background-color: #0D1B2A;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo a {
  color: #FFD670;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.footer-description {
  opacity: 0.7;
  margin-top: 15px;
  max-width: 400px;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 50px;
  background-color: #FF6B6B;
}

.footer-nav, .legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li, .legal-links li {
  margin-bottom: 10px;
}

.footer-nav a, .legal-links a {
  color: #B8E1DD;
  transition: color 0.3s;
}

.footer-nav a:hover, .legal-links a:hover {
  color: #FF6B6B;
}

address {
  font-style: normal;
  opacity: 0.8;
}

address p {
  margin-bottom: 10px;
}

address a {
  color: #B8E1DD;
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0D1B2A;
  color: #FFFFFF;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-buttons {
  margin-top: 20px;
}

/* ---------- Policy Pages ---------- */
.policy-page {
  padding-top: 100px;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.policy-content h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #B8E1DD;
  padding-bottom: 10px;
}

.policy-content p {
  margin-bottom: 20px;
}

/* ---------- Thank You Page ---------- */
.thankyou {
  text-align: center;
  padding: 150px 0 80px;
  background-color: #B8E1DD;
}

.thankyou-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thankyou-icon {
  color: #FF6B6B;
  font-size: 3rem;
  margin-bottom: 20px;
}

.thankyou h1 {
  margin-bottom: 20px;
}

.thankyou p {
  margin-bottom: 30px;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background-color: #fff;
  padding: 60px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #B8E1DD;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  background-color: #0D1B2A;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.3s;
}

.faq-toggle:hover {
  background-color: #FF6B6B;
}

.faq-answer {
  padding: 20px;
  background-color: #fff;
}