:root {
  --ink: #15181c;
  --muted: #5c6470;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --line: rgba(21, 24, 28, 0.12);
  --brand: #0f6f73;
  --brand-dark: #0b3f43;
  --accent: #b98b4a;
  --shadow: 0 22px 55px rgba(21, 24, 28, 0.14);
}

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

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

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 246, 248, 0.92), rgba(244, 246, 248, 0.98)),
    url("photos/logo/backround_site_web_spb.webp") center / cover;
}

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

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(21, 24, 28, 0.12);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}

.nav-logo img {
  width: auto;
  height: 44px;
}

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

.nav-links a,
.nav-toggle {
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a {
  padding: 10px 16px;
}

.nav-links .language-link {
  margin-left: 8px;
  border: 1px solid rgba(15, 111, 115, 0.24);
  color: var(--brand-dark);
  background: rgba(15, 111, 115, 0.08);
}

.nav-links .language-link:hover {
  color: var(--paper);
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.nav-links a:hover,
.nav-toggle:hover {
  color: var(--paper);
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.site-hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 88vh);
  overflow: hidden;
  background: #111;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.74), rgba(10, 18, 22, 0.36) 48%, rgba(10, 18, 22, 0.12)),
    linear-gradient(180deg, rgba(10, 18, 22, 0.22), rgba(10, 18, 22, 0.62));
  pointer-events: none;
}

.hero-slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 700ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(980px, calc(100% - 40px));
  min-height: min(760px, 88vh);
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.hero-logo-panel {
  width: min(270px, 64vw);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(241, 255, 254, 0.5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 1);
  backdrop-filter: blur(10px);
}

.hero-logo-panel img {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
  filter:
    brightness(1.16)
    contrast(1.04)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.72))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.14));
}

.hero-content h1 {
  color: var(--paper);
  font-size: 4.4rem;
  font-weight: 850;
  line-height: 1.02;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-subtitle {
  max-width: 920px;
  color: var(--paper);
  font-size: 2.05rem;
  font-weight: 750;
  line-height: 1.16;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(15, 111, 115, 0.34);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.content-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.services-section {
  padding-top: 76px;
}

.section-heading {
  padding-bottom: 22px;
}

.section-heading h2,
.about-preview h2,
.about-section h2,
.team-intro h2,
.contact-section h2 {
  position: relative;
  display: inline-flex;
  padding-bottom: 14px;
  font-size: 2.65rem;
  font-weight: 850;
}

.section-heading h2::after,
.about-preview h2::after,
.about-section h2::after,
.team-intro h2::after,
.contact-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #101316;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  box-shadow: 0 28px 70px rgba(21, 24, 28, 0.2);
  transform: translateY(-5px);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 12, 0.08), rgba(6, 10, 12, 0.72));
  pointer-events: none;
}

.service-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 260ms ease, filter 260ms ease;
}

.service-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.05);
}

.service-card h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(10, 18, 22, 0.72);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.services-more {
  margin-top: 24px;
  color: var(--brand-dark);
  font-size: 1.28rem;
  font-weight: 850;
  text-align: center;
}

.about-preview,
.about-section,
.contact-section {
  margin-top: 58px;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.about-preview {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 42px;
  align-items: center;
  overflow: hidden;
}

.about-preview-copy {
  max-width: 620px;
}

.about-preview-copy p {
  margin-top: 18px;
  color: #2c343d;
  font-size: 1.16rem;
  line-height: 1.75;
}

.about-preview-copy .about-lead {
  color: var(--brand-dark);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--brand-dark);
  font-weight: 850;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 2px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 52px;
}

.about-preview-photo {
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(21, 24, 28, 0.16);
}

.about-preview-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.about-section h4 {
  max-width: 940px;
  margin-top: 28px;
  color: #2c343d;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.85;
}

.full-about-section {
  max-width: 940px;
}

.full-about-section h4 {
  margin-top: 0;
}

.justified-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.inner-page-hero {
  position: relative;
  min-height: 420px;
  padding-top: 150px;
  padding-bottom: 74px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.82), rgba(10, 18, 22, 0.42)),
    url("photos/dec/2/image00019.webp") center / cover;
}

.inner-page-content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  font-weight: 750;
}

.inner-page-content h1 {
  margin-top: 14px;
  color: var(--paper);
  font-size: 4rem;
  line-height: 1.05;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.about-story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  margin-top: 64px;
}

