:root {
  --ink: #13201c;
  --muted: #5f6f68;
  --paper: #f7f4ec;
  --surface: #ffffff;
  --line: #dde3db;
  --green: #1d8f70;
  --green-dark: #0f5f4c;
  --coral: #ec6c55;
  --gold: #e6ad3a;
  --blue: #276fc2;
  --shadow: 0 24px 70px rgba(35, 49, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(247, 244, 236, 0.88);
  border-bottom: 1px solid rgba(19, 32, 28, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.logo-band,
.result-list,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo-full {
  display: block;
  width: 150px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.brand-photo-logo {
  display: block;
  position: relative;
  width: 76px;
  height: 58px;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}

.brand-photo-logo img {
  display: block;
}

.brand-icon-crop {
  position: absolute;
  width: auto;
  height: 58px;
  max-width: none;
  left: 0;
  top: 0;
}

.brand-icon-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 2.5vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--green-dark);
}

.header-cta,
.button,
.contact-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta:hover,
.button:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 95, 76, 0.18);
}

.header-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 64px) 44px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy > * {
  animation: heroRise 680ms ease both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > *:nth-child(4),
.hero-copy > *:nth-child(5) {
  animation-delay: 240ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.35vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  padding: 0 22px;
}

.button.primary {
  color: #fff;
  background: var(--green-dark);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.hero-stats div {
  min-width: 128px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-size: 1.65rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  margin-top: 38px;
  border: 1px solid rgba(19, 32, 28, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.logo-band {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-block: 1px solid rgba(19, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.logo-band span {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section,
.feature-band,
.contact {
  padding: clamp(58px, 8vw, 106px) clamp(18px, 4vw, 64px);
}

.intro,
.feature-band,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.intro p:last-child,
.feature-band p,
.contact p,
.service-card p,
.timeline p,
.price-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.service-card,
.price-card,
.timeline article {
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 236px;
  padding: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 95, 76, 0.32);
  box-shadow: 0 22px 56px rgba(35, 49, 43, 0.13);
}

.icon {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-band {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 95, 76, 0.96), rgba(19, 32, 28, 0.96)),
    var(--green-dark);
}

.feature-band .eyebrow,
.feature-band p {
  color: rgba(255, 255, 255, 0.76);
}

.result-list {
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.result-list strong {
  font-size: 2rem;
}

.result-list span {
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

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

.timeline article {
  padding: 22px;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing {
  background: #fff;
}

.portfolio {
  background: rgba(255, 255, 255, 0.56);
}

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

.portfolio-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 239, 232, 0.76)),
    var(--surface);
  box-shadow: 0 18px 44px rgba(35, 49, 43, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(35, 49, 43, 0.14);
}

.portfolio-card span {
  display: inline-flex;
  margin-bottom: 86px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.faq {
  background: #f2f5ef;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.faq-list details[open] {
  border-color: rgba(15, 95, 76, 0.28);
  box-shadow: 0 16px 42px rgba(35, 49, 43, 0.1);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green-dark);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.price-card {
  padding: 26px;
}

.price-card.highlighted {
  color: #fff;
  background: var(--ink);
}

.price-card.highlighted p {
  color: rgba(255, 255, 255, 0.76);
}

.price {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
}

.price-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 800;
}

.price-card.highlighted a {
  color: var(--gold);
}

.contact {
  background: #e8efe8;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(19, 32, 28, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(35, 49, 43, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  color: #fff;
  background: var(--green-dark);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: #18a85f;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(24, 168, 95, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(24, 168, 95, 0.36);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 64px);
  color: var(--muted);
  background: var(--ink);
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.thank-you-card {
  max-width: 720px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.thank-you-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.blog-hero {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 64px) clamp(34px, 5vw, 70px);
  background:
    linear-gradient(120deg, rgba(15, 95, 76, 0.08), rgba(255, 255, 255, 0)),
    var(--paper);
}

.blog-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
}

.blog-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.sidebar-widget {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(35, 49, 43, 0.07);
}

.sidebar-widget h3 {
  margin: 0;
}

.sidebar-widget a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.sidebar-widget a:hover,
.tag-row a:hover {
  color: var(--green-dark);
}

.newsletter-widget p {
  color: var(--muted);
}

.newsletter-widget form,
.blog-search {
  display: flex;
  gap: 10px;
}

.newsletter-widget input,
.blog-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fbfcfa;
  font: inherit;
}

.newsletter-widget button,
.blog-search button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tag-cloud div,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a,
.tag-row a {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf8f2;
  font-size: 0.84rem;
  font-weight: 800;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--green-dark);
}

.trending-section {
  padding-top: 18px;
  padding-bottom: 28px;
}

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

.trending-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 95, 76, 0.94), rgba(19, 32, 28, 0.96)),
    var(--ink);
  box-shadow: 0 20px 52px rgba(35, 49, 43, 0.12);
}

.trending-card span {
  display: block;
  margin-bottom: 52px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trending-card strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(35, 49, 43, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(35, 49, 43, 0.14);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card div {
  padding: 22px;
}

.blog-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.blog-card p {
  color: var(--muted);
}

.blog-card a {
  color: var(--green-dark);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.pagination a.active {
  color: #fff;
  background: var(--green-dark);
}

.blog-meta {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-detail {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 42px);
}

.blog-detail h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.blog-summary {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

.blog-cover {
  width: 100%;
  margin-bottom: 34px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.share-row a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc-box {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(35, 49, 43, 0.07);
}

.toc-box strong {
  margin-bottom: 8px;
}

.toc-box a,
.toc-box span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.toc-box .toc-level-3 {
  padding-left: 12px;
}

.blog-content {
  color: #2d3b36;
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: normal;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 34px;
  margin-bottom: 12px;
}

.blog-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.blog-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.blog-content ul {
  padding-left: 22px;
}

.blog-content + .button {
  margin-top: 32px;
}

.empty-state {
  max-width: 760px;
  padding: 36px;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
}

.author-box,
.comments-box,
.related-posts {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
}

.author-box p,
.comments-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.related-posts {
  padding: 0;
  border: 0;
  background: transparent;
}

.related-posts h2 {
  margin-bottom: 18px;
}

.admin-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
  background: #eef4ee;
}

.admin-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-panel h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.check-label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.check-label input {
  width: auto;
}

.seo-hints {
  padding: 16px;
  border-radius: 8px;
  color: #5f4b16;
  background: #fff7d6;
}

.seo-hints p {
  margin: 8px 0 0;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

.admin-form button {
  display: inline-flex;
  min-height: 46px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: var(--green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-error,
.admin-success {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-error {
  color: #7c1d1d;
  background: #fee2e2;
}

.admin-success {
  color: #14532d;
  background: #dcfce7;
}

.admin-logout {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-weight: 800;
}

.admin-posts {
  margin-top: 40px;
}

.admin-posts article {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-posts form {
  margin: 0;
}

.admin-posts button {
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #7c1d1d;
  background: #fee2e2;
  font-weight: 800;
  cursor: pointer;
}

.admin-posts span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-posts a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .intro,
  .feature-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .pricing-grid,
  .portfolio-grid,
  .blog-grid,
  .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-layout,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .toc-box {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand-photo-logo {
    width: 64px;
    height: 48px;
  }

  .brand-logo-full {
    width: 124px;
    max-height: 44px;
  }

  .brand-icon-crop {
    height: 48px;
    left: 0;
    top: 0;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    margin-top: 0;
  }

  h1 {
    font-size: 2.8rem;
  }

  .service-grid,
  .pricing-grid,
  .portfolio-grid,
  .blog-grid,
  .trending-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .newsletter-widget form,
  .blog-search {
    flex-direction: column;
  }

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

  .admin-posts article {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    align-items: stretch;
  }

  .hero-stats div {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  .result-list div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-list span {
    text-align: left;
  }

  .floating-contact {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}
