/* Основные стили и сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #2BC6B6;
  --accent-color: #FF6F61;
  --bg-color: #F5F1EE;
  --text-color: #2E2E2E;
  --gold-color: #FFCC00;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: hidden;
  box-sizing: border-box;
}

section {
  padding: 60px 0;
  overflow: visible;
  position: relative;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 700;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

/* Шапка сайта */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--main-color);
}

.logo span {
  color: var(--accent-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Гамбургер меню для мобильных */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--main-color);
  transition: var(--transition);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Герой-блок */
.hero {
  padding: 150px 0 100px;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(43, 198, 182, 0.1);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 111, 97, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-text h1 span {
  color: var(--main-color);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Услуги */
.services {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--main-color);
}

.service-card h3 {
  position: relative;
  padding-bottom: 15px;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--gold-color);
}

/* Почему мы */
.why-us {
  background-color: var(--main-color);
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--main-color);
  font-size: 2rem;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background-color: var(--gold-color);
  color: white;
  transform: rotate(360deg);
}

/* Тарифы */
.pricing {
  background-color: white;
  overflow: visible;
  width: 100%;
  position: relative;
}

.pricing .container {
  max-width: 1200px;
  width: calc(100% - 30px);
  padding: 0 15px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow: visible;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
  overflow: visible;
  width: 100%;
}

.pricing-card {
  background-color: white;
  border-radius: 10px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  width: 100%;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--main-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card.popular {
  border: 2px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.pricing-card.popular::before {
  transform: scaleX(1);
  background-color: var(--accent-color);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background-color: var(--accent-color);
  color: white;
  transform: rotate(45deg);
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
  overflow: hidden;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 25px;
}

.pricing-card.popular .pricing-price {
  color: var(--accent-color);
}

.pricing-features {
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.pricing-features li {
  margin-bottom: 10px;
  position: relative;
}

.pricing-btn {
  width: 100%;
}

/* О нашем подходе */
.approach {
  background-color: var(--bg-color);
}

.approach-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.approach-image {
  flex: 1;
}

.approach-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.approach-image img:hover {
  transform: scale(1.05);
}

.approach-text {
  flex: 1;
}

.approach-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Отзывы */
.testimonials {
  background-color: white;
  position: relative;
  overflow: visible;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(43, 198, 182, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Веб-кит браузеры (Chrome, Safari) */
}

.testimonial-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 20px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(43, 198, 182, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-position {
  color: var(--main-color);
  font-size: 0.9rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--main-color);
}

/* Форма заказа */
.contact {
  background-color: var(--bg-color);
  position: relative;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 111, 97, 0.1);
  border-radius: 50%;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.contact-form-header {
  background-color: var(--main-color);
  color: white;
  padding: 30px;
  text-align: center;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 198, 182, 0.2);
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%232E2E2E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check-input {
  margin-top: 5px;
  margin-right: 10px;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.9rem;
}

.form-check-label a {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Подвал */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--main-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #ccc;
}

.footer-links li a:hover {
  color: var(--main-color);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--main-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-popup p {
  margin: 0 20px 0 0;
}

.cookie-popup-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.accept-cookies {
  background-color: var(--main-color);
  color: white;
  border: none;
}

.accept-cookies:hover {
  background-color: var(--accent-color);
}

.decline-cookies {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid #ddd;
}

.decline-cookies:hover {
  background-color: #f5f5f5;
}

/* Страницы политик */
.policy-page {
  padding: 150px 0 60px;
}

.policy-content {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.policy-content h1 {
  margin-bottom: 30px;
}

.policy-content h2 {
  margin: 40px 0 20px;
}

.policy-content ul, 
.policy-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* Страница благодарности */
.thanks-page {
  padding: 150px 0;
  text-align: center;
}

.thanks-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 60px 40px;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  background-color: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
  font-size: 2rem;
}

/* Адаптивная верстка */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
  }
  
  .pricing-card {
    padding: 30px 15px;
  }
  
  .pricing-badge {
    right: -25px;
    padding: 3px 25px;
  }
  
  .approach-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav.active {
    height: auto;
    padding: 20px 0;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 0 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-popup p {
    margin: 0 0 15px;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 20px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* Фикс для контейнера */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Фикс контейнера для карусели отзывов */
.testimonials-carousel {
  width: 100%;
  overflow-x: visible;
}

/* Фикс для cookie-popup на мобильных */
@media (max-width: 576px) {
  .cookie-popup {
    left: 10px;
    right: 10px;
    padding: 15px;
  }
  
  .cookie-popup-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .pricing-card {
    padding: 30px 15px;
  }
}

/* Стили для scroll bar */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.pricing .section-title {
  overflow: visible;
}

.pricing-card h3, .pricing-card .pricing-price, .pricing-features li {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
} 