:root {
  --primary: #3a5a78;
  --secondary: #6b8cae;
  --accent: #d4a59a;
  --light: #f8f9fa;
  --dark: #2b3a4a;
  --text: #333;
  --text-light: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: #fff;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 25px auto 0;
  border-radius: 2px;
}

/* Необычный хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s;
}

.header.scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 35px;
  position: relative;
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.main-nav li:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-nav li:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  margin: 6px 0;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Hero с асимметричным дизайном */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(235, 238, 241, 1) 100%);
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

.hero-image {
  position: absolute;
  right: -100px;
  top: 110px;
  width: 60%;
  max-width: 800px;
  height: 80%;
  background: url('../images/photo-1573497019940-1c28c88b4f3e.avif') center/cover;
  border-radius: 30px 0 0 30px;
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Секция "О нас" с табами */
.about-section {
  background-color: var(--light);
}

.tabs {
  display: flex;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 15px 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: all 0.3s;
}

.tab-btn:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active:after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s;
}

/* Секция услуг с иконками */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(212, 165, 154, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

/* Секция с цифрами */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  padding: 30px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.stat-text {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Секция команды */
.team-slider {
  padding: 30px;
}

.team-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  height: 300px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-name {
  margin-bottom: 5px;
}

.team-position {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Секция отзывов */
.testimonials {
  background-color: var(--light);
}

.testimonial-card {
  background-color: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  margin: 20px;
}

.testimonial-card:before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 100px;
  color: rgba(212, 165, 154, 0.1);
  position: absolute;
  top: 20px;
  left: 30px;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

.author-info p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Секция блога */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
  background-color: white;
}

.blog-date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Секция CTA */
.cta-section {
  background: linear-gradient(rgba(58, 90, 120, 0.9), rgba(58, 90, 120, 0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
  color: white;
  text-align: center;
  padding: 120px 0;
}

.cta-title {
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  background-color: var(--accent);
  border-color: var(--accent);
}

.cta-btn:hover {
  color: var(--accent);
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h3 {
  color: white;
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  gap: 10px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.cookie-accept {
  background-color: var(--accent);
  color: white;
}

.cookie-accept:hover {
  background-color: #c28a7d;
}

.cookie-decline {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Адаптация */
@media (max-width: 1200px) {
  .hero-image {
    right: -150px;
    width: 65%;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 600px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding-top: 100px;
  }

  .hero-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 400px;
    margin-top: 50px;
    border-radius: 30px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav li {
    margin: 15px 0;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    padding-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title:after {
    width: 60px;
  }
}

.download-section {
  background-color: var(--light);
  padding: 80px 0;
  text-align: center;
}

.download-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.download-title {
  margin-bottom: 20px;
}

.download-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.book-cover {
  width: 200px;
  height: 280px;
  margin: 0 auto 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

.download-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 20px;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
}

.privacy-note a {
  color: var(--primary);
}

.testimonials-slider {
  padding-bottom: 20px;
}

.testimonials-slider .swiper-pagination {
  bottom: -3px;
}

.footer-bottom p {
  color: #fff;
}

.footer-legal a {
  color: #f8f9fa;
}

.footer-legal a:hover {
  color: #ddd;
}

.faq-item ul {
  padding-left: 30px;
  margin: 15px 0;
}

.team-image img{
  object-position: top;
}

@media (max-width:600px) {
  .footer-grid {
    flex-direction: column;
  }

  .stat-item {
    padding: 10px;
  }

  .team-slider {
    padding: 5px;
  }

  .team-slider {
    padding-bottom: 40px;
  }

  .testimonial-card {
    margin: 5px;
    padding: 10px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-grid{
    display: flex;
    flex-direction: column;
  }
  
}

#faq {
  background: linear-gradient(180deg, #f0f4f8, #ffffff);
  padding: 80px 20px;
  font-family: 'Inter', sans-serif;
}

.section-title {
  text-align: center;
  font-size: 42px;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  border-left: 6px solid #3b82f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
  font-size: 20px;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.faq-item h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.faq-answer {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

.faq-answer ul {
  margin-top: 12px;
  padding-left: 20px;
}

.faq-answer ul li {
  margin-bottom: 6px;
  list-style: disc;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item h3 {
    font-size: 18px;
  }

  .faq-answer {
    font-size: 15px;
  }
}




.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Достаточно для контента */
  padding: 1rem 0;
}