.about-story-copy {
  container-type: inline-size;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.about-story-copy h2 {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding-bottom: 14px;
  font-size: 2.35rem;
  font-size: clamp(1.85rem, 5.7cqw, 2.65rem);
  font-weight: 850;
  line-height: 1.08;
  white-space: nowrap;
}

.about-story-copy h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.about-story-copy p {
  margin-top: 18px;
  color: #2c343d;
  font-size: 1.14rem;
  line-height: 1.75;
}

.about-story-copy .about-lead {
  color: var(--brand-dark);
  font-size: 1.32rem;
  font-weight: 850;
  line-height: 1.35;
}

.about-photo-stack {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}

.about-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-photo-stack img:first-child {
  grid-row: 1 / span 2;
}

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

.about-value-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(21, 24, 28, 0.1);
}

.about-value-card h3 {
  color: var(--brand-dark);
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.25;
}

.about-value-card p {
  margin-top: 14px;
  color: #2c343d;
  line-height: 1.7;
}

.about-closing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 42px;
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(11, 63, 67, 0.96), rgba(21, 24, 28, 0.98)),
    url("photos/logo/backround_site_web_spb.webp") center / cover;
  box-shadow: var(--shadow);
}

.about-closing-section h2 {
  color: var(--paper);
  font-size: 2.1rem;
  line-height: 1.15;
}

.about-closing-section p {
  max-width: 700px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.12rem;
  line-height: 1.65;
}

.team-section {
  margin-top: 76px;
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(11, 63, 67, 0.96), rgba(21, 24, 28, 0.98)),
    url("photos/logo/backround_site_web_spb.webp") center / cover;
}

.team-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: center;
}

.team-intro h2 {
  color: var(--paper);
}

.team-intro h2::after {
  background: linear-gradient(90deg, var(--paper), var(--accent));
}

