@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansXFaNum-ExtraBlack.woff2") format("woff2");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #06130f;
  --deep: #08251d;
  --deep-2: #0d3328;
  --panel: #102d25;
  --panel-soft: #14392f;
  --gold: #d9b06f;
  --gold-2: #f0d49a;
  --text: #f7f1e5;
  --muted: #c6b89f;
  --line: rgba(217, 176, 111, 0.28);
  --white-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 18, 14, 0.18), rgba(4, 18, 14, 0.88) 42%, #06130f 100%),
    linear-gradient(135deg, #03110d 0%, #09291f 48%, #041511 100%);
  font-family: "IRANSansX", Tahoma, Arial, sans-serif;
  line-height: 1.9;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0;
  padding: 12px 14px 12px 22px;
  border: 1px solid rgba(217, 176, 111, 0.24);
  border-radius: 999px;
  background: rgba(4, 21, 16, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--gold-2);
  direction: ltr;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  padding: 7px;
  background: #06130f;
  border: 1px solid rgba(217, 176, 111, 0.4);
}

.nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: calc(100% - 230px);
  overflow-x: auto;
  color: rgba(247, 241, 229, 0.78);
  font-size: 12px;
  scrollbar-width: none;
}

.nav nav::-webkit-scrollbar {
  display: none;
}

.nav nav a,
.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav nav a {
  padding: 0 10px;
}

.nav nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-button {
  padding: 0 20px;
  color: #07130f;
  background: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.nav-button:hover,
.button:hover {
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

.hero,
.results,
.method,
.services,
.consult,
.contact,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 46px;
  min-height: calc(100svh - 96px);
  padding: 72px 0 44px;
}

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

.kicker,
.section-heading p,
.consult-copy p,
.feature-card small {
  margin: 0 0 16px;
  color: var(--gold);
  direction: ltr;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p:not(.kicker) {
  max-width: 520px;
  margin-bottom: 34px;
  color: rgba(247, 241, 229, 0.76);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 178px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  color: #06130f;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.button.ghost {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-result {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(9, 34, 27, 0.72);
  box-shadow: var(--shadow);
}

.hero-result::after {
  content: "NAVID HAIR CLINIC";
  position: absolute;
  inset-inline-start: 22px;
  bottom: -16px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  background: #041511;
  direction: ltr;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-result img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  object-fit: cover;
}

.cover-hero {
  position: relative;
  display: grid;
  align-items: end;
  width: min(100% - 40px, 1360px);
  min-height: calc(100svh - 112px);
  margin: 112px auto 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: #06130f;
  box-shadow: var(--shadow);
}

.cover-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 12, 9, 0.04), rgba(2, 12, 9, 0.38) 44%, rgba(2, 12, 9, 0.95)),
    linear-gradient(0deg, rgba(2, 12, 9, 0.86), rgba(2, 12, 9, 0.04) 62%);
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100% - 40px));
  margin: 0 6% 72px auto;
  padding: 0;
  direction: rtl;
  text-align: right;
}

.cover-content p {
  margin: 0 0 16px;
  color: var(--gold);
  direction: ltr;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cover-content h1 {
  margin-bottom: 20px;
  font-weight: 950;
  text-wrap: balance;
}

.cover-content span {
  display: block;
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(247, 241, 229, 0.78);
  font-size: 17px;
}

.cover-content .hero-actions {
  justify-content: flex-start;
}

.results,
.method,
.services,
.consult,
.contact,
.blog {
  padding: 112px 0 0;
}

.services-home {
  padding-top: 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  text-align: right;
  margin-bottom: 36px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.section-heading > p {
  display: none;
}

.section-heading h2,
.consult-copy h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.section-heading span,
.consult-copy span {
  color: rgba(247, 241, 229, 0.66);
  font-size: 15px;
}

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

.service-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--white-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 12, 9, 0.94), rgba(2, 12, 9, 0.18) 58%);
}

