/* West Print — Bento design.
   Grey canvas, white rounded cards, one blue accent and a yellow highlight.
   Every colour comes from the tokens below, so the dark theme only has to
   redefine them. */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #ffd84d;
  --color-accent-ink: #111827;
  --color-bg: #eef1f5;
  --color-surface: #ffffff;
  --color-soft: #eef1f5;
  --color-tint: #e8efff;
  --color-tint-ink: #2563eb;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-inv: #111827;
  --color-inv-text: #ffffff;
  --color-inv-muted: #cbd5e1;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --dock-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
  /* Logo PNG has the blue/dark wordmark baked in — shown as-is in the light
     theme, turned solid white in the dark one. */
  --logo-filter: none;
}

:root[data-theme="dark"] {
  --color-accent: #ffd84d;
  --color-bg: #0b0f17;
  --color-surface: #151b26;
  --color-soft: #1f2733;
  --color-tint: #1c2b4d;
  --color-tint-ink: #93b4ff;
  --color-text: #f1f5f9;
  --color-text-muted: #9aa4b2;
  --color-border: #2b3546;
  --color-inv: #1f2733;
  --color-inv-text: #f1f5f9;
  --color-inv-muted: #9aa4b2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --dock-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --logo-filter: brightness(0) invert(1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  transition: background 0.2s, color 0.2s;
}

/* Short pages: grow main so the footer sits at the bottom of the viewport. */
main { flex: 1 0 auto; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; }
/* Montserrat: extra-bold headings, regular body text. */
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Header: a white rounded card holding logo, nav and actions ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 24px 2px;
  background: var(--color-bg);
  transition: background 0.2s;
}
/* .header-inner is also the .container: same width as the page content. */
.site-header .header-inner { max-width: calc(1280px - 48px); }
/* No backdrop-filter or transform here: on phones the nav inside becomes a
   position:fixed dock, and either property would trap it in the header. */
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 0 10px 0 22px;
  background: var(--color-surface);
  border-radius: 24px;
  transition: background 0.2s;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: var(--logo-filter);
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
/* Desktop nav shows text labels; the icons are for the phone dock. */
.bottom-nav-item > span:first-child { display: none; }
.bottom-nav-item:hover { color: var(--color-text); }
.bottom-nav-item.active { background: var(--color-soft); color: var(--color-text); }
/* The header already has an order button on desktop. */
.nav-order { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--color-soft);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.header-phone:hover { background: var(--color-tint); color: var(--color-tint-ink); }
.header-phone svg { display: block; width: 16px; height: 16px; }
.header-order { height: 46px; padding: 0 20px; font-size: 0.875rem; white-space: nowrap; }

/* Settings: the last nav item opens a small panel with theme and language. */
.nav-settings { position: relative; display: flex; flex-shrink: 0; }
.settings-toggle.open { color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-border); }
.settings-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 230px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--dock-shadow);
  padding: 6px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.settings-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.settings-row + .settings-row { border-top: 1px solid var(--color-border); }
