/*
  Shared premium layer for internal pages.
  Homepage keeps its dedicated homepage-premium.css.
*/
:root {
  --it-bg: #f5f7fb;
  --it-surface: #ffffff;
  --it-ink: #142235;
  --it-muted: #607086;
  --it-line: rgba(20, 34, 53, 0.12);
  --it-blue: #1457a8;
  --it-coral: #e45f3f;
  --it-green: #157a6e;
  --it-shadow: 0 18px 50px rgba(20, 34, 53, 0.10);
  --it-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body:not(.it-homepage) {
  margin: 0;
  color: var(--it-ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--it-bg) 460px, #ffffff 100%);
  text-rendering: optimizeLegibility;
}

body:not(.it-homepage) a {
  color: inherit;
}

body:not(.it-homepage) .wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: #101b2a;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.topbar .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mail-link,
.topbar a {
  color: #ffffff;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--it-line);
  backdrop-filter: blur(14px);
}

.nav .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-image img,
.logo img {
  width: auto;
  max-width: 210px;
  height: auto;
  max-height: 58px;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--it-radius);
  color: #213149;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover {
  background: #edf4ff;
  color: var(--it-blue);
}

.menu .lang {
  border: 1px solid var(--it-line);
}

.btn,
button.btn,
.menu .btn,
.contact-submit-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--it-radius);
  background: var(--it-blue);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 87, 168, 0.18);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover,
button.btn:hover,
.contact-submit-btn:hover {
  transform: translateY(-1px);
  background: #0f4b91;
}

.btn.secondary,
.btn.btn-secondary {
  background: #ffffff;
  color: var(--it-ink) !important;
  border: 1px solid var(--it-line);
  box-shadow: none;
}

.btn-orange,
.actions .btn-orange {
  background: var(--it-coral);
}

.pagehead,
.seo-pagehead,
.blog-hero,
.resources-hero,
.projects-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(20, 87, 168, 0.10), rgba(21, 122, 110, 0.08)),
    #f8fbff;
  border-bottom: 1px solid var(--it-line);
}

.pagehead h1,
.seo-pagehead h1,
.blog-hero h1,
.resources-hero h1,
.projects-hero h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  color: var(--it-ink);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.pagehead p,
.seo-pagehead p,
.blog-hero p,
.resources-hero p,
.projects-hero p,
.lead,
.article-intro,
.projects-intro {
  max-width: 760px;
  color: var(--it-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.eyebrow,
.kicker,
.tag,
.projects-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--it-radius);
  background: rgba(20, 87, 168, 0.10);
  color: var(--it-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section,
.projects-section,
.resources-section {
  padding: clamp(48px, 7vw, 86px) 0;
  background: transparent;
}

.section.white,
.projects-section.alt {
  background: #ffffff;
}

.grid,
.blog-grid,
.it-card-grid,
.projects-method-grid,
.client-logo-grid,
.resources-grid {
  gap: 20px;
}

.card,
.blog-card,
.resource-card,
.method-card,
.client-logo-card,
.contact-premium-form,
.contact-direct-card,
.it-kpi-card {
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  background: var(--it-surface);
  box-shadow: var(--it-shadow);
}

.card,
.blog-card,
.resource-card,
.method-card,
.contact-direct-card {
  padding: clamp(22px, 3vw, 30px);
}

.card h2,
.card h3,
.blog-card h2,
.resource-card h2,
.method-card h3,
.article-page h1,
.article-page h2,
.contact-premium h1,
.contact-premium h2 {
  color: var(--it-ink);
  letter-spacing: 0;
}

.card p,
.blog-card p,
.resource-card p,
.method-card p,
.article-page p,
.contact-premium p {
  color: var(--it-muted);
  line-height: 1.7;
}

.article-page {
  padding-block: clamp(44px, 7vw, 86px);
  max-width: 860px;
}

.article-page h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.article-page h2 {
  margin-top: 36px;
}

.article-cta,
.projects-cta,
.blog-cta,
.resources-cta {
  margin-top: 38px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--it-radius);
  background: #10243b;
  color: #ffffff;
}

.article-cta p,
.projects-cta p,
.blog-cta p,
.resources-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-premium {
  padding: clamp(44px, 7vw, 86px) 0;
}

.contact-premium-form input,
.contact-premium-form select,
.contact-premium-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  padding: 11px 13px;
  background: #ffffff;
  color: var(--it-ink);
  font: inherit;
}

.contact-premium-form textarea {
  min-height: 150px;
  resize: vertical;
}

.itselect-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer,
.site-footer {
  padding: 38px 0;
  background: #101b2a;
  color: rgba(255, 255, 255, 0.74);
}

.footer a,
.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer .wrap,
.site-footer .wrap {
  display: grid;
  gap: 12px;
}

@media (max-width: 860px) {
  body:not(.it-homepage) .wrap {
    width: min(100% - 28px, 1160px);
  }

  .topbar .wrap,
  .nav .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav .wrap {
    padding: 14px 0;
  }

  .menu {
    justify-content: flex-start;
    width: 100%;
  }

  .menu a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
}
