/* ==========================================
   СТИЛИ ДЛЯ СТРАНИЦ О СЕРВИСЕ (INFO PAGES)
   Mobile-First & Tablet Optimized
   ========================================== */

   .info-page-wrap {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: 85vh;
}

/* --- ТАБЫ ПЕРЕКЛЮЧЕНИЯ НАВЕРХУ СТРАНИЦ --- */
.info-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.info-tab-link {
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(59, 13, 27, 0.08);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-tab-link:hover {
    background: #FFFFFF;
    color: var(--text-wine);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(59, 13, 27, 0.06);
}

.info-tab-link.active {
    background: var(--text-wine);
    color: var(--bg-milk);
    border-color: var(--text-wine);
    box-shadow: 0 10px 25px rgba(59, 13, 27, 0.15);
}

/* --- HERO СЕКЦИИ ИНФО-СТРАНИЦ --- */
.info-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-milk);
    border: 1px solid rgba(59, 13, 27, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-wine);
    margin-bottom: 16px;
}

.info-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 5.5vw, 62px);
    line-height: 1.08;
    color: var(--text-wine);
    margin-bottom: 20px;
}

.info-hero-title i {
    font-style: italic;
    color: var(--accent-gold);
}

.info-hero-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- МОДУЛЬНАЯ BENTO-СЕТКА --- */
.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bento-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 36px 28px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59, 13, 27, 0.08);
}

.bento-card.pastel-green { background: #F1F5EE; }
.bento-card.pastel-almond { background: #FAF5ED; }
.bento-card.pastel-rose { background: #FAF0EE; }

.bento-step-num {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: block;
}

.bento-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.bento-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-wine);
    margin-bottom: 12px;
    line-height: 1.2;
}

.bento-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-light);
}

/* --- СРАВНЕНИЕ: СУПЕРМАРКЕТ VS ДВОР --- */
.compare-container {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(59, 13, 27, 0.08);
    margin-bottom: 40px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.compare-col {
    padding: 24px;
    border-radius: 20px;
}

.compare-col.bad {
    background: #FAF8F6;
    border: 1px dashed rgba(0,0,0,0.12);
}

.compare-col.good {
    background: #F1F5EE;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.compare-col h4 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
    color: var(--text-light);
}

/* --- ИНТЕРАКТИВНЫЙ ЧЕКЕР УЛИЦЫ --- */
.zilart-checker-box {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF5ED 100%);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(59, 13, 27, 0.08);
    box-shadow: 0 15px 35px rgba(59, 13, 27, 0.04);
    text-align: center;
    max-width: 840px;
    margin: 0 auto 48px;
}

.checker-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--text-wine);
    margin: 8px 0 24px;
}

.checker-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto;
}