.settings-row > span:first-child { font-weight: 600; font-size: 0.9rem; color: var(--color-text); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--color-soft);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--color-tint); color: var(--color-tint-ink); }
.theme-toggle svg { width: 17px; height: 17px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--color-soft); }
.lang-switch button {
  border: none;
  border-radius: 9px;
  background: none;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-text-muted);
}
.lang-switch button.active { background: var(--color-primary); color: #fff; }

/* Phones swap the language pill for one flag-shaped button. */
.lang-flag { display: none; }

@media (max-width: 1200px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  .header-order { display: none; }
  .bottom-nav-item { padding: 0 12px; }
}

/* ===== Sections (inner pages) ===== */
section { padding: 48px 0; }
section h2 { font-size: 2.25rem; text-align: center; letter-spacing: -0.03em; }
.section-subtitle { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-cta { text-align: center; margin-top: 20px; }
section[id] { scroll-margin-top: 100px; }
html { scroll-behavior: smooth; }

/* Small label above a section title. */
.section-eyebrow {
  display: table;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Home: the Bento grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 8px;
}
.b-card {
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}
.bento h2 { margin: 0; font-size: 1.4rem; text-align: left; letter-spacing: -0.02em; }
.b-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.b-head p { margin: 4px 0 0; font-size: 0.875rem; }
.b-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--color-soft);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.b-pill:hover { background: var(--color-tint); color: var(--color-tint-ink); }
.b-pill-wide { width: 100%; }
.b-link { font-size: 0.82rem; font-weight: 700; color: var(--color-tint-ink); }

/* Hero */
.b-hero {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 40px;
}
.b-badge {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
  font-size: 0.82rem;
  font-weight: 700;
}
.b-hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.b-hero-desc { margin: 0; max-width: 540px; font-size: 1.05rem; line-height: 1.6; }
.b-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px 0 20px;
  border-radius: 18px;
  background: var(--color-soft);
  color: var(--color-text-muted);
  transition: box-shadow 0.2s;
}
.b-search:focus-within { box-shadow: 0 0 0 2px var(--color-primary); }
.b-search > span svg { display: block; width: 20px; height: 20px; }
.b-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}
.b-search input::placeholder { color: var(--color-text-muted); }
.b-search-btn {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-inv);
  color: var(--color-inv-text);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.b-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.b-chips-label { padding: 9px 4px; color: var(--color-text-muted); }
.b-chip {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.b-chip:hover { border-color: var(--color-primary); color: var(--color-tint-ink); }

/* Our works: one photo at a time, cross-fading, with a caption bar. */
.b-works {
  position: relative;
  grid-column: 8 / span 5;
  grid-row: 1;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-soft);
}
.b-works-slides { position: absolute; inset: 0; }
.b-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.b-slide.active { opacity: 1; visibility: visible; transition: opacity 0.8s ease; }
.b-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0s linear 0.8s;
}
.b-slide.active img { transform: scale(1); transition: transform 6s cubic-bezier(0.2, 0.6, 0.3, 1); }
.b-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}
.b-works-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.b-works-info { display: flex; flex-direction: column; min-width: 0; }
.b-works-info strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-works-info span { font-size: 0.75rem; color: #cbd5e1; }
.b-works-nav { display: flex; gap: 6px; flex-shrink: 0; }
.b-works-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.b-works-btn:hover { background: rgba(255, 255, 255, 0.26); }
.b-works-btn-next { background: #fff; color: #111827; }
.b-works-btn-next:hover { background: #e5e7eb; }
.b-works-btn svg { display: block; width: 18px; height: 18px; }

/* Stats */
.b-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
}
.b-stat strong { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.b-stat-yellow { grid-column: 8 / span 2; grid-row: 2; background: var(--color-accent); color: var(--color-accent-ink); font-size: 0.82rem; font-weight: 600; }
.b-stat-inv { grid-column: 10 / span 3; grid-row: 2; background: var(--color-inv); color: var(--color-inv-text); }
.b-stat-sub { display: block; margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--color-inv-muted); }
.b-stat-row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; font-weight: 700; }

/* Services: ten categories, each leading to its row on the services page. */
.b-services { grid-column: 1 / -1; }
.b-services h2 { font-size: 1.9rem; }
.b-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.b-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--color-soft);
  transition: transform 0.2s ease;
}
.b-cat:hover { transform: translateY(-3px); }
.b-cat img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.b-cat-text { padding: 0 8px 8px; }
.b-cat-text strong { display: block; font-size: 0.875rem; line-height: 1.3; }
.b-cat-text span { font-size: 0.75rem; color: var(--color-text-muted); }

