/* 
  domain - Financial Audit Website
  Color Palette:
  - Primary: Deep Sapphire Blue (#0E3C7E)
  - Secondary: Vibrant Coral Orange (#FF6F4C)
  - Accent: Mint Green (#4ED9A1)
  - Background: Soft Warm Beige (#F8F3ED)
  - Text: Dark Charcoal (#222222)
*/

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0E3C7E;
  --secondary: #FF6F4C;
  --accent: #4ED9A1;
  --background: #F8F3ED;
  --text: #222222;
  --light-text: #666666;
  --white: #FFFFFF;
  --gradient: linear-gradient(to right, var(--secondary), var(--accent));
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 25px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient);
}

.section-title.text-center {
  text-align: center;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  transform: scale(1.05);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  transform: scale(1.05);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text);
}

.btn-accent:hover {
  transform: scale(1.05);
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Make all elements visible by default with animation */
.animate {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  animation-delay: 0.3s; /* Small delay for better UX */
}

/* Use pure CSS for FAQ animation */
.faq-question {
  cursor: pointer;
}

.faq-question:hover {
  background-color: rgba(14, 60, 126, 0.05);
}

.faq-item:hover .faq-question::after {
  color: var(--secondary);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}

.hidden-toggle {
  display: none;
}

#mobile-menu-toggle:checked ~ .nav-menu {
  right: 0;
}

#mobile-menu-toggle:checked ~ .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-toggle:checked ~ .menu-toggle span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle:checked ~ .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 60px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s forwards;
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: var(--primary);
  display: block;
  width: 100%;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-text);
  display: block;
  width: 100%;
}

.hero-medium-image {
  margin: 40px auto 0;
  width: 50%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}

.hero-medium-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--background);
}

.about-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center; /* Вертикальное выравнивание по центру */
  margin-top: 30px;
}

.about-image {
  width: 40%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 0; /* Убрали отступ сверху */
}

.about-content {
  width: 55%;
  padding-right: 20px;
}

.about-content h2 {
  color: var(--primary);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--white);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.service-box {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  flex: 0 1 calc(33.333% - 20px);
  min-width: 250px;
}

.service-box:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  color: var(--white);
  font-size: 2rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  background-color: var(--background);
}

.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.benefit-item {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex: 0 1 calc(33.333% - 20px);
  min-width: 250px;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
  background-color: var(--white);
}

.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.case-study-card {
  width: 31%;
}

.case-study-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.1);
}

.case-study-content {
  padding: 25px;
}

.case-study-content h3 {
  margin-bottom: 15px;
}

/* ===== DETAILED SERVICES SECTION ===== */
.detailed-services-section {
  background-color: var(--background);
}

.detailed-services-section .container {
  display: block;
  margin-top: 40px;
}

.detailed-services-section .service-detail-box {
  display: inline-block;
  width: 31%;
  margin: 1%;
  vertical-align: top;
}

.service-detail-box {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-detail-box:hover {
  transform: translateY(-5px);
}

.service-detail-box h3 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.service-pricing {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 15px 0;
}

.service-features {
  margin: 20px 0;
}

.service-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ===== ORDER FORM SECTION ===== */
.order-form-section {
  background-color: var(--white);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--background);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  transition: var(--transition);
  pointer-events: none;
  color: var(--light-text);
  z-index: 1;
}

.form-group.focused label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  padding: 0 5px;
  background-color: var(--background);
  color: var(--primary);
}

.select-group label {
  z-index: 2;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light-text);
  border-radius: var(--border-radius);
  background-color: transparent;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control::placeholder {
  color: transparent;
}

.form-select {
  position: relative;
}

.form-check {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background-color: var(--background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  padding-right: 30px;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
}

.faq-toggle:checked ~ .faq-question::after {
  content: '-';
}

.faq-toggle:checked ~ .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
  opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-section p {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-section.links ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 0;
  z-index: 9999;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.policy-content h1 {
  margin-bottom: 30px;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.policy-content ul, .policy-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content ul li, .policy-content ol li {
  margin-bottom: 10px;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-container {
  text-align: center;
  padding: 150px 20px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-box {
  max-width: 600px;
  padding: 40px;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  margin: 0 auto;
}

.thank-you-container h1 {
  margin-bottom: 20px;
  color: var(--primary);
}

.thank-you-container p {
  margin-bottom: 30px;
  max-width: 500px;
  font-size: 1.1rem;
  color: var(--light-text);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero-medium-image {
    width: 80%;
  }
  
  .services-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .services-grid .service-box {
    width: 48%;
    margin: 1%;
  }
  
  .benefits-list {
    display: flex;
    flex-wrap: wrap;
  }
  
  .benefits-list .benefit-item {
    width: 48%;
    margin: 1%;
  }
  
  .about-grid {
    display: block;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .detailed-services-section .service-detail-box {
    width: 48%;
    margin: 1%;
  }
  
  .case-study-card {
    width: 48%;
    margin: 1%;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
  }
  
  .footer-section {
    width: 48%;
    margin: 1%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    gap: 30px;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .services-grid .service-box {
    width: 100%;
    flex: 0 1 100%;
    margin-bottom: 20px;
  }
  
  .benefits-list {
    display: flex;
    flex-wrap: wrap;
  }
  
  .benefits-list .benefit-item {
    width: 100%;
    flex: 0 1 100%;
    margin-bottom: 20px;
  }
  
  .about-grid {
    flex-direction: column;
  }
  
  .about-image,
  .about-content {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .detailed-services-section .service-detail-box {
    width: 100%;
    margin: 0 0 30px 0;
  }
  
  .case-study-card {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .cookie-consent .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent button {
    margin-top: 15px;
  }
  
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .service-box,
  .benefit-item {
    padding: 20px 15px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .benefit-icon {
    font-size: 1.7rem;
  }
  
  .about-grid {
    padding: 0 10px;
  }
  
  .about-image,
  .about-content {
    width: 100%;
  }
  
  .hero-section {
    padding: 40px 0;
  }
}
