/* ==========================================================
   Vykup CMS additions for the Invent theme
   - Cyrillic-capable fonts (Poppins/Raleway in the original lack Ukrainian glyphs)
   - lead form, blog, article typography, mobile call bar
   ========================================================== */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Manrope", "Roboto", system-ui, sans-serif;
  --nav-font: "Manrope", "Roboto", system-ui, sans-serif;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 60%);
}

:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 10000; background: var(--accent-color); color: var(--contrast-color); padding: .5rem 1rem; border-radius: 8px; }
section, .section { scroll-margin-top: 90px; }
.hero .hero-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.hero .hero-call { border-radius: 50px; padding: 12px 28px; font-weight: 500; }
.feature-box .feature-title.h3 { font-size: 1.25rem; }
.feature-text p:last-child, .service-text p:last-child, .step-content p:last-child, .services-alt .service-content p:last-child { margin-bottom: 0; }

/* Header */
.header .logo img { max-height: 40px; width: auto; }
.header-phone { align-items: center; gap: .4rem; margin-right: 1rem; font-family: var(--nav-font); font-weight: 600; color: var(--heading-color); white-space: nowrap; }
.header-phone:hover { color: var(--accent-color); }
.navmenu .lang-switch > a { gap: 2px; }
.navmenu .lang-switch ul a.active { color: var(--accent-color); font-weight: 600; }
@media (max-width: 1199px) { .header .btn-getstarted { padding: 8px 16px; font-size: 14px; } }
@media (max-width: 420px) { .header .btn-getstarted { display: none; } }

/* Steps are an ordered list */
.how-we-work ol.process-container { padding-left: 0; }

/* Stats strip (shown only when the admin adds stats blocks) */
.stats-strip { padding: 40px 0; }
.stats-strip .stat-value { font-family: var(--heading-font); font-weight: 800; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); color: var(--accent-color); }
.stats-strip .stat-label { color: color-mix(in srgb, var(--default-color), transparent 25%); }

/* Long-form SEO text + article typography */
.article-body { font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; }
.seo-text .article-body, .static-page .article-body { margin-inline: auto; }
.article-body h2 { font-size: 1.6rem; margin: 2.2rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .35rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body blockquote { border-left: 4px solid var(--accent-color); padding: .5rem 1.2rem; margin: 1.5rem 0; background: color-mix(in srgb, var(--accent-color), transparent 94%); border-radius: 0 12px 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); padding: .6rem .8rem; text-align: left; }
.article-body th { background: color-mix(in srgb, var(--accent-color), transparent 92%); }
.article-body iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }

/* Blog cards */
.post-card { background: var(--surface-color); border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); display: flex; flex-direction: column; transition: border-color .2s; }
.post-card:hover { border-color: color-mix(in srgb, var(--accent-color), transparent 50%); }
.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: color-mix(in srgb, var(--accent-color), transparent 92%); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body time { font-size: .85rem; color: color-mix(in srgb, var(--default-color), transparent 40%); }
.post-card-body h3 { font-size: 1.2rem; margin: .4rem 0 .6rem; line-height: 1.35; }
.post-card-body h3 a { color: var(--heading-color); }
.post-card-body h3 a:hover { color: var(--accent-color); }
.post-card-body p { color: color-mix(in srgb, var(--default-color), transparent 20%); flex: 1; }
.post-card .read-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: color-mix(in srgb, var(--default-color), transparent 35%); font-size: .95rem; }
.post-cta { padding: 1.8rem; border-radius: 16px; background: color-mix(in srgb, var(--accent-color), transparent 92%); }
.pagination .page-link { color: var(--accent-color); }
.pagination .active .page-link { background: var(--accent-color); border-color: var(--accent-color); color: var(--contrast-color); }

