/* 
 * sylvenorquint - Financial Audit Services
 * Main Stylesheet
 * Colors:
 * Background: #FBF7F5 (Cream Beige)
 * Primary: #533C7E (Rich Purple)
 * Secondary: #FA7268 (Warm Coral)
 * Highlights: #A3E7D8 (Mint Aqua)
 * Text: #2E2E2E (Charcoal Gray)
 */

/* ---- Base Styles ---- */
:root {
  --bg-color: #fbf7f5;
  --primary: #533c7e;
  --secondary: #fa7268;
  --highlight: #a3e7d8;
  --text: #2e2e2e;
  --light-gray: #f5f5f5;
  --mid-gray: #e0e0e0;
  --dark-gray: #707070;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2 span {
  color: var(--primary);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 80px 0;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ---- Header & Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.nav-cta::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  transition: var(--transition);
}

/* ---- Main Content ---- */
#main-content {
  margin-top: 80px;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(to right, var(--primary), #7259a0);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  font-weight: 400;
  font-size: 2rem;
  margin-top: 5px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ---- About Section ---- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* ---- Benefits Section ---- */
.benefits {
  background-color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--mid-gray);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.benefit-card .icon {
  margin-bottom: 20px;
}

.benefit-card .icon img {
  width: 100%;
  height: auto;
  max-width: 180px;
  border-radius: 8px;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

/* ---- Services Section ---- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--mid-gray);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(83, 60, 126, 0.05);
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.service-icon {
  text-align: center;
  margin-bottom: 30px;
}

.service-icon img {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card ul {
  margin: 20px 0;
  padding-left: 20px;
}

.service-card li {
  margin-bottom: 8px;
}

.service-card .btn-secondary {
  margin-top: 15px;
}

/* ---- Testimonials Section ---- */
.testimonials {
  background-color: var(--light-gray);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.testimonial-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50px;
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: var(--white) transparent;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.testimonial-author {
  margin-top: 30px;
  padding-left: 50px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.testimonial-author p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Навигация удалена по запросу пользователя */

/* ---- Case Studies Section ---- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.case-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: block;
}

/* ---- Contact Form Section ---- */
.contact-form {
  background-color: var(--white);
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

form {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.form-group {
  margin-bottom: 20px;
  transform: rotate(1deg);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--mid-gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(83, 60, 126, 0.2);
}

.checkbox-group {
  margin-top: 25px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.submit-group {
  margin-top: 30px;
  text-align: left;
}

.form-info {
  padding: 20px 0;
}

.form-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.form-info ul {
  margin: 20px 0;
  padding-left: 20px;
}

.form-info li {
  margin-bottom: 10px;
}

.contact-details {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--mid-gray);
}

/* ---- FAQ Section ---- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  padding-right: 30px;
}

.faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition);
}

.faq-toggle::before {
  width: 20px;
  height: 2px;
  top: 9px;
}

.faq-toggle::after {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

.faq-item.active .faq-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  background-color: var(--light-gray);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 20px;
  margin-bottom: 0;
}

/* ---- Footer ---- */
.site-footer {
  background-color: #2d2d3a;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-info {
  grid-column: span 2;
}

.footer-logo h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: left;
}

.footer-logo h2::after {
  display: none;
}

.footer-info p {
  margin-bottom: 20px;
  color: #b5b5b5;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--highlight);
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-links h3,
.footer-services h3,
.footer-legal h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-legal h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul,
.footer-services ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-services li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a,
.footer-legal a {
  color: #b5b5b5;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover,
.footer-legal a:hover {
  color: var(--highlight);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #b5b5b5;
  margin-bottom: 0;
}

/* ---- Cookie Consent Popup ---- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  display: none;
}

.cookie-popup.active {
  display: block;
  animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-content p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#accept-cookies {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

#accept-cookies:hover {
  background-color: var(--secondary);
}

/* ---- Responsive Styles ---- */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 20px;
  }

  .form-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 span {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #menu-toggle:checked ~ .main-nav {
    max-height: 300px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .main-nav li {
    margin: 0 0 15px 0;
  }

  #menu-toggle:checked ~ .mobile-menu-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-info {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .benefit-card,
  .service-card,
  .case-card {
    padding: 20px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-grid {
    gap: 20px;
  }
}

/* ---- Animation Effects ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
}
