/* SIRIN public website. Self-hosted assets only, no external resources. Mobile first. */

/* Inter (SIL Open Font License, fonts/OFL.txt), self-hosted variable font (D-29). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Always light, like the reference designs: the illustrations and panels are made for it. */
  color-scheme: light;
  /* Brand colours from the SIRIN logo: blue #2d5ba6, red #b91e1c, near-black. */
  --navy: #0e2a5c;
  --blue: #2d5ba6;
  --blue-soft: #e8eef9;
  --accent: #b91e1c;
  --accent-light: #ff8178;
  --ink: #0d1424;
  --text: #14171f;
  --muted: #5a6274;
  --bg: #ffffff;
  --soft: #f3f5f9;
  /* Background colour of the generated illustrations. */
  --canvas: #edf0f6;
  --card: #f3f5f9;
  --line: #e2e7ef;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Chinese version (D-32): Inter covers Latin letters and digits; Chinese characters use the
   visitor's own system font (no web font is downloaded). Negative tracking suits Latin only. */
html:lang(zh) body,
.lang-switch a:lang(zh) {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "WenQuanYi Zen Hei", system-ui, sans-serif;
}

html:lang(zh) body {
  line-height: 1.7;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3 {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

/* Not on list items: the shorthand would undo `nowrap` in the navigation. */
p {
  text-wrap: pretty;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 760px) {
  :root {
    --gutter: 28px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-xl {
  width: 64px;
  height: 64px;
  stroke-width: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.eyebrow::before {
  content: "";
  flex: none;
  align-self: flex-start;
  margin-top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.muted {
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: auto;
}

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

.logo-text small {
  margin-top: 3px;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.62em;
}

.site-nav {
  order: 3;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 2px calc(-1 * var(--gutter)) 0;
  /* The links' own 10px padding is taken off, so their text lines up with the logo. */
  padding: 0 calc(var(--gutter) - 10px);
  width: calc(100% + 2 * var(--gutter));
}

/* Where the row scrolls, its end fades out as a hint that there is more. */
@media (max-width: 699px) {
  .site-nav {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  white-space: nowrap;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
}

.site-nav a:hover {
  background: var(--soft);
}

@media (min-width: 1060px) {
  .site-nav {
    order: 0;
    width: auto;
    margin: 0;
    padding: 0;
  }
}

/* Language switch (D-30, D-32): a small RU | EN | 中文 pill next to the contact button. */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch a {
  min-width: 2.6em;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
}

.lang-switch a:lang(zh) {
  letter-spacing: 0;
}

.lang-switch a:not([aria-current]):hover {
  background: var(--soft);
  color: var(--ink);
}

.lang-switch a[aria-current] {
  background: var(--navy);
  color: #fff;
}

@media (min-width: 1060px) {
  .lang-switch {
    margin-left: 0;
  }
}

/* Phones: logo, switch and contact button share one row. */
@media (max-width: 479px) {
  .header-inner {
    gap: 4px 6px;
  }

  .header-inner .logo {
    gap: 6px;
    font-size: 1.15rem;
  }

  .header-inner .logo-mark {
    width: 26px;
  }

  .header-inner .header-cta {
    gap: 6px;
    padding: 3px 3px 3px 12px;
    font-size: 0.85rem;
  }

  .header-inner .header-cta .button-arrow {
    width: 26px;
    height: 26px;
  }

  .lang-switch a {
    padding: 3px 7px;
    font-size: 0.75rem;
  }
}

/* Narrow phones (under 375px): logo, switch and the full button do not fit one row, so the
   contact button keeps only its arrow (the text stays for screen readers). */
@media (max-width: 374px) {
  .header-inner .header-cta {
    padding: 3px;
    font-size: 0;
  }
}

/* Buttons: pills with a round arrow, as in the reference */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-wrap: balance;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform 0.15s;
}

.button-arrow .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.button:hover .button-arrow {
  transform: rotate(45deg);
}

.button-small {
  padding: 4px 4px 4px 16px;
  gap: 12px;
  font-size: 0.93rem;
}

.button-small .button-arrow {
  width: 30px;
  height: 30px;
}

.button-dark {
  background: var(--navy);
  color: #fff;
}

.button-dark .button-arrow {
  background: #fff;
  color: var(--navy);
}

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

.button-outline {
  border-color: var(--line);
  color: var(--text);
  background: var(--bg);
}

.button-outline .button-arrow {
  background: var(--soft);
}

.button-outline:hover {
  border-color: var(--text);
}

.button-ghost {
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
}

.button-ghost .button-arrow {
  background: rgb(255 255 255 / 12%);
}

.button-ghost:hover {
  border-color: #fff;
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light .button-arrow {
  background: var(--accent);
  color: #fff;
}

.button-light .button-arrow .icon {
  stroke-width: 1.8;
}

.button-light:hover .button-arrow {
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero buttons share their row evenly; once they wrap, each takes the full width, so the
   stacked pills line up instead of ending at two different points. */
.actions .button {
  flex: 1 1 auto;
}

@media (min-width: 1100px) {
  .actions .button {
    flex: 0 1 auto;
  }
}

@media (max-width: 479px) {
  .button:not(.button-small) {
    gap: 12px;
    padding-left: 20px;
  }
}

/* Phones: the longest label («Получить расчёт у менеджера») still fits one line. */
@media (max-width: 479px) {
  .actions .button {
    font-size: 0.94rem;
  }
}

/* 360px phones: the longest label still fits one line. */
@media (max-width: 374px) {
  .actions .button {
    gap: 10px;
    padding: 6px 6px 6px 18px;
    font-size: 0.9rem;
  }

  .actions .button-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Hero: giant wordmark over the content (reference: BAU CARGO) */

.hero {
  padding: 20px 0 8px;
  overflow: hidden;
}

/* One panel on the illustrations' light canvas: wordmark and text on the left, truck on the right. */
.hero-panel {
  display: grid;
  grid-template-areas:
    "word"
    "image"
    "copy";
  gap: 20px;
  padding: 28px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  overflow: hidden;
}

@media (max-width: 899px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 374px) {
  .hero-panel {
    padding-inline: 16px;
  }
}

.hero-panel .wordmark {
  grid-area: word;
}

.hero-copy {
  grid-area: copy;
}

.hero-copy h1 {
  margin-bottom: 0.35em;
}

.hero-image {
  grid-area: image;
  width: 100%;
  height: auto;
  /* One column: the picture is cropped to the truck (the empty canvas above and below it
     goes), and its edges fade into the panel so no lighter rectangle shows. */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero-image {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 900px) {
  .hero-panel {
    grid-template-columns: 1.25fr 0.9fr;
    grid-template-areas:
      "word image"
      "copy image";
    gap: 36px 24px;
    padding: 44px 0 44px 44px;
  }

  .hero-image {
    align-self: center;
    aspect-ratio: auto;
    width: 125%;
    max-width: none;
    margin-left: -12%;
    /* Only a thin fade at the picture's edges, so the truck itself stays sharp. */
    -webkit-mask-image:
      linear-gradient(to right, transparent, #000 5%, #000 100%),
      linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent, #000 5%, #000 100%),
      linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect;
  }
}

.wordmark {
  margin: 0;
  color: var(--navy);
  /* Fills the panel width on phones; next to the illustration on wider screens. */
  font-size: min(calc((100vw - 2 * var(--gutter) - 40px) / 2.5), 13rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
  user-select: none;
}

/* "GLOBAL" under the word, spaced out as in the logo. */
.wordmark-suffix {
  display: block;
  margin-top: 0.12em;
  font-size: 0.2em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.55em;
  /* Takes back the spacing after the last letter, which made the word wider than the panel
     on narrow phones and pushed the text column past its padding. */
  margin-right: -1.55em;
}

.hero .lead {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32em;
}

/* Sections */

.section {
  padding: 36px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 52px 0;
  }
}

.section-head {
  margin-bottom: 24px;
  max-width: 720px;
}

.section-head h2 {
  margin-bottom: 0.3em;
}

.section-head .muted {
  margin: 0;
}

.band {
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

@media (min-width: 900px) {
  .band {
    padding: 44px;
  }
}

.band-dark {
  background: var(--ink);
  color: #fff;
}

.band-dark .eyebrow,
.band-blue .eyebrow {
  color: rgb(255 255 255 / 70%);
}

.band-blue .eyebrow::before {
  background: #fff;
}

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

/* About band */

.about {
  display: grid;
  gap: 20px;
  align-items: start;
}

.about h2 {
  margin: 0;
}

.about-text {
  max-width: 38em;
}

.about-text p {
  color: rgb(255 255 255 / 82%);
}

.about-text p:last-child {
  margin: 0;
}

.about .button {
  justify-self: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 28px 56px;
  }

  .about .button {
    grid-column: 2;
  }
}

/* Cards */

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    gap: 16px;
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Services: two per row up to wide screens (four narrow columns wrapped every title into
   three lines). */
@media (min-width: 1000px) and (max-width: 1179px) {
  .cards-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}

.card h3 {
  margin-bottom: 0.45em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--blue);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.card .note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Transport cards: illustration tile on top (reference: BAU CARGO service cards) */

.card-transport {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 22px;
}

.card-transport h3 {
  margin: 0 0 8px;
}

.card .estimate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: auto 0 0;
}

.estimate-value {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.estimate-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.card .estimate-pill {
  align-self: flex-start;
  margin: auto 12px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* Text lines up with the picture's inner edge. (The pill keeps its own padding: a blanket
   rule for every child used to flatten it.) */
.card-transport h3,
.card-transport .estimate {
  padding: 0 12px;
}

.transport-art {
  display: block;
  width: 100%;
  height: 170px;
  margin-bottom: 18px;
  /* Concentric with the card: card radius minus its 10px padding. */
  border-radius: calc(var(--radius) - 10px);
  background: #e9ecf3;
  /* The pictures differ in shape; filling the tile hides their edges against it. */
  object-fit: cover;
}

@media (max-width: 599px) {
  .transport-art {
    height: 190px;
  }
}

/* Advantages: bento grid (reference: BloomFi) */

.bento {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .bento-1 {
    grid-column: span 2;
  }

  .bento-6,
  .bento-7,
  .bento-8 {
    grid-column: span 2;
  }
}

.bento-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 140px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}

@media (max-width: 599px) {
  .bento-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 18px 20px;
    font-size: 1rem;
  }
}

.bento-check {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.bento-check .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.bento-1 {
  background: var(--blue);
  color: #fff;
}

.bento-1 .bento-check,
.bento-4 .bento-check,
.bento-6 .bento-check {
  background: #fff;
  color: var(--accent);
}

.bento-4,
.bento-6 {
  background: var(--ink);
  color: #fff;
}

.bento-8 {
  background: var(--blue-soft);
}

/* Tracking: bot mock-up (reference: Apinsy phone card) and steps (reference: 3 stages) */

.tracking {
  display: grid;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .tracking {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 56px;
  }
}

.phone {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 18px;
  border: 8px solid var(--ink);
  border-radius: 34px;
  background: #dfe8f5;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
  box-shadow: 0 24px 50px rgb(0 0 0 / 25%);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -14px -14px 4px;
  padding: 12px 14px;
  border-radius: 26px 26px 0 0;
  background: #fff;
}

.chat-head img {
  width: 28px;
  height: auto;
}

.chat-head span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chat-head small {
  color: var(--muted);
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
}

.bubble-out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #d6f0c6;
}

.bubble code {
  font-weight: 700;
  color: var(--blue);
}

.bubble-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.35;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}

.chat-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.chat-buttons span {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgb(255 255 255 / 75%);
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
}

.phone figcaption {
  margin-top: 10px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.85rem;
  text-align: center;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
}

.steps li,
.bento-item {
  text-wrap: pretty;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 10%);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  /* Centred on the first line of text (14px padding + half a 1.6 line − half the circle). */
  top: calc(14px + 0.8em - 16px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

@media (max-width: 479px) {
  .steps li {
    padding: 12px 14px 12px 50px;
  }

  .steps li::before {
    left: 12px;
    top: calc(12px + 0.8em - 14px);
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.9rem;
  }
}

.tracking-note {
  margin: 0;
  color: rgb(255 255 255 / 75%);
  font-size: 0.92rem;
}

/* Contacts: call-to-action band on the illustrations' light canvas, so the boxes blend in */

.band-canvas {
  background: var(--canvas);
  color: var(--ink);
}

.contacts-band {
  display: grid;
  gap: 24px;
  grid-template-areas:
    "intro"
    "contacts"
    "note";
  overflow: hidden;
}

.contacts-intro {
  grid-area: intro;
}

.contacts-intro h2 {
  max-width: 14em;
}

.contacts-intro p:not(.eyebrow) {
  max-width: 36em;
  margin: 0;
  color: var(--muted);
}

.contacts-image {
  display: none;
  grid-area: image;
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: end;
  align-self: center;
  /* Fade the square edges into the panel. */
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent);
  mask-image: radial-gradient(closest-side, #000 86%, transparent);
}

@media (min-width: 760px) {
  .contacts-band {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "intro image"
      "contacts contacts"
      "note note";
    column-gap: 32px;
  }

  .contacts-image {
    display: block;
    width: 240px;
    margin: -24px -8px -24px 0;
  }
}

@media (min-width: 1000px) {
  .contacts-image {
    width: 280px;
  }
}

.contacts {
  grid-area: contacts;
  display: grid;
  gap: 12px;
  grid-template-areas:
    "telegram"
    "email"
    "wechat";
}

/* WeChat (two numbers) is the large card; Telegram and e-mail stack beside it at half its height. */
@media (min-width: 1000px) {
  .contacts {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "wechat telegram"
      "wechat email";
  }
}

.contact-telegram {
  grid-area: telegram;
}

.contact-email {
  grid-area: email;
}

.contact-wechat {
  grid-area: wechat;
}

.contact-body {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.contact-wechat .contact-body {
  align-items: flex-start;
  padding: 24px;
}

a.contact-body {
  transition: box-shadow 0.15s;
}

a.contact-body:hover {
  box-shadow: 0 0 0 2px var(--blue);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
}

/* Each app in its own colour: Telegram blue, Gmail red, WeChat green. */
.contact-telegram .contact-icon {
  background: #229ed9;
}

.contact-email .contact-icon {
  background: #ea4335;
}

.contact-wechat .contact-icon {
  width: 56px;
  height: 56px;
  background: #07c160;
}

.contact-wechat .contact-icon .icon {
  width: 28px;
  height: 28px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-channel {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-value {
  font-size: 1.08rem;
  font-weight: 700;
  /* Only as a last resort on the narrowest phones. */
  overflow-wrap: break-word;
}

.contact-wechat .contact-channel {
  margin-bottom: 6px;
}

.contact-wechat .contact-value {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.contact-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.contact-arrow .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Phones: the whole card is the link, so the arrow goes and the e-mail fits on one line. */
@media (max-width: 759px) {
  .contact-body {
    gap: 12px;
    padding: 16px;
  }

  .contact-icon,
  .contact-wechat .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-wechat .contact-icon .icon {
    width: 22px;
    height: 22px;
  }

  .contact-wechat .contact-body {
    padding: 16px;
  }

  .contact-value,
  .contact-wechat .contact-value {
    font-size: 1rem;
  }

  .contact-arrow {
    display: none;
  }
}

a.contact-body:hover .contact-arrow {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.contacts-note {
  grid-area: note;
  margin: 0;
}

/* Inner pages */

.page {
  padding: 48px 0 64px;
}

.page .container > * {
  max-width: 760px;
}

/* Footer */

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  text-wrap: balance;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text);
}

/* Motion: CSS only, no scripts. Visitors who ask for less motion get none (last block). */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drive-in {
  from {
    opacity: 0;
    transform: translateX(48px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* First screen: the wordmark and text rise in one after another, the truck drives in. */
.hero-panel .wordmark {
  animation: fade-up 0.7s ease-out both;
}

.hero-copy {
  animation: fade-up 0.7s 0.15s ease-out both;
}

.hero-image {
  animation: drive-in 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Blocks rise into place as they scroll into view, in browsers that support scroll-driven
   animations; elsewhere they are simply shown. */
@supports (animation-timeline: view()) {
  .section-head,
  .band,
  .card,
  .bento-item,
  .contact {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* Cards lift slightly under the mouse. */
@media (hover: hover) {
  .card,
  .bento-item {
    /* `translate`, not `transform`: the scroll animation above owns `transform`. */
    transition: translate 0.2s ease, box-shadow 0.2s ease;
  }

  .card:hover,
  .bento-item:hover {
    translate: 0 -4px;
    box-shadow: 0 12px 28px rgb(14 42 92 / 10%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
