/* =========================================================
   ITEKTOR — static corporate website
   HTML + CSS + small vanilla JavaScript file
   ========================================================= */

:root {
  --ink: #0b1728;
  --ink-soft: #27364a;
  --blue: #1769ff;
  --blue-dark: #0d4ed7;
  --blue-pale: #eaf1ff;
  --paper: #ffffff;
  --surface: #f3f6fa;
  --surface-dark: #173154;
  --surface-dark-soft: #1c3b63;
  --line: #dce4ee;
  --muted: #68778a;
  --container: 1200px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(9, 26, 49, .12);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 105, 255, .28);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 108px 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 15px;
  color: #fff;
  background: linear-gradient(180deg, #0f2745 0%, #163355 100%);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 78px;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(11, 23, 40, .08);
  box-shadow: 0 12px 30px rgba(11, 23, 40, .06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 4px;
  width: 30px;
  height: 34px;
  padding: 5px;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 105, 255, .24);
}

.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: #fff;
}

.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 15px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: .13em;
}

.brand-text small {
  max-width: 220px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav .nav-cta {
  padding: 10px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
}

.main-nav .nav-cta:hover {
  color: #fff;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 740px;
  padding: 156px 0 105px;
  background:
    radial-gradient(circle at 82% 18%, rgba(23, 105, 255, .12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #fff 80%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(11, 23, 40, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 23, 40, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: 82px;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hero-lead {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 105, 255, .22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--blue);
  border-color: rgba(23, 105, 255, .35);
}

.hero-summary {
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(11, 23, 40, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-summary article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 27px 28px;
  border-bottom: 1px solid var(--line);
}

.hero-summary article:last-child {
  border-bottom: 0;
}

.hero-summary span,
.card-index,
.service-index,
.process-number {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.hero-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Shared headings */

.section-heading {
  max-width: 720px;
}

.section-heading-wide {
  max-width: 900px;
  margin-bottom: 56px;
}

.section-heading h2,
.turnkey-card h2,
.contacts-card h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-heading-row {
  margin-bottom: 56px;
}

/* Company */

.company-layout,
.cost-layout {
  display: grid;
  grid-template-columns: minmax(310px, .85fr) minmax(0, 1.15fr);
  gap: 105px;
}

.company-copy {
  padding-top: 5px;
}

.company-copy p,
.cost-copy p {
  color: var(--muted);
}

.company-copy .large-copy {
  margin-top: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

/* Support */

.support {
  background: var(--surface);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.support-card,
.customer-card {
  position: relative;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-card-dark,
.customer-card-dark {
  color: #fff;
  background: linear-gradient(180deg, #0f2745 0%, #163355 100%);
  border-color: #163355;
}

.support-card h3 {
  max-width: 500px;
  margin: 44px 0 20px;
  font-size: 23px;
  line-height: 1.25;
}

.support-card p {
  color: var(--muted);
}

.support-card-dark p,
.customer-card-dark p {
  color: #d6dfeb;
}

.support-final {
  max-width: 900px;
  margin: 46px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

/* Competencies */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 425px;
  padding: 38px 32px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.service-card:hover {
  z-index: 2;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(11, 23, 40, .08);
  transform: translateY(-3px);
}

.service-index {
  display: block;
  margin-bottom: 46px;
}

.service-card h3 {
  margin: 0 0 19px;
  font-size: 18px;
  line-height: 1.35;
}

.service-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* Process */

.process {
  background: var(--surface);
}

.process-heading {
  margin-bottom: 56px;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.process-list h3 {
  margin: 0 0 5px;
  font-size: 21px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

/* Customers */

.customers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.customer-card {
  min-height: 330px;
}

.customer-card h3 {
  margin: 52px 0 16px;
  font-size: 26px;
}

.customer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Turnkey */

.turnkey {
  padding-top: 0;
}

.turnkey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 80px;
  padding: 68px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(52, 122, 255, .16), transparent 45%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  border-radius: var(--radius);
  box-shadow: 0 34px 80px rgba(11, 23, 40, .17);
}

.section-label-light {
  color: #76a8ff;
}

.turnkey-copy {
  color: #d6dfeb;
}

.turnkey-copy p {
  margin-top: 0;
}

/* Cost */

.cost-copy {
  padding-top: 8px;
}

.cost-copy p {
  margin-top: 0;
  font-size: 19px;
}

.cost-copy .button {
  margin-top: 16px;
}

/* Contacts */

.contacts {
  padding-top: 0;
}

.contacts-card {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  padding: 64px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.contact-items {
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.contact-items > * {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.contact-items span {
  color: #8fa0b4;
  font-size: 12px;
}

.contact-items strong {
  font-size: 16px;
}

.contact-items a strong {
  transition: color var(--transition);
}

.contact-items a:hover strong {
  color: #76a8ff;
}

/* Footer */

.site-footer {
  color: #c3cedb;
  background: #07111f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 112px;
}

.brand-footer {
  color: #fff;
}

.brand-footer .brand-text small {
  color: #8898aa;
}

.footer-up {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 1100px) {
  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-content {
    max-width: 850px;
  }

  .hero-summary {
    max-width: 760px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .company-layout,
  .cost-layout {
    gap: 60px;
  }
}

@media (max-width: 850px) {
  .section {
    padding: 84px 0;
  }

  .company-layout,
  .cost-layout,
  .support-grid,
  .customers-grid,
  .turnkey-card,
  .contacts-card {
    grid-template-columns: 1fr;
  }

  .turnkey-card,
  .contacts-card {
    gap: 46px;
    padding: 50px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: 68px;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(11, 23, 40, .08);
    backdrop-filter: blur(16px);
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 2;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 16px 40px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a,
  .main-nav a:not(.nav-cta) {
    display: block;
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .main-nav .nav-cta {
    margin-top: 18px;
    padding: 16px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 74px;
  }

  .hero-grid {
    opacity: .28;
    mask-image: none;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-summary article {
    grid-template-columns: 38px 1fr;
    padding: 23px 20px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading h2,
  .turnkey-card h2,
  .contacts-card h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .company-layout,
  .cost-layout {
    gap: 38px;
  }

  .company-copy .large-copy {
    font-size: 19px;
  }

  .support-card,
  .customer-card {
    padding: 32px 25px;
  }

  .support-card h3 {
    margin-top: 35px;
    font-size: 23px;
  }

  .support-final {
    font-size: 19px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 31px 25px;
  }

  .service-index {
    margin-bottom: 32px;
  }

  .process-list li {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .customer-card {
    min-height: auto;
  }

  .customer-card h3 {
    margin-top: 36px;
  }

  .turnkey {
    padding-top: 0;
  }

  .turnkey .container,
  .contacts .container {
    width: 100%;
  }

  .turnkey-card,
  .contacts-card {
    padding: 52px 24px;
    border-radius: 0;
  }

  .contact-items > * {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-inner {
    min-height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   V4 — refined typography and softer contrast
   ========================================================= */

:root {
  --surface-dark: #4e6b8f;
  --surface-dark-soft: #6e7d8f;
  --dark-text: #c0c7d1;
  --light-card-text: #8e97a3;
}

/* Heading scale */
.hero h1 {
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-heading h2,
.turnkey-card h2,
.contacts-card h2 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.hero-lead {
  font-size: 19px;
}

.company-copy .large-copy {
  font-size: 18px;
}

.support-card h3 {
  font-size: 20px;
  line-height: 1.3;
}

.service-card h3 {
  font-size: 17px;
  line-height: 1.4;
}

.process-list h3 {
  font-size: 18px;
}

.customer-card h3 {
  font-size: 23px;
}

.support-final {
  font-size: 18px;
}

.cost-copy p {
  font-size: 17px;
}

/* Softer text in light content blocks */
.hero-summary p,
.support-card p,
.service-card p,
.process-list p,
.customer-card p {
  color: var(--light-card-text);
}

.hero-summary p {
  font-size: 16px;
}

/* Softer gradient blocks */
.support-card-dark,
.customer-card-dark,
.turnkey-card,
.contacts-card {
  background: linear-gradient(135deg, #4e6b8f 0%, #6e7d8f 100%);
  border-color: #6e7d8f;
}

.support-card-dark p,
.customer-card-dark p,
.turnkey-copy,
.contact-items span {
  color: var(--dark-text);
}

/* Round number markers */
.hero-summary span,
.card-index,
.service-index,
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--blue);
  background: #eef3fa;
  border: 1px solid #d9e3ef;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.hero-summary article {
  grid-template-columns: 30px 1fr;
}

.service-index {
  margin-bottom: 36px;
}

.support-card-dark .card-index,
.customer-card-dark .card-index {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(255, 255, 255, .65);
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(27px, 8vw, 30px);
    line-height: 1.14;
  }

  .section-heading h2,
  .turnkey-card h2,
  .contacts-card h2 {
    font-size: clamp(24px, 7vw, 27px);
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 17px;
  }

  .company-copy .large-copy,
  .support-final {
    font-size: 17px;
  }

  .support-card h3 {
    margin-top: 30px;
    font-size: 19px;
  }

  .service-card h3,
  .process-list h3 {
    font-size: 17px;
  }

  .customer-card h3 {
    margin-top: 30px;
    font-size: 21px;
  }

  .hero-summary article {
    grid-template-columns: 30px 1fr;
  }
}
