/* 
 * domain - Stylesheet
 * Финансовая аудиторская компания
 */

/* === ОСНОВНЫЕ СТИЛИ === */
:root {
  --primary: #101D42;
  --accent: #FFD447;
  --highlight: #FF7A5A;
  --background: #F9F9F9;
  --text: #1E1E1E;
  --secondary-bg: #E0ECF9;
  --link-hover: #C75146;
  
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --base-font-size: 16px;
  --container-width: 1280px;
}

/* === СБРОС СТИЛЕЙ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

body {
  font-family: var(--font-primary);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === ТИПОГРАФИЯ === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.text-center {
  text-align: center;
}

/* === КНОПКИ === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 29, 66, 0.3);
}

.btn-primary:hover {
  background-color: rgba(16, 29, 66, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 29, 66, 0.4);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 212, 71, 0.3);
}

.btn-accent:hover {
  background-color: rgba(255, 212, 71, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 212, 71, 0.4);
  color: var(--primary);
}

/* === ХЕДЕР === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin: 0 1rem;
}

.nav-desktop a {
  position: relative;
  font-weight: 500;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--highlight);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.nav-mobile {
  display: none;
}

/* === СЕКЦИИ === */
section {
  padding: 5rem 0;
  position: relative;
}

/* Якоря с отступом для фиксированного хедера */
html {
  scroll-padding-top: 120px; /* Отступ для всех якорей */
}

.section-title {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
}

/* === СЕКЦИЯ ГЕРОЙ === */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(16, 29, 66, 0.8) 100%);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(45deg, rgba(255, 212, 71, 0.2) 0%, rgba(255, 122, 90, 0.2) 100%);
  animation: heroGradient 10s infinite alternate;
}

@keyframes heroGradient {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* === СЕКЦИЯ О НАС === */
.about-us {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  opacity: 0.3;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image:hover::before {
  top: 10px;
  left: -10px;
}

/* === СЕКЦИЯ УСЛУГИ === */
.services {
  background-color: var(--secondary-bg);
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  padding: 7rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-bg);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

/* === СЕКЦИЯ ПРЕИМУЩЕСТВА === */
.benefits {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.2);
  color: var(--highlight);
}

/* === СЕКЦИЯ ОТЗЫВЫ === */
.testimonials {
  background-color: var(--secondary-bg);
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  position: relative;
}

.testimonial-carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.testimonial-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera*/
}

.testimonial-item {
  scroll-snap-align: start;
  min-width: 300px;
  width: calc(33.333% - 2rem);
  margin: 0 1rem;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  margin-top: auto;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #777;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(16, 29, 66, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
  background-color: var(--primary);
}

/* === СЕКЦИЯ ПРОЦЕСС === */
.process {
  background-color: white;
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--secondary-bg);
}

.process-step {
  position: relative;
  padding: 2rem 0;
  display: flex;
}

.process-step:nth-child(odd) {
  flex-direction: row-reverse;
}

.process-step-content {
  width: 45%;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.process-step-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  z-index: 1;
}

/* === СЕКЦИЯ КОМАНДА === */
.team {
  background-color: var(--secondary-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
  height: 300px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.team-member:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: #777;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  color: var(--primary);
  font-size: 1.25rem;
}

/* === СЕКЦИЯ ФОРМА === */
.contact-form-section {
  background: linear-gradient(135deg, white 0%, var(--secondary-bg) 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  padding: 7rem 0 5rem;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-color: var(--accent);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
  z-index: -1;
}

.form-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background-color: var(--highlight);
  opacity: 0.1;
  border-radius: 0 100% 0 0;
  z-index: -1;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 29, 66, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23101D42'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 4px;
}

/* === ФУТЕР === */
footer {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* === МОБИЛЬНОЕ МЕНЮ НА PHP (ОТКЛЮЧЕНО) === */
.mobile-menu-active {
  overflow: visible;
}

.mobile-menu-active .nav-mobile {
  display: none;
}

.nav-mobile {
  display: none;
}

.mobile-menu-close {
  display: none;
}

.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-active .mobile-menu-backdrop {
  display: none;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-text {
  margin-right: 1.5rem;
  flex-grow: 1;
}

.cookie-text h4 {
  margin-bottom: 0.5rem;
}

.cookie-actions {
  flex-shrink: 0;
}

/* Мобильная версия cookie-popup */
@media (max-width: 768px) {
  .cookie-popup {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 0.75rem;
    width: 100%;
  }
  
  .cookie-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }
  
  .cookie-text p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  
  .cookie-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .cookie-popup {
    padding: 0.5rem;
  }
  
  .cookie-text h4 {
    font-size: 0.9rem;
  }
  
  .cookie-text p {
    font-size: 0.8rem;
  }
}

/* === FAQ СЕКЦИЯ === */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-question {
  margin-bottom: 0;
  padding: 1.25rem;
  background-color: white;
  font-weight: 600;
  position: relative;
  border: 1px solid #e1e1e1;
  border-radius: 8px 8px 0 0;
  margin-top: 1.5rem;
}

.faq-question:first-child {
  margin-top: 0;
}

.faq-question a {
  display: block;
  padding-right: 3rem;
  text-decoration: none;
  color: var(--text);
}

.faq-question a:after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.faq-question.active {
  background-color: var(--primary);
  color: white;
}

.faq-question.active a {
  color: white;
}

.faq-question.active a:after {
  content: '−';
}

.faq-answer {
  padding: 1.25rem;
  background-color: rgba(224, 236, 249, 0.3);
  border: 1px solid #e1e1e1;
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: none;
}

.faq-answer.active {
  display: block;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
  :root {
    --base-font-size: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    padding-right: 0;
  }
  
  .process-step {
    flex-direction: column !important;
    padding-left: 2.5rem;
  }
  
  .process-timeline::before {
    left: 0;
  }
  
  .process-step-number {
    left: 0;
    top: 2.5rem;
  }
  
  .process-step-content {
    width: 100%;
  }
  
  .testimonial-item {
    min-width: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  :root {
    --base-font-size: 14px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: none; /* Полностью скрываем кнопку мобильного меню */
  }
  
  .header-container {
    justify-content: center;
    position: relative;
    padding: 0.75rem 0;
  }
  
  .logo {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .testimonial-item {
    min-width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }
  
  .mobile-menu-backdrop {
    display: none !important;
  }
  
  .nav-mobile {
    width: 100%;
  }
  
  .hero {
    clip-path: none;
  }
  
  .services {
    clip-path: none;
  }
  
  .contact-form-section {
    clip-path: none;
  }
}
