/* ДРИМ — главная страница (лендинг) */
.page-home .main-home { padding: 0; }

/* Hero: по умолчанию тёмный градиент + паттерн; при загрузке в админке — своё изображение (cover) */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; padding: 4rem 0; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.6; }
.hero-bg.hero-bg-custom { background-size: cover; background-position: center; }
.hero-bg.hero-bg-custom::after { background: rgba(0,0,0,0.35); opacity: 1; }
.hero-inner { position: relative; z-index: 1; color: #fff; text-align: center; }
.hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); opacity: 0.95; max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.5; }
.btn-hero { background: var(--drim-header-bg); color: var(--drim-header-text) !important; border: none; padding: 0.75rem 2rem; font-size: 1.1rem; font-weight: 600; border-radius: 6px; text-decoration: none; display: inline-block; transition: transform 0.2s, opacity 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.btn-hero:hover { opacity: 0.95; color: var(--drim-header-text) !important; transform: translateY(-2px); }

/* Секции */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--drim-dark); text-align: center; }
.section-lead { font-size: 1.1rem; color: var(--drim-muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* Блок 2: Цифры */
.section-digits { background: #f7fafc; }
.digit-card { text-align: center; padding: 1.25rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.digit-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.digit-number { display: block; font-size: 2rem; font-weight: 800; color: var(--drim-dark); line-height: 1.2; }
.digit-label { font-size: 0.9rem; color: var(--drim-muted); }

/* Блок 3: Типы конструкций и регионы с выпадающим меню */
.type-card { display: flex; flex-direction: column; align-items: center; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: var(--drim-text); transition: border-color 0.2s, box-shadow 0.2s; height: 100%; min-height: 100px; }
.type-card:hover { border-color: var(--drim-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.12); color: var(--drim-dark); }
.type-icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: var(--drim-dark); color: var(--drim-header-bg); border-radius: 50%; font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.type-name { font-size: 0.9rem; text-align: center; line-height: 1.3; }

/* Карточка региона: белая с тонкой тенью, регион жирным, города списком с отступом */
.region-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem 0 0.75rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.region-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 1rem 0.75rem;
    padding: 0;
    color: var(--drim-dark);
    line-height: 1.3;
}
.region-card-cities {
    padding: 0;
    list-style: none;
}
.region-card-cities li {
    margin: 0;
}
.region-card-city {
    display: block;
    padding: 8px 12px;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--drim-text);
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.region-card-city:hover {
    background: #f5f5f5;
    color: var(--drim-dark);
}
.region-card-city-no-link {
    cursor: default;
    color: var(--drim-muted);
}
.region-card-city-no-link:hover {
    background: transparent;
}

/* Блок 4: География */
.section-geo { background: var(--drim-dark); color: #fff; }
.section-geo .section-title { color: #fff; }
.geo-list { font-size: 1rem; line-height: 1.8; text-align: center; max-width: 800px; margin: 0 auto; }
.section-geo .btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.section-geo .btn-outline-light:hover { background: var(--drim-header-bg); color: var(--drim-header-text); }

/* Блок 5: Преимущества */
.advantage-card { padding: 1.5rem; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; height: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.advantage-card:hover { border-color: var(--drim-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.advantage-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; background: var(--drim-dark); color: var(--drim-header-bg); border-radius: 50%; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; }
.advantage-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--drim-dark); }
.advantage-card p { font-size: 0.95rem; color: var(--drim-muted); margin: 0; }

/* Блок 6: Новости */
.section-news { background: #f7fafc; }
.news-list a { color: var(--drim-dark); font-weight: 500; }
.news-list a:hover { color: var(--drim-dark); }

/* Блок 7: CTA */
.section-cta { background: linear-gradient(180deg, #edf2f7 0%, #e2e8f0 100%); }
.cta-contacts p { margin-bottom: 0.5rem; }
.cta-phone a { font-size: 1.25rem; font-weight: 700; color: var(--drim-dark); }
.cta-phone a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .hero { min-height: 60vh; padding: 3rem 0; }
    .section { padding: 2.5rem 0; }
    .digit-number { font-size: 1.5rem; }
}
