/* Основные стили сайта domain - финансовый аудит */

/* Переменные с цветами */
:root {
  --main-color: #1F3B4D;       /* Deep Steel Blue */
  --accent-color: #F95738;     /* Vivid Orange-Red */
  --secondary-color: #BFD7EA;  /* Soft Sky Blue */
  --bg-color: #F9F9F9;         /* Off-White */
  --text-color: #2D2D2D;       /* Charcoal Black */
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #1F3B4D, #F95738);
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px; /* Увеличенный отступ */
}

/* Стили для якорей */
section[id] {
  scroll-margin-top: 150px; /* Увеличенный отступ */
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--main-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--main-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn-secondary:hover {
  background: var(--main-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Шапка сайта */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--main-color);
}

.logo:hover {
  color: var(--accent-color);
}

/* Навигация */
.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--main-color);
}

.mobile-menu-checkbox {
  display: none;
}

/* Hero секция */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--bg-color);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* О компании */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
}

.about-content {
  flex: 1;
}

/* Услуги аудита */
.services {
  background-color: var(--white);
  position: relative;
}

.services::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--bg-color);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Преимущества */
.benefits {
  background: linear-gradient(to bottom, var(--bg-color) 0%, var(--white) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Статистика */
.stats {
  background: var(--main-color);
  color: var(--white);
  padding: 100px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.stat-text {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FAQ */
.faq {
  background: var(--white);
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--secondary-color);
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-checkbox {
  display: none;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* Контактная информация */
.contact {
  background: var(--bg-color);
  position: relative;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Форма заказа */
.order-form {
  background: var(--gradient);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  padding: 40px;
  position: relative;
  z-index: 2;
  color: var(--white);
}

.order-form h3, 
.order-form p, 
.order-form label {
  color: var(--white);
}

.order-form a {
  color: var(--secondary-color);
}

.order-form a:hover {
  color: var(--white);
}

.order-form-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.order-form::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 20px;
  top: 15px;
  left: -15px;
  z-index: -1;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--main-color);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 5px;
}

/* Подвал */
.footer {
  background: var(--main-color);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer a {
  color: var(--secondary-color);
}

.footer a:hover {
  color: var(--white);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  display: block;
}

.footer-description {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Страницы политик */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 0 80px;
}

.policy-content h1 {
  margin-bottom: 30px;
}

.policy-content h2 {
  margin-top: 40px;
}

/* Страница "Спасибо" */
.thank-you {
  text-align: center;
  padding: 150px 0 80px;
}

.thank-you-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 20px;
  border: 3px solid var(--accent-color);
  background: var(--white);
  box-shadow: var(--box-shadow);
  position: relative;
}

.thank-you-box::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 15px;
  left: 15px;
  border-radius: 20px;
  background: var(--gradient);
  z-index: -1;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: var(--white);
  font-size: 3rem;
}

/* Куки всплывающее окно */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  text-align: center;
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.cookie-consent-btn {
  margin-top: 15px;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 1s ease forwards;
}

/* Медиа-запросы */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .about-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    transition: 0.3s;
    z-index: 999;
  }
  
  .nav ul {
    flex-direction: column;
    padding: 30px;
  }
  
  .nav ul li {
    margin: 15px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-checkbox:checked ~ .nav {
    left: 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 12px 25px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}
