:root {
  --ink: #1c2b2a;
  --ink-soft: #3d4f4d;
  --mist: #eef3f1;
  --paper: #f7f4ef;
  --cream: #faf6f0;
  --accent: #c45a2c;
  --accent-deep: #9a3f1a;
  --teal: #2f6f68;
  --line: rgba(28, 43, 42, 0.14);
  --shadow: 0 18px 40px rgba(28, 43, 42, 0.08);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 111, 104, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 90, 44, 0.12), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--cream) 42%, var(--paper) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.84);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header__cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: var(--radius);
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

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

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 43, 42, 0.88) 0%, rgba(28, 43, 42, 0.55) 48%, rgba(28, 43, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(28, 43, 42, 0.55), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--space) clamp(3rem, 7vw, 5rem);
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.35em;
  max-width: 12ch;
}

.hero__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 34ch;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--space);
}

.section--narrow {
  max-width: 760px;
}

.section__kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}

.section__intro {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.split--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split__figure {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.split__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split__figure:hover img {
  transform: scale(1.04);
}

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

.offer-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.offer-list img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
}

.offer-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.offer-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

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

.quote-strip {
  background: var(--ink);
  color: var(--cream);
}

.quote-strip .section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.quote-strip blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  max-width: 40ch;
  font-family: var(--font-display);
  line-height: 1.35;
}

.quote-strip cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.75);
}

.page-hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--space) 1.5rem;
  animation: rise 0.7s var(--ease) both;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-hero--media {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  max-width: none;
  padding: 0;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 43, 42, 0.2), rgba(28, 43, 42, 0.82));
}

.page-hero--media .page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--space) 2.5rem;
}

.page-hero--media h1,
.page-hero--media p {
  color: #fff;
}

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

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

.service-tile,
.post-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-tile img,
.post-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border-radius: 2px;
}

.service-tile h2,
.post-tile h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.service-tile p,
.post-tile p {
  color: var(--ink-soft);
  margin: 0;
}

.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 68ch;
}

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

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.2em;
  padding: 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.price-block {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}

.price-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.price-block .amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

.review {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.review blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.review footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: rgba(47, 111, 104, 0.08);
  border-left: 3px solid var(--teal);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: var(--ink);
}

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

.form__error {
  color: #9a1f1f;
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 1.1em;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: rgba(47, 111, 104, 0.15);
  color: #174843;
}

.form__status--err {
  background: rgba(154, 31, 31, 0.12);
  color: #6d1515;
}

.contact-aside {
  padding: 1.25rem 0;
}

.contact-aside p {
  margin-bottom: 0.4rem;
}

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

.steps li {
  position: relative;
  padding-left: 3.2rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  font-family: var(--font-display);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(28, 43, 42, 0.95);
  color: rgba(247, 244, 239, 0.88);
}

.site-footer a {
  color: rgba(247, 244, 239, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem var(--space) 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 239, 0.6);
  margin-bottom: 0.7rem;
}

.site-footer__nav ul,
.site-footer__legal ul {
  display: grid;
  gap: 0.4rem;
}

.site-footer__copy {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space) 1.5rem;
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.55);
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  animation: slide-up 0.45s var(--ease) both;
}

.cookie-banner__inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(47, 111, 104, 0.14), rgba(196, 90, 44, 0.12)),
    rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band .section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.team {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 160px 1fr;
  align-items: start;
}

.team img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
}

.reveal {
  animation: rise 0.8s var(--ease) both;
}

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
    display: none;
  }

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

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

  .split,
  .split--reverse,
  .grid-2,
  .grid-3,
  .site-footer__inner,
  .offer-list li,
  .team {
    grid-template-columns: 1fr;
  }

  .offer-list img {
    width: 100%;
    height: 180px;
  }
}