/* Send your artwork */
.b-tg {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: var(--color-primary);
  color: #fff;
}
.bento .b-tg h2 { font-size: 1.6rem; line-height: 1.15; color: #fff; }
.b-tg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}
.b-tg-icon svg { width: 24px; height: 24px; }
.b-tg-chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; font-weight: 700; }
.b-tg-chips span { padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.b-tg p { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.9); }
.b-tg-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
}

/* How it works */
.b-steps { grid-column: span 4; padding: 30px; }
.b-step-list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.b-step-list li { display: flex; align-items: center; gap: 14px; }
.b-step-list strong { display: block; font-size: 0.95rem; }
.b-step-list li > span:last-child > span { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--color-text-muted); }
.b-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--color-soft);
  font-weight: 800;
}
.b-step-num-last { background: var(--color-accent); color: var(--color-accent-ink); }

/* Who we work for */
.b-clients { grid-column: span 4; padding: 30px; }
.b-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.b-client {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}
.b-client > span:first-child { color: var(--color-tint-ink); }
.b-client svg { display: block; width: 18px; height: 18px; }

/* Brands */
.b-brands { grid-column: span 5; padding: 24px; }
.b-brands .b-head { margin-bottom: 14px; align-items: center; }
.b-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.b-brand { position: relative; display: block; height: 140px; overflow: hidden; border-radius: 16px; background: var(--color-soft); }
.b-brand img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.b-brand:hover img { transform: scale(1.05); }
.b-brand span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Address with a drawn street map (no third-party map on the home page). */
.b-visit { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.b-map {
  position: relative;
  flex: 1 0 130px;
  min-height: 130px;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--color-soft);
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 26px 26px;
}
.b-map::before,
.b-map::after { content: ''; position: absolute; background: var(--color-surface); }
.b-map::before { left: 0; right: 0; top: 58px; height: 14px; }
.b-map::after { top: 0; bottom: 0; left: 46%; width: 12px; }
.b-map-pin {
  position: absolute;
  z-index: 1;
  top: 26px;
  left: calc(46% - 14px);
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  transform: rotate(-45deg);
}
.b-map-pin::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.b-visit-text { display: flex; flex-direction: column; gap: 4px; }
.b-visit-text strong { font-size: 1rem; line-height: 1.35; }
.b-visit-text span { font-size: 0.82rem; color: var(--color-text-muted); }
.b-visit .b-pill { margin-top: auto; }

