:root {
  --ink: #29251f;
  --muted: #786f63;
  --paper: #f8f3eb;
  --paper-strong: #efe5d7;
  --stone: #d8cbbc;
  --green: #263f36;
  --green-soft: #dbe4da;
  --rose: #a96558;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(36, 31, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #d98973;
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 42px;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(248, 243, 235, 0.94);
  box-shadow: 0 12px 35px rgba(41, 37, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 0;
  min-width: 168px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  font-size: 18px;
}

.brand small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 253, 248, 0.08);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-toggle::before,
.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 180ms ease;
}

.nav-toggle::before {
  transform: translate(-50%, -50%) translateY(-7px);
}

.nav-toggle span:first-child {
  transform: translate(-50%, -50%);
}

.nav-toggle span:last-child {
  transform: translate(-50%, -50%) translateY(7px);
}

.site-header.is-open .nav-toggle {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.site-header.is-open .nav-toggle::before {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.35);
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #201d19;
}

.hero__image,
.hero__slider,
.hero__slide,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__slider {
  contain: paint;
  overflow: hidden;
}

.hero__slide {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms ease, transform 5200ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero--mixed .hero__slide:nth-child(1) {
  object-position: center center;
}

.hero--mixed .hero__slide:nth-child(2) {
  object-position: center 42%;
}

.hero--mixed .hero__slide:nth-child(3) {
  object-position: center center;
}

.hero--mixed .hero__slide:nth-child(4) {
  object-position: center center;
}

.hero--mixed .hero__slide:nth-child(5) {
  object-position: center 45%;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(31, 28, 24, 0.72), rgba(31, 28, 24, 0.22) 56%, rgba(31, 28, 24, 0.42)),
    linear-gradient(0deg, rgba(31, 28, 24, 0.7), transparent 42%);
}

.hero--mixed .hero__shade {
  background:
    linear-gradient(90deg, rgba(31, 28, 24, 0.78), rgba(31, 28, 24, 0.28) 54%, rgba(31, 28, 24, 0.56)),
    linear-gradient(0deg, rgba(31, 28, 24, 0.76), transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto 118px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0d4c9;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button--primary {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.button--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost-light {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.42);
  background: rgba(255, 253, 248, 0.08);
}

.tariff-card .button--ghost-light {
  color: var(--green);
  border-color: var(--stone);
  background: var(--white);
}

.hero__stats {
  position: absolute;
  z-index: 1;
  right: 42px;
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 420px;
}

.hero__stats span,
.about__facts span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  color: rgba(255, 253, 248, 0.88);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section__heading {
  max-width: 670px;
  margin-bottom: 38px;
}

.section__heading--wide {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: end;
}

.section__heading p:not(.eyebrow) {
  color: var(--muted);
}

.section--intro {
  padding-bottom: 46px;
}

.tariffs--featured {
  width: 100%;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.tariffs--featured .eyebrow {
  color: #e2ad9e;
}

.tariffs--featured .section__heading p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.72);
}

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

.tariff-card {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.08);
}

.tariff-card--recommended {
  color: var(--ink);
  background: var(--white);
}

.tariff-card__marker {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.tariff-card--recommended .tariff-card__marker {
  background: var(--green);
}

.tariff-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.tariff-card__fit {
  min-height: 76px;
  color: rgba(255, 253, 248, 0.76);
}

.tariff-card--recommended .tariff-card__fit {
  color: var(--muted);
}

.tariff-card__price {
  display: grid;
  gap: 4px;
  margin: 4px 0 22px;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  padding: 14px 0;
}

.tariff-card__price span {
  color: #e2ad9e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tariff-card__price strong {
  color: #f0d4c9;
  font-size: 22px;
  line-height: 1;
  text-transform: none;
}

.tariff-card--recommended .tariff-card__price {
  border-color: rgba(41, 37, 31, 0.14);
}

.tariff-card--recommended .tariff-card__price span {
  color: var(--rose);
}

.tariff-card--recommended .tariff-card__price strong {
  color: var(--green);
}

.tariff-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tariff-card li {
  display: flex;
  gap: 10px;
  color: rgba(255, 253, 248, 0.78);
}

.tariff-card--recommended li {
  color: var(--muted);
}

.tariff-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.tariff-card .button {
  width: 100%;
  margin-top: auto;
}

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

.tariff-proof span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.intro-grid,
.service-list,
.documents-grid {
  display: grid;
  gap: 18px;
}

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

.intro-grid article,
.service-list article,
.document-card {
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.06);
}

.intro-grid article {
  min-height: 220px;
  padding: 26px;
}