.service-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.service-card small,
.service-card strong,
.service-card span {
  position: relative;
  display: block;
  margin-inline: 20px;
}

.service-card small {
  width: fit-content;
  margin-top: 20px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(3, 17, 13, 0.58);
  direction: ltr;
  font-weight: 800;
}

.service-card strong {
  margin-top: 252px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.3;
}

.service-card span {
  margin-top: 10px;
  color: rgba(247, 241, 229, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.service-card:hover img {
  transform: scale(1.045);
}

.mesotherapy-card img {
  object-position: 18% center;
}

.service-card:hover {
  border-color: rgba(240, 212, 154, 0.46);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-bottom: 18px;
}

.feature-card,
.mini-proof {
  border: 1px solid var(--white-line);
  border-radius: 22px;
  background: rgba(15, 44, 36, 0.72);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: 0;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-card div {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.35;
}

.feature-card p,
.mini-proof p,
.steps p {
  margin-bottom: 0;
  color: rgba(247, 241, 229, 0.66);
  font-size: 14px;
}

.mini-proof {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 360px;
  padding: 30px;
}

.mini-proof strong {
  color: var(--gold-2);
  direction: ltr;
  font-size: 86px;
  line-height: 1;
}

.mini-proof span {
  margin: 8px 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

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

.results > .gallery:first-child {
  margin-top: 0;
}

.gallery figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 22, 17, 0.72);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--white-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white-line);
}

.steps article {
  min-height: 238px;
  padding: 28px;
  background: rgba(16, 45, 37, 0.82);
}

.steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 28px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.service-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--white-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white-line);
}

.service-list a {
  display: grid;
  grid-template-columns: 76px minmax(200px, 0.46fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 96px;
  padding: 20px 28px;
  background: rgba(16, 45, 37, 0.74);
  transition: background 180ms ease;
}

.service-list a:hover {
  background: rgba(23, 64, 52, 0.9);
}

.service-list small {
  color: var(--gold);
  direction: ltr;
  font-weight: 700;
}

.service-list strong {
  font-size: 20px;
}

.service-list span {
  color: rgba(247, 241, 229, 0.62);
}

.consult {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 90px;
}

.consult-copy {
  position: sticky;
  top: 122px;
  padding-top: 0;
}

.consult-copy h2 {
  white-space: normal;
  text-wrap: balance;
}

.consult-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 36, 29, 0.82);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(247, 241, 229, 0.76);
  font-size: 13px;
  font-weight: 600;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(3, 17, 13, 0.68);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 128px;
  padding-top: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(198, 184, 159, 0.56);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 212, 154, 0.72);
}

.consult-form button {
  grid-column: 1 / -1;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: #06130f;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact {
  padding-top: 44px;
  padding-bottom: 92px;
}

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

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 36, 29, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 128px;
  padding: 26px;
}

.contact-card small,
.map-card small {
  display: block;
  margin-bottom: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  direction: ltr;
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-card a::before {
  content: "";
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--gold-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.contact-card a[href^="tel:"]::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.2 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.74a16 16 0 0 0 6.26 6.26l1.28-1.28a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-card a[href*="instagram.com"]::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.map-card {
  overflow: hidden;
}

.map-card > div {
  min-height: 156px;
  padding: 26px 26px 22px;
}

.map-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
}

.map-card p {
  margin-bottom: 0;
  color: rgba(247, 241, 229, 0.68);
  font-size: 14px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 290px;
  border: 0;
  filter: saturate(0.86) contrast(0.96);
}

.blog {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding-top: 34px;
  padding-bottom: 86px;
}

.blog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--deep);
  padding-bottom: 16px;
}

.blog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#blog {
  scroll-margin-top: 110px;
}

.blog-controls:not([hidden]) {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.blog-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold-2);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.blog-arrow:hover:not(:disabled) {
  background: var(--panel-soft);
  border-color: var(--gold);
}