/* Settings card */
.b-prefs { grid-column: span 3; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.b-pref { display: flex; flex-direction: column; gap: 8px; }
.b-pref > span { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); }
.b-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
}
.b-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-seg button {
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.b-seg button:hover { color: var(--color-text); }
.b-seg button.active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* Call to action (home and services pages) */
.b-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 36px;
  background: var(--color-inv);
  color: var(--color-inv-text);
}
.b-cta h2 { margin: 0 0 6px; font-size: 1.75rem; text-align: left; color: var(--color-inv-text); }
.b-cta p { margin: 0; font-size: 0.875rem; color: var(--color-inv-muted); }
.b-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.b-cta-btn:hover { opacity: 0.9; }
.b-cta-btn-light { background: #fff; color: #111827; }
.b-cta-btn-ghost { padding: 14px 21px; border: 1px solid rgba(255, 255, 255, 0.28); }
.b-cta-btn-accent { background: var(--color-primary); color: #fff; }

@media (max-width: 1100px) {
  .b-tg, .b-steps, .b-visit, .b-prefs { grid-column: span 6; }
  .b-clients, .b-brands { grid-column: 1 / -1; }
  .b-client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .b-hero, .b-works { grid-column: 1 / -1; grid-row: auto; }
  .b-stat-yellow, .b-stat-inv { grid-column: span 6; grid-row: auto; }
  .b-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .b-slide, .b-slide.active, .b-slide img, .b-slide.active img { transition: none; transform: none; }
}

/* ===== Services page ===== */
.services { padding: 14px 0 8px; }
.svc-page,
#svcGroups { display: flex; flex-direction: column; gap: 16px; }
.svc-top { display: flex; flex-direction: column; gap: 20px; padding: 36px; }
.svc-top-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.svc-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; }
.svc-sub { margin: 6px 0 0; font-size: 1rem; }
.svc-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 460px;
  height: 60px;
  padding: 0 20px;
  border-radius: 18px;
  background: var(--color-soft);
  color: var(--color-text-muted);
  transition: box-shadow 0.2s;
}
.svc-search:focus-within { box-shadow: 0 0 0 2px var(--color-primary); }
.svc-search svg { display: block; width: 20px; height: 20px; }
.svc-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}
.svc-search input::placeholder { color: var(--color-text-muted); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.svc-chip span { margin-left: 2px; opacity: 0.6; }
.svc-chip:hover { background: var(--color-tint); color: var(--color-tint-ink); }
.svc-chip.active { background: var(--color-inv); color: var(--color-inv-text); }

/* Each category is its own white card with a horizontal row of tiles. */
.svc-row {
  --hue: var(--color-primary);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  scroll-margin-top: 100px;
}
.svc-row[hidden] { display: none; }
.svc-row-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.svc-row-head h2 { margin: 0; font-size: 1.35rem; text-align: left; letter-spacing: -0.02em; }
.svc-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--hue) 15%, var(--color-surface));
  color: var(--hue);
}
:root[data-theme="dark"] .svc-row-icon { background: color-mix(in srgb, var(--hue) 28%, var(--color-surface)); color: #fff; }
.svc-row-icon svg { width: 20px; height: 20px; }
.svc-row[data-row="featured"] .svc-row-icon { background: var(--color-accent); color: var(--color-accent-ink); }
.svc-row-count {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.svc-arrows { display: flex; gap: 6px; margin-left: auto; }
.svc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.svc-arrow:hover { background: var(--color-tint); color: var(--color-tint-ink); }
.svc-arrow svg, .svc-arrow span { display: block; width: 18px; height: 18px; }
.svc-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 6px;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.svc-track > [hidden] { display: none; }

/* Product tiles: photo on top, name and "with your logo" underneath. */
.svc-tile,
.service-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-soft);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.svc-tile:hover, .service-card:hover { transform: translateY(-3px); }
.svc-tile { width: 190px; }
.service-card { width: 220px; }
.svc-tile-img,
.service-image {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: 15px;
  object-fit: cover;
  background: var(--color-border);
}
.service-image { position: relative; overflow: hidden; }
.service-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-icon, .svc-tile-icon { display: none; }
.service-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
}
.svc-tile-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px 6px; }
.svc-tile-name, .service-name { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.service-name { display: block; padding: 10px 8px 6px; }
.svc-tile-note { font-size: 0.75rem; color: var(--color-text-muted); }
.svc-empty {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}

/* ===== Modals ===== */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 15, 23, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
/* `display: flex` above would otherwise beat the hidden attribute. */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.open { opacity: 1; }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 14px 14px 22px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s ease;
}
.modal-backdrop.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close svg { display: block; }
.modal-close:hover { background: var(--color-primary); color: #fff; }
.modal-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}
.modal-image[hidden] { display: none; }
.modal-image.is-loading {
  opacity: 0.6;
  background: linear-gradient(100deg, var(--color-soft) 30%, var(--color-border) 50%, var(--color-soft) 70%);
  background-size: 200% 100%;
  animation: imgShimmer 1.1s linear infinite;
}
@keyframes imgShimmer { to { background-position: -200% 0; } }
.modal-image-tall { height: 260px; }
.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -30px 0 14px 8px;
  border: 4px solid var(--color-surface);
  border-radius: 18px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
}
.modal-panel.no-image .modal-icon { margin-top: 8px; }
.modal-icon svg { width: 24px; height: 24px; }
.modal-title { margin: 0 8px 6px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-text { margin: 0 8px; font-size: 0.92rem; line-height: 1.6; }
.product-modal-badge {
  display: inline-block;
  margin: 16px 8px 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.product-modal-logo {
  display: inline-flex;
  margin: 12px 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.product-modal-logo[hidden] { display: none; }
.product-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 8px 0; }
.product-modal-actions .btn { flex: 1 1 140px; height: 56px; padding: 0 14px; border-radius: 18px; text-align: center; white-space: nowrap; }
.product-modal-call { order: -1; background: var(--color-soft); color: var(--color-text); }
.product-modal-call:hover { background: var(--color-tint); color: var(--color-tint-ink); }

/* Portfolio images open full size on click. */
#portfolioGrid img { cursor: zoom-in; }
.lightbox-panel { position: relative; }
.lightbox-panel img { display: block; max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox-panel .modal-close { top: -14px; right: -14px; background: var(--color-surface); color: var(--color-text); }

/* ===== Advantages ===== */
.why-us { padding: 40px 0 56px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Each card is a button: clicking it opens its details in a modal. */
.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 28px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* Kept in the DOM so I18n keeps it translated — the modal reads it. */
.why-detail-text { display: none; }
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card-title { margin-bottom: 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.why-card-text { font-size: 0.875rem; color: var(--color-text-muted); }
.why-cta { margin-top: 16px; }

/* ===== Gallery / portfolio ===== */
.gallery { padding-top: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.25s;
}
.gallery-grid img:hover { transform: scale(1.03); }
.gallery-grid.is-empty { display: block; }
.empty-state {
  margin: 0;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}
.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-tint-ink); }
/* Wide link card under the old gallery grid. */
.portfolio-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform 0.2s;
}
.portfolio-link:hover { transform: translateY(-2px); }
.portfolio-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  color: var(--color-tint-ink);
}
.portfolio-link-icon svg { width: 22px; height: 22px; }
.portfolio-link-text { display: flex; flex-direction: column; gap: 2px; }
.portfolio-link-text strong { font-size: 1.05rem; }
.portfolio-link-text span { font-size: 0.875rem; color: var(--color-text-muted); }
.portfolio-link-arrow { display: flex; flex-shrink: 0; margin-left: auto; color: var(--color-tint-ink); }

/* ===== Contact ===== */
.contact { padding-top: 40px; }
/* Fixed 3 columns: an auto-fit grid would strand the last card. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.contact-card:hover, a.contact-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
/* Phone card holds two numbers, each its own tel: link. */
.contact-phones a { display: block; padding: 2px 0; transition: color 0.2s; }
.contact-phones a + a { margin-top: 4px; }
.contact-phones a:hover, .contact-phones a:focus-visible { color: var(--color-tint-ink); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--color-tint);
  color: var(--color-tint-ink);
}
.contact-icon svg { width: 20px; height: 20px; }
/* Five cards: the address spans two columns so every row is full. */
.contact-card-wide { grid-column: span 2; }
.map-embed { margin-top: 16px; overflow: hidden; border-radius: var(--radius-lg); line-height: 0; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* FAQ */
.faq { padding-top: 16px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--color-soft);
  color: var(--color-text);
  transition: transform 0.2s;
}
.faq-toggle-icon svg { display: block; }
.faq-item.open .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { margin: 0; padding: 0 0 18px; }