.checker-inputs-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.street-select {
    flex-grow: 1;
    padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid rgba(59, 13, 27, 0.15);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233B0D1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.house-select {
    width: 140px;
    padding: 14px 16px;
    border-radius: 100px;
    border: 1px solid rgba(59, 13, 27, 0.15);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233B0D1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.btn-check-street {
    width: 100%;
    padding: 16px;
    border-radius: 100px;
    background: var(--text-wine);
    color: #fff;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(59, 13, 27, 0.15);
}

.btn-check-street:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.input-shake {
    animation: shake 0.5s ease-in-out;
    border-color: var(--accent-red) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* --- КАРТОЧКА УСПЕХА С АНИМИРОВАННОЙ ГАЛОЧКОЙ --- */
.check-success-card {
    display: none;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 36px 28px;
    margin-top: 32px;
    border: 1px solid rgba(46, 213, 115, 0.4);
    box-shadow: 0 20px 45px rgba(46, 213, 115, 0.12);
    text-align: center;
    animation: slideUpFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.check-success-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkmark-animation-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.checkmark-svg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #2ED573;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #2ED573;
    animation: fillCircle 0.4s ease-in-out 0.4s forwards, scaleCheck 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #2ED573;
    fill: none;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #FFFFFF;
    animation: strokeCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle { 100% { stroke-dashoffset: 0; } }
@keyframes strokeCheck { 100% { stroke-dashoffset: 0; } }
@keyframes fillCircle { 100% { box-shadow: inset 0 0 0 40px #2ED573; } }
@keyframes scaleCheck { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.success-badge {
    display: inline-block;
    background: #F1F5EE;
    color: #1A1A1A;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.success-address {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-wine);
    margin-bottom: 24px;
}

.success-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 28px;
    text-align: left;
}

.feature-item {
    background: var(--bg-milk);
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-icon { font-size: 24px; }
.feature-item b { display: block; font-size: 14px; color: var(--text-dark); }
.feature-item small { display: block; font-size: 11px; color: var(--text-light); line-height: 1.2; }

.success-cta-btn {
    width: 100%;
    max-width: 380px;
    padding: 16px 24px;
    font-size: 14px;
}

/* --- СВЯЗЬ С ОСНОВАТЕЛЕМ --- */
.founder-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 36px 40px;
    border: 1px solid rgba(59, 13, 27, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.02);
}

.founder-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--text-wine);
    margin-bottom: 8px;
}

.founder-info p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 550px;
    line-height: 1.5;
}

.tg-big-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2AABEE;
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(42, 171, 238, 0.25);
    white-space: nowrap;
}

.tg-big-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(42, 171, 238, 0.35);
}


/* ==========================================
   АДАПТИВ: ПЛАНШЕТЫ (TABLET: 768px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .info-page-wrap {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .bento-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .bento-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .bento-card h3 {
        font-size: 20px;
    }

    .compare-container, .zilart-checker-box, .founder-card {
        padding: 32px 24px;
        border-radius: 28px;
    }

    .founder-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}


/* ==========================================
   АДАПТИВ: СМАРТФОНЫ (MOBILE: < 768px)
   ========================================== */
@media (max-width: 768px) {
    .info-page-wrap {
        padding-top: 88px;
        padding-bottom: 50px;
    }

    /* 1. Табы превращаются в скользящую ленту */
    .info-tabs-nav {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        margin: 0 -20px 32px;
        padding: 0 20px 6px;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .info-tabs-nav::-webkit-scrollbar { display: none; }

    .info-tab-link {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 10px 18px;
        font-size: 13px;
    }

    /* 2. Hero-секция */
    .info-hero {
        margin-bottom: 36px;
    }
    .info-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    .info-hero-desc {
        font-size: 15px;
        line-height: 1.5;
    }

    /* 3. Карточки Bento превращаются в свайп-слайдер */
    .bento-grid-3 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        margin: 0 -20px 36px;
        padding: 0 20px 14px;
        scrollbar-width: none;
    }
    .bento-grid-3::-webkit-scrollbar { display: none; }

    .bento-card {
        flex: 0 0 85%; /* Виден краешек следующей карточки для свайпа */
        scroll-snap-align: center;
        padding: 26px 20px;
        border-radius: 24px;
    }

    .bento-step-num { font-size: 32px; }
    .bento-icon { font-size: 30px; margin-bottom: 12px; }
    .bento-card h3 { font-size: 20px; }
    .bento-card p { font-size: 13px; }

    /* 4. Сравнение с супермаркетом */
    .compare-container {
        padding: 24px 16px;
        border-radius: 24px;
        margin-bottom: 32px;
    }
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .compare-col {
        padding: 18px 16px;
        border-radius: 16px;
    }
    .compare-col h4 { font-size: 16px; }
    .compare-list li { font-size: 13px; }

    /* 5. Чекер адреса */
    .zilart-checker-box {
        padding: 24px 16px;
        border-radius: 24px;
        margin-bottom: 36px;
    }
    .checker-title {
        font-size: 22px;
        margin-bottom: 18px;
    }
    .checker-inputs-row {
        flex-direction: column;
        gap: 10px;
    }
    .house-select {
        width: 100%;
    }
    .street-select, .house-select {
        padding: 13px 16px;
        font-size: 14px;
    }
    .btn-check-street {
        padding: 14px;
        font-size: 14px;
    }

    /* Карточка результата */
    .check-success-card {
        padding: 24px 14px;
        border-radius: 20px;
        margin-top: 24px;
    }
    .checkmark-animation-wrap, .checkmark-svg {
        width: 58px;
        height: 58px;
    }
    .success-address {
        font-size: 19px;
        margin-bottom: 18px;
    }
    .success-features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    .feature-item {
        padding: 12px 14px;
    }
    .feature-item b { font-size: 13px; }
    .feature-item small { font-size: 11px; }

    /* 6. Карточка основателя */
    .founder-card {
        padding: 24px 18px;
        border-radius: 24px;
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .founder-info h3 { font-size: 22px; }
    .founder-info p { font-size: 13px; }
    .tg-big-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 13px;
    }
}


/* ==========================================
   КОМПАКТНЫЕ СМАРТФОНЫ (< 380px, iPhone SE)
   ========================================== */
@media (max-width: 380px) {
    .bento-card {
        flex: 0 0 90%;
        padding: 22px 16px;
    }
    .info-hero-title {
        font-size: 30px;
    }
    .compare-container, .zilart-checker-box, .founder-card {
        padding: 20px 12px;
    }
}
