/* 
 * Основные стили для сайта финансового аудита
 * Цветовая палитра:
 * - Deep Sapphire (#0F2B46)
 * - Electric Lime (#D3FF3F)
 * - Slate Gray (#6E7F80)
 * - Soft White (#F9F9F9)
 * - Coral Blush (#FF6B6B)
 */

/* Основные стили */
:root {
  --deep-sapphire: #0F2B46;
  --electric-lime: #D3FF3F;
  --slate-gray: #6E7F80;
  --soft-white: #F9F9F9;
  --coral-blush: #FF6B6B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--deep-sapphire);
  background-color: var(--soft-white);
}

/* Контейнер для содержимого */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

/* Параграфы */
p {
  margin-bottom: 1.5rem;
}

/* Ссылки */
a {
  color: var(--deep-sapphire);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--coral-blush);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--electric-lime);
  color: var(--deep-sapphire);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(15, 43, 70, 0.2);
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
}

/* Стили для шапки */
header {
  background-color: var(--deep-sapphire);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--soft-white);
}

.logo {
  color: var(--soft-white);
  text-transform: lowercase;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Навигация */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--soft-white);
  font-weight: 500;
  position: relative;
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--electric-lime);
  transition: width 0.3s ease;
}

.main-nav a:hover:after {
  width: 100%;
}

/* Мобильное меню */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--soft-white);
  cursor: pointer;
}

/* Секции */
section {
  padding: 80px 0;
  scroll-margin-top: 100px; /* Это смещает якорь выше, чтобы контент не перекрывался хедером */
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 3px;
  background-color: var(--electric-lime);
}

/* Hero секция */
.hero {
  background: linear-gradient(135deg, var(--deep-sapphire) 0%, #1a4a76 100%);
  color: var(--soft-white);
  padding-top: 150px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

/* О компании */
.about {
  background-color: var(--soft-white);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

/* Услуги */
.services {
  background: linear-gradient(to bottom, var(--soft-white), #e6e6e6);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-box {
  background-color: var(--soft-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.service-icon {
  margin-bottom: 25px;
  width: 100%;
}

.service-icon img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.service-box:hover .service-icon img {
  transform: scale(1.05);
}

/* Почему мы */
.why-us {
  background-color: var(--deep-sapphire);
  color: var(--soft-white);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.benefit-box {
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Процесс */
.process {
  background-color: var(--soft-white);
}

.timeline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-step {
  width: calc(50% - 30px);
  min-width: 220px;
  padding: 30px;
  background-color: var(--soft-white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
}

@media (max-width: 992px) {
  .timeline-step {
    width: 100%;
  }
}

/* FAQ */
.faq {
  background: linear-gradient(to bottom, #e6e6e6, var(--soft-white));
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 15px 20px;
  background-color: var(--soft-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f5f5f5;
}

.faq-answer.active {
  padding: 15px 20px;
  max-height: 500px;
}

/* Форма заказа */
.order {
  background: linear-gradient(135deg, #1a4a76 0%, var(--deep-sapphire) 100%);
  color: var(--soft-white);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--soft-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--deep-sapphire);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--electric-lime);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-group label {
  color: var(--deep-sapphire);
  font-weight: 400;
}

.checkbox-group a {
  color: var(--deep-sapphire);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Подвал */
footer {
  background-color: var(--deep-sapphire);
  color: var(--soft-white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  color: var(--electric-lime);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--soft-white);
}

.footer-links a:hover {
  color: var(--electric-lime);
}

.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: 0;
  left: 0;
  width: 100%;
  background-color: var(--deep-sapphire);
  color: var(--soft-white);
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

/* Страницы политик */
.policy-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--soft-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-title {
  text-align: center;
  margin-bottom: 30px;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Навигационное меню для мобильных устройств */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--deep-sapphire);
    padding: 20px 0;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 10px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Адаптивная сетка */
  .about-content {
    flex-direction: column;
  }
  
  .timeline {
    flex-direction: column;
  }
  
  .timeline-step {
    margin-right: 0;
    margin-bottom: 20px;
    min-width: auto;
  }
  
  .timeline-step:after {
    top: auto;
    bottom: -20px;
    right: 50%;
    width: 2px;
    height: 10px;
    transform: translateX(50%);
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .service-box, 
  .benefit-box, 
  .form-container, 
  .policy-container {
    padding: 20px;
  }
}
