@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Manrope', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #06172b;
  --surface: #0a2038;
  --line: #1c4770;
  --text: #f5f8ff;
  --muted: #adc8e3;
  --blue: #3f9fff;
  --cyan: #79c8ff;
  --mono: 'DM Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 80% 25% at 50% 0%, #0c3159a3, transparent 85%), #06172b;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#4f98d40c 1px, transparent 1px), linear-gradient(90deg, #4f98d40c 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(#0009, transparent 78%);
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: break-word; }

.site-header {
  height: 72px;
  padding-inline: max(28px, calc((100vw - 1468px) / 2));
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid #3a80b627;
  background: #07192eeb;
  position: relative;
  z-index: 10;
}
.logo { display: inline-flex; align-items: center; gap: 17px; flex: none; font-size: 1.15rem; font-weight: 800; }
.logo { gap: 0; }
.site-header nav { display: flex; align-items: center; gap: 35px; color: #b7cee5; font-size: .88rem; }
.site-header nav a:hover, .hero-text-link:hover, .all-cases:hover { color: #fff; }
.header-status { margin-left: auto; color: #aac6df; font-size: .76rem; white-space: nowrap; }
.header-status i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px #3f9fff91; }

.hero, .section { max-width: 1588px; margin-inline: auto; padding-inline: clamp(28px, 3.8vw, 60px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  align-items: center;
  gap: 12px;
  min-height: 351px;
  padding-top: 32px;
  padding-bottom: 12px;
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font: 500 .68rem var(--mono); letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3rem, 3.55vw, 3.65rem); line-height: 1.06; letter-spacing: -.047em; word-spacing: .055em; font-weight: 800; }
h1 > span, h2 > span { color: var(--blue); }
.hero h1 { max-width: 670px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-subtitle { margin: 18px 0 0; color: #c1d6eb; font-size: .99rem; line-height: 1.6; }
.hero-experience { max-width: 620px; margin: 12px 0 0; color: #a9c1d8; font-size: .84rem; line-height: 1.65; }
.hero-experience strong { color: var(--cyan); font-weight: 700; white-space: nowrap; }
.tech-stack { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; margin-left: 18px; vertical-align: middle; }
.tech-item { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 5px; white-space: nowrap; }
.tech-item img, .tech-item svg { display: block; width: 17px; height: 17px; object-fit: contain; }
.tech-item img { width: 19px; }
.brand-openai { overflow: visible; }
.brand-telegram { color: #2aabee; }
.brand-google { width: 16px !important; height: 16px !important; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 35px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: 800 .9rem 'Manrope', Arial, sans-serif;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #04182b; background: linear-gradient(110deg,#238cff,#5db8ff); box-shadow: 0 10px 25px #1689fa35; }
.button.primary:hover { background: #80caff; }
.button.secondary { color: #d3e9fa; background: #0b2845; border-color: #2e628e; }
.hero-text-link, .all-cases { color: var(--cyan); font-size: .86rem; font-weight: 700; border-bottom: 1px solid #4da5e5; padding-bottom: 5px; }

.hero-diagram {
  height: 310px;
  position: relative;
  background: radial-gradient(ellipse 70% 85% at 52% 48%, #0d355c66, transparent 75%);
}
.hero-diagram::before, .hero-diagram::after {
  content: '';
  position: absolute;
  border: 1px solid #2e689a2e;
  border-radius: 50%;
  pointer-events: none;
}
.hero-diagram::before { width: 265px; height: 265px; left: 1%; top: 0; }
.hero-diagram::after { width: 250px; height: 250px; right: 1%; top: 5px; }
.diagram-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #58b0fb; stroke-width: 1.4; pointer-events: none; }
.diagram-wires path { marker-end: url(#wire-arrow); }
.diagram-wires .merge-branch { marker-end: none; }
.diagram-wires .flow-line { stroke: #56dfa0; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 2.5 14; stroke-dashoffset: 114; opacity: 0; marker-end: none; filter: drop-shadow(0 0 3px #4cffad); animation: flow-step 10.5s linear infinite; animation-delay: calc(var(--step) * 1.15s); }
.diagram-wires .step-1 { --step: 0; }
.diagram-wires .step-2 { --step: 1; }
.diagram-wires .step-3 { --step: 2; }
.diagram-wires .step-4 { --step: 3; }
.diagram-wires .step-5 { --step: 4; }
.diagram-wires .step-6 { --step: 5; }
.diagram-wires .step-7 { --step: 6; }
.diagram-wires .step-8 { --step: 7; }
@keyframes flow-step { 0%,8% { stroke-dashoffset: 114; opacity: 0; } 10% { opacity: 1; } 18% { stroke-dashoffset: -14; opacity: 1; } 20%,100% { stroke-dashoffset: -14; opacity: 0; } }
.diagram-route-mobile { display: none; }
.diagram-panel {
  position: absolute;
  border: 1px solid #315d85;
  border-radius: 12px;
  background: linear-gradient(145deg,#0d2947e8,#0a223ce8);
  box-shadow: inset 0 1px #ffffff09, 0 12px 32px #00000020;
  overflow: hidden;
  z-index: 1;
}
.diagram-sources { left: 0; top: 40px; width: 19%; height: 202px; }
.diagram-core { left: 26%; top: 86px; width: 14%; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.diagram-processing { left: 47%; top: 44px; width: 25%; height: 194px; }
.diagram-results { left: 79%; top: 40px; width: 20%; height: 202px; }
.diagram-results { display: flex; flex-direction: column; padding: 8px 0; }
.diagram-results-title { flex: none; padding: 0 12px 3px; color: #9fc8e9; font-size: .63rem; line-height: 1.3; }
.diagram-results .diagram-item { flex: 1; width: 100%; height: auto; min-height: 0; padding: 7px 12px; }
.diagram-item { display: flex; align-items: center; gap: 12px; min-width: 0; height: 50%; padding: 12px; }
.diagram-item + .diagram-item { border-top: 0; }
.diagram-item > div { min-width: 0; }
.diagram-item strong { display: block; font-size: .72rem; line-height: 1.35; }
.diagram-item small { display: block; margin-top: 5px; color: #a8c6df; font-size: .66rem; line-height: 1.35; overflow-wrap: anywhere; }
.diagram-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 8px; color: var(--cyan); background: #143b64; font-size: 1.25rem; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.diagram-icon.sheets-icon, .diagram-icon.calendar-icon { background: none; }
.diagram-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.n8n-brand { display: flex; align-items: center; justify-content: center; gap: 5px; }
.n8n-brand img { display: block; width: 37px; height: 30px; object-fit: contain; }
.diagram-core strong { font-size: 1.3rem; line-height: 1.2; }
.diagram-core small { margin-top: 7px; color: #a6c5e1; font-size: .68rem; line-height: 1.35; }
.diagram-loop-label { position: absolute; bottom: 2px; left: 44%; z-index: 2; padding: 0 10px; color: #a7c5de; background: #09213c; font-size: .69rem; white-space: nowrap; }
.diagram-loop-label i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.section { padding-top: 64px; padding-bottom: 64px; }
.services { padding-top: 7px; padding-bottom: 35px; }
.automation-examples { padding-top: 22px; padding-bottom: 54px; }
.automation-examples .projects-heading { margin-bottom: 18px; }
.automation-examples-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.automation-examples-grid article { min-width: 0; padding: 21px 20px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg,#0b2746,#0a203a); }
.automation-examples-grid article > span { color: var(--blue); font: 500 .68rem var(--mono); letter-spacing: .04em; }
.automation-examples-grid p { margin: 15px 0 0; color: #c5d9eb; font-size: .88rem; line-height: 1.55; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-card, .approach-grid article { border: 1px solid var(--line); background: linear-gradient(140deg,#0a2441,#071c34); }
.service-card { display: block; min-width: 0; padding: 12px 0; }
.project-card:hover { border-color: #5ca9e8; transform: translateY(-3px); }
.service-icon { display: grid; place-items: center; flex: 0 0 68px; height: 68px; border-radius: 9px; color: var(--blue); background: linear-gradient(145deg,#123e67,#0a2c4f); font-size: 1.9rem; }
.service-icon .ui-icon { width: 38px; height: 38px; stroke-width: 1.7; }
.service-copy { display: grid; gap: 9px; min-width: 0; }
.service-copy strong { font-size: 1.05rem; line-height: 1.35; }
.service-copy > span { color: #b7d0e8; font-size: .92rem; line-height: 1.6; }
.round-arrow { display: none !important; }

.projects { padding-top: 3px; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.projects-heading .eyebrow { margin-bottom: 10px; }
.projects-heading h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(1.85rem, 2.65vw, 2.4rem); line-height: 1.17; letter-spacing: -.035em; word-spacing: .05em; }
.all-cases { flex: none; margin-bottom: 3px; }
.all-cases span { margin-left: 7px; }
.project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.project-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .2s; cursor: pointer; }
.project-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.project-card-hitarea { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.project-image { display: block; height: clamp(125px, 10vw, 157px); flex: none; position: relative; z-index: 3; overflow: hidden; }
.project-image::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#06182d8c); }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-image img { transform: scale(1.045); }
.image-label { position: absolute; z-index: 1; bottom: 12px; left: 15px; padding: 6px 11px; border-radius: 5px; color: #fff; background: #06213ecf; font-size: .72rem; }
.project-content { position: relative; z-index: 3; display: flex; flex: 1; flex-direction: column; padding: 17px 17px 14px; pointer-events: none; }
.project-content a { position: relative; z-index: 4; pointer-events: auto; }
.project-content h3 { margin: 0 0 8px; font-size: .94rem; line-height: 1.38; letter-spacing: -.02em; }
.project-content p { margin: 0; color: #b7cde3; font-size: .82rem; line-height: 1.55; }
.project-bottom { display: flex; align-items: center; gap: 8px; min-height: 49px; margin-top: auto; padding-top: 12px; }
.project-outcome { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #adcbe4; font-size: .69rem; line-height: 1.35; }
.project-outcome i { flex: none; color: var(--blue); font-size: 1.2rem; font-style: normal; }
.project-outcome a { border-bottom: 1px solid #4b9bd4; }
.project-bottom .round-arrow { width: 34px; height: 34px; margin-left: auto; }

.approach { margin-top: 40px; border-top: 1px solid #3170a329; }
.section-heading h2 span { color: var(--blue); }
.approach-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.approach-grid article { padding: 24px; border-radius: 9px; }
.approach-grid article > span { color: var(--blue); font: 500 .69rem var(--mono); }
.approach-grid h3 { margin: 19px 0 8px; font-size: 1.04rem; }
.approach-grid p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.65; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 56px; padding-block: 46px; border: 1px solid #25608f; border-radius: 10px; background: radial-gradient(ellipse at 85% 45%, #123c64, #092540 60%, #071c32); }
.contact .eyebrow { margin-bottom: 12px; }
.contact h2 { max-width: 650px; }
.contact p:not(.eyebrow) { max-width: 600px; margin: 13px 0 0; color: #b7cfe5; font-size: .92rem; line-height: 1.65; }
.contact-action { display: flex; flex: none; flex-direction: column; align-items: stretch; gap: 11px; min-width: 245px; }
.contact-orbit { display: none; }
.contact-link { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 15px; border: 1px solid #347caf; border-radius: 8px; background: #0a2d50; color: #d9edff; font-size: .86rem; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.contact-link:hover { transform: translateY(-2px); border-color: #78c4ff; background: #103e68; }
.contact-link svg, .contact-link > img { width: 25px; height: 25px; flex: none; object-fit: contain; }
.contact-telegram { color: #f4fbff; background: #168de0; border-color: #168de0; }
.contact-telegram:hover { background: #269cf0; border-color: #65c1ff; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1480px; min-height: 84px; margin: auto; padding: 18px 28px; border-top: 1px solid #3170a329; color: #9dbbd2; font-size: .75rem; }
footer .logo { color: #f0f7ff; font-size: 1rem; }
footer > a:last-child { color: #b5d1e7; }

@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { max-width: none; }
  .hero-diagram { max-width: 920px; width: 100%; margin: auto; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .automation-examples-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-image { height: 190px; }
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .header-status { display: none; }
}
@media (max-width: 700px) {
  .site-header { height: 66px; padding-inline: 20px; gap: 16px; justify-content: space-between; }
  .site-header nav { gap: 14px; font-size: .77rem; }
  .site-header nav a:first-child { display: none; }
  .hero, .section { padding-inline: 20px; }
  .automation-examples { padding-top: 24px; padding-bottom: 42px; }
  .hero { padding-top: 48px; padding-bottom: 27px; }
  h1 { font-size: clamp(2.5rem, 9vw, 3.8rem); }
  .hero h1 span { white-space: normal; }
  .hero-subtitle { font-size: .94rem; }
  .hero-diagram { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; height: auto; padding: 20px 0 30px; }
  .diagram-wires, .hero-diagram::before, .hero-diagram::after { display: none; }
  .diagram-panel { position: static; width: auto; height: 180px; }
  .diagram-core { height: 180px; }
  .diagram-processing { height: 180px; }
  .diagram-loop-label { left: 0; bottom: 0; }
  .diagram-route-mobile { display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 8px; justify-self: start; color: #9fe7c2; font-size: .72rem; }
  .diagram-route-mobile i { width: 8px; height: 8px; border-radius: 50%; background: #56dfa0; box-shadow: 0 0 12px #56dfa0; animation: route-pulse 1.2s ease-in-out infinite alternate; }
  @keyframes route-pulse { to { opacity: .35; transform: scale(.75); } }
  .diagram-item { padding: 9px; gap: 8px; }
  .diagram-icon { width: 31px; height: 31px; font-size: 1rem; }
  .diagram-icon .ui-icon { width: 21px; height: 21px; }
  .diagram-icon img { width: 31px; height: 31px; }
  .diagram-item strong { font-size: .68rem; }
  .diagram-item small { font-size: .61rem; }
  .section { padding-top: 50px; padding-bottom: 50px; }
  .services { padding-top: 10px; padding-bottom: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-image { height: 205px; }
  .project-content { min-height: 180px; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact { display: block; margin-inline: 12px; padding: 28px; }
  .contact-action { margin-top: 23px; }
  footer { padding-inline: 20px; }
}
@media (max-width: 460px) {
  .automation-examples-grid { grid-template-columns: 1fr; }
  .logo { gap: 8px; }
  .hero-actions { gap: 22px; }
  .button { min-height: 49px; padding-inline: 20px; }
  .hero-diagram { grid-template-columns: 1fr; padding-bottom: 0; }
  .diagram-panel, .diagram-processing { height: auto; }
  .diagram-core { min-height: 112px; }
  .diagram-item { min-height: 64px; }
  .diagram-item strong { font-size: .76rem; }
  .diagram-item small { font-size: .68rem; }
  .diagram-loop-label { position: static; margin-top: 2px; padding: 0; background: none; }
  .projects-heading { align-items: flex-start; }
  footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram-wires .flow-line, .diagram-route-mobile i { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
