/* =============================================================================
   КОРНЕБОЙ - СТИЛИ САЙТА
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: #f4f6f8;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid #14532d;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.phone {
    font-weight: 700;
    font-size: 1.15rem;
    color: #14532d;
    text-decoration: none;
    white-space: nowrap;
}

.phone:hover {
    color: #c62828;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2d7a3e 0%, #4CAF50 100%);
    color: white;
    padding: 40px 0 30px;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
    padding: 0 20px;
}

.hero-slider {
    position: relative;
    max-width: 700px;
    max-height: 400px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    background: white;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hero-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.hero-slides-track.dragging,
.hero-slides-track.no-transition {
    transition: none;
}

.hero-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
    transform-origin: center center;
    will-change: transform;
}

.hero .btn-submit {
    display: inline-block;
    width: auto;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 15px;
}

.hero .hero-note {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero {
        padding: 25px 0 20px;
    }
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .hero-slider {
        max-height: 280px;
        margin: 15px 10px;
    }
    .hero-slide img {
        max-height: 280px;
    }
    .hero .btn-submit {
        padding: 14px 30px;
        font-size: 1rem;
    }
    .hero .hero-note {
        font-size: 0.85rem;
    }
    .slider-prev, .slider-next {
        display: none;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    max-width: 430px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    background: white;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hero-slides-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.hero-slides-track.dragging {
    transition: none;
}

.hero-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
    object-fit: contain;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

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

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-slide img {
    transform-origin: center center;
    will-change: transform;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .slider-prev, .slider-next {
        display: none;
    }
    .hero-slider {
        max-width: 100%;
        margin: 20px 0;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Problems */
