/* Main Styles for Domain Financial Audit Website */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-gradient-start: #1e293b;
  --bg-gradient-end: #334155;
  --accent-orange: #ff7e3d;
  --accent-blue: #3db2ff;
  --text-light: #f1f5f9;
  --text-content: #e2e8f0;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Rubik', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-content);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0 60px 0; /* Увеличиваем верхний padding для всех секций */
  position: relative;
}

/* Anchor positioning - Fix section anchors to account for fixed header */
section[id]::before {
  content: "";
  display: block;
  height: 180px; /* Increased to 180px for significantly more spacing */
  margin-top: -180px; /* Adjusted to -180px */
  visibility: hidden;
  pointer-events: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-orange);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-orange);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-top: 20px; /* Добавляем дополнительный отступ сверху для заголовков */
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-orange);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Header Styles */
.header {
  padding: 15px 0; /* Reduced from 25px to 15px */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px; /* Reduced from 32px to 26px */
  font-weight: 700;
  color: var(--text-light);
}

.logo span {
  color: var(--accent-orange);
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav li {
  margin-left: 25px; /* Reduced from 30px to 25px */
}

.nav a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 16px; /* Reduced from 18px to 16px */
  padding: 8px 0; /* Reduced from 10px to 8px */
  display: inline-block;
}

.nav a:hover {
  color: var(--accent-orange);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.mobile-nav {
  display: none;
}

/* Version PC - cacher complètement le menu mobile */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Сохраняем прежний отступ для hero секции */
  padding-bottom: 0; /* Обнуляем нижний padding */
  background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('./img/36mL2T.jpg');
  background-size: cover;
  background-position: center;
  text-align: center; /* Добавлено для центрирования текста */
}

.hero-content {
  max-width: 650px;
  animation: fadeIn 1s ease-in-out;
  margin: 0 auto; /* Добавлено для центрирования блока */
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Services Section */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.service-card {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0;
  transition: var(--transition);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  margin-top: 15px;
  padding: 0 20px;
}

.service-card p {
  padding: 0 20px 20px;
}

/* Advantages Section */
.advantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.advantage-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.advantage-item:hover .advantage-icon {
  background: var(--accent-orange);
}

/* Process Section */
.process-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-container:before {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--accent-blue);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.process-item {
  padding: 20px 40px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: calc(50% - 40px);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.process-item:nth-child(odd) {
  margin-left: auto;
}

.process-item:before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--accent-orange);
  top: 22px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow);
}

.process-item:nth-child(odd):before {
  left: -52px;
}

.process-item:nth-child(even):before {
  right: -52px;
}

.process-item h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.process-item h3 span {
  background: var(--accent-orange);
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 16px;
}

/* Testimonials Section */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.testimonial-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--accent-orange);
  font-size: 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.france-flag {
  width: 20px;
  height: auto;
  margin-left: 5px;
}

.testimonial-text {
  font-style: italic;
}

/* Form Section */
.form-section {
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 15px;
  padding-left: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
}

.form-icon {
  position: absolute;
  left: 15px;
  bottom: 14px;
  color: var(--accent-orange);
}

select.form-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7e3d'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

select.form-input option {
  background-color: #1e293b;
  color: var(--text-light);
  padding: 10px;
}

.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  word-break: break-word; /* Добавлено для улучшения переноса слов */
  hyphens: auto; /* Автоматические переносы */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.checkbox-input {
  margin-top: 5px;
  margin-right: 10px;
  accent-color: var(--accent-orange);
  flex-shrink: 0; /* Предотвращает сжатие чекбокса */
}

.form-button {
  width: 100%;
  font-size: 16px;
  padding: 14px 28px;
  margin-top: 10px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.form-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-details h3 {
  margin-bottom: 5px;
}

.contact-details p {
  margin-bottom: 0;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

.map {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--bg-gradient-start);
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--accent-orange);
}

.footer-description {
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-content);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  padding: 20px;
  background: var(--bg-gradient-end);
  color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-button {
  width: 100%;
}

/* Policy Pages */
.policy-page {
  padding: 60px 0;
  padding-top: 120px; /* Reduced to match smaller header */
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.policy-header {
  text-align: center;
  margin-bottom: 30px;
}

.policy-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.policy-logo span {
  color: var(--accent-orange);
}

.policy-content h2 {
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--accent-orange);
  font-size: 20px;
}

.policy-content p {
  margin-bottom: 20px;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
  color: var(--text-content);
}

.back-button {
  text-align: center;
  margin-top: 30px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .process-container:before {
    left: 30px;
  }
  
  .process-item {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .process-item:before {
    left: -45px !important;
  }
  
  .services-container {
    flex-wrap: wrap;
  }
  
  .service-card {
    flex-basis: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .nav ul {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-gradient-start);
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
  }
  
  .mobile-nav.show {
    display: block;
  }
  
  .mobile-nav ul {
    list-style: none;
  }
  
  .mobile-nav li {
    margin-bottom: 15px;
  }
  
  /* Улучшенные стили формы для планшетов */
  .form-container {
    max-width: 90%;
    padding: 35px;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  /* Улучшенные стили формы для мобильных устройств */
  .form-container {
    padding: 25px 20px;
    margin: 0 10px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-input {
    padding: 12px 15px 12px 40px;
    font-size: 15px;
  }
  
  .form-icon {
    left: 12px;
    bottom: 12px;
  }
  
  .checkbox-group {
    margin-bottom: 12px;
  }
  
  .checkbox-label {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    word-break: break-word; /* Улучшаем перенос слов */
    hyphens: auto; /* Добавляем автоматические переносы */
  }
  
  .checkbox-input {
    margin-top: 3px;
    flex-shrink: 0; /* Предотвращаем сжатие чекбокса */
    margin-right: 8px; /* Отступ от текста */
  }
  
  .form-button {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  /* Улучшение отображения ошибок формы на мобильных */
  .form-errors {
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .form-errors ul {
    padding-left: 15px;
  }
} 

/* Fix for section headers being covered by fixed header */
.about, .services, .advantages, .process, .testimonials, .form-section {
  padding-top: 120px; /* Значительно увеличиваем верхний отступ для всех основных секций */
  margin-top: -40px; /* Компенсируем дополнительный отступ, чтобы не было слишком большого расстояния между секциями */
} 

/* Form Errors */
.form-errors {
  background: rgba(255, 74, 74, 0.15);
  border-left: 3px solid #ff4a4a;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-errors li {
  color: #ff4a4a;
  margin-bottom: 5px;
} 