/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #0b1220;
  --ink-700: #2b3344;
  --ink-500: #5b6478;
  --ink-300: #c6ccd8;
  --ink-200: #e3e7ef;
  --ink-100: #f1f3f8;
  --mist: #f7f9fc;
  --accent-700: #11439b;
  --accent-600: #1c5fd9;
  --accent-500: #2e7cf6;
  --accent-100: #e8f1ff;
  --navy-900: #0b1c3d;
  --amber-500: #d97706;

  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.1rem, 1.02rem + 0.4vw, 1.25rem);

  --wrap: 1200px;
  --wrap-narrow: 740px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-m: 0 6px 16px rgba(11, 18, 32, .08);
  --shadow-l: 0 14px 34px rgba(11, 18, 32, .12);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink-700);
  background: #fff;
  line-height: 1.6;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 2. Buttons ---------- */
.btn {
  --btn-bg: var(--accent-600); --btn-fg: #fff; --btn-bd: var(--accent-600);
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  padding: .8rem 1.35rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-500); border-color: var(--accent-500); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--ink-300); }
.btn--ghost:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--accent-600); --btn-bd: #fff; }
.btn--light:hover { background: var(--ink-100); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }

.link-arrow { color: var(--accent-600); font-weight: 700; font-size: .92rem; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 3. Topbar ---------- */
.topbar { background: var(--navy-900); color: #cdd9f2; }
.topbar__inner { display: flex; justify-content: flex-end; padding-block: .5rem; }
.topbar__contacts { display: flex; gap: 1.5rem; font-size: .84rem; }
.topbar__contacts a:hover { color: #fff; }
.topbar__flag { margin-right: .2rem; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- 4. Header ---------- */
.site-header { border-bottom: 1px solid var(--ink-200); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { max-height: 48px; width: auto; }
.site-logo--text { gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink-900); display: inline-flex; align-items: center; }
.site-logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .85rem;
}

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__list a { font-weight: 600; font-size: .95rem; color: var(--ink-700); }
.nav__list a:hover { color: var(--accent-600); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; }

.mobile-nav { display: none; border-top: 1px solid var(--ink-200); padding: 1rem 0 1.25rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav .nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.site-header__cta { margin-left: 0; }
@media (max-width: 760px) { .site-header__cta { display: none; } }

.mobile-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 1.25rem; }
.site-header__phone { font-weight: 700; font-size: 1rem; color: var(--ink-900); }
.site-header__phone:hover { color: var(--accent-600); }

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- 5. Hero (home) ---------- */
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--accent-600); }

.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, var(--accent-100), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--ink-200);
}
.hero__inner { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem); max-width: 780px; }
.hero h1 {
  font-family: var(--font-head); color: var(--ink-900);
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem); line-height: 1.12; margin-block: .7rem 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--accent-600); }
.hero__lede { font-size: var(--step-1); color: var(--ink-500); max-width: 60ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 6. Sections, head, grid ---------- */
.section { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.section--tint { background: var(--mist); }
.head { margin-bottom: 2rem; }
.head h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); color: var(--ink-900); margin-top: .4rem; }
.section__foot { margin-top: 2.25rem; text-align: center; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 7. Service/technology cards ---------- */
.svc-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.4rem;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-m);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: var(--accent-500); }
.svc-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-s);
  background: var(--accent-100); color: var(--accent-600); margin-bottom: .2rem;
}
.svc-card__icon--logo { background: #fff; border: 1px solid var(--ink-200); padding: .4rem; }
.svc-card__icon--logo img { width: 100%; height: 100%; object-fit: contain; }
.svc-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink-900); }
.svc-card p { font-size: .9rem; color: var(--ink-500); flex: 1; }

/* ---------- 8. Technology badges (homepage strip) ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 920px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech-badge {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-m);
  font-weight: 700; color: var(--ink-900); transition: border-color .15s ease, transform .15s ease;
}
.tech-badge:hover { border-color: var(--accent-500); transform: translateY(-2px); }
.tech-badge__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 8px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--ink-200); padding: .35rem;
}
.tech-badge__icon img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 9. Trust strip ---------- */
.trust { border-bottom: 1px solid var(--ink-200); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.75rem; }
@media (max-width: 920px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust__grid { grid-template-columns: 1fr; } }
.trust__item { display: flex; flex-direction: column; gap: .3rem; }
.trust__item b { font-size: .92rem; color: var(--ink-900); }
.trust__item span { font-size: .84rem; color: var(--ink-500); }