.blog-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.blog-arrow:focus-visible,
.blog-grid:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.blog-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.blog-card {
  display: grid;
  scroll-snap-align: start;
  min-width: 0;
  min-height: 390px;
  border: 1px solid var(--white-line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(11, 36, 29, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

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

.blog-card span {
  width: fit-content;
  margin: 18px 18px 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
}

.blog-card h3 {
  margin: 12px 18px 22px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.article-page main {
  padding-top: 112px;
}

.article-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto 90px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-content {
  width: min(760px, 100%);
  margin: 34px auto 0;
  color: rgba(247, 241, 229, 0.76);
  font-size: 17px;
}

.article-content h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 62px);
}

.article-content h2 {
  margin: 34px 0 10px;
  color: var(--text);
  font-size: 26px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content .button {
  margin-top: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  border-top: 1px solid var(--white-line);
  color: rgba(247, 241, 229, 0.62);
  direction: ltr;
}

footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

footer p {
  margin: 0;
  font-size: 13px;
}

footer a {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
}

.service-page .nav {
  margin-bottom: 42px;
}

.service-page main {
  padding-top: 112px;
}

.detail-hero,
.detail-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
  align-items: stretch;
  align-content: center;
  min-height: calc(100svh - 160px);
}

.detail-hero > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.detail-hero > div > .button {
  margin-top: auto;
}

.detail-hero > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  margin-bottom: 18px;
}

.detail-hero span {
  display: block;
  margin-bottom: 28px;
  color: rgba(247, 241, 229, 0.74);
  font-size: 17px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  margin-bottom: 90px;
  border: 1px solid var(--white-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white-line);
}

.detail-content article {
  min-height: 250px;
  padding: 34px;
  background: rgba(16, 45, 37, 0.82);
}

.detail-content h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.detail-content p {
  margin-bottom: 0;
  color: rgba(247, 241, 229, 0.68);
}

.service-consult {
  padding-top: 72px;
  padding-bottom: 0;
}

.service-contact {
  padding-bottom: 90px;
}

@media (max-width: 980px) {
  .nav {
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: none;
  }

  .featured-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .cover-hero {
    min-height: 720px;
  }

  .cover-content {
    margin-inline: auto;
  }

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

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    min-height: 0;
  }

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

  .blog-grid {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

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

  .consult-copy {
    position: static;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav,
  .hero,
  .results,
  .method,
  .services,
  .consult,
  .contact,
  footer {
    width: min(100% - 24px, var(--max));
  }

  .cover-hero {
    width: min(100% - 24px, 1360px);
    min-height: 650px;
    margin-top: 112px;
    border-radius: 24px;
  }

  .cover-shade {
    background:
      linear-gradient(0deg, rgba(2, 12, 9, 0.96), rgba(2, 12, 9, 0.12) 68%),
      linear-gradient(90deg, rgba(2, 12, 9, 0.08), rgba(2, 12, 9, 0.46));
  }

  .cover-content {
    width: calc(100% - 28px);
    margin-bottom: 34px;
  }

  .brand span {
    display: none;
  }

  .nav-button {
    padding-inline: 16px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-copy > p:not(.kicker) {
    font-size: 15px;
  }

  .gallery,
  .steps,
  .consult-form,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 390px;
  }

  .service-card strong {
    margin-top: 225px;
  }

  .results,
  .method,
  .services,
  .consult,
  .contact,
  .blog {
    padding-top: 78px;
  }

  .blog {
    width: min(100% - 24px, var(--max));
  }

  .blog-grid {
    grid-auto-columns: 100%;
  }

  .article-shell {
    width: min(100% - 24px, 940px);
  }

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

  .contact-card a {
    font-size: 24px;
  }

  .contact-card {
    min-height: 98px;
  }

  .section-heading h2,
  .consult-copy h2 {
    font-size: 30px;
    white-space: normal;
  }

  .service-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 132px;
  }

  .consult-form {
    padding: 16px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .detail-hero,
  .detail-content {
    width: min(100% - 24px, var(--max));
  }

  .detail-content article {
    padding: 24px;
  }
}
