/*
Theme Name: Gyeseong Administrative Office
Author: Gyeseong Administrative Office
Description: A responsive, content-first WordPress theme for Gyeseong Administrative Office.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gyeseong
*/

:root {
  --ink: #172d40;
  --ink-soft: #415568;
  --muted: #6d7b87;
  --paper: #fbfaf7;
  --white: #fff;
  --line: #e4e8e8;
  --blue: #204c68;
  --blue-deep: #15364d;
  --blue-light: #edf3f5;
  --gold: #c9a76b;
  --sage: #e8eee8;
  --shadow: 0 18px 48px rgb(23 45 64 / 8%);
  --radius: 18px;
  --content-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body,
button,
input,
select,
textarea {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-size: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(23 45 64 / 7%);
  background: rgb(251 250 247 / 94%);
}

.header-inner,
.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(201 167 107 / 58%);
  border-radius: 50%;
  color: var(--blue-deep);
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 18px;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.brand-caption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 64px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-outline {
  border-color: rgb(255 255 255 / 45%);
  color: var(--white);
  background: transparent;
}

.button-outline:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 9%);
}

.button-light {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  border-color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 86px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 82% 15%, rgb(201 167 107 / 18%), transparent 29%),
    radial-gradient(ellipse at 9% 95%, rgb(87 132 154 / 28%), transparent 35%),
    linear-gradient(122deg, #17384f 0%, #204c68 58%, #315c70 100%);
}

.hero::after {
  position: absolute;
  right: -140px;
  bottom: -390px;
  width: 760px;
  height: 760px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 54px rgb(255 255 255 / 3%),
    0 0 0 108px rgb(255 255 255 / 2%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1.28;
}

.hero h1 span {
  color: #e7d4ad;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 79%);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.hero-profile {
  padding: 27px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
}

.profile-monogram {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgb(231 212 173 / 72%);
  border-radius: 50%;
  color: #f0dfbd;
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.profile-photo {
  display: block;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  border: 1px solid rgb(231 212 173 / 72%);
  border-radius: 18px;
  object-fit: cover;
}

.hero-profile p {
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
}

.hero-profile h2 {
  margin: 5px 0 2px;
  font-size: 23px;
}

.hero-profile .profile-role {
  color: #e7d4ad;
  font-size: 13px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 21px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: #f1f3f0;
}

.section-dark {
  color: var(--white);
  background: var(--blue-deep);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.35;
}

.section-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-dark .section-heading p {
  color: rgb(255 255 255 / 68%);
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.section-dark .text-link {
  color: #e7d4ad;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgb(32 76 104 / 38%);
  box-shadow: var(--shadow);
}

.service-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 20px 0 8px;
  font-size: 19px;
  letter-spacing: -0.05em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-card .card-arrow {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.service-disclaimer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.intro-panel {
  position: relative;
  min-height: 345px;
  padding: 38px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 25%, rgb(201 167 107 / 22%), transparent 28%),
    linear-gradient(145deg, #204c68, #15364d);
}

.intro-panel::after {
  position: absolute;
  right: -70px;
  bottom: -180px;
  width: 350px;
  height: 350px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 30px rgb(255 255 255 / 4%);
}

.intro-panel .profile-monogram {
  width: 82px;
  height: 82px;
  margin-bottom: 52px;
  font-size: 24px;
}

.intro-panel .profile-photo {
  width: 82px;
  height: 82px;
  margin-bottom: 52px;
}

.intro-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 25px;
}

.intro-panel p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
}

.intro-copy .eyebrow {
  color: var(--blue);
}

.intro-copy h2 {
  margin: 0;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.4;
}

.intro-copy > p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.credential-list {
  display: grid;
  gap: 0;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.credential-list strong {
  color: var(--blue);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 24px 20px;
  border-top: 1px solid rgb(255 255 255 / 32%);
  counter-increment: process;
}

.process-step::before {
  display: block;
  margin-bottom: 21px;
  color: #e7d4ad;
  content: "0" counter(process);
  font-family: Georgia, serif;
  font-size: 15px;
}

.process-step h3 {
  margin: 0;
  font-size: 17px;
}

.process-step p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
}

.empty-state {
  padding: 32px;
  border: 1px dashed rgb(109 123 135 / 35%);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgb(255 255 255 / 45%);
  text-align: center;
}

.section-dark .empty-state {
  border-color: rgb(255 255 255 / 24%);
  color: rgb(255 255 255 / 68%);
  background: rgb(255 255 255 / 4%);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.post-card .post-date,
.post-meta {
  color: var(--muted);
  font-size: 12px;
}

.post-card h3 {
  margin: 15px 0 8px;
  font-size: 17px;
  letter-spacing: -0.04em;
  line-height: 1.5;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.post-card .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 35px 40px;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0, rgb(201 167 107 / 18%), transparent 30%),
    var(--blue);
}

.cta-band h2 {
  margin: 0;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.06em;
}

.cta-band p {
  margin: 7px 0 0;
  color: rgb(255 255 255 / 73%);
  font-size: 13px;
}

.page-hero {
  padding: 65px 0 50px;
  background:
    radial-gradient(ellipse at 85% 0, rgb(201 167 107 / 13%), transparent 31%),
    var(--blue-light);
}

.page-heading {
  max-width: 760px;
}

.page-heading .eyebrow {
  color: var(--blue);
}

.page-heading p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.page-content {
  padding: 56px 0 90px;
}

.content-prose {
  max-width: 820px;
  margin-inline: auto;
}

.content-prose > *:first-child {
  margin-top: 0;
}

.content-prose h2,
.content-prose h3 {
  margin-top: 1.8em;
  letter-spacing: -0.04em;
}

.content-prose p,
.content-prose li {
  color: var(--ink-soft);
}

.content-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.contact-aside {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--blue-light);
}

.contact-aside h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.05em;
}

