/* =================================================================
   VELTECHLAB REFINE (вариант 5) — поправки и единен стил на всички страници
   ================================================================= */

/* Заглавието в херото вече не опира в картата вдясно */
@media (min-width: 900px) {
    body .hero-section .hero-title,
    body .hero-section .hero-title .title-line.emphasis,
    body .hero-section h1 { font-size: clamp(2.3rem, 3.7vw, 3.5rem) !important; hyphens: manual; overflow-wrap: normal; }
}

/* Единна ширина на съдържанието на всички страници */
body main > section:not(.hero-section) .container { max-width: 1100px; width: 100%; padding-left: 2rem; padding-right: 2rem; margin-left: auto; margin-right: auto; }
body main [class$="-grid"], body main .team-grid, body main .feature-grid, body main .services-overview-grid, body main .sectors-grid {
    max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important;
}

/* Заглавие на секция: по-широка колона за заглавието */
@media (min-width: 900px) {
    body main .section-header { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important; column-gap: 3rem !important; }
    body main .section-header .section-subtitle { justify-self: start !important; max-width: 30rem !important; }
}

/* Единен стил на картите: плоски редове със заглавна линия (като на началната) */
body .services-overview-card, body .about-card, body .feature-card, body .included-card,
body .info-card, body .sector-card, body .team-card, body .pricing-card, body .plan-card {
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--v3-ink, #0D1624) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.5rem 0 1.75rem !important;
}
body .services-overview-card:hover, body .about-card:hover, body .feature-card:hover, body .included-card:hover,
body .info-card:hover, body .sector-card:hover { box-shadow: none !important; transform: none; border-top-color: var(--v3-blue, #1E56D6) !important; }
body .services-overview-grid, body .sectors-grid { gap: 0 3rem !important; }

/* Акордеони за услуги и въпроси */
body .service-item, body .faq-item {
    background: transparent !important; border: 0 !important; border-top: 1px solid var(--v3-rule, #D9DEE7) !important;
    border-radius: 0 !important; box-shadow: none !important;
}
body .service-item:last-child, body .faq-item:last-child { border-bottom: 1px solid var(--v3-rule, #D9DEE7) !important; }
body .service-header { padding: 1.25rem 0 !important; }
body .service-item:hover, body .faq-item:hover { background: transparent !important; transform: none; }

/* Блог картите: снимката е с еднакво съотношение */
body .blog-card { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body .blog-card-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 !important; }
body .blog-card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Формите: ясни полета и видим фокус */
body .form-group input, body .form-group select, body .form-group textarea {
    border-radius: 6px; border: 1px solid var(--v3-rule, #D9DEE7); background: #fff; min-height: 48px; font-size: 1rem;
}
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus {
    outline: 2px solid var(--v3-blue, #1E56D6); outline-offset: 1px; border-color: var(--v3-blue, #1E56D6);
}

/* Телефон */
@media (max-width: 767px) {
    body main .section-header { grid-template-columns: 1fr !important; }
    body .services-overview-grid, body .sectors-grid { gap: 0 !important; }
    body .btn { min-height: 48px; }
    body .service-actions { flex-wrap: wrap; }
    body .service-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Каталог на услугите: без номера, групите в стила на началната */
body.services-page .services-accordion .service-header::before { content: none !important; display: none !important; }
body.services-page .catalog-group {
    font-family: var(--v3-mono, "IBM Plex Mono", monospace) !important; font-weight: 500 !important; font-size: .8125rem !important;
    letter-spacing: .14em !important; color: var(--v3-ink, #0D1624) !important; margin: 3rem 0 1rem !important; padding: 0 0 .9rem !important;
    border-bottom: 1px solid var(--v3-ink, #0D1624);
}
body.services-page .catalog-group:first-child { margin-top: 0 !important; }
body.services-page .catalog-group::after { display: none !important; }
body.services-page .services-accordion .service-item { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; }
body.services-page .services-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 899px) { body.services-page .services-overview-grid { grid-template-columns: 1fr !important; } }

/* Страница „Цени“ */
body .pricing-model-card, body .quote-panel, body .quote-form-shell, body .quote-form.quote-wizard,
body .quote-field-block, body .quote-wizard-progress, body .process-step {
    border-radius: 0 !important; box-shadow: none !important;
}
body .pricing-model-card { background: transparent !important; border: 0 !important; border-top: 1px solid var(--v3-ink, #0D1624) !important; padding: 1.5rem 0 !important; }
body .quote-form-shell { background: #F4F6FA !important; border: 1px solid var(--v3-rule, #D9DEE7) !important; max-width: none !important; }
body .quote-panel { background: transparent !important; border: 0 !important; }
body .quote-form.quote-wizard { background: transparent !important; border: 0 !important; }
body .quote-field-block { background: #fff !important; border: 1px solid var(--v3-rule, #D9DEE7) !important; }
body .process-step { background: transparent !important; border: 0 !important; border-top: 1px solid var(--v3-ink, #0D1624) !important; padding: 1.25rem 0 !important; }
body .included-card, body .included-card * { color: var(--v3-ink, #0D1624); opacity: 1 !important; }
body .included-card p, body .included-card span { color: var(--v3-slate, #4A5568); }
body .included-card h3, body .included-card h4 { color: var(--v3-ink, #0D1624); }

/* Страница „Индустрии“: без голямата закръглена рамка */
body.industries-page main > section, body main > section.section-alt, body main > section.scroll-revealed {
    border-radius: 0 !important; box-shadow: none !important; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important;
}

/* Страница „Контакт“ */
body .contact-form-container, body .contact-benefits { border-radius: 0 !important; box-shadow: none !important; }
body .contact-form-container { background: #fff !important; border: 1px solid var(--v3-rule, #D9DEE7) !important; padding: 2rem !important; }
body .contact-benefits { background: transparent !important; border: 0 !important; border-top: 1px solid var(--v3-ink, #0D1624) !important; }
body .faq-item.animate-on-scroll, body .contact-faq .faq-item { border-radius: 0 !important; }
body #contact-form-section .section-header, body main .section-header + * { margin-top: 0; }

/* Разстояние между заглавие и съдържание */
body main .section-header { margin-bottom: 3rem !important; }
body.services-page .services-accordion { margin-top: 1rem; }
body main .section-header + .contact-content, body main .section-header + .services-accordion,
body main .section-header + .sectors-grid { margin-top: 3rem !important; }
body main > section.section, body main > section.section-alt, body main > section.scroll-revealed { border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; }

/* Подравняване на втората вълна от страници */
body.contact-page main .contact-content, body.pricing-page main .quote-form-shell, body.pricing-page main .quote-panel,
body.pricing-page main .process-list, body.pricing-page main .process-steps, body.pricing-page main ol.process {
    max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
}
body.contact-page .contact-benefits, body.contact-page .contact-form-container, body.contact-page main .faq-item { border-radius: 0 !important; }
body .included-card { text-align: left !important; }
body main > section.section { border-top: 1px solid var(--v3-rule, #D9DEE7) !important; }
body .quote-panel .section-title, body .quote-panel h2 { text-align: left !important; }
body .quote-panel { padding-left: 0 !important; padding-right: 0 !important; }
body main .quote-section .container, body main .quote-section > .container { max-width: 1100px !important; }
body main .quote-suite, body main .faq-grid { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
body .faq-item, body .faq-grid .faq-item { border: 0 !important; border-top: 1px solid var(--v3-rule, #D9DEE7) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
body .faq-grid .faq-item:last-child { border-bottom: 1px solid var(--v3-rule, #D9DEE7) !important; }
body.contact-page main .contact-content .contact-benefits, body.contact-page main .contact-content .contact-form-container {
    border-radius: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important;
}
body.contact-page main .contact-content .contact-benefits { border: 0 !important; background: #F4F6FA !important; padding: 2rem !important; }
body .process-step { margin-bottom: 0 !important; }
body .faq-item, body .faq-item *, body .faq-question { border-radius: 0 !important; }
@media (max-width: 767px) {
    body .hero-section .hero-card, body .hero-section .hero-card * { text-align: left !important; }
}

/* ===== Надеждност на различни устройства ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(30, 86, 214, .12); }
body { overflow-x: hidden; overflow-x: clip; }
img, video, canvas, svg { max-width: 100%; }
img { height: auto; }
/* Банер за бисквитки: компактен на телефон и над лентата на iPhone */
#vtl-consent { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 767px) {
    #vtl-consent { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important; font-size: 13px !important; }
    #vtl-consent p { flex-basis: 100% !important; line-height: 1.4 !important; }
    #vtl-consent .vtl-actions { width: 100%; }
    #vtl-consent button { flex: 1; min-height: 44px; }
}
/* Устройства без мишка: без ефекти при посочване, които „залепват“ след докосване */
@media (hover: none) {
    body .svc-card:hover, body .info-card:hover, body .sector-card:hover, body .blog-card:hover { transform: none !important; }
    .m3d-magnet { transform: none !important; }
}
/* Слаби устройства и пестене на данни: без тежките ефекти */
@media (prefers-reduced-data: reduce) {
    .m3d-network, .m3d-glow { display: none !important; }
}
/* Без JavaScript всичко е видимо */
html:not(.m3d) .m3d-rise { opacity: 1 !important; transform: none !important; }