.problems {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2d7a3e;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.problem-card h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Solutions */
.solutions {
    padding: 60px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.solution-card {
    background: #f0f7f1;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2d7a3e;
}

.solution-card strong {
    color: #2d7a3e;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Pricing */
.pricing {
    padding: 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.price-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.price-card.best {
    border-color: #ff6b35;
    position: relative;
}

.best-tag {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d7a3e;
    margin: 20px 0;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

/* Order Form */
.order-section {
    background: linear-gradient(135deg, #2d7a3e 0%, #4CAF50 100%);
    padding: 60px 0;
    color: white;
}

.form-wrap {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    color: #333;
}

.form-wrap h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2d7a3e;
}

.form-group {
    margin-bottom: 20px;
    margin-top: 20px;
}

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

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #2d7a3e;
}

.selected-product {
    background: #f0f7f1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2d7a3e;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.selected-product:hover {
    background: #e0f0e4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.15);
}

.selected-product.product-placeholder {
    background: #fff3cd;
    color: #856404;
    border: 2px dashed #ffc107;
}

.selected-product.product-placeholder:hover {
    background: #ffeaa7;
    border-color: #ff9800;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.checkbox-group input {
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e55a2b;
}

/* FAQ */
.faq {
    padding: 60px 0;
    background: #f8f9fa;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .hero-slider { max-width: 100%; margin: 20px 0; }
    .slider-prev, .slider-next { width: 40px; height: 40px; font-size: 1.2rem; }
        .header-wrap {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 15px;
    }


    .logo-img {
        height: 27px;
    }
    .phone {
        font-size: 0.95rem;
    }

        .slider-prev, .slider-next {
        display: none;
    }
    
    /* Увеличиваем точки для удобства на мобильных */
    .dot {
        width: 10px;
        height: 10px;
    }
}
/* Отключение transition для бесконечного цикла */
.hero-slides-track.no-transition {
    transition: none !important;
}
/* Отступ для якорных ссылок, чтобы sticky-шапка не перекрывала верх блока */
#pricing,
#order {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {
    #pricing,
    #order {
        scroll-margin-top: 70px;
    }
}
/* =============================================================================
СТРАНИЦА УСПЕШНОЙ ОПЛАТЫ (success.php)
============================================================================= */
.success-page {
    background: linear-gradient(135deg, #f0f7f1 0%, #e8f5e9 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.success-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 520px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #2d7a3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}
.success-title {
    color: #2d7a3e;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.success-order {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}
.success-next-step {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: left;
}
.success-next-title {
    font-weight: 700;
    color: #e65100;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.success-next-step p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
}
.success-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.success-list li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.success-list li::before {
    content: "✓";
    color: #2d7a3e;
    font-weight: bold;
    flex-shrink: 0;
}
.success-bot-btn {
    display: inline-block;
    background: linear-gradient(135deg, #005bff 0%, #0046c7 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 20px 0 15px;
    box-shadow: 0 6px 20px rgba(0,91,255,0.3);
    transition: all 0.3s;
    width: 100%;
    max-width: 380px;
}
.success-bot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,91,255,0.4);
    color: white;
}
.success-bot-btn-icon {
    font-size: 1.3rem;
    margin-right: 8px;
}
.success-qr {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}
.success-qr p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}
.success-qr img {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 8px;
    background: white;
}
.success-qr-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}
.success-warning {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
.success-warning strong {
    color: #d32f2f;
}
.success-home-link {
    display: inline-block;
    margin-top: 20px;
    color: #2d7a3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.success-home-link:hover {
    text-decoration: underline;
}
@media (max-width: 480px) {
    .success-box { padding: 30px 20px; }
    .success-title { font-size: 1.5rem; }
    .success-bot-btn { font-size: 1rem; padding: 16px 25px; }
}

/* =============================================================================
АДМИНКА ОТПРАВКИ (shipping.php)
============================================================================= */
.shipping-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.shipping-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}
.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.shipping-title {
    color: #2d7a3e;
    font-size: 1.8rem;
    margin: 0;
}
.shipping-logout {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}
.shipping-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.shipping-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.shipping-tab.active {
    color: #2d7a3e;
    border-bottom-color: #2d7a3e;
    font-weight: 600;
}
.shipping-tab:hover {
    color: #2d7a3e;
}
.shipping-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.shipping-filters input[type="date"],
.shipping-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}
.shipping-filters button {
    background: #2d7a3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.shipping-table th {
    background: #f8f8f8;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}
.shipping-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.shipping-table tr:hover {
    background: #fafafa;
}
.shipping-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.shipping-service-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
.shipping-service-cdek {
    background: #e3f2fd;
    color: #1976d2;
}
.shipping-service-pochta {
    background: #ffebee;
    color: #c62828;
}
.shipping-tracking {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d7a3e;
    font-weight: 600;
}
.shipping-address-edit {
    display: flex;
    gap: 5px;
    align-items: center;
}
.shipping-address-edit input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}
.shipping-address-edit button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}
.shipping-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 15px;
}
.shipping-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.shipping-btn-primary {
    background: #2d7a3e;
    color: white;
}
.shipping-btn-primary:hover {
    background: #246532;
}
.shipping-btn-secondary {
    background: #ff9800;
    color: white;
}
.shipping-btn-secondary:hover {
    background: #e68900;
}
.shipping-btn-info {
    background: #2196f3;
    color: white;
}
.shipping-btn-info:hover {
    background: #1976d2;
}
.shipping-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.shipping-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}
.shipping-alert-success {
    background: #e8f5e9;
    color: #2d7a3e;
    border-left: 4px solid #2d7a3e;
}
.shipping-alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}
.shipping-alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}
.shipping-login {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.shipping-login h1 {
    color: #2d7a3e;
    margin-bottom: 25px;
    text-align: center;
}
.shipping-login input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
}
.shipping-login button {
    width: 100%;
    padding: 12px;
    background: #2d7a3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.shipping-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}
.shipping-counter {
    background: #2d7a3e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-left: 5px;
}
@media (max-width: 768px) {
    .shipping-container { padding: 15px; }
    .shipping-table { font-size: 0.85rem; }
    .shipping-table th,
    .shipping-table td { padding: 8px 5px; }
    .shipping-actions { flex-direction: column; }
    .shipping-btn { width: 100%; justify-content: center; }
}