.contact-aside > p {
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-detail {
  padding: 16px 0;
  border-top: 1px solid rgb(23 45 64 / 12%);
}

.contact-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.contact-detail a,
.contact-detail span {
  font-size: 15px;
  font-weight: 700;
}

.contact-placeholder {
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.site-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-form h2 {
  margin: 0 0 5px;
  font-size: 23px;
  letter-spacing: -0.05em;
}

.form-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #d7dddf;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #97a1a8;
}

.form-hint,
.privacy-note {
  color: var(--muted);
  font-size: 12px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 13px;
}

.privacy-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--blue);
}

.form-submit {
  width: 100%;
  margin-top: 19px;
  border: 0;
  cursor: pointer;
}

.form-status {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 13px;
}

.form-status-success {
  color: #15583b;
  background: #e8f4ec;
}

.form-status-error {
  color: #7a2d23;
  background: #fff0ec;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
}

.site-footer {
  padding: 43px 0 30px;
  color: rgb(255 255 255 / 78%);
  background: #132d40;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-caption {
  color: rgb(255 255 255 / 58%);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: rgb(255 255 255 / 65%);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid rgb(255 255 255 / 13%);
  color: rgb(255 255 255 / 48%);
  font-size: 11px;
}

.entry-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.entry-card + .entry-card {
  margin-top: 18px;
}

.entry-card h2 {
  margin: 0 0 9px;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.entry-card h2 a:hover {
  color: var(--blue);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
}

.pagination .page-numbers {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.pagination .current {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 70px;
  color: var(--blue);
}

.not-found p {
  margin: 8px 0 25px;
  color: var(--muted);
}

.mobile-actions {
  display: none;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav .menu {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .header-inner,
  .container {
    width: min(var(--content-width), calc(100% - 36px));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 35px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid {
    gap: 42px;
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 9px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 20px rgb(23 45 64 / 8%);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 66px;
    font-size: 15px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-caption {
    font-size: 9px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 9px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 20px rgb(23 45 64 / 8%);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding: 70px 0 54px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-profile {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 0 15px;
    padding: 18px;
  }

  .hero-profile .profile-monogram {
    grid-row: span 3;
    width: 58px;
    height: 58px;
    margin: 0;
    font-size: 17px;
  }

  .hero-profile .profile-photo {
    grid-row: span 3;
    width: 58px;
    height: 58px;
    margin: 0;
  }

  .hero-profile p,
  .hero-profile h2 {
    margin: 0;
  }

  .hero-profile h2 {
    font-size: 19px;
  }

  .hero-profile .profile-link {
    margin-top: 5px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
  }

  .section-heading h2,
  .page-heading h1,
  .intro-copy h2 {
    font-size: 29px;
  }

  .service-grid {
    gap: 11px;
  }

  .service-card {
    min-height: 195px;
    padding: 18px;
  }

  .service-card h3 {
    margin-top: 17px;
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-panel {
    min-height: 270px;
    padding: 26px;
  }

  .intro-panel .profile-monogram {
    margin-bottom: 34px;
  }

  .intro-panel .profile-photo {
    margin-bottom: 34px;
  }

  .credential-list li {
    grid-template-columns: 76px 1fr;
    gap: 10px;
    font-size: 13px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .process-step {
    padding: 18px 12px;
  }

  .process-step h3 {
    font-size: 15px;
  }

  .process-step p {
    font-size: 12px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 185px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 22px;
  }

  .page-hero {
    padding: 48px 0 37px;
  }

  .page-content {
    padding: 36px 0 64px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-aside,
  .site-form {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-main {
    gap: 25px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 62px;
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -7px 20px rgb(23 45 64 / 7%);
  }

  .mobile-actions a {
    display: grid;
    flex: 1;
    align-content: center;
    justify-items: center;
    gap: 1px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-actions a span:first-child {
    color: var(--blue);
    font-size: 17px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .container {
    width: calc(100% - 28px);
  }

  .service-card {
    padding: 15px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .hero-actions .button {
    padding-inline: 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
