@font-face {
  font-family: "Manrope Local";
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope Local";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #173126;
  --ink-soft: #425b50;
  --forest: #1f5b3d;
  --forest-deep: #133b2a;
  --green: #4ca86d;
  --green-bright: #a8ef91;
  --mint: #ddf5e4;
  --mint-light: #eefaf1;
  --paper: #f8fcf8;
  --white: #ffffff;
  --danger: #a83d3d;
  --warning: #8a6517;
  --line: rgba(20, 74, 48, 0.14);
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.86);
  --shadow-sm: 0 10px 30px rgba(20, 73, 47, 0.08);
  --shadow-lg: 0 28px 80px rgba(20, 73, 47, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --page: 1180px;
  --font: "Manrope Local", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid rgba(37, 130, 76, 0.48);
  outline-offset: 4px;
}

::selection {
  color: var(--forest-deep);
  background: var(--green-bright);
}

.landing-page,
.form-page,
.admin-page {
  position: relative;
  background:
    radial-gradient(circle at 8% 6%, rgba(150, 235, 174, 0.34), transparent 30rem),
    radial-gradient(circle at 92% 26%, rgba(190, 244, 179, 0.3), transparent 28rem),
    linear-gradient(145deg, #f5fbf6 0%, #e8f6ec 48%, #fbfdf9 100%);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.ambient-one {
  top: 7rem;
  left: -10rem;
  width: 28rem;
  height: 28rem;
  background: rgba(107, 214, 139, 0.18);
}

.ambient-two {
  top: 34rem;
  right: -11rem;
  width: 32rem;
  height: 32rem;
  background: rgba(180, 235, 153, 0.2);
}

.page-shell {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(74px, 9vw, 132px);
}

.glass,
.glass-dark {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}

.glass-strong {
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
  }

  .glass-strong {
    background: rgba(255, 255, 255, 0.66);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    backdrop-filter: blur(30px) saturate(145%);
  }

  .glass-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
}

