:root {
  --bg: #f7f8f5;
  --text: #17201d;
  --muted: #5f6b65;
  --line: #dbe0d8;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-2: #b45309;
  --ink: #102421;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a,
.back {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 96px);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(320deg, rgba(180, 83, 9, 0.13), transparent 38%);
}

.hero h1,
.page-head h1,
.article h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.page-head p,
.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero__panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--ink);
  color: #f4fbf8;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.18);
}

.hero__panel span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.actions,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--ghost,
.social {
  background: transparent;
  color: var(--accent);
}

.section,
.contact,
.page-head,
.article {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 6vw, 96px);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section__head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

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

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

.card {
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 12px;
  line-height: 1.18;
}

.card p,
.card li,
.card time {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
}

.post-card a {
  text-decoration: none;
}

.card__link {
  margin-top: 18px;
  font-weight: 750;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ef;
  color: var(--accent);
  font-size: 13px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  background: #eef2ed;
}

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e7f7ef;
  color: #166534;
}

.page-head {
  background: var(--ink);
  color: #fff;
}

.page-head p {
  color: #c9d7d2;
}

.article {
  max-width: 880px;
  margin: 0 auto;
}

.article time {
  display: block;
  margin-top: 28px;
  color: var(--accent-2);
  font-weight: 750;
}

.article__body {
  margin-top: 34px;
  font-size: 18px;
}

.article__body h2,
.article__body h3 {
  margin-top: 34px;
  line-height: 1.2;
}

.video-embed {
  position: relative;
  width: 100%;
  margin: 28px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0f1715;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 5vw, 56px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 88px) 0;
}

.service-main,
.service-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
}

.service-main h2:first-child,
.service-aside h3:first-child {
  margin-top: 0;
}

.service-main h2 {
  margin: 34px 0 14px;
}

.service-main p {
  margin: 0 0 18px;
}

.service-main ul {
  margin: 0 0 26px;
  padding-left: 24px;
}

.service-main li + li {
  margin-top: 8px;
}

.service-aside {
  align-self: start;
  position: sticky;
  top: 96px;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfcfa;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .service-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer,
  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

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

  .form {
    padding: 18px;
  }

  .service-layout {
    width: min(100% - 24px, 1180px);
    padding: 28px 0;
  }

  .service-main,
  .service-aside {
    padding: 18px;
  }
}
