:root {
    --primary: #2c7da0;
    --primary-dark: #1f5e7a;
    --primary-light: #4cc9f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1a2a3a;
    --text-light: #6b7c93;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* ===== Хедер ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0;
    background: var(--white);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
    object-position: center 30%;
}

/* ===== Блок доверия ===== */
.trust {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-card {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.trust-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Акции ===== */
.promo {
    padding: 80px 0;
    background: var(--bg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

.promo-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.promo-card {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.promo-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ===== Карточки ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ===== Услуги ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.service-category {
    margin-bottom: 56px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    transition: 0.3s;
    flex-wrap: wrap;
    gap: 16px;
}

.service-item:hover {
    background: #eef2f6;
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.service-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.service-subcategory {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 8px 8px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-light);
}

/* ===== КАРУСЕЛЬ ОТЗЫВОВ (полностью исправлена) ===== */
.reviews-carousel-section {
    padding: 60px 40px;
    background: var(--bg);
    text-align: center;
}

.reviews-carousel-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text);
}

.reviews-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-slide {
    min-width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

/* Кнопки — всегда видны, не исчезают */
.reviews-prev,
.reviews-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reviews-prev {
    left: 10px;
}

.reviews-next {
    right: 10px;
}

.reviews-prev:hover,
.reviews-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Точки навигации */
.reviews-dots {
    text-align: center;
    margin-top: 24px;
}

.reviews-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 6px;
    cursor: pointer;
    transition: 0.3s;
}

.reviews-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* Слайд-ссылка на Дикиди */
.review-link-slide {
    text-align: center;
}

.review-link-slide .btn {
    display: inline-block;
    width: auto;
}

/* ===== Кейсы ===== */
.cases {
    padding: 80px 0;
    background: var(--white);
}

.cases h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

.cases-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.cases-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.case-slide {
    min-width: 100%;
}

.case-compare {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-before, .case-after {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.case-before img, .case-after img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-before:hover img, .case-after:hover img {
    transform: scale(1.05);
}

.case-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.case-caption {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
}

.cases-prev, .cases-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44,125,160,0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cases-prev {
    left: 10px;
}

.cases-next {
    right: 10px;
}

.cases-prev:hover,
.cases-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.cases-dots {
    text-align: center;
    margin-top: 24px;
}

.cases-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 6px;
    cursor: pointer;
    transition: 0.3s;
}

.cases-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}
/* ===== СТИЛИ ДЛЯ TELEGRAM-СЛАЙДА (полное исправление) ===== */
.case-telegram-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    padding: 20px;
}

.case-telegram-slide .case-compare,
.case-telegram-slide .case-caption {
    display: none !important;
}

.case-telegram-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.case-telegram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 125, 160, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.case-telegram-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.case-telegram-content p {
    font-size: 18px;
    color: #6b7c93;
    margin: 0 0 28px 0;
    text-align: center;
    width: 100%;
}

.telegram-btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #0088cc !important;
    color: white !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3) !important;
    text-align: center !important;
    margin: 0 auto 20px auto !important;
    width: auto !important;
}

.telegram-btn:hover {
    background: #006699 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4) !important;
    color: white !important;
}

.telegram-hint {
    font-size: 14px;
    color: #6b7c93;
    opacity: 0.7;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .case-telegram-wrapper {
        min-height: 380px;
    }

    .case-telegram-content {
        padding: 32px 24px;
        max-width: 90%;
    }

    .case-telegram-content h3 {
        font-size: 22px;
    }

    .case-telegram-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .telegram-btn {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
}
/* ===== Футер ===== */
.footer {
    background: var(--text);
    color: white;
    padding: 48px 0 24px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

.address-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: 0.3s;
}

.address-link:hover {
    text-decoration: underline;
    color: white;
}

/* ===== Кабинет ===== */
.cabinet {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 200;
    padding: 20px;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.logout {
    cursor: pointer;
    color: #e74c3c;
}

/* ===== Модалка ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 24px;
    width: 400px;
    max-width: 90%;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

/* ===== КАБИНЕТ ===== */
.cabinet {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 340px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    overflow: hidden;
}

.cabinet-user {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cabinet-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.cabinet-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cabinet-username {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.cabinet-balance {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
}

.balance-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
}

.cabinet-menu {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabinet-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    background: var(--bg);
    color: var(--text);
}

.cabinet-btn:hover {
    background: var(--border);
}

.admin-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.admin-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
}

.cabinet-history {
    padding: 16px;
    border-top: 1px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
    font-size: 13px;
}

.cabinet-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cabinet-history li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.cabinet-history li span {
    color: var(--text-light);
}

/* ===== АДМИН-МОДАЛКА ===== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.admin-panel {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.admin-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.admin-stats {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.admin-users {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user {
    background: var(--bg);
    border-radius: 16px;
    padding: 16px;
}

.admin-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-user-balance {
    font-weight: 600;
    color: var(--primary);
}

.admin-user-actions {
    display: flex;
    gap: 8px;
}

.admin-user-actions button {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.admin-add {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}
.admin-add:hover { background: rgba(39, 174, 96, 0.25); }

.admin-remove {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}
.admin-remove:hover { background: rgba(231, 76, 60, 0.25); }

.admin-history {
    background: rgba(44, 125, 160, 0.15);
    color: var(--primary);
}
.admin-history:hover { background: rgba(44, 125, 160, 0.25); }

.admin-user-history {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.admin-user-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-user-history li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.cabinet-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 2px solid white;
}

.admin-search {
    margin-bottom: 20px;
}

.admin-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.admin-search-input:focus {
    border-color: var(--primary);
}

.cabinet-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: none; /* скрыта по умолчанию */
}

.cabinet-toggle.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cabinet {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 340px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 999;
}
.cabinet-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 2px solid white;
}

.admin-search {
    margin-bottom: 20px;
}

.admin-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.admin-search-input:focus {
    border-color: var(--primary);
}

.cabinet.show {
    display: block;
}
/* Модалка входа — поле с @ */
.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.modal-input-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
}

.modal-input-with-prefix {
    width: 100%;
    padding: 12px 12px 12px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

.modal-input-with-prefix:focus {
    border-color: var(--primary);
}

.services-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px auto;
}

.services-collapse {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.services-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: 0.3s;
}

.services-summary:hover {
    background: var(--primary-dark);
}

.services-summary::-webkit-details-marker {
    display: none;
}

.services-arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

details[open] .services-arrow {
    transform: rotate(180deg);
}

.services {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* Адаптив */
@media (max-width: 768px) {
    .services-summary {
        font-size: 18px;
        padding: 16px 20px;
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
    }
.hero-image img {
    max-width: 280px;
}

    .trust-container {
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .case-compare {
        flex-direction: column;
    }

    .reviews-carousel-section {
        padding: 40px 20px;
    }

    .reviews-prev,
    .reviews-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .reviews-prev {
        left: 5px;
    }

    .reviews-next {
        right: 5px;
    }

    .review-slide {
        padding: 20px;
    }

    .cases-prev,
    .cases-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .cases-prev {
        left: 5px;
    }

    .cases-next {
        right: 5px;
    }
}