/* ========================================
   🌐 ОБЩИЕ СТИЛИ
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
    padding: 30px;
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

.animated-link {
    display: inline-block; /* Чтобы transform работал */
    text-decoration: none;
    color: inherit; /* Сохраняем цвет текста */
    animation: pulse 1.5s infinite ease-in-out;
}

/* Анимация постоянного увеличения/уменьшения */
@keyframes pulse {
    0%, 100% {
        transform: scale(0.99);
    }
    50% {
        transform: scale(1.04);
    }
}

/* === Цвет при наведении и фокусе (Telegram Blue) === */
.animated-link:hover,
.animated-link:focus {
    color: #0088cc; /* Цвет Telegram */
    outline: none;
}

/* ========================================
   🧭 НАВИГАЦИОННОЕ МЕНЮ И ШАПКА
======================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
   border-radius: 18px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    max-width: 70px;
    vertical-align: middle;
}

.logo-text {
   margin-left: 20px
}

.logo-text span {
   font-size: 1.5rem;
   color: #333;
   font-weight: 700;
}

.menu {
    position: relative;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #d62736;
}

.burger-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.close-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

@media (max-width: 768px) {

   .header {
      justify-content: center;
   }
   
   .logo img {
    max-width: 50px;
    vertical-align: middle;
   }

   .logo-text {
   margin-left: 10px
}
   
   .logo-text span {
      font-size: 1.3rem;
      font-weight: 500;
   }
}

/* ========================================
   🎁 СЕКЦИЯ ПРОДУКТА
======================================== */

.product {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 30px;
    margin: 40px auto;
    max-width: 1200px;
   background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
}

.product-info {
    flex: 1;
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
}

.price {
    font-size: 1.5rem;
    color: #d62737;
    margin-bottom: 20px;
}

.delivery {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.order-button {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    margin-top: 10px;
    background-color: #d62737;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    border: none;
    border-radius: 35px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

.order-button:hover {
    background-color: #af372e;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

   .delivery {
      font-size: 1rem;
      margin-bottom: 10px;
      font-weight: 500;
   }

   .product-info {
      padding-left: 15px;
      padding-right: 15px;

   }
}
/* ========================================
   📦 ПРОЦЕСС ЗАКАЗА
======================================== */

.process {
    text-align: center;
    padding: 30px 30px;
    background-color: #ffffff;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.steps-container {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 20px 0;
}

.steps {
    display: flex;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #d62737;
    color: white;
    border-radius: 50%;
    margin-bottom: 10px;
    font-weight: bold;
}

.arrow {
    font-size: 2rem;
    color: #d62736;
    margin: 0 20px;
    animation: bounce-horizontal 2s infinite ease-in-out;
}

@keyframes bounce-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* ========================================
   💡 ПРЕИМУЩЕСТВА
======================================== */

.benefits {
    text-align: center;
    padding: 30px 30px;
    background-color: #fff;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.benefits-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 40px;
}

.benefits-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.benefits-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.benefits-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ========================================
   ❓ ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ (FAQ)
======================================== */

.faq {
    padding: 30px 30px;
    background-color: #fff;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

.faq-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.faq-question,
.faq-answer {
    position: relative;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    color: white;
}

.faq-question {
    align-self: flex-start;
    background-color: #007AFF;
}

.faq-answer {
    align-self: flex-end;
    background-color: #50C878;
}

/* === Анимация сообщений iMessage === */
.faq-question,
.faq-answer {
    opacity: 0;
    transform: translateX(0);
    animation-fill-mode: forwards;
}

.faq-question.message-visible {
    animation: slideInLeft 0.6s ease-out forwards;
}

.faq-answer.message-visible {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Адаптация под мобильные устройства --- */
@media (max-width: 768px) {
    .faq h2 {
        font-size: 1.5rem;
         margin-bottom: 0px;
    }

    .faq-question,
    .faq-answer {
        max-width: 90%;
        font-size: 0.95rem;
        padding: 10px 14px;
        border-radius: 18px;
    }

    .faq-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question,
    .faq-answer {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

/* ========================================
   ❓ HOW-TO-USE
======================================== */
.how-to-use {
    text-align: center;
    padding: 30px 30px;
    background-color: #fff;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instruction-note {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.doses-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.dose-box {
    background-color: #4b525a;
   color: #fff;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dose-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .doses-container {
        flex-direction: column;
        align-items: center;
    }

    .dose-box {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* ========================================
   📱 КАРУСЕЛЬ
======================================== */

/* === Стили для слайдера === */
.slider {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
   padding: 30px 30px;
   background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.slider-track {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: #ffffff; /* Серый фон на случай, если фото не загрузилось */
    padding: 10px;
}

.slide-image {
    width: auto;
    height: auto;
    max-height: 500px;
    object-fit: contain; /* Всегда показываем полностью */
    display: block;
    border-radius: 18px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .slide-image {
        max-height: 300px;
        border-radius: 8px;
       width: auto;
    }
    .slider {
        margin: 20px auto;
    }
}

/* === Навигационные кнопки === */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.slider-btn:hover {
    opacity: 1;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* === Индикаторы === */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #d62736;
}

/* ========================================
   📱 АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
======================================== */

@media (max-width: 768px) {
    .product-image {
        max-height: 400px;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -80%;
        width: 80%;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .menu-list.active {
        left: 0;
    }

    .burger-menu {
        display: block;
    }

    body.overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu a {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 20px;
    }

    .arrow {
        transform: rotate(90deg); /* Стрелка вниз */
        margin: 10px 0;
        animation: bounce-vertical 2s infinite ease-in-out;
    }

    @keyframes bounce-vertical {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
        }
        50% {
            transform: rotate(90deg) translateX(-10px);
        }
    }
}
/* ========================================
   🎨 АНИМАЦИИ
======================================== */

.step-number {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   📄 ПЛАВНАЯ АНИМАЦИЯ ЭЛЕМЕНТОВ
======================================== */

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   🖼️ ФУТЕР
======================================== */

.footer {
   max-width: 1200px;
   text-align: center;
   padding: 30px 30px;
   margin: 0px auto;
   background-color: #fff;
   border-radius: 18px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
   
}