.team-intro p {
  max-width: 410px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-member {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

.team-member-info {
  padding: 22px;
}

.team-member h5 {
  font-size: 1.25rem;
  font-weight: 850;
}

.team-member p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.contact-section h4 {
  margin-top: 26px;
  margin-bottom: 24px;
  color: #2c343d;
  font-size: 1.3rem;
  font-weight: 400;
}

.contact-section h4 span {
  color: var(--brand);
}

.contact-section form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hidden-field {
  display: none;
}

.full-width,
.submit-button {
  grid-column: 1 / -1;
}

.form-field {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea.form-field {
  min-height: 150px;
  resize: vertical;
}

.form-field:focus {
  outline: none;
  border-color: rgba(15, 111, 115, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 111, 115, 0.12);
}

.submit-button {
  width: fit-content;
  min-height: 50px;
  margin-top: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: var(--brand-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.submit-button:hover {
  background: var(--brand);
  box-shadow: 0 14px 32px rgba(15, 111, 115, 0.28);
  transform: translateY(-2px);
}

.site-footer {
  margin-top: 86px;
  padding: 44px 18px 18px;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, #15181c, #090b0d);
  text-align: center;
}

.footer-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-column {
  padding: 18px 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer a {
  color: #d7f5f4;
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-icon-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 22px;
  vertical-align: middle;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: var(--accent);
}

.social-icon-link {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: -4px;
  color: inherit;
}

.social-icon-link:hover {
  opacity: 0.86;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.linkedin-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: -5px;
}

.linkedin-icon-link:hover {
  opacity: 0.86;
}

.linkedin-icon {
  width: 22px;
  height: auto;
  display: block;
  object-fit: contain;
}

.copyright {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.44);
}

@media (max-width: 1024px) {
  .nav-inner {
    width: min(100% - 20px, 720px);
    min-height: 62px;
    margin-top: 10px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    text-align: center;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    padding: 13px 16px;
  }

  .nav-links .language-link {
    margin-left: 0;
  }

  .site-hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3.1rem;
  }

  .hero-subtitle {
    font-size: 1.65rem;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .about-preview,
  .about-section,
  .contact-section {
    padding: 34px;
  }

  .about-preview,
  .team-panel {
    grid-template-columns: 1fr;
  }

  .about-preview-photo {
    min-height: 300px;
  }

  .about-preview-photo img {
    min-height: 300px;
  }

  .team-section {
    margin-top: 58px;
    padding: 58px 0;
  }

  .team-intro {
    text-align: center;
  }

  .team-intro p {
    margin-right: auto;
    margin-left: auto;
  }

  .section-heading h2,
  .about-preview h2,
  .about-section h2,
  .team-intro h2,
  .contact-section h2 {
    font-size: 2.15rem;
  }

  .about-story-copy h2 {
    font-size: 2rem;
    font-size: clamp(1.45rem, 6.8cqw, 2.15rem);
  }

  .about-story-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo-stack {
    grid-template-rows: 190px 190px;
  }

  .about-values-section {
    grid-template-columns: 1fr;
  }

  .about-value-card {
    min-height: auto;
  }

  .about-closing-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-column {
    min-height: auto;
  }
}

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

  .content-shell {
    width: min(100% - 20px, 460px);
  }

  .nav-inner {
    width: calc(100% - 16px);
    min-height: 58px;
    margin-top: 8px;
    padding: 8px 10px;
  }

  .nav-logo {
    padding: 4px 6px;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .site-hero,
  .hero-content {
    min-height: 100svh;
  }

  .hero-content {
    width: calc(100% - 26px);
    gap: 16px;
    padding-top: 100px;
    padding-bottom: 42px;
  }

  .hero-logo-panel {
    width: min(230px, 74vw);
    padding: 9px 12px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.28;
  }

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

  .button {
    min-height: 50px;
    padding: 13px 16px;
  }

  .services-section {
    padding-top: 54px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card,
  .service-card img {
    min-height: 238px;
    height: 238px;
  }

  .service-card h3 {
    font-size: 1.08rem;
  }

  .inner-page-hero {
    min-height: 340px;
    padding-top: 128px;
    padding-bottom: 52px;
  }

  .inner-page-content h1 {
    font-size: 2.45rem;
  }

  .inner-page-content p {
    font-size: 1.05rem;
  }

  .about-preview,
  .about-section,
  .contact-section {
    margin-top: 36px;
    padding: 24px 18px;
  }

  .about-preview-copy p {
    font-size: 1.05rem;
  }

  .about-preview-photo,
  .about-preview-photo img {
    min-height: 240px;
  }

  .about-section h4 {
    font-size: 1.05rem;
    text-align: left;
    line-height: 1.72;
  }

  .section-heading h2,
  .about-preview h2,
  .about-section h2,
  .team-intro h2,
  .contact-section h2 {
    font-size: 1.85rem;
  }

  .about-story-copy h2 {
    font-size: 1.65rem;
    font-size: clamp(1.05rem, 9.4cqw, 1.85rem);
  }

  .about-story-section {
    margin-top: 36px;
  }

  .about-story-copy {
    padding: 24px 18px;
  }

  .about-story-copy p {
    font-size: 1.05rem;
    line-height: 1.68;
  }

  .about-photo-stack {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 210px);
    gap: 12px;
  }

  .about-photo-stack img:first-child {
    grid-row: auto;
  }

  .about-value-card {
    padding: 22px;
  }

  .about-closing-section {
    padding: 28px 22px;
  }

  .about-closing-section h2 {
    font-size: 1.65rem;
  }

  .team-section {
    padding: 42px 0;
  }

  .team-intro p {
    font-size: 1.16rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-member-info {
    padding: 18px;
  }

  .contact-section form {
    grid-template-columns: 1fr;
  }

  .form-field {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 1rem;
  }

  .submit-button {
    width: 100%;
  }

  .site-footer {
    margin-top: 54px;
    padding: 34px 12px 16px;
  }

  .footer-grid {
    gap: 10px;
  }

  .footer-column {
    padding: 16px 10px 8px;
  }
}

@media (max-width: 390px) {
  .content-shell {
    width: calc(100% - 16px);
  }

  .hero-content {
    width: calc(100% - 20px);
  }

  .hero-logo-panel {
    width: min(210px, 76vw);
  }

  .hero-content h1 {
    font-size: 1.78rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .section-heading h2,
  .about-preview h2,
  .about-section h2,
  .team-intro h2,
  .contact-section h2 {
    font-size: 1.65rem;
  }

  .about-preview,
  .about-section,
  .contact-section {
    padding: 22px 16px;
  }

  .about-story-copy {
    padding: 22px 16px;
  }

  .about-story-copy h2 {
    font-size: 1.25rem;
    font-size: clamp(0.95rem, 9.6cqw, 1.55rem);
  }

  .about-photo-stack {
    grid-template-rows: repeat(3, 180px);
  }

  .about-closing-section {
    padding: 24px 18px;
  }

  .service-card,
  .service-card img {
    min-height: 220px;
    height: 220px;
  }
}
