:root {
  color-scheme: light;
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-strong: #eef5f1;
  --text: #17211f;
  --muted: #5d6b67;
  --line: #dce6e1;
  --brand: #0d5b63;
  --brand-strong: #073f46;
  --accent: #d28d24;
  --accent-soft: #fff1d7;
  --success: #24745c;
  --danger: #b83a35;
  --shadow: 0 14px 34px rgba(15, 38, 33, 0.1);
  --radius: 8px;
  --container: 1160px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101715;
  --surface: #17211f;
  --surface-strong: #20302c;
  --text: #edf5f2;
  --muted: #aab8b4;
  --line: #30413d;
  --brand: #58b7b4;
  --brand-strong: #96d7d2;
  --accent: #f0b457;
  --accent-soft: #332718;
  --success: #85c9ad;
  --danger: #ff9a92;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--brand);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.section {
  padding: 88px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--accent);
  color: #111;
  border-radius: var(--radius);
  font-weight: 700;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  white-space: normal;
}

.brand-title {
  max-width: 160px;
  font-size: 0.96rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--text);
}

.header-search {
  width: min(170px, 18vw);
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.user-name {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.login-btn:hover,
.login-btn:focus-visible {
  background: linear-gradient(135deg, var(--brand-strong), #c2410c);
  color: #ffffff;
  transform: translateY(-2px);
}

.header-search input,
.search-page-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
}

.theme-toggle,
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
}

.theme-toggle {
  padding: 9px 12px;
  font-weight: 750;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line {
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding-top: 72px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--surface-strong) 80%, transparent), transparent 58%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 4rem;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  color: #fff;
  background: var(--brand-strong);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
}

.button-light {
  background: #fff;
  color: #12302e;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-stats dt {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 900;
  color: var(--brand);
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.logo-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.logo-strip-inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.logo-strip span {
  color: var(--muted);
  font-weight: 800;
}

.logo-strip img {
  max-height: 48px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 44px;
  align-items: start;
}

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

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
}

.intro-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.services {
  background: var(--surface-strong);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.service-card,
.product-card,
.process-list li,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.service-card {
  min-height: 245px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service-card p,
.product-card p,
.solution-list p,
.process-list p {
  color: var(--muted);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-content {
  padding: 10px 0;
}

.solution-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.solution-list article {
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.solution-list h3 {
  margin-bottom: 7px;
}

.products {
  background: var(--surface-strong);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-strong);
}

.product-card div {
  padding: 22px;
}

.product-card p {
  margin-top: 10px;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-list li {
  padding: 22px;
}

.process-list span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 900;
}

.process-list p {
  margin-top: 10px;
}

.cta-band {
  padding: 56px 0;
  background: linear-gradient(120deg, #0d5b63, #1d6c58 58%, #94641d);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-inner h2 {
  max-width: 760px;
  font-size: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
}

.contact-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-status {
  color: var(--success);
  font-weight: 750;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 30px;
}

.footer-brand {
  color: var(--text);
  margin-bottom: 12px;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.footer-label {
  color: var(--text);
  font-weight: 800;
}

.copyright {
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-grid,
  .two-column,
  .split-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 0;
  }

  .logo-strip span {
    grid-column: 1 / -1;
    text-align: center;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .icon-button {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px;
  }

  .theme-toggle {
    padding: 8px 10px;
  }

  .header-search {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .product-grid,
  .process-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand span {
    display: none;
  }

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

  .contact-form {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-strong: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-strong: #ea580c;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --success: #15803d;
  --danger: #dc2626;
  --shadow: 0 20px 50px rgba(249, 115, 22, 0.12);
  --radius: 8px;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(249, 115, 22, 0.11), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline-color: var(--brand);
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(254, 215, 170, 0.9);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
}

.brand {
  color: var(--text);
}

.brand img {
  filter: drop-shadow(0 8px 14px rgba(249, 115, 22, 0.16));
}

.primary-nav a {
  color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--brand-strong);
}

.header-search input,
.search-page-form input,
input,
select,
textarea {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(249, 115, 22, 0.04);
}

.header-search input:focus,
.search-page-form input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.92) 56%),
    var(--bg);
}

.eyebrow {
  color: var(--brand-strong);
  background: rgba(255, 237, 213, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 6px 12px;
}

h1,
h2,
h3 {
  color: var(--text);
}

.hero-text,
.intro-copy,
.section-heading p:not(.eyebrow),
.service-card p,
.product-card p,
.solution-list p,
.process-list p,
.contact-copy p:not(.eyebrow),
.contact-points li {
  color: var(--muted);
}

.button {
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--brand-strong), #c2410c);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--brand-strong);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--brand-strong);
}

.button-light {
  background: #ffffff;
  color: var(--brand-strong);
}

.hero-media,
.split-media,
.service-card,
.product-card,
.process-list li,
.contact-form,
.gallery-card {
  border: 1px solid rgba(254, 215, 170, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-media,
.split-media,
.product-card,
.gallery-card {
  overflow: hidden;
}

.logo-strip {
  background: #ffffff;
  border-color: var(--line);
}

.logo-strip img {
  filter: none;
  opacity: 0.88;
}

.services,
.products {
  background:
    linear-gradient(180deg, #fff7ed, #ffffff);
}

.service-card img {
  padding: 9px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.text-link {
  color: var(--brand-strong);
}

.solution-list article {
  border-left-color: var(--brand);
}

.process-list span {
  color: var(--brand-strong);
}

.cta-band {
  background:
    linear-gradient(120deg, #f97316 0%, #ea580c 62%, #fb923c 100%);
  color: #ffffff;
}

.cta-inner h2 {
  color: #ffffff;
}

.contact-points li::before {
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.14);
}

.site-footer {
  background: #ffffff;
  border-top-color: var(--line);
}

.site-message {
  background: #ffffff;
}

.gallery-card {
  cursor: zoom-in;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(31, 41, 55, 0.76);
  backdrop-filter: blur(10px);
}

.lightbox img {
  max-width: min(100%, 1040px);
  max-height: 78vh;
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.lightbox p {
  margin-top: 14px;
  color: #ffffff;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 237, 213, 0.7);
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 1.75rem;
  line-height: 1;
}

.has-lightbox {
  overflow: hidden;
}

.login-section {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.16), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #ffffff 62%, #ffedd5);
}

.login-shell {
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(254, 215, 170, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(249, 115, 22, 0.16);
}

.login-card h1 {
  margin-top: 14px;
  font-size: 2.45rem;
}

.login-copy {
  margin-top: 10px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-back {
  display: inline-flex;
  margin-top: 20px;
  color: var(--brand-strong);
  font-weight: 800;
}

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
}

.form-alert.error {
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: #fef2f2;
  color: var(--danger);
}

.message-stack {
  padding-top: 18px;
}

.site-message {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.site-message.success {
  border-color: color-mix(in srgb, var(--success) 50%, var(--line));
  color: var(--success);
}

.site-message.error {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  color: var(--danger);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 750;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px;
  font-weight: 750;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 20px;
  max-width: 720px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .gallery-grid,
  .search-results,
  .search-page-form {
    grid-template-columns: 1fr;
  }
}
