:root {
  --bg: #f3f1ec;
  --bg-elevated: #faf9f6;
  --ink: #1e2622;
  --ink-soft: #4a534d;
  --line: #d9d4cb;
  --accent: #3d5a4c;
  --accent-deep: #2f3a34;
  --accent-soft: #c8d4c4;
  --sand: #e6dfd3;
  --danger: #8b3a3a;
  --ok: #2f5d45;
  --shadow: 0 18px 50px rgba(30, 38, 34, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e7ebe4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ebe4d8 0%, transparent 50%),
    linear-gradient(180deg, #f7f5f0 0%, var(--bg) 40%, #ece8e1 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 240, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.nav-open,
.site-header:focus-within {
  border-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 14rem;
  line-height: 1.2;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #f7f5f0 !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--accent-deep);
  color: #f7f5f0;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

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

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 38, 34, 0.18) 0%,
    rgba(30, 38, 34, 0.45) 45%,
    rgba(30, 38, 34, 0.78) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #f7f5f0;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #f7f5f0;
}

.hero-copy h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: #e8ebe5;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: rgba(247, 245, 240, 0.88);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero .btn-primary {
  background: #f7f5f0;
  color: var(--accent-deep);
}

.hero .btn-ghost {
  border-color: rgba(247, 245, 240, 0.45);
  color: #f7f5f0;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
  animation: rise 0.8s ease both;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media img,
.page-hero img,
.cover img,
.portrait img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.split-media img {
  min-height: 360px;
  max-height: 480px;
}

.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.offer-row:hover {
  transform: translateX(4px);
}

.offer-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.offer-row h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.offer-row p {
  margin: 0;
  font-size: 0.95rem;
}

.offer-row .meta {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote {
  padding: 1.4rem 1.3rem;
  border-top: 2px solid var(--accent-soft);
}

.quote p {
  font-size: 0.98rem;
  color: var(--ink);
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero-inner {
  display: grid;
  gap: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

.page-hero.with-image .page-hero-inner {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.page-hero.with-image img {
  min-height: 280px;
  max-height: 380px;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose ul,
.detail-list {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.prose li + li,
.detail-list li + li {
  margin-top: 0.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card,
.post-card {
  display: grid;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.service-card:hover,
.post-card:hover {
  transform: translateY(-4px);
}

.service-card img,
.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-card h2,
.post-card h2 {
  font-size: 1.35rem;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 1rem 0 1.5rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.aside-box {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.aside-box p {
  margin-bottom: 0.55rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s ease both;
}

.step:nth-child(2) {
  animation-delay: 0.08s;
}
.step:nth-child(3) {
  animation-delay: 0.16s;
}
.step:nth-child(4) {
  animation-delay: 0.24s;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  min-width: 2.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
}

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

.field-error {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.form-status.is-success {
  background: rgba(47, 93, 69, 0.12);
  color: var(--ok);
}

.form-status.is-error {
  background: rgba(139, 58, 58, 0.1);
  color: var(--danger);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(47, 58, 52, 0.96);
  color: #f3f1ec;
  padding: 1rem 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  animation: rise 0.45s ease both;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: rgba(243, 241, 236, 0.9);
  max-width: 48rem;
}

.cookie-banner a {
  color: #c8d4c4;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  border-color: rgba(243, 241, 236, 0.35);
  color: #f3f1ec;
}

.cookie-banner .btn-primary {
  background: #c8d4c4;
  color: var(--accent-deep);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(200, 212, 196, 0.35);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portrait img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

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

@keyframes drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 245, 240, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .split,
  .page-hero.with-image .page-hero-inner,
  .detail-layout,
  .contact-grid,
  .footer-grid,
  .quote-grid,
  .cards,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .offer-row {
    grid-template-columns: 96px 1fr;
  }

  .offer-row .meta {
    grid-column: 2;
  }

  .offer-row img {
    width: 96px;
    height: 72px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: 78vh;
  }

  .brand-text {
    max-width: 11rem;
    font-size: 0.95rem;
  }
}