.button-primary {
  color: white;
  background: linear-gradient(145deg, #31885a, var(--forest));
  box-shadow: 0 13px 28px rgba(31, 91, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button-quiet {
  border-color: rgba(36, 104, 67, 0.16);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(20, 73, 47, 0.07);
}

.hero {
  min-height: min(720px, calc(100svh - 86px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  padding-top: clamp(62px, 8vw, 104px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(76, 168, 109, 0.13);
}

.hero h1,
.section-heading h2,
.contact-card h2,
.form-card h1,
.admin-header h1,
.admin-list-heading h2 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 1.02;
}

h1 em,
h2 em {
  color: var(--forest);
  font-style: normal;
  font-weight: 500;
}

.lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 2px;
  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  color: var(--green);
}

.portrait-card {
  width: min(100%, 480px);
  min-height: 520px;
  justify-self: end;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-radius: 44px 70px 46px 76px;
  padding: 24px;
}

.portrait-glow {
  position: absolute;
  z-index: -1;
  inset: 12% 8px -7% 9%;
  border-radius: 45% 55% 58% 42%;
  background: linear-gradient(145deg, rgba(137, 224, 149, 0.7), rgba(37, 112, 70, 0.42));
  filter: blur(1px);
  transform: rotate(7deg);
}

.portrait-media {
  height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 30px 54px 32px 58px;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  color: rgba(23, 49, 38, 0.58);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.95) 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 50% 88%, rgba(255, 255, 255, 0.82) 0 32%, transparent 32.5%),
    linear-gradient(155deg, #d9f2d9, #83bd8d);
}

.portrait-photo {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 0%);
}

.portrait-photo[hidden] {
  display: none;
}

.portrait-placeholder span {
  position: absolute;
  bottom: 22px;
  padding: 8px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.portrait-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px 3px;
}

.portrait-info p,
.portrait-info strong {
  margin: 0;
}

.portrait-info p {
  color: var(--ink-soft);
  font-size: 12px;
}

.portrait-info strong {
  max-width: 190px;
  text-align: right;
}

.floating-note {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  right: -12px;
  bottom: 90px;
  padding: 16px 18px;
  border-radius: 20px 28px 20px 30px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(76, 168, 109, 0.14);
}

.floating-note p,
.floating-note small,
.floating-note strong {
  display: block;
  margin: 0;
}

.floating-note small {
  color: var(--ink-soft);
  font-size: 10px;
}

.floating-note strong {
  margin-top: 2px;
  font-size: 13px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: end;
  gap: 42px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

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

.feature-card {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px 38px 30px 42px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-number {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: auto 0 23px;
  border-radius: 18px 24px 18px 26px;
  color: white;
  background: linear-gradient(145deg, #66c782, var(--forest));
  font-size: 25px;
  box-shadow: 0 13px 24px rgba(31, 91, 61, 0.18);
}

.feature-card h3 {
  margin: 0 0 11px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.results-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 15%, rgba(143, 221, 125, 0.22), transparent 24rem),
    linear-gradient(145deg, var(--forest-deep), #1c5138);
}

.results-section::after {
  content: "";
  width: 34rem;
  height: 34rem;
  position: absolute;
  right: -14rem;
  bottom: -22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.section-heading-light .eyebrow,
.section-heading-light h2 em {
  color: var(--green-bright);
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.68);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.result-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 28px 38px 30px 42px;
}

.result-card strong {
  color: var(--green-bright);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}

.result-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.reviews-section .section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.review-heading-actions,
.carousel-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-heading-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.carousel-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(36, 104, 67, 0.16);
  border-radius: 17px 21px 17px 22px;
  cursor: pointer;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 20px rgba(20, 73, 47, 0.08);
  font-size: 19px;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.review-carousel,
.review-viewport {
  min-width: 0;
}

.review-carousel {
  display: flex;
  flex-direction: column;
}

.review-viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.review-viewport::-webkit-scrollbar {
  display: none;
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
}

.review-card {
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px 38px 30px 42px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.review-quote {
  height: 35px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.review-card blockquote {
  margin: 25px 0 30px;
  max-height: 10.5rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  font-size: 17px;
  line-height: 1.72;
  scrollbar-color: rgba(31, 91, 61, 0.35) transparent;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.review-avatar {
  position: relative;
  width: 44px;
  height: 40px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(36, 104, 67, 0.12);
  border-radius: 9px;
  background: var(--mint-light);
}

.review-avatar-empty {
  background: linear-gradient(145deg, rgba(231, 247, 234, 0.9), rgba(208, 234, 216, 0.7));
}

.review-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: cover;
  object-position: center 30%;
}

.review-avatar-image[hidden] {
  display: none;
}

.review-avatar-image.is-loaded {
  opacity: 1;
}

.review-avatar-image.is-loaded + .review-avatar-fallback {
  display: none;
}

.review-author strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-card footer strong {
  font-size: 13px;
}

.review-card footer time {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 11px;
}

.review-placeholder {
  justify-content: center;
  gap: 16px;
}

.review-placeholder span {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(57, 112, 76, 0.08), rgba(255, 255, 255, 0.65), rgba(57, 112, 76, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.review-placeholder span:nth-child(2) { width: 82%; }
.review-placeholder span:nth-child(3) { width: 58%; }

.carousel-dots {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(31, 91, 61, 0.2);
  transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dots button.active {
  width: 28px;
  background: var(--green);
}

.autoplay-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(36, 104, 67, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.autoplay-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.autoplay-toggle[aria-pressed="false"] .autoplay-indicator {
  background: rgba(31, 91, 61, 0.35);
}

.autoplay-toggle:active {
  transform: scale(0.98);
}

.single-review .review-track {
  grid-auto-columns: min(100%, 520px);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.reviews-message {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.contact-section {
  padding-bottom: clamp(74px, 9vw, 126px);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 48px;
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 36px 58px 38px 62px;
}

.contact-card::after {
  content: "";
  width: 240px;
  height: 240px;
  position: absolute;
  right: -85px;
  top: -110px;
  border-radius: 46% 54% 60% 40%;
  background: linear-gradient(145deg, rgba(165, 238, 145, 0.7), rgba(49, 136, 90, 0.2));
  transform: rotate(18deg);
}

.contact-card h2 {
  max-width: 720px;
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.07;
}

.contact-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

/* Forms */
.form-page {
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.form-layout {
  width: min(100%, 560px);
}

.form-layout-compact {
  width: min(100%, 460px);
}

.form-card {
  padding: clamp(28px, 6vw, 52px);
  border-radius: 32px 48px 34px 52px;
}

.form-card h1 {
  font-size: clamp(38px, 8vw, 58px);
}

.form-intro {
  margin: 20px 0 30px;
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.stack-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.stack-form label > span {
  font-size: 13px;
  font-weight: 800;
}

.stack-form label > small {
  color: var(--ink-soft);
  font-size: 11px;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(31, 91, 61, 0.16);
  border-radius: 16px 22px 17px 23px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(20, 73, 47, 0.04);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="text"],
input[type="password"] {
  min-height: 52px;
  padding: 12px 15px;
}

textarea {
  min-height: 150px;
  max-height: 420px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: rgba(49, 136, 90, 0.7);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(76, 168, 109, 0.13);
}

.notice {
  display: grid;
  gap: 2px;
  margin-top: 25px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px 19px 15px 20px;
  font-size: 13px;
}

.notice-success {
  border-color: rgba(49, 136, 90, 0.22);
  color: #1d6440;
  background: rgba(168, 239, 145, 0.24);
}

.notice-error {
  border-color: rgba(168, 61, 61, 0.2);
  color: var(--danger);
  background: rgba(255, 224, 224, 0.58);
}

/* Admin */
.admin-page {
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: max(60px, env(safe-area-inset-bottom));
}

.admin-header {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: max(22px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}

.admin-header .eyebrow {
  margin-bottom: 8px;
}

.admin-header h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.admin-main {
  padding-top: 34px;
}

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

.metric-card {
  min-width: 0;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px 30px 24px 32px;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.admin-list {
  margin-top: 50px;
}

.admin-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-list-heading .eyebrow {
  margin-bottom: 7px;
}

.admin-list-heading h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.review-total {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-review-grid {
  display: grid;
  gap: 14px;
}

.admin-review {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 24px 32px 26px 36px;
}

.admin-review > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-review-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-review-person-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-review > header strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.admin-review time {
  color: var(--ink-soft);
  font-size: 11px;
}

.status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pending {
  color: var(--warning);
  background: rgba(255, 215, 117, 0.27);
}

.status-published {
  color: #1d6440;
  background: rgba(124, 220, 147, 0.25);
}

.status-rejected {
  color: var(--danger);
  background: rgba(240, 150, 150, 0.22);
}

.admin-review blockquote {
  margin: 22px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.review-photo-management {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.review-photo-management form {
  margin: 0;
}

.review-photo-form {
  min-width: 0;
  width: min(100%, 600px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.review-photo-form label {
  font-size: 12px;
  font-weight: 800;
}

.review-photo-form input[type="file"] {
  min-width: 0;
  width: min(240px, 100%);
  color: var(--ink-soft);
  font: inherit;
  font-size: 11px;
}

.review-photo-form input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.review-photo-management small {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.admin-actions form {
  margin: 0;
}

.action-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(31, 91, 61, 0.15);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease;
}

.action-publish {
  color: #185b38;
  background: rgba(144, 228, 159, 0.3);
}

.action-reject,
.action-delete {
  color: var(--danger);
  background: rgba(245, 190, 190, 0.24);
}

.empty-state {
  padding: 52px 30px;
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state strong {
  font-size: 20px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .button:hover,
  .carousel-button:not(:disabled):hover,
  .action-button:hover {
    transform: translateY(-2px);
  }

  .button-primary:hover {
    box-shadow: 0 17px 34px rgba(31, 91, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 1100px) {
  .hero {
    gap: 42px;
  }

  .portrait-glow {
    right: 8px;
  }

  .floating-note {
    right: 0;
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 55px;
    padding-top: 58px;
  }

  .portrait-card {
    width: min(100% - 12px, 520px);
    min-height: 480px;
    justify-self: center;
  }

  .portrait-media {
    height: 350px;
  }

  .floating-note {
    right: 0;
  }

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

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

  .result-card:last-child {
    grid-column: 1 / -1;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .review-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 30px), var(--page));
  }

  .site-header {
    display: none;
  }

  .hero {
    gap: 50px;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(48px, 9vw, 68px);
  }

  .portrait-card {
    width: min(100% - 12px, 520px);
    justify-self: center;
  }

  .section-heading,
  .reviews-section .section-heading,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    align-items: start;
    gap: 22px;
  }

  .section-heading > p {
    max-width: 560px;
  }

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

  .result-card:last-child {
    grid-column: auto;
  }

  .result-card {
    min-height: 150px;
  }

  .contact-card {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .section-pad {
    padding-block: 74px;
  }

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

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .portrait-card {
    min-height: 400px;
    padding: 16px;
    border-radius: 31px 44px 34px 48px;
  }

  .portrait-media {
    height: 290px;
  }

  .portrait-glow {
    right: 16px;
  }

  .portrait-info {
    align-items: start;
    flex-direction: column;
    padding: 17px 5px 2px;
  }

  .portrait-info strong {
    max-width: none;
    text-align: left;
  }

  .floating-note {
    min-width: 180px;
    width: max-content;
    max-width: 100%;
    position: relative;
    right: auto;
    bottom: auto;
    margin: 14px 0 0 auto;
    padding: 13px;
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card,
  .feature-card:last-child {
    min-height: 270px;
    grid-column: auto;
  }

  .review-heading-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .review-track {
    grid-auto-columns: calc(100% - 28px);
  }

  .form-card {
    border-radius: 26px 34px 28px 38px;
  }

  .admin-header {
    min-height: 120px;
  }

  .admin-review > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions form,
  .action-button {
    width: 100%;
  }

  .review-photo-form,
  .review-photo-management form,
  .review-photo-form input[type="file"] {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(calc(100% - 22px), var(--page));
  }

  .hero h1 {
    font-size: 48px;
  }

  .review-track {
    grid-auto-columns: 100%;
  }

  .floating-note {
    margin-right: 7px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .glass,
  .glass-dark,
  .button,
  .action-button,
  input,
  textarea {
    border: 1px solid CanvasText;
  }

  .ambient,
  .portrait-glow {
    display: none;
  }
}

/* Landing page motion stays opt-in so content remains visible without JavaScript. */
.landing-page.motion-ready .reveal-item {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 520ms ease, translate 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.landing-page.motion-ready .reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
}

.landing-page .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.landing-page .button:active,
.landing-page .carousel-button:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

.landing-page .portrait-card {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 280ms ease;
}

.landing-page .portrait-glow {
  transform: translate3d(var(--glow-x, 0px), var(--glow-y, 0px), 0) rotate(7deg);
  transition: transform 320ms ease;
}

.landing-page .floating-note {
  transform: translate3d(var(--note-x, 0px), var(--note-y, 0px), 0);
  transition: transform 320ms ease;
}

.landing-page .status-dot {
  position: relative;
  box-shadow: none;
}

.landing-page .status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(76, 168, 109, 0.3);
  border-radius: 50%;
  animation: status-pulse 3s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(0.75); opacity: 0.7; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.landing-page .feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-page .feature-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 239, 145, 0.2), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.landing-page .feature-card > * {
  position: relative;
  z-index: 1;
}

.landing-page .text-link span {
  display: inline-block;
  animation: approach-arrow 3.2s ease-in-out infinite;
}

@keyframes approach-arrow {
  0%, 74%, 100% { transform: translateY(0); }
  82% { transform: translateY(3px); }
  90% { transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .landing-page .feature-card:hover::before {
    opacity: 1;
  }
}

@media (min-width: 1200px) {
  :root {
    --page: 1360px;
  }

  .page-shell {
    width: min(calc(100% - 48px), var(--page));
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(76px, 7vw, 112px);
  }

  .hero h1 {
    font-size: clamp(86px, 6.3vw, 104px);
  }

  .portrait-card {
    width: min(100%, 560px);
    min-height: 600px;
  }

  .portrait-media {
    height: 470px;
  }

  .feature-grid,
  .results-grid {
    gap: 24px;
  }

  .feature-card {
    min-height: 350px;
    padding: 36px;
  }

  .result-card {
    min-height: 210px;
    padding: 34px;
  }

  .review-track {
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
  }

  .review-card {
    min-height: 290px;
    padding: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page.motion-ready .reveal-item,
  .landing-page.motion-ready .reveal-item.is-visible {
    opacity: 1;
    translate: none;
    transition: none;
    transition-delay: 0ms;
  }

  .landing-page .status-dot::after,
  .landing-page .text-link span {
    animation: none;
  }

  .landing-page .feature-card::before {
    display: none;
  }

  .landing-page .portrait-card,
  .landing-page .portrait-glow,
  .landing-page .floating-note {
    transform: none;
    transition: none;
  }
}