/* Lead form */
.contact .form-wrapper { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.lead-form .form-label { font-weight: 500; margin-bottom: .35rem; color: var(--heading-color); }
.lead-form .req { color: #d63384; }
.lead-form .form-control, .lead-form .form-select { min-height: 48px; font-size: 16px; } /* 16px prevents iOS zoom */
.lead-form textarea.form-control { min-height: 110px; }
.lead-form .form-control:focus, .lead-form .form-select:focus { box-shadow: var(--focus-ring); border-color: var(--accent-color); }
.lead-form .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-form .file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: 1.4rem 1rem; border: 2px dashed color-mix(in srgb, var(--accent-color), transparent 55%); border-radius: 14px; background: color-mix(in srgb, var(--accent-color), transparent 96%); cursor: pointer; text-align: center; transition: background .2s, border-color .2s; }
.lead-form .file-drop:hover, .lead-form .file-drop.dragover { background: color-mix(in srgb, var(--accent-color), transparent 90%); border-color: var(--accent-color); }
.lead-form .file-drop.is-invalid { border-color: #dc3545; }
.lead-form .file-drop.has-file { border-style: solid; }
.lead-form .file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lead-form .file-drop i { font-size: 1.8rem; color: var(--accent-color); }
.lead-form .file-drop-text { font-weight: 500; word-break: break-all; }
.lead-form .file-drop-meta { color: color-mix(in srgb, var(--default-color), transparent 40%); }
.lead-form .lead-submit { border-radius: 50px; padding: 14px 36px; background: var(--accent-color); border-color: var(--accent-color); width: 100%; }
@media (min-width: 768px) { .lead-form .lead-submit { width: auto; } }
.lead-form .form-note { color: color-mix(in srgb, var(--default-color), transparent 40%); }
.lead-form .form-alert:empty { display: none; }
.contact .info-card p a { color: inherit; }
.contact .info-card p a:hover { color: var(--accent-color); }
.map-wrapper { border-radius: 16px; overflow: hidden; aspect-ratio: 16/7; min-height: 280px; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* Thank you / errors */
.thanks-icon i { font-size: 4.5rem; color: var(--accent-color); }
.error-code { font-family: var(--heading-font); font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--accent-color), transparent 30%); margin-bottom: 1rem; }
.page-title { padding-top: 110px; }
.footer .footer-hours { color: color-mix(in srgb, var(--default-color), transparent 25%); padding-top: 8px; }

/* Mobile bottom action bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; display: grid; grid-template-columns: 1fr 1.6fr; background: var(--surface-color); box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 14px 8px; font-weight: 600; font-family: var(--nav-font); }
.mobile-cta .mobile-cta-call { color: var(--heading-color); }
.mobile-cta .mobile-cta-lead { background: var(--accent-color); color: var(--contrast-color); }
@media (max-width: 991.98px) {
  body { padding-bottom: 56px; }
  .scroll-top { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Rich content produced by the admin editor (CKEditor 5) */
.article-body figure.image { display: table; clear: both; margin: 1.25rem auto; max-width: 100%; }
.article-body figure.image img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.article-body figure.image_resized img { width: 100%; }
.article-body .image-style-side, .article-body .image-style-align-right { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.article-body .image-style-align-left { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.article-body .image-style-align-center, .article-body .image-style-block-align-center { margin-left: auto; margin-right: auto; }
.article-body figcaption { font-size: .875rem; color: color-mix(in srgb, var(--default-color), transparent 40%); text-align: center; padding-top: .4rem; }
.article-body figure.table { display: table; margin: 1.25rem auto; overflow-x: auto; max-width: 100%; }
.article-body table { border-collapse: collapse; width: 100%; }
.article-body table td, .article-body table th { border: 1px solid #dee2e6; padding: .5rem .65rem; }
.article-body table th { background: #f6f7f9; }
.article-body figure.media { margin: 1.5rem 0; }
.article-body pre { background: #1e2530; color: #e6edf3; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.article-body mark.marker-yellow { background: #fdfd77; } .article-body mark.marker-green { background: #62f962; }
.article-body .text-tiny { font-size: .7em; } .article-body .text-small { font-size: .85em; } .article-body .text-big { font-size: 1.4em; } .article-body .text-huge { font-size: 1.8em; }
.article-body::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) { .article-body .image-style-side, .article-body .image-style-align-right, .article-body .image-style-align-left { float: none; max-width: 100%; margin: 1rem 0; } }

/* Content block images (uploaded instead of an icon) */
.block-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.block-img-sm { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: -.25em; object-fit: contain; }
.has-img { background: transparent !important; padding: 0 !important; overflow: hidden; }
.service-icon.has-img, .feature-icon.has-img, .step-icon.has-img { border-radius: 14px; }
.stat-icon { font-size: 1.6rem; color: var(--accent-color); margin-bottom: .25rem; }
.faq-img { float: right; max-width: 160px; margin: 0 0 .75rem 1rem; border-radius: 10px; }
@media (max-width: 575.98px) { .faq-img { float: none; max-width: 100%; margin: 0 0 .75rem; } }