.intro-grid span,
.document-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
}

.intro-grid p,
.service-list p,
.document-card p,
.about__content p,
.timeline p,
.brief-summary p,
.contacts p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 44px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card[hidden] {
  display: none;
}

.project-card button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-strong);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--white);
  background: rgba(38, 63, 54, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.project-card__body {
  padding: 20px;
}

.project-card__meta {
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section--services {
  width: 100%;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: var(--green);
  color: var(--white);
}

.section--services .eyebrow {
  color: #e2ad9e;
}

.service-list {
  grid-template-columns: repeat(4, 1fr);
}

.service-list article {
  min-height: 230px;
  padding: 24px;
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.16);
  background: rgba(255, 253, 248, 0.06);
  box-shadow: none;
}

.service-list p {
  color: rgba(255, 253, 248, 0.72);
}

.process {
  padding-bottom: 48px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(41, 37, 31, 0.16);
}

.timeline article {
  position: relative;
  min-height: 255px;
  padding: 26px 24px 0 0;
}

.timeline article:not(:last-child) {
  border-right: 1px solid rgba(41, 37, 31, 0.12);
  margin-right: 24px;
}

.timeline span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.kit {
  padding-top: 48px;
}

.kit-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

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

.kit-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.06);
}

.kit-card--accent {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.kit-card span {
  margin-bottom: 46px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kit-card--accent span {
  color: #e2ad9e;
}

.kit-card ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.kit-card li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.kit-card--accent li {
  color: rgba(255, 253, 248, 0.78);
}

.kit-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-strong);
}

.about__media img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 18%;
}

.about__content {
  max-width: 620px;
}

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

.about__facts span {
  color: var(--green);
  border-color: var(--stone);
  background: var(--green-soft);
}

.documents {
  padding-top: 48px;
}

.documents-grid {
  grid-template-columns: 0.72fr 1.28fr;
}

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

.document-card {
  overflow: hidden;
  min-height: 290px;
  padding: 24px;
}

.document-card--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(135deg, var(--green-soft), var(--white));
}

.document-card:not(.document-card--placeholder) {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 22px;
  align-items: center;
}

.document-card img {
  width: 100%;
  height: 250px;
  border: 1px solid rgba(41, 37, 31, 0.1);
  object-fit: cover;
  background: var(--paper-strong);
}

.document-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.document-card--links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.document-links a {
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--paper);
  text-decoration: none;
}

.documents-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 376px);
  gap: 24px;
  align-items: start;
}

.document-card--feature {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  min-height: 0;
  padding: 32px;
}

.document-card__sheet {
  display: block;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(41, 37, 31, 0.1);
  background: var(--white);
}

.document-card--feature img {
  width: 100%;
  height: auto;
  max-height: none;
  border: 0;
  object-fit: contain;
}

.document-card--feature > div:last-child {
  max-width: 620px;
}

.document-pack {
  display: grid;
  align-content: start;
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  padding: 32px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.06);
}

.document-pack > span,
.photo-content .eyebrow {
  color: #e2ad9e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-pack h3 {
  max-width: 360px;
  margin-top: 18px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
}

.document-pack p {
  max-width: 420px;
  color: rgba(255, 253, 248, 0.72);
}

.document-link-list {
  display: grid;
  margin-top: 18px;
}

.document-link-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 16px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  padding: 18px 0;
  text-decoration: none;
}

.document-link-list span {
  grid-row: span 2;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 50%;
  color: #e2ad9e;
  font-size: 12px;
  font-weight: 800;
}

.document-link-list strong {
  color: var(--white);
  font-weight: 800;
}

.document-link-list small {
  color: rgba(255, 253, 248, 0.64);
  font-size: 13px;
}

.photo-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 56px;
  border-top: 1px solid rgba(41, 37, 31, 0.1);
  padding-top: 44px;
}

.photo-content__text {
  max-width: 430px;
}

.photo-content__text h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.photo-content__text p:not(.eyebrow) {
  color: var(--muted);
}

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

.photo-card {
  overflow: hidden;
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.06);
}

.photo-card {
  aspect-ratio: 3 / 4;
  margin: 0;
}

.photo-card:nth-child(2) {
  margin-top: 28px;
}

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

.request {
  padding-top: 48px;
}

.brief-form {
  display: grid;
  grid-template-columns: 0.95fr 1fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.brief-form fieldset,
.brief-form__fields,
.brief-summary {
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.06);
}

.brief-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 22px;
}

.brief-form fieldset:last-child {
  margin-bottom: 0;
}

