/* ==========================================================================
   EXPERIMENT STYLES — SEPTIKRUN.RU
   Адаптивный видео-фон первого экрана (Hero) + Карточки хаба услуг
   ========================================================================== */

/* Первый экран Hero с видеофоном */
.video-hero-section { position: relative; width: 100%; overflow: hidden; background: #0b1120; color: #ffffff; }
.video-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(11, 17, 32, 0.74) 0%, rgba(11, 17, 32, 0.92) 100%); z-index: 1; pointer-events: none; }
.video-hero-container { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 0 auto; padding: 48px 16px 52px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
.video-hero-container * { box-sizing: border-box; max-width: 100%; }
.video-hero-main-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; width: 100%; }
.video-hero-col-left { flex: 1 1 640px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.video-hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #86efac; background: rgba(22, 101, 52, 0.35); border: 1px solid rgba(74, 222, 128, 0.35); padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; align-self: flex-start; line-height: 16px; }
.video-hero-title { font-size: 38px; line-height: 46px; font-weight: 900; color: #ffffff; margin: 0; letter-spacing: -0.5px; word-break: break-word; overflow-wrap: break-word; }
.video-hero-title span { color: #4ade80; }
.hero-title-sub { display: block; font-size: 24px; line-height: 32px; font-weight: 800; color: #cbd5e1; margin-top: 6px; letter-spacing: -0.2px; }
.video-hero-desc { font-size: 16px; line-height: 25px; color: #cbd5e1; margin: 0; max-width: 640px; word-break: normal; overflow-wrap: break-word; }
.video-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; width: 100%; }
.hero-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; background: #22c55e; color: #0f172a; font-size: 15px; font-weight: 900; border-radius: 10px; text-decoration: none; box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35); transition: background 0.15s, transform 0.15s; text-align: center; }
.hero-btn-primary:hover { background: #16a34a; color: #ffffff; text-decoration: none; transform: translateY(-1px); }
.hero-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; font-size: 15px; font-weight: 700; border-radius: 10px; text-decoration: none; transition: background 0.15s, border-color 0.15s; text-align: center; }
.hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); text-decoration: none; }
.hero-proof-line { font-size: 13px; color: #94a3b8; font-weight: 600; display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.hero-proof-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; line-height: 18px; }
.video-hero-col-right { flex: 0 0 380px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.video-hero-master-card { background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(10px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); width: 100%; display: flex; flex-direction: column; gap: 8px; }
.master-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.master-card-tag { font-size: 12px; font-weight: 800; color: #86efac; text-transform: uppercase; letter-spacing: 0.4px; }
.master-card-standard { font-size: 12px; font-weight: 700; color: #94a3b8; }
.master-card-title { font-size: 16px; font-weight: 800; color: #ffffff; line-height: 22px; margin: 0; }
.master-card-text { font-size: 14px; color: #cbd5e1; line-height: 21px; margin: 0; }

/* 3 плашки преимуществ Hero (текстовые карточки без SVG и без боковых полос) */
.video-hero-features-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; width: 100%; }
.hero-feature-item { display: flex; flex-direction: column; gap: 4px; background: rgba(30, 41, 59, 0.65); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 14px 18px; backdrop-filter: blur(8px); width: 100%; }
.hero-feature-text { display: flex; flex-direction: column; gap: 4px; }
.hero-feature-title { font-size: 15px; font-weight: 800; color: #ffffff; margin: 0; line-height: 20px; }
.hero-feature-sub { font-size: 13px; color: #94a3b8; line-height: 18px; margin: 0; }

/* Хаб услуг */
.hub-intro-box { background: #ffffff; border: 1px solid #dbeafe; border-radius: 16px; padding: 26px 32px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); position: relative; overflow: hidden; }
.hub-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
.hub-intro-title { font-size: 26px; line-height: 34px; font-weight: 900; color: #0f172a; margin: 0 0 10px; }
.hub-intro-desc { font-size: 16px; line-height: 25px; color: #334155; margin: 0; max-width: 900px; }
.services-hub-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; width: 100%; }
.service-news-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease; position: relative; }
.service-news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10); border-color: #93c5fd; }
.service-card-media-link { position: relative; display: block; width: 100%; height: 220px; background: #0f172a; overflow: hidden; text-decoration: none; }
.service-card-media-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, opacity 0.2s; opacity: 0.94; }
.service-news-card:hover .service-card-media-link img { transform: scale(1.05); opacity: 1; }
.service-card-media-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.75) 100%); pointer-events: none; }
.service-card-badge { position: absolute; bottom: 12px; left: 12px; z-index: 2; background: rgba(15, 23, 42, 0.88); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 8px; backdrop-filter: blur(6px); letter-spacing: 0.3px; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; gap: 12px; }
.service-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.service-card-tag { font-size: 12px; font-weight: 800; color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.service-card-duration { font-size: 13px; color: #475569; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.service-card-title { font-size: 20px; line-height: 26px; font-weight: 900; color: #0f172a; margin: 0; }
.service-card-title a { color: #0f172a; text-decoration: none; transition: color 0.15s; }
.service-card-title a:hover { color: #16a34a; }
.service-card-text { font-size: 14px; line-height: 22px; color: #475569; margin: 0; flex: 1; }
.service-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid #f1f5f9; margin-top: auto; flex-wrap: wrap; }
.service-card-price { font-size: 14px; color: #64748b; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.service-card-price strong { font-size: 20px; font-weight: 900; color: #15803d; letter-spacing: -0.3px; }
.service-card-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; height: 44px; background: #16a34a; color: #ffffff; font-size: 14px; font-weight: 800; border-radius: 10px; text-decoration: none; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.service-card-btn:hover { background: #15803d; color: #ffffff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35); }
.service-card-btn:active { transform: translateY(0); }
.hub-help-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border: 1px solid #334155; color: #ffffff; padding: 28px 32px; border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); flex-wrap: wrap; }
.hub-help-content { flex: 1 1 320px; }
.hub-help-title { font-size: 21px; line-height: 28px; font-weight: 900; margin: 0 0 8px; color: #ffffff; }
.hub-help-desc { font-size: 15px; line-height: 23px; color: #cbd5e1; margin: 0; }
.hub-help-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; height: 48px; background: #22c55e; color: #0f172a; font-size: 15px; font-weight: 900; border-radius: 10px; text-decoration: none; box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.hub-help-btn:hover { background: #16a34a; color: #ffffff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45); }
.hub-help-btn:active { transform: translateY(0); }

/* Адаптивные правила Desktop First (в строгом порядке убывания ширины) */
@media (max-width: 1080px) {
    .video-hero-main-row { flex-direction: column; align-items: stretch; gap: 16px; }
    .video-hero-col-left { flex: none; width: 100%; gap: 14px; }
    .video-hero-col-right { flex: none; width: 100%; }
    .services-hub-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 891px) {
    .video-hero-container { padding: 32px 16px 36px; gap: 20px; }
    .video-hero-title { font-size: 32px; line-height: 38px; }
    .hero-title-sub { font-size: 21px; line-height: 27px; }
    .video-hero-features-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hub-intro-box { padding: 22px 24px; }
    .hub-intro-title { font-size: 23px; line-height: 30px; }
    .service-card-title { font-size: 19px; line-height: 25px; }
}
@media (max-width: 720px) {
    .video-hero-main-row { gap: 14px; }
    .video-hero-features-row { grid-template-columns: 1fr; gap: 10px; }
    .services-hub-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 18px; }
    .service-card-media-link { height: 200px; }
    .hub-help-banner { padding: 22px 20px; }
    .hub-help-btn { width: 100%; justify-content: center; }
}
@media (max-width: 602px) {
    .video-hero-main-row { gap: 14px; }
    .video-hero-col-left { gap: 12px; }
    .video-hero-title { font-size: 26px; line-height: 32px; }
    .hero-title-sub { font-size: 18px; line-height: 24px; }
    .video-hero-desc { font-size: 15px; line-height: 22px; }
    .video-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; height: 46px; font-size: 14px; padding: 0 14px; }
    .services-hub-section { padding: 18px 12px 32px; }
    .hub-intro-box { padding: 18px 18px; border-radius: 14px; }
    .hub-intro-title { font-size: 21px; line-height: 27px; }
    .hub-intro-desc { font-size: 15px; line-height: 22px; }
    .service-card-body { padding: 18px 16px; }
}
@media (max-width: 425px) {
    .video-hero-container { padding: 16px 12px 20px; gap: 12px; }
    .video-hero-main-row { gap: 12px; }
    .video-hero-col-left { gap: 10px; }
    .video-hero-badge { font-size: 12px; padding: 4px 10px; letter-spacing: 0; line-height: 16px; }
    .video-hero-title { font-size: 21px; line-height: 27px; }
    .hero-title-sub { font-size: 15px; line-height: 21px; color: #86efac; margin-top: 4px; }
    .video-hero-desc { font-size: 14px; line-height: 21px; }
    .hero-proof-line { font-size: 12px; }
    .proof-sep { display: none; }
    .hero-proof-text { flex-direction: column; align-items: flex-start; gap: 2px; }
    .video-hero-master-card { padding: 14px 14px; border-radius: 12px; gap: 6px; }
    .master-card-title { font-size: 15px; line-height: 21px; }
    .master-card-text { font-size: 13px; line-height: 19px; }
    .hero-feature-item { padding: 12px 14px; }
    .hero-feature-title { font-size: 14px; line-height: 19px; }
    .hero-feature-sub { font-size: 12px; line-height: 17px; }
    .hub-badge { font-size: 12px; padding: 5px 12px; }
    .hub-intro-title { font-size: 19px; line-height: 25px; }
    .hub-intro-desc { font-size: 14px; line-height: 21px; }
    .service-card-media-link { height: 185px; }
    .service-card-title { font-size: 18px; line-height: 24px; }
    .service-card-bottom { flex-direction: column; align-items: stretch; gap: 12px; }
    .service-card-btn { width: 100%; }
    .hub-help-title { font-size: 18px; line-height: 24px; }
    .hub-help-desc { font-size: 14px; line-height: 20px; }
    .hub-help-btn { font-size: 14px; padding: 12px 18px; height: 46px; }
}
@media (max-width: 375px) {
    .video-hero-container { padding: 14px 10px 18px; gap: 10px; }
    .video-hero-main-row { gap: 10px; }
    .video-hero-col-left { gap: 8px; }
    .video-hero-title { font-size: 20px; line-height: 26px; }
    .hero-title-sub { font-size: 14px; line-height: 20px; }
    .video-hero-desc { font-size: 13px; line-height: 20px; }
    .hero-btn-primary, .hero-btn-secondary { height: 44px; font-size: 14px; }
}
@media (max-width: 360px) {
    .video-hero-container { padding: 12px 10px 16px; gap: 10px; }
    .video-hero-main-row { gap: 10px; }
    .video-hero-col-left { gap: 8px; }
    .video-hero-title { font-size: 19px; line-height: 25px; }
    .hero-title-sub { font-size: 14px; line-height: 19px; margin-top: 3px; }
    .video-hero-desc { font-size: 13px; line-height: 19px; }
    .master-card-title { font-size: 14px; line-height: 20px; }
    .master-card-text { font-size: 12px; line-height: 18px; }
    .hero-feature-title { font-size: 14px; }
    .hero-feature-sub { font-size: 12px; }
}
@media (max-width: 320px) {
    .video-hero-container { padding: 10px 8px 14px; gap: 8px; }
    .video-hero-main-row { gap: 8px; }
    .video-hero-col-left { gap: 6px; }
    .video-hero-title { font-size: 17px; line-height: 23px; }
    .hero-title-sub { font-size: 13px; line-height: 18px; margin-top: 2px; }
    .video-hero-desc { font-size: 12px; line-height: 18px; }
    .master-card-title { font-size: 13px; line-height: 18px; }
    .master-card-text { font-size: 12px; line-height: 17px; }
    .hero-feature-title { font-size: 13px; }
    .hero-feature-sub { font-size: 12px; line-height: 16px; }
    .services-hub-section { padding: 14px 8px 24px; }
    .hub-intro-box { padding: 14px 12px; }
    .hub-intro-title { font-size: 17px; line-height: 23px; }
    .service-card-body { padding: 14px 12px; }
    .service-card-title { font-size: 17px; line-height: 22px; }
    .service-card-badge { font-size: 12px; padding: 4px 8px; }
    .service-card-tag { font-size: 12px; }
    .service-card-duration { font-size: 12px; }
}
