/* CNB Digital Group — design system */
:root {
  --bg: #f7f4ef;
  --bg-warm: #efe8dc;
  --surface: #ffffff;
  --ink: #1c2434;
  --ink-soft: #5c6575;
  --line: rgba(28, 36, 52, 0.09);
  --gold: #c4893a;
  --gold-deep: #a56e28;
  --gold-soft: #f3e6d2;
  --blue: #2d6bb8;
  --navy: #152238;
  --navy-soft: #24344f;
  --success: #3d8b5f;
  --danger: #c45c4a;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 24px 60px rgba(21, 34, 56, 0.08);
  --shadow-sm: 0 10px 28px rgba(21, 34, 56, 0.06);
  --header-h: 84px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

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

.is-hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 137, 58, 0.28);
}

.btn-primary:hover {
  background: var(--gold-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-light {
  background: #fff;
  color: var(--gold-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(21, 34, 56, 0.05);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  flex: 0 1 auto;
  min-width: 0;
}

.logo img {
  height: 52px;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(196, 137, 58, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 2;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.icon-btn:hover {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(28, 36, 52, 0.06);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 34, 56, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  max-width: 760px;
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1140px) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.6rem);
  color: #fff;
  font-weight: 480;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 58ch;
  margin: 0 0 32px;
  overflow-wrap: break-word;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 58ch;
  margin: 0 0 32px;
}

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

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

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

.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 14px;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Quote / intro band */
.intro-band {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.intro-band p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  font-weight: 400;
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.intro-band .muted {
  margin-top: 22px;
  font-family: var(--font);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Contact strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.contact-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.services-grid.detailed .service-card img {
  height: 240px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-body ul {
  color: var(--ink-soft);
  font-size: 0.94rem;
  display: grid;
  gap: 6px;
}

.service-body li {
  padding-left: 16px;
  position: relative;
}

.service-body li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.62em;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Values */
.values {
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  min-height: 180px;
}

.value-card .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.value-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Why us */
.why {
  background: var(--navy);
  color: #fff;
}

.why .section-head h2,
.why .section-kicker {
  color: #fff;
}

.why .section-kicker {
  color: var(--gold-soft);
}

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

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.why-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(196, 137, 58, 0.16);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.why-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Clients */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 48px;
}

.clients-row img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: 0.3s;
}

.clients-row img:hover {
  filter: none;
}

.error-page {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 20px 88px;
}

.error-page .error-code {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--gold);
  margin-bottom: 18px;
}

.error-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.error-page .lead {
  margin: 0 auto 28px;
  max-width: 42ch;
}

.error-page .error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.page-hero {
  padding: 72px 0 56px;
  background: var(--bg);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--gold-deep);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.page-hero .lead {
  margin-top: 14px;
  max-width: 52ch;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.method {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
}

.method strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.method p {
  margin: 0;
  color: var(--ink-soft);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 10px;
}

.acc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--serif);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.acc-btn span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

.acc-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

.acc-item.is-open .acc-panel {
  display: block;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.map-wrap {
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}

.info-item p {
  margin: 0;
  color: var(--ink-soft);
}

.info-item strong {
  display: block;
  color: var(--ink);
}

.form-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-card h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(196, 137, 58, 0.12);
}

.form-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer .logo {
  display: inline-flex;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.site-footer .logo img {
  height: 44px;
  filter: none;
}

.site-footer p {
  margin: 0;
  max-width: 36ch;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0 8px;
}

.footer-newsletter-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 32px;
}

.footer-newsletter h4 {
  margin-bottom: 6px;
}

.footer-newsletter p {
  margin: 0;
}

.footer-newsletter .newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr auto;
  gap: 10px;
}

.footer-newsletter .newsletter-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.footer-newsletter .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

/* Modal */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(21, 34, 56, 0.46);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.popup.is-open,
.popup[style*="block"],
.popup[style*="flex"] {
  display: flex !important;
}

.popup-content {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: var(--shadow);
  animation: rise 0.4s var(--ease);
}

.popup-content h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.popup-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--ink-soft);
}

.popup-content input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.popup-content button[type="submit"] {
  margin-top: 18px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.close,
.close1 {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1em;
}

input.is-invalid {
  border-color: var(--danger) !important;
}

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 40;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Admin table */
.admin-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

table.dataTable {
  width: 100% !important;
  font-family: var(--font);
}

table.dataTable thead th {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--bg);
}

.dataTables_wrapper {
  overflow-x: auto;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  margin-bottom: 12px;
}

body.menu-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile nav */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--gold-soft);
    color: var(--ink);
    flex-shrink: 0;
  }

  .menu-toggle span {
    height: 2px;
    width: 18px;
    margin: 3px auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    display: none;
    z-index: 95;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
  }

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

  .nav a {
    padding: 12px 14px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .services-grid,
  .services-grid.detailed,
  .values-grid,
  .why-grid,
  .contact-strip,
  .about-grid,
  .contact-layout,
  .footer-grid,
  .footer-newsletter-inner,
  .footer-newsletter .newsletter-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(88vh, 760px);
  }

  .hero-content {
    margin: 0 auto;
    width: min(1140px, calc(100% - 40px));
    max-width: none;
    padding: 56px 0 128px;
  }

  .contact-strip {
    margin-top: -28px;
  }

  .about-photo img {
    height: 320px;
  }

  .form-card {
    padding: 24px;
  }

  .map-wrap iframe {
    height: 280px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-newsletter .newsletter-form .btn {
    width: 100%;
  }

  .popup {
    padding: 16px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .popup-content {
    margin: auto 0;
    max-height: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 0;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding: 40px 0 112px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .header-inner {
    gap: 10px;
  }

  .logo img {
    height: 40px;
    max-width: min(180px, 48vw);
  }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .intro-band {
    padding: 48px 0;
  }

  .value-card {
    min-height: 0;
    padding: 20px;
  }

  .service-card img,
  .services-grid.detailed .service-card img {
    height: 170px;
  }

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

  .form-card {
    padding: 18px;
    border-radius: 20px;
  }

  .form-card h2 {
    font-size: 1.55rem;
  }

  .map-wrap iframe {
    height: 220px;
  }

  .admin-wrap {
    padding: 12px;
    border-radius: 16px;
  }

  .popup-content {
    padding: 24px 18px 20px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 16px;
  }

  .clients-row img {
    height: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid,
  .why-grid,
  .contact-strip {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (hover: none) {
  .service-card:hover,
  .btn:hover {
    transform: none;
  }
}