.brief-form legend {
  padding: 0 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-card {
  display: block;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.choice-card span::after {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.choice-card input:checked + span {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.choice-card input:checked + span::after {
  background: currentColor;
  box-shadow: inset 0 0 0 2px var(--green);
}

.choice-card input:focus-visible + span {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(169, 101, 88, 0.28);
}

.brief-form__fields {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.brief-form__fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.brief-form__fields input,
.brief-form__fields textarea {
  width: 100%;
  border: 1px solid var(--stone);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.brief-form__fields input:focus,
.brief-form__fields textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

.brief-form__fields textarea {
  resize: vertical;
}

.brief-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px;
  color: var(--white);
  background: var(--green);
}

.brief-summary span {
  margin-bottom: 16px;
  color: #e2ad9e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brief-summary p {
  white-space: pre-line;
  color: rgba(255, 253, 248, 0.76);
}

.brief-summary .button {
  width: 100%;
  margin-top: 22px;
}

.brief-summary__actions {
  display: grid;
  gap: 10px;
}

.brief-summary__actions .button {
  margin-top: 0;
}

.brief-summary small {
  min-height: 20px;
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.72);
}

.faq {
  padding-top: 48px;
}

.faq-list details {
  border: 1px solid rgba(41, 37, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(41, 37, 31, 0.05);
}

.faq-list summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--rose);
  font-size: 28px;
  font-weight: 400;
}

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

.faq-list p {
  max-width: 760px;
  margin: -4px 24px 24px;
  color: var(--muted);
}

.contacts {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 84px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 42px;
  align-items: center;
  border-radius: 8px;
  padding: 46px;
  color: var(--white);
  background: var(--ink);
}

.contacts h2 {
  margin-bottom: 14px;
}

.contacts p {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.75);
}

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

.contacts__panel a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 6px;
  padding: 0 16px;
  background: rgba(255, 253, 248, 0.06);
}

.contacts__panel a::after {
  content: "→";
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.case-dialog {
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.case-dialog::backdrop {
  background: rgba(26, 23, 20, 0.76);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(41, 37, 31, 0.16);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
}

.dialog-gallery img {
  width: 100%;
  height: 420px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper-strong);
}

.dialog-info {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100%;
  padding: 74px 28px 28px;
  background: var(--white);
}

.dialog-info h2 {
  font-size: 31px;
}

.dialog-info ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.dialog-info li {
  border-top: 1px solid rgba(41, 37, 31, 0.12);
  padding-top: 10px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    display: none;
    border: 1px solid rgba(41, 37, 31, 0.12);
    border-radius: 8px;
    padding: 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
    gap: 14px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .section__heading--wide,
  .about,
  .contacts,
  .documents-grid,
  .documents-showcase,
  .photo-content,
  .brief-form,
  .document-card:not(.document-card--placeholder),
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .portfolio-grid,
  .service-list,
  .tariff-grid,
  .kit-grid,
  .drawing-cards,
  .photo-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article:nth-child(2n) {
    border-right: 0;
    margin-right: 0;
  }

  .dialog-info {
    position: static;
    padding-top: 28px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 88vh;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin-bottom: 132px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__stats {
    right: 16px;
    bottom: 20px;
    left: 16px;
  }

  .section,
  .contacts,
  .site-footer {
    width: calc(100% - 32px);
  }

  .section {
    padding: 66px 0;
  }

  .tariffs--featured {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .tariff-card {
    min-height: auto;
  }

  .intro-grid,
  .portfolio-grid,
  .service-list,
  .tariff-grid,
  .kit-grid,
  .drawing-cards,
  .photo-grid,
  .timeline,
  .dialog-gallery {
    grid-template-columns: 1fr;
  }

  .service-list article,
  .intro-grid article,
  .kit-card,
  .timeline article {
    min-height: auto;
  }

  .timeline article {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(41, 37, 31, 0.12);
    margin-right: 0 !important;
    padding-bottom: 24px;
  }

  .timeline span {
    margin-bottom: 20px;
  }

  .about__media img {
    height: 520px;
  }

  .contacts {
    padding: 28px;
  }

  .dialog-gallery img {
    height: auto;
    max-height: 72vh;
  }

  .faq {
    padding-top: 36px;
  }

  .faq .section__heading {
    margin-bottom: 24px;
  }

  .faq-list {
    gap: 10px;
  }

  .faq-list summary {
    min-height: 0;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    font-size: 16px;
    line-height: 1.35;
  }

  .faq-list summary::after {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
  }

  .faq-list p {
    margin: -2px 18px 18px;
    font-size: 14px;
  }
}
