@media (min-width: 768px) {
    section {
        padding: 100px 10%;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto;
}

/* Hero Section */
.hero {
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        gap: 50px;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

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

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero-text p {
        margin-left: 0;
        margin-right: 0;
    }
}

.master-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 576px) {
    .master-features {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .master-features {
        justify-content: flex-start;
    }
}

.master-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.master-features i {
    color: var(--accent);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 80%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    border: 10px solid white;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .hero-image img {
        max-width: 500px;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.slide {
    flex: 0 0 calc(100% - 40px);
    min-width: 0;
}

@media (min-width: 576px) {
    .slide {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (min-width: 992px) {
    .slide {
        flex: 0 0 calc(33.333% - 20px);
    }
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .slide img {
        height: 500px;
    }
}

.slide img:hover {
    transform: scale(1.03);
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.next-btn {
    right: 0;
}

.prev-btn {
    left: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Safety */
.safety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .safety-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.safety-card {
    text-align: center;
    padding: 30px 20px;
    background: #fffaf6;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.safety-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.safety-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Price */
.price-list {
    max-width: 700px;
    margin: 0 auto;
}

.price-item {
    display: flex;
    align-items:
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #fff 0%, #fbfbfb 100%);
    margin-bottom: 12px;
    box-shadow: var(--shadow);

}
.price-item .left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.price-item .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}
.price-item .desc {
    color: #666;
    font-size: 0.95rem;
}
/* Testimonials */
.testimonials {
    max-width: 1000px;
    margin: 60px auto;
    display: grid;
    gap: 20px;
}
.testimonial-card {
    padding: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf8 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 18px;
    align-items: center;
}
.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.testimonial-body {
    flex: 1;
}
.testimonial-name {
    font-weight: 700;
    margin-bottom: 6px;
}
.testimonial-text {
    color: #555;
    line-height: 1.5;
}
/* FAQ */
.faq {
    max-width: 900px;
    margin: 60px auto;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}
.faq-item:hover {
    transform: translateY(-6px);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.faq-answer {
    margin-top: 12px;
    color: #555;
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}
/* Contact / Footer */
.contact-section {
    background: linear-gradient(180deg, #fffaf7 0%, #fff 100%);
    padding: 60px 20px;
    border-top: 1px solid #f1e9e3;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.footer {
    padding: 30px 20px;
    text-align: center;
    color: #777;
    font-size: 0.95rem;
    border-top: 1px solid #f1e9e3;
    background: #fff;
}
/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Small devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

.hero-subtitle {
    font-size: 1rem;
}

.cta-btn {
    padding: 10px 18px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
}

}
/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* End of stylesheet */


/* Общий контейнер */
.image-grid {
  display: flex;
  flex-direction: row; /* На ПК в ряд */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  justify-content: center;
}

/* Обертка для каждого изображения */
.image-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Сами изображения */
.image-item img {
  width: 100%;       /* Растягиваем на всю ширину колонки */
  height: auto;      /* Сохраняем пропорции */
  max-height: 70vh;  /* На ПК не длиннее 70% высоты экрана */
  object-fit: contain; /* Показывает изображение ПОЛНОСТЬЮ без обрезки */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Настройки для мобильных устройств */
@media (max-width: 768px) {
  .image-grid {
    flex-direction: column; /* На телефоне картинки встают друг под друга */
    gap: 30px;
    padding: 15px;
  }

  .image-item img {
    max-height: none; /* Снимаем ограничение высоты, чтобы текст был читаем */
    width: 100%;      /* Картинка занимает всю ширину экрана */
  }
}
