/* All presentation rules belong to the homepage; shared components keep their defaults elsewhere. */
.emsoft-home { --home-blue: #419fd9; --home-ink: #061016; --home-muted: #4c606d; --home-line: #c6e2f4; color: var(--home-ink); }
#emsoft-main + main.emsoft-home:not(.emsoft-search-results):not(.emsoft-breadcrumb-page) { padding-top: 0; }
.emsoft-home .home-section { padding-block: 64px; }
.emsoft-home h1, .emsoft-home h2, .emsoft-home h3 { text-wrap: balance; }
.emsoft-home h2 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.emsoft-home h2 span { color: #287dac; }
.emsoft-home p { line-height: 1.6; }
.emsoft-home .home-eyebrow { color: #287dac; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.emsoft-home .home-section-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 36px; text-align: center; }
.emsoft-home .home-section-heading > p { max-width: 680px; color: var(--home-muted); font-size: 17px; }
.emsoft-home .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 14px 22px; border-radius: 8px; background: #287dac; color: white; font-weight: 600; font-size: 14px; text-decoration: none; transition: background 180ms ease; }
.emsoft-home .home-button:hover { background: #20668e; }
.emsoft-home .home-button--small { align-self: start; margin-top: auto; }
.emsoft-home .home-text-link { display: inline-flex; align-items: center; gap: 14px; color: #287dac; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.emsoft-home .home-text-link:hover { text-decoration: underline; }
.emsoft-home a:focus-visible, .emsoft-home button:focus-visible, .emsoft-home [tabindex]:focus-visible { outline: 3px solid #275f82; outline-offset: 5px; }
.emsoft-home .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.emsoft-home .home-hero { position: relative; padding-block: 44px 48px; background: linear-gradient(115deg, #fff 30%, #f1f9fe 75%, #e6f2fb); }
.emsoft-home .home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.emsoft-home .home-hero h1 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; margin-bottom: 22px; }
.emsoft-home .home-hero h1 span { color: #287dac; }
.emsoft-home .home-hero .home-lead { font-size: 18px; max-width: 540px; }
.emsoft-home .home-hero .home-hero__cta { min-height: 54px; margin-top: 28px; padding: 16px 24px; font-size: 15px; gap: 14px; }
.emsoft-home .home-hero__visual { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.45; display: grid; place-items: center; }
.emsoft-home .home-hero__ecosystem { display: block; width: 100%; height: 100%; object-fit: contain; }
.emsoft-home .home-clients .portfolio-clients { padding-block: 38px; background: #f8fbfd; border-block: 1px solid #edf2f6; }
.emsoft-home .home-clients .portfolio-clients__heading { max-width: none; margin-bottom: 24px; }
.emsoft-home .home-clients .portfolio-clients__heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.emsoft-home .home-clients .portfolio-clients__heading p { font-size: 13px; margin-top: 8px; color: var(--home-muted); }
.emsoft-home .home-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 75px; }
.emsoft-home .home-prose { color: var(--home-muted); }
.emsoft-home .home-prose p + p { margin-top: 16px; }
.emsoft-home .home-prose .home-text-link { margin-top: 22px; }
.emsoft-home .home-statistics { padding-bottom: 20px; }
.emsoft-home .home-statistics__panel { display: grid; grid-template-columns: 1fr 2.4fr; align-items: center; gap: 38px; padding: 34px 42px; border: 1px solid var(--home-line); border-radius: 16px; background: linear-gradient(110deg, #f7fbfe, #d9edf9); }
.emsoft-home .home-statistics h2 { font-size: 24px; }
.emsoft-home .home-statistics .home-eyebrow { margin-bottom: 8px; }
.emsoft-home .home-statistics dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.emsoft-home .home-statistics dl > div { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid #a5cde6; padding-left: 26px; }
.emsoft-home .home-statistics dd { display: flex; align-items: center; gap: 10px; order: 1; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.05em; }
.emsoft-home .home-statistics dd span { color: #287dac; }
.emsoft-home .home-statistics__icon { display: inline-flex; color: #287dac; }
.emsoft-home .home-statistics dt { order: 2; font-size: 13px; color: var(--home-muted); line-height: 1.5; }
.emsoft-home .home-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.emsoft-home .home-service { display: flex; flex-direction: column; min-width: 0; gap: 20px; border: 1px solid #e2edf4; border-radius: 12px; padding: 28px; background: #f8fbfd; }
.emsoft-home .home-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--home-line); border-radius: 10px; background: #edf7fe; color: #287dac; transition: transform 200ms ease, background 200ms ease; }
.emsoft-home .home-service h3, .emsoft-home .home-advantage h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.emsoft-home .home-service h3 a { display: flex; justify-content: space-between; gap: 12px; }
.emsoft-home .home-service h3 a > span { color: #287dac; }
.emsoft-home .home-service h3 a:hover { color: #287dac; text-decoration: underline; }
.emsoft-home .home-service p { color: var(--home-muted); font-size: 14px; padding-bottom: 6px; }
.emsoft-home .home-service .home-service__destination { font-size: 13px; margin-top: -4px; }
.emsoft-home .home-work { background: #f5f9fc; }
.emsoft-home .home-work__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.emsoft-home .home-work__grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 20px; scrollbar-width: none; scrollbar-color: #88b9d6 transparent; }
.emsoft-home .home-work .portfolio-project-card { display: flex; height: 100%; scroll-snap-align: start; }
.emsoft-home .home-work .portfolio-project-card__link { height: 100%; }
.emsoft-home .home-work .portfolio-project-card::before { display: none; }
.emsoft-home .home-work .portfolio-project-card__link { display: flex; padding: 0; gap: 0; background: white; border: 1px solid #e2edf4; box-shadow: 0 4px 18px rgb(13 52 74 / 4%); }
.emsoft-home .home-work .portfolio-project-card__link::before { display: none; }
.emsoft-home .home-work .portfolio-project-card__image { position: static; transform: none; aspect-ratio: 664 / 366; height: auto; z-index: auto; object-fit: cover; }
.emsoft-home .home-work .portfolio-project-card__panel { flex: 1; width: 100%; background: white; padding: 24px; border-radius: 0; }
.emsoft-home .home-work .portfolio-project-card__title { font-size: 22px; text-transform: none; }
.emsoft-home .home-work .portfolio-project-card__description { display: block; font-size: 14px; line-height: 1.6; margin-top: 12px; color: var(--home-muted); }
.emsoft-home .home-work .portfolio-project-card__stacks { position: static; flex-wrap: wrap; margin: 0; padding: 0 24px 24px; gap: 6px; }
.emsoft-home .home-work .portfolio-project-card__stack { font-size: 11px; padding: 5px 9px; }
.emsoft-home .home-advantages .home-section-heading { align-items: center; }
.emsoft-home .home-reviews .home-section-heading > .home-carousel-controls { align-self: flex-end; }
.emsoft-home .home-advantages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.emsoft-home .home-advantage { padding: 26px; background: #f8fbfd; border-bottom: 2px solid #74b8e0; }
.emsoft-home .home-advantage .home-card-icon { margin-bottom: 22px; }
.emsoft-home .home-advantage p { color: var(--home-muted); font-size: 14px; margin-top: 14px; }
.emsoft-home .home-values { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--home-line); display: flex; gap: 40px; justify-content: space-between; }
.emsoft-home .home-values h3 { font-size: 19px; font-weight: 600; max-width: 310px; }
.emsoft-home .home-values ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; color: var(--home-muted); font-size: 14px; }
.emsoft-home .home-values li::before { content: "✓"; color: #287dac; margin-right: 10px; }
.emsoft-home .home-reviews { background: linear-gradient(115deg, #f2f8fc, #e4f1fa); }
.emsoft-home .home-carousel-controls { display: flex; gap: 12px; }
.emsoft-home .home-carousel-controls[hidden] { display: none; }
.emsoft-home .home-carousel-controls button { width: 46px; height: 46px; border: 1px solid #c6e2f4; border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
.emsoft-home .home-carousel-controls button:disabled { opacity: .4; cursor: default; }
.emsoft-home .home-reviews__list { display: flex; align-items: stretch; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding: 4px; padding: 4px 4px 18px; scrollbar-width: none; scrollbar-color: #88b9d6 transparent; }
.emsoft-home .home-review { display: flex; flex-direction: column; flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; border: 1px solid var(--home-line); border-radius: 12px; padding: 26px; background: white; }
.emsoft-home .home-review__rating { color: #a65b00; letter-spacing: 3px; font-size: 19px; margin-bottom: 16px; }
.emsoft-home .home-review blockquote, .emsoft-home .home-review__rating-only { flex: 1; font-size: 14px; color: #354b59; }
.emsoft-home .home-review figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; margin-top: 24px; }
.emsoft-home .home-review__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--home-muted); font-weight: 400; font-size: 11px; margin-top: 4px; }
.emsoft-home .home-review figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.emsoft-home .home-review figcaption a:hover { color: #287dac; text-decoration: underline; }
.emsoft-home .home-information__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.emsoft-home .home-information-card { min-width: 0; border: 1px solid #e2edf4; border-radius: 12px; overflow: hidden; }
.emsoft-home .home-information-card a { display: block; height: 100%; }
.emsoft-home .home-information-card a > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.emsoft-home .home-information-card a > div:last-child { padding: 24px; }
.emsoft-home .home-information-card h3 { font-size: 21px; font-weight: 600; line-height: 1.35; }
.emsoft-home .home-information-card p { font-size: 14px; color: var(--home-muted); margin-top: 12px; }
.emsoft-home .home-information-card .home-text-link { margin-top: 18px; }
.emsoft-home .home-information-card__art { display: flex; align-items: center; justify-content: center; height: 150px; background: linear-gradient(135deg, #e0f1fc, #f8fbfd); color: #287dac; }
.emsoft-home .home-information-card__art svg { width: 58px; height: 58px; }
.emsoft-home .home-consultation { background: #f8fbfd; }
.emsoft-home .home-consultation #contact { padding-block: 70px 84px; }
.emsoft-home .home-consultation .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 64px; align-items: start; }
.emsoft-home .home-consultation .inner > div:first-child { grid-column: 1; grid-row: 1; max-width: none; }
.emsoft-home .home-consultation .inner > div:first-child > p { font-size: 18px; color: var(--home-muted); margin-top: 14px; }
.emsoft-home .home-consultation .inner > .grid { display: contents; }
.emsoft-home .home-consultation .inner > .grid > .block { grid-column: 1; grid-row: 2; }
.emsoft-home .home-consultation form { grid-column: 2; grid-row: 1 / span 2; padding: 28px; border: 1px solid var(--home-line); background: white; border-radius: 12px; }
.emsoft-home .home-consultation form button[type="submit"] { background: #287dac; box-shadow: none; }
@media (hover: hover) {
  .emsoft-home .home-service:hover .home-card-icon, .emsoft-home .home-advantage:hover .home-card-icon { transform: translateY(-4px) rotate(-6deg); background: #d7edfc; }
}
@media (max-width: 1100px) {
  .emsoft-home .home-hero__grid { gap: 36px; }
  .emsoft-home .home-hero__visual { aspect-ratio: 1.3; }
  .emsoft-home .home-hero h1 { font-size: 42px; }
  .emsoft-home .home-services__grid, .emsoft-home .home-advantages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emsoft-home .home-statistics__panel { padding: 30px; gap: 24px; }
  .emsoft-home .home-work__grid { grid-auto-columns: calc((100% - 20px) / 2); }
  .emsoft-home .home-statistics dd { gap: 7px; font-size: 38px; }
  .emsoft-home .home-consultation .inner { column-gap: 32px; }
  .emsoft-home .home-intro__grid { gap: 40px; }
  .emsoft-home .home-review { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
  .emsoft-home .home-section { padding-block: 48px; }
  .emsoft-home .home-section-heading { align-items: center; gap: 16px; margin-bottom: 28px; }
  .emsoft-home .home-section-heading > p { font-size: 16px; }
  .emsoft-home .home-hero { padding-block: 30px 36px; }
  .emsoft-home .home-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .emsoft-home .home-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .emsoft-home .home-hero h1 { font-size: clamp(34px, 7.5vw, 46px); }
  .emsoft-home .home-hero .home-lead { font-size: 16px; }
  .emsoft-home .home-hero .home-hero__cta { margin-top: 22px; padding-inline: 17px; font-size: 13px; gap: 10px; }
  .emsoft-home .home-hero__visual { height: auto; aspect-ratio: 1.22; max-width: 540px; width: 100%; margin-inline: auto; }
  .emsoft-home .home-clients .portfolio-clients { padding-block: 28px; }
  .emsoft-home .home-clients .portfolio-clients__heading h2 { font-size: 17px; }
  .emsoft-home .home-statistics__panel { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 26px; }
  .emsoft-home .home-statistics dl { gap: 12px; }
  .emsoft-home .home-statistics dl > div { padding-left: 12px; }
  .emsoft-home .home-statistics dd { flex-direction: column; align-items: flex-start; gap: 8px; font-size: clamp(28px, 7vw, 40px); }
  .emsoft-home .home-statistics dt { font-size: 11px; }
  .emsoft-home .home-services__grid, .emsoft-home .home-advantages__grid, .emsoft-home .home-information__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .emsoft-home .home-work__grid { grid-auto-columns: 100%; gap: 16px; }
  .emsoft-home .home-service { padding: 24px; gap: 18px; }
  .emsoft-home .home-values { flex-direction: column; gap: 22px; }
  .emsoft-home .home-values ul { grid-template-columns: minmax(0, 1fr); }
  .emsoft-home .home-reviews .home-section-heading { align-items: center; }
  .emsoft-home .home-review { flex-basis: 88%; padding: 22px; }
  .emsoft-home .home-carousel-controls { gap: 8px; }
  .emsoft-home .home-carousel-controls button { width: 36px; height: 36px; }
  .emsoft-home .home-consultation #contact { padding-block: 48px; }
  .emsoft-home .home-consultation .inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .emsoft-home .home-consultation .inner > div:first-child { grid-column: 1; grid-row: 1; }
  .emsoft-home .home-consultation .inner > .grid > .block { grid-column: 1; grid-row: 2; }
  .emsoft-home .home-consultation form { grid-column: 1; grid-row: 3; padding: 20px; }
}
@media (max-width: 380px) {
  .emsoft-home .home-hero__visual { aspect-ratio: 1.2; }
  .emsoft-home .home-hero .home-hero__cta { width: 100%; padding-inline: 12px; font-size: 12px; }
  .emsoft-home .home-reviews .home-eyebrow { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .emsoft-home *, .emsoft-home *::before, .emsoft-home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