/* ---------- 10. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: .5rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 999px;
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: .9rem;
}
.step h3 { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink-900); }
.step p { font-size: .88rem; color: var(--ink-500); }

/* ---------- 11. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--accent-700));
  color: #fff; padding-block: clamp(3rem, 2.3rem + 3.5vw, 5rem); text-align: center;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 50ch; margin-inline: auto; margin-bottom: 1.5rem; }

/* ---------- 12. Page / post hero ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--ink-200); }
.page-hero__inner { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); max-width: var(--wrap-narrow); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem); color: var(--ink-900); margin-top: .4rem; }
.page-hero__desc { color: var(--ink-500); margin-top: .6rem; }
.page-hero__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; border-radius: var(--radius-m);
  background: #fff; border: 1px solid var(--ink-200); padding: .5rem; margin-bottom: 1rem;
}
.page-hero__logo img { width: 100%; height: 100%; object-fit: contain; }

.post-hero { background: var(--mist); border-bottom: 1px solid var(--ink-200); }
.post-hero__inner { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); max-width: var(--wrap-narrow); }
.post-hero h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 1.5rem + 2vw, 2.9rem); line-height: 1.15; color: var(--ink-900); margin-top: .7rem; }
.post-hero__meta { display: flex; gap: .5rem; color: var(--ink-500); font-size: .9rem; margin-top: 1rem; }

.post-thumb { margin-block: 2rem; }
.post-thumb img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 13. Post layout + prose ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; padding-block: 1rem 3rem; align-items: start; }
@media (max-width: 860px) { .post-layout { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; }
.prose--page { max-width: var(--wrap-narrow); margin-inline: auto; padding-block: 1rem 3rem; }
.prose h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink-900); margin-top: 2.2rem; margin-bottom: .75rem; }
.prose h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-900); margin-top: 1.8rem; margin-bottom: .6rem; }
.prose p { margin-top: 1.1rem; color: var(--ink-700); }
.prose ul, .prose ol { margin-top: 1.1rem; padding-left: 1.4rem; }
.prose li { margin-top: .5rem; color: var(--ink-700); }
.prose li::marker { color: var(--accent-500); }
.prose a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--ink-100); padding: .15em .4em; border-radius: 5px; font-size: .9em; }
.prose img { border-radius: var(--radius-s); margin-top: 1.2rem; }
.page-links { margin-top: 2rem; font-weight: 600; }

/* ---------- 14. Sidebar / widgets ---------- */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--mist); border: 1px solid var(--ink-200); border-radius: var(--radius-m); padding: 1.3rem 1.4rem; }
.widget__title { font-family: var(--font-head); font-size: 1rem; color: var(--ink-900); margin-bottom: .8rem; }
.widget p { color: var(--ink-500); font-size: .92rem; }
.widget-list li { margin-top: .6rem; font-size: .92rem; }
.widget-list a:hover { color: var(--accent-600); }

/* ---------- 15. Service/technology detail layout ---------- */
.svc-detail { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.svc-detail__grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .svc-detail__grid { grid-template-columns: 1fr; } }
.svc-detail .widget ul { display: flex; flex-direction: column; gap: .6rem; }
.svc-detail .widget li { font-size: .92rem; color: var(--ink-700); padding-left: 1.3rem; position: relative; }
.svc-detail .widget li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-600); font-weight: 700; }
.svc-detail .widget .btn { margin-top: .5rem; width: 100%; justify-content: center; }

/* ---------- 16. Pagination ---------- */
.pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding-inline: .6rem; border-radius: var(--radius-s);
  border: 1px solid var(--ink-200); font-size: .88rem; font-weight: 600; color: var(--ink-700);
}
.pagination a:hover { border-color: var(--accent-500); color: var(--accent-600); }
.pagination .current { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }

/* ---------- 17. Search / comments ---------- */
.search-form { display: flex; gap: .6rem; max-width: 420px; margin-top: 1.5rem; }
.search-form input[type="search"] { flex: 1; padding: .75rem 1rem; border: 1px solid var(--ink-300); border-radius: 999px; font-size: .95rem; }
.search-form input[type="search"]:focus { outline: 2px solid var(--accent-500); outline-offset: 1px; }
.search-form button { background: var(--navy-900); color: #fff; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 600; }

.post-comments { max-width: var(--wrap-narrow); padding-block: 2rem 3.5rem; }
.comment-list { margin-top: 1.5rem; }
.comment-list .comment-body { padding: 1.1rem 0; border-top: 1px solid var(--ink-200); }
.comment-reply-title { font-family: var(--font-head); font-size: 1.3rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--ink-300); border-radius: var(--radius-s); margin-top: .3rem; }
.comment-form p { margin-top: 1rem; }
.comment-form .form-submit input { width: auto; background: var(--accent-600); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebbd6; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-block: 3.5rem; }
.site-footer .site-logo--text { color: #fff; }
.site-logo--footer { display: inline-flex; align-items: center; }
.site-logo--footer img { max-height: 50px; width: auto; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand p { margin-top: .7rem; font-size: .88rem; color: #aebbd6; }
.site-footer__brand p a:hover { color: #fff; }
.footer-nav__title { font-family: var(--font-head); font-size: .85rem; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.footer-nav__list--col { flex-direction: column; gap: .65rem; }
.footer-nav__list a { font-size: .9rem; color: #aebbd6; }
.footer-nav__list a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .82rem; color: #8392ae; }

@media (max-width: 620px) {
  .site-footer__inner { flex-direction: column; }
}

/* ---------- 19. WordPress default block widgets ---------- */
.widget .wp-block-heading { font-family: var(--font-head); font-size: 1rem; color: var(--ink-900); margin-bottom: .8rem; }
.widget .wp-block-search__label { font-size: .85rem; font-weight: 600; color: var(--ink-700); display: block; margin-bottom: .4rem; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: .4rem; }
.widget .wp-block-search__input { flex: 1; padding: .55rem .7rem; border: 1px solid var(--ink-300); border-radius: var(--radius-s); font-size: .88rem; }
.widget .wp-block-search__button { background: var(--accent-600); color: #fff; padding: .55rem .9rem; border-radius: var(--radius-s); font-weight: 600; font-size: .85rem; }
.widget .wp-block-latest-posts { display: flex; flex-direction: column; gap: .6rem; }
.widget .wp-block-latest-posts__post-title { font-size: .92rem; color: var(--ink-700); }
.widget .wp-block-latest-posts__post-title:hover { color: var(--accent-600); }

/* ---------- 20. Post card ---------- */
.card {
  display: flex; flex-direction: column; border-radius: var(--radius-m);
  overflow: hidden; background: #fff; border: 1px solid var(--ink-200);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--ink-100); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent-500);
  background: linear-gradient(135deg, var(--accent-100), #fff);
}
.card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__cat {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-100); padding: .25rem .6rem; border-radius: 999px;
}
.card__title { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.32; color: var(--ink-900); }
.card__title a:hover { color: var(--accent-600); }
.card__excerpt { font-size: .9rem; color: var(--ink-500); flex: 1; }
.card__meta { font-size: .8rem; color: var(--ink-300); display: flex; gap: .5rem; margin-top: .2rem; }

/* ---------- 21. WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 1030;
  width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- 22. Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; max-width: 42rem; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__row { display: flex; flex-direction: column; gap: .4rem; }
.contact-form__row label { font-weight: 600; font-size: .88rem; color: var(--ink-900); }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: .75rem .9rem; border: 1px solid var(--ink-300); border-radius: var(--radius-s);
  font-size: .95rem; font-family: var(--font-body); color: var(--ink-900); background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-500); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; border: none; }

.form-notice { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); font-size: .92rem; font-weight: 600; }
.form-notice--success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.form-notice--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
