/* ---------- БАЗОВЫЕ СБРОСЫ ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 12px;
}

/* ---------- КОНТЕЙНЕР ПРИЛОЖЕНИЯ ---------- */
.app-container {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px 32px 24px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 16px 16px 12px;
}

/* ---------- ШАПКА ---------- */
.app-header {
    text-align: center;
    padding: 8px 0 16px;
    border-bottom: 1px solid #f0f2f5;
}

.app-header h1 {    font-size: 14px;
    font-weight: 500;
    color: #a2a2a2;
    letter-spacing: -0.5px;
}

.app-header .subtitle {
    font-size: 14px;
    color: #6b7a8f;
    margin-top: 2px;
    font-weight: 500;
}

/* ---------- БЛОК КАРУСЕЛИ ---------- */
.carousel-block {
    margin: 16px 0 20px;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #d9e2ec;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-slide .slide-label {
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

/* Кнопки навигации */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #1a2639;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 5;
}

.carousel-btn:hover {
    background: #ffffff;
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-btn.prev {
    left: 8px;
}
.carousel-btn.next {
    right: 8px;
}

/* Индикаторы (точки) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d7e2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.carousel-dot.active {
    background: #2d4059;
    transform: scale(1.25);
}

/* ---------- БЛОКИ-КНОПКИ (АРЕНДА / СЫПУЧИЕ) ---------- */
.action-block {
    margin: 14px 0;
}

.action-card {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    height: 110px;
    cursor: pointer;
    padding: 0;
    background: #eef2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s, box-shadow 0.2s;
    display: block;
    text-align: left;
}

.action-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.action-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #b0c4de;
}

.action-overlay {position: absolute;
    padding: 16px 10px 16px 50px;
    inset: 0;
    background: linear-gradient(135deg, rgb(232 232 232) 0%, rgb(255 255 255) 80%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e8e8e8;
    color: #000000;
}

.action-overlay h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.action-hint {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Специфичные стили для карточек (можно переопределить фон) */


/* ---------- ФУТЕР ---------- */
.app-footer {
    text-align: center;
    padding: 16px 0 4px;
    font-size: 12px;
    color: #9aa9bb;
    border-top: 1px solid #f0f2f5;
    margin-top: 10px;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 420px) {
    .app-container {
        padding: 12px 12px 8px;
        border-radius: 20px;
    }
    .carousel-slide {
        height: 150px;
    }
    .action-card {
        height: 95px;
    }
    .action-overlay h2 {
        font-size: 17px;
    }
}