/* ===== Footer ===== */
.site-footer { padding: 20px 0 28px; color: var(--color-text-muted); font-size: 0.82rem; }
.site-footer .container { padding: 0 36px; }

/* Floating Telegram button (injected by main.js; desktop only — phones
   have the order button in the dock). */
.tg-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #229ed9;
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.45);
  transition: transform 0.2s ease;
}
.tg-fab svg { width: 26px; height: 26px; margin: 2px 2px 0 0; }
.tg-fab:hover { transform: translateY(-2px) scale(1.05); }
.tg-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #229ed9;
  border-radius: 50%;
  animation: tgPulse 2.4s ease-out infinite;
}
@keyframes tgPulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.6); opacity: 0; }
}
body.modal-open .tg-fab { display: none; }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel, .modal-backdrop.open .modal-panel { transition: none; transform: none; }
  .tg-fab::before { animation: none; display: none; }
}

/* ===== Phones ===== */
@media (max-width: 820px) {
  .container { padding: 0 12px; }
  .site-header { padding: 10px 12px 0; }
  .header-inner { height: 60px; padding: 0 8px 0 16px; border-radius: var(--radius); position: relative; }
  .brand-logo { height: 30px; }
  .header-actions { display: none; }

  /* The nav becomes the bottom dock: five tabs with the order button in
     the middle. */
  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    height: 72px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: var(--dock-shadow);
  }
  .bottom-nav-item {
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 0;
    border-radius: 0;
    font-size: 0.64rem;
    font-weight: 600;
    background: none;
  }
  .bottom-nav-item > span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: 12px;
    transition: background 0.2s;
  }
  .bottom-nav-item svg { display: block; width: 20px; height: 20px; }
  .bottom-nav-item.active { background: none; color: var(--color-tint-ink); }
  .bottom-nav-item.active > span:first-child { background: var(--color-tint); }
  /* Order: Telegram icon on a blue key, labelled like the other tabs. */
  .nav-order { display: flex; color: var(--color-tint-ink); font-weight: 700; }
  .nav-order > span:first-child {
    width: 48px;
    height: 36px;
    border-radius: 13px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  }
  .nav-order svg { width: 20px; height: 20px; margin: 1px 1px 0 0; }

  /* Settings leave the dock (main.js moves them into the header): language
     flag and theme button sit at the header's right edge. */
  .bottom-nav .nav-settings { display: none; }
  .site-header .nav-settings { position: static; margin-left: auto; }
  .site-header .settings-toggle { display: none; }
  .site-header .settings-dropdown {
    position: static;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .site-header .settings-row { padding: 0; border-top: 0; }
  .site-header .settings-row > span:first-child { display: none; }
  .site-header .lang-switch { display: none; }
  .site-header .theme-toggle { width: 44px; height: 44px; border-radius: var(--radius-sm); }
  .site-header .lang-flag {
    display: block;
    width: 42px;
    height: 28px;
    padding: 0;
    overflow: hidden;
    border: 1.5px solid var(--color-border);
    border-radius: 7px;
    background: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.2s;
  }
  .site-header .lang-flag:active { transform: scale(0.9); }
  .lang-flag .flag,
  .lang-flag svg { display: block; width: 100%; height: 100%; }
  .lang-flag .flag-ru,
  .lang-flag .flag-en { display: none; }
  html[lang="ru"] .lang-flag .flag-uz,
  html[lang="en"] .lang-flag .flag-uz { display: none; }
  html[lang="ru"] .lang-flag .flag-ru,
  html[lang="en"] .lang-flag .flag-en { display: block; }

  .tg-fab { display: none; }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .site-footer .container { padding: 0 24px; }

  section { padding: 32px 0; }
  section h2 { font-size: 1.75rem; }
  .section-subtitle { margin-bottom: 24px; }

  /* Home */
  .bento { gap: 10px; padding-top: 10px; }
  .b-card { padding: 20px; border-radius: 24px; }
  .bento > * { grid-column: 1 / -1; }
  .b-stat-yellow, .b-stat-inv { grid-column: span 6; }
  .b-hero { padding: 22px; gap: 16px; }
  .b-hero-title { font-size: 2.15rem; }
  .b-hero-desc { font-size: 0.92rem; }
  .b-search { height: 52px; padding: 0 6px 0 16px; border-radius: 16px; }
  .b-search-btn { height: 40px; padding: 0 14px; }
  .b-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -22px 0; padding: 0 22px; }
  .b-chips::-webkit-scrollbar { display: none; }
  .b-chips-label { display: none; }
  .b-works { min-height: 260px; border-radius: 24px; }
  .b-works-bar { left: 10px; right: 10px; bottom: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; }
  .b-stat { min-height: 116px; padding: 16px; border-radius: 22px; }
  .b-stat strong { font-size: 1.75rem; }
  .b-stat-row { display: none; }
  .b-services h2 { font-size: 1.4rem; }
  .b-head { margin-bottom: 14px; }
  .b-head .b-pill { height: 40px; padding: 0 14px; font-size: 0.8rem; }
  .b-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .b-cat { padding: 6px; border-radius: 18px; gap: 8px; }
  .b-cat img { height: 90px; border-radius: 13px; }
  .b-cat-text { padding: 0 6px 6px; }
  .b-tg, .b-steps, .b-clients { padding: 20px; }
  .bento .b-tg h2 { font-size: 1.3rem; }
  .b-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-brands { padding: 18px; }
  .b-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-brand { height: 120px; }
  .b-visit, .b-prefs { padding: 20px; }
  .b-cta { padding: 24px; align-items: flex-start; }
  .b-cta h2 { font-size: 1.35rem; }
  .b-cta-actions { width: 100%; }
  .b-cta-btn { flex: 1 1 auto; }

  /* Services */
  .services { padding-top: 10px; }
  .svc-page, #svcGroups { gap: 10px; }
  .svc-top { padding: 22px; gap: 16px; border-radius: 24px; }
  .svc-search { flex: 1 1 100%; height: 52px; border-radius: 16px; }
  .svc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px; }
  .svc-chips::-webkit-scrollbar { display: none; }
  .svc-row { padding: 18px; border-radius: 24px; }
  .svc-row-head { margin-bottom: 12px; gap: 10px; }
  .svc-row-head h2 { font-size: 1.1rem; }
  .svc-row-icon { width: 38px; height: 38px; border-radius: 12px; }
  .svc-arrows { display: none; }
  .svc-track { margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; gap: 8px; }
  .svc-tile { width: 150px; }
  .service-card { width: 170px; }
  .svc-tile-img, .service-image { height: 120px; border-radius: 13px; }

  /* Modals open as a bottom sheet. */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-panel {
    max-width: none;
    max-height: 92vh;
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    transform: translateY(40px);
  }
  .modal-panel::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: var(--color-border);
  }
  .modal-close { top: 34px; right: 26px; }
  .modal-image-tall { height: 230px; }
  .lightbox-panel::before { display: none; }

  /* Advantages, contact, gallery */
  .why-grid { gap: 10px; }
  .why-card { padding: 20px; border-radius: 24px; }
  .why-icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; }
  .why-icon svg { width: 20px; height: 20px; }
  .why-card-title { font-size: 0.95rem; }
  .why-card-text { font-size: 0.8rem; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-card { padding: 18px 10px; border-radius: 24px; font-size: 0.82rem; }
  .contact-icon { width: 42px; height: 42px; margin-bottom: 8px; border-radius: 14px; }
  .contact-icon svg { width: 18px; height: 18px; }
  .map-embed { border-radius: 24px; }
  .map-embed iframe { height: 300px; }
  .faq-list { padding: 4px 20px; border-radius: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-grid img { height: 150px; border-radius: 14px; }
}

/* Narrowest phones */
@media (max-width: 380px) {
  .brand-logo { height: 26px; }
  .site-header .lang-flag { width: 39px; height: 26px; }
  .site-header .theme-toggle { width: 40px; height: 40px; }
  .bottom-nav-item { font-size: 0.58rem; }
  .bottom-nav-item > span:first-child { width: 42px; }
  .b-hero-title { font-size: 1.9rem; }
  .b-search-btn { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 16px 8px; font-size: 0.78rem; }
}
