:root {
  --white: #ffffff;
  --black: #131313;
  --black-soft: #1d1f24;
  --text: #242424;
  --muted: #6c6c6c;
  --red: #ef3b3a;
  --red-dark: #c52a29;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

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

img,
iframe {
  max-width: 100%;
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 2rem));
}

.topbar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.topbar-wrap,
.topbar-links,
.nav-wrap,
.hero-actions,
.footer-bottom,
.contact-layout,
.content-layout,
.service-detail-layout,
.split-feature,
.cta-strip {
  display: grid;
  gap: 1.5rem;
}

.topbar-wrap {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.75rem 0;
}

.topbar-wrap p {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links {
  grid-auto-flow: column;
  align-items: center;
  gap: 1.25rem;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.15rem 0;
}

.brand strong,
.brand small,
h1,
h2,
h3 {
  font-family: "Oswald", Arial, sans-serif;
}

.brand-text strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav > a,
.nav-dropdown > a {
  padding: 0.65rem 0;
  color: var(--black-soft);
}

.site-nav .active,
.site-nav a:hover {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(430px, 85vw);
  display: grid;
  gap: 0.35rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.dropdown-menu a {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: var(--black-soft);
}

.dropdown-menu a:hover {
  background: #f7f7f7;
  color: var(--red);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.55rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}

.button-accent {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(239, 59, 58, 0.28);
}

.button-accent:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.button-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-banner,
.page-hero {
  position: relative;
  color: var(--white);
}

.hero-banner {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: inherit;
  padding: 4rem 0;
}

.hero-frame {
  text-align: center;
  max-width: 880px;
  animation: heroFloat 1s ease both;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 5.9rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

h1 span,
h2 span {
  color: var(--red);
}

.hero-summary {
  font-size: 1.65rem;
  line-height: 1.35;
  margin: 1.25rem auto 0.75rem;
  max-width: 900px;
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 176px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 2.4rem;
}

.hero-arrow-left {
  left: 2rem;
}

.hero-arrow-right {
  right: 2rem;
}

.page-hero-dark,
.section-dark {
  background: var(--black);
}

.page-hero-image {
  background-size: cover;
  background-position: center;
}

.page-hero .narrow {
  padding: 5rem 0;
}

.section {
  padding: 5rem 0;
}

.section-white {
  background: var(--white);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.center {
  text-align: center;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  color: var(--black-soft);
}

.section-dark h2,
.section-dark p,
.page-hero-dark h1,
.page-hero-dark .hero-summary,
.page-hero-dark .hero-kicker,
.page-hero-image h1,
.page-hero-image .hero-summary {
  color: var(--white);
}

.section-heading p,
.content-panel p,
.service-card p,
.highlight-card p,
.contact-panel p,
.contact-form label,
.related-card p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card-copy {
  padding: 2rem 2rem 1.5rem;
  min-height: 320px;
}

.service-card-dark .service-card-copy {
  background: #343944;
  color: var(--white);
}

.service-card-dark .service-card-copy p,
.service-card-dark .service-card-copy a {
  color: rgba(255, 255, 255, 0.88);
}

.service-card-light .service-card-copy {
  background: #ffffff;
}

.service-card-copy h3,
.service-card-copy h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.service-card-copy p {
  text-align: center;
}

.service-card-copy a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--red);
  font-weight: 800;
}

.service-card-image {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.service-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(239, 59, 58, 0.14);
  color: var(--red);
  font-size: 1.5rem;
}

.split-feature,
.content-layout,
.service-detail-layout,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.highlight-stack,
.deliverable-list,
.related-grid,
.stats-panel {
  display: grid;
  gap: 1rem;
}

.highlight-card,
.content-panel,
.contact-panel,
.contact-form,
.related-card,
.stats-panel article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.section-dark .highlight-card,
.section-dark .related-card {
  background: var(--black-soft);
  color: var(--white);
}

.section-dark .highlight-card p,
.section-dark .related-card p {
  color: rgba(255, 255, 255, 0.75);
}

.cta-strip {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: #f7f7f7;
  box-shadow: var(--shadow);
}

.service-image-panel {
  min-height: 520px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  box-shadow: var(--shadow);
}

.deliverable-list article {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #f7f7f7;
  font-weight: 700;
}

.deliverable-list i,
.related-card i,
.stats-panel i {
  color: var(--red);
}

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

.related-card h3 {
  margin: 0.8rem 0;
  font-size: 1.7rem;
}

.related-card a {
  color: var(--red);
  font-weight: 800;
}

.stats-panel article {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.stats-panel i {
  font-size: 1.3rem;
}

.contact-panel h2,
.contact-form h2 {
  margin-bottom: 1rem;
}

.contact-panel p {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-form label,
.admin-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
}

.map-embed iframe {
  min-height: 260px;
  border: 0;
  border-radius: 18px;
}

.site-footer {
  background: #101010;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
}

.footer-label {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 800;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin: 0 0 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 0.75rem;
}

.footer-bottom {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.floating-cta-rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.75rem;
  z-index: 80;
}

.floating-cta-item {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 700;
  position: relative;
  z-index: 81;
  font-size: 1.4rem;
}

.floating-cta-item.whatsapp {
  background: #22c55e;
}

.floating-cta-item.call {
  background: var(--red);
}

.floating-cta-item.telegram {
  background: #229ed9;
}

.floating-cta-item.gmail {
  background: #444;
}

.flash-wrap {
  margin-top: 1rem;
}

.flash {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-weight: 700;
}

.flash.success {
  background: rgba(32, 129, 73, 0.11);
  color: #1b7f48;
}

.flash.error {
  background: rgba(193, 42, 41, 0.11);
  color: #b32726;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

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

.admin-body {
  min-height: 100vh;
  background: #f5f5f5;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
  font-family: "Source Sans 3", Arial, sans-serif;
  letter-spacing: normal;
}

.admin-body h1 {
  font-size: 2.25rem;
  line-height: 1.1;
}

.admin-login-card {
  width: min(520px, calc(100% - 2rem));
  margin: 8vh auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-note {
  color: var(--muted);
}

.admin-app {
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(19, 19, 19, 0.98);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-branding h1 {
  margin: 0;
  font-size: 2rem;
}

.admin-topnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-topnav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-topnav a:hover {
  background: rgba(239, 59, 58, 0.18);
  color: var(--white);
}

.admin-topnav a.active {
  background: rgba(239, 59, 58, 0.22);
  color: var(--white);
}

.admin-top-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
}

.button-admin-muted {
  background: #f1f1f1;
  color: var(--black);
}

.button-admin-danger {
  background: #fff0f0;
  color: #b22928;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
}

.admin-content {
  min-width: 0;
  width: 100%;
}

.admin-form {
  width: 100%;
}

.admin-section {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1rem;
}

.admin-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-body h2 {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.15;
  color: var(--black);
}

.admin-body h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.admin-subsection {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.admin-card-grid {
  display: grid;
  gap: 1rem;
}

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

.admin-span-full {
  width: 100%;
}

.repeater {
  display: grid;
  gap: 1rem;
}

.repeater-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fcfcfc;
}

.repeater-row-compact {
  grid-template-columns: 1fr 1.35fr auto;
  align-items: end;
}

.repeater-row-service {
  grid-template-columns: 1fr;
}

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

.repeater-remove {
  align-self: end;
  justify-self: start;
}

.admin-empty-state {
  color: var(--muted);
}

.admin-savebar {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(19, 19, 19, 0.95);
  color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.media-preview {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #f2f2f2;
}

.media-card-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.media-card-body strong {
  word-break: break-word;
}

.service-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-admin-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-admin-thumb {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.service-admin-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.service-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats-overlay-section {
  padding-top: 0;
  margin-top: -4rem;
  position: relative;
  z-index: 3;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #2f3440;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 2rem 1.2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

.why-choose-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.why-choose-image {
  min-height: 620px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(20,20,20,0.25), rgba(20,20,20,0.25)),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.why-choose-content {
  padding: 2rem 1rem;
}

.why-choose-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.why-choose-icon {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 2.8rem;
}

.why-choose-item h3 {
  margin: 0 0 0.6rem;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.profile-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.profile-card-photo {
  min-height: 500px;
  background-size: cover;
  background-position: center top;
  background-color: #d9d9d9;
}

.profile-card-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.2rem;
  background: #343944;
  color: #fff;
  border-radius: 18px;
  text-align: center;
  padding: 1.4rem 1rem 1rem;
}

.profile-card-caption h3 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}

.profile-card-caption p {
  margin: 0.4rem 0 0.8rem;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}

.profile-card-caption a {
  color: #fff;
  font-weight: 700;
}

.profile-hero {
  padding: 6rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.profile-breadcrumb {
  color: rgba(255,255,255,0.86);
  margin-bottom: 1.5rem;
}

.profile-breadcrumb span,
.profile-breadcrumb strong,
.profile-profession {
  color: var(--red);
}

.profile-profession {
  font-size: 2rem;
  font-style: italic;
}

.profile-detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-sidebar-card {
  background: #343944;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 7rem;
}

.profile-sidebar-photo {
  min-height: 420px;
  background-size: cover;
  background-position: center top;
}

.profile-contact-block {
  padding: 1.5rem;
}

.profile-contact-block h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.profile-contact-block .rich-content-block {
  color: rgba(255,255,255,0.84);
}

.profile-main-content h2 {
  margin-top: 0;
}

.practice-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.practice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid #243550;
  border-radius: 999px;
  color: #243550;
  font-weight: 700;
  background: #fff;
}

.image-editor-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfcfc;
}

.image-preview-large {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  background-color: #f2f2f2;
}

.admin-field-title {
  font-weight: 800;
  margin: 0;
}

.admin-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.admin-inline-check input {
  width: auto;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.editor-toolbar-shell {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fafafa;
}

.editor-toolbar-rich .button {
  min-width: 64px;
}

.wysiwyg-editor {
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #d8d8d8;
  background: #fbfbfb;
}

.wysiwyg-format {
  min-width: 180px;
  border: 0;
  border-right: 1px solid #d8d8d8;
  background: transparent;
  padding: 0.9rem 1rem;
  font: inherit;
}

.wysiwyg-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-right: 1px solid #ececec;
  background: transparent;
  color: var(--black-soft);
  font-size: 1rem;
  cursor: pointer;
}

.wysiwyg-button:hover {
  background: #f3f3f3;
}

.wysiwyg-surface {
  min-height: 260px;
  padding: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
  outline: none;
}

.wysiwyg-surface:empty::before {
  content: attr(data-placeholder);
  color: #999;
}

.editor-textarea {
  min-height: 420px;
  width: 100%;
  resize: vertical;
  font-family: Consolas, monospace;
  line-height: 1.7;
}

.admin-small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.rich-content-block {
  color: var(--muted);
  line-height: 1.85;
}

.rich-content-block > :first-child {
  margin-top: 0;
}

.rich-content-block > :last-child {
  margin-bottom: 0;
}

.hero-rich-text {
  color: inherit;
}

.hero-rich-text p,
.hero-rich-text h1,
.hero-rich-text h2,
.hero-rich-text h3 {
  color: inherit;
}

.rich-content-block h1,
.rich-content-block h2,
.rich-content-block h3,
.rich-content-block h4 {
  color: var(--black-soft);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.12;
}

.rich-content-block h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.rich-content-block h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
}

.rich-content-block ul,
.rich-content-block ol {
  padding-left: 1.25rem;
}

.rich-content-block blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--red);
  background: #faf7f7;
  border-radius: 12px;
}

@keyframes heroFloat {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 920px) {
  .nav-wrap,
  .topbar-wrap,
  .footer-bottom,
  .split-feature,
  .content-layout,
  .service-detail-layout,
  .contact-layout,
  .footer-grid,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-auto-flow: row;
  }

  .admin-grid,
  .admin-card-grid-2,
  .repeater-row-compact,
  .repeater-row-lead,
  .media-grid,
  .service-admin-list,
  .service-admin-card,
  .stats-strip,
  .why-choose-layout,
  .profile-card-grid,
  .profile-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-banner-inner,
  .page-hero .narrow,
  .section {
    padding: 3.5rem 0;
  }

  .profile-main-content,
  .profile-sidebar-card,
  .content-panel,
  .contact-panel,
  .contact-form,
  .related-card,
  .stats-panel article,
  .admin-section {
    padding: 1.5rem;
  }

  .service-image-panel,
  .image-preview-large,
  .profile-card-photo,
  .profile-sidebar-photo {
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .container {
    width: min(100% - 1rem, 1240px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    font-size: 1.2rem;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    gap: 0.35rem;
  }

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

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .nav-dropdown.open .dropdown-menu {
    display: grid;
  }

  .nav-wrap > .button {
    display: none;
  }

  .service-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 9vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .brand-text strong {
    font-size: 1.45rem;
  }

  .brand-text small {
    font-size: 0.9rem;
  }

  .hero-summary {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .admin-topbar {
    grid-template-columns: 1fr auto auto;
    padding: 0.9rem 1rem;
  }

  .admin-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-topnav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-top: 0.5rem;
  }

  .admin-topnav.open {
    display: flex;
  }

  .admin-top-actions {
    display: none;
  }

  .admin-savebar {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-toolbar-shell {
    padding: 0.85rem;
  }

  .editor-toolbar-rich .button {
    min-width: auto;
    padding: 0.8rem 1rem;
  }

  .wysiwyg-format {
    min-width: 140px;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .wysiwyg-button {
    flex: 0 0 46px;
  }

  .floating-cta-rail {
    right: 1rem;
    bottom: 1rem;
    top: auto;
    transform: none;
  }

  .floating-cta-item {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .profile-sidebar-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    gap: 0.85rem;
  }

  .site-nav > a,
  .nav-dropdown > a,
  .hero-actions,
  .admin-topnav {
    width: 100%;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .service-card-copy,
  .profile-card-caption,
  .highlight-card,
  .content-panel,
  .contact-panel,
  .contact-form,
  .related-card,
  .admin-section {
    padding: 1.25rem;
  }

  .admin-branding h1 {
    font-size: 1.55rem;
  }
}
