:root {
  --bg: #e9dfd1;
  --bg-elevated: rgba(252, 246, 237, 0.88);
  --bg-soft: #f4ecdf;
  --line: rgba(95, 75, 48, 0.14);
  --line-strong: rgba(173, 124, 53, 0.3);
  --text: #2d241a;
  --muted: #6f604f;
  --soft: #90816f;
  --accent: #c59048;
  --accent-strong: #ddb166;
  --accent-deep: #8e632f;
  --shadow: 0 24px 68px rgba(110, 88, 56, 0.16);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(221, 177, 102, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(202, 156, 92, 0.18), transparent 24%),
    linear-gradient(180deg, #efe6da 0%, #e5d8c9 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(115, 90, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 90, 59, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  opacity: 0.4;
}

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

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

figure {
  margin: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
}

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

.topbar,
.hero,
.info-band,
.section,
.footer {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  margin-top: 18px;
  background: rgba(248, 242, 233, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(117, 89, 53, 0.12);
  animation: slideDown 0.8s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  color: var(--accent-deep);
  border: 1px solid rgba(173, 124, 53, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.92), rgba(233, 220, 204, 0.9));
  box-shadow: 0 10px 26px rgba(197, 144, 72, 0.14);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow,
.section-kicker,
.card-label,
.project-meta {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.69rem;
  font-weight: 600;
}

.eyebrow,
.card-label,
.project-meta {
  color: var(--soft);
}

.brand-name {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.contact-item a:hover {
  color: var(--accent-deep);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.topbar-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #1a1309;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 34px rgba(222, 170, 83, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.topbar-contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(222, 170, 83, 0.28);
  filter: saturate(1.04);
}

.topbar-contact-link img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.topbar-contact-link-telegram img {
  width: 27px;
  height: 27px;
}

.topbar-contact-link-whatsapp img {
  width: 31px;
  height: 31px;
}

.topbar-contact-link-mail img {
  width: 30px;
  height: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  color: #1a1309;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 34px rgba(222, 170, 83, 0.22);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.3);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  margin-top: 18px;
  padding: 0 0 36px;
  align-items: start;
  background: linear-gradient(180deg, rgba(251, 246, 239, 0.92), rgba(239, 231, 220, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card,
.info-band article,
.stack-card,
.service-card,
.project-layout,
.cooperation-card,
.contact-panel,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  padding: 30px 38px 20px;
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  animation: rise 0.9s ease both;
}

.section-kicker {
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.section-heading h2,
.contact-copy h2,
.hero-card-main h2,
.stack-card h3,
.service-card h3,
.project-details h3,
.cooperation-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-heading h2,
.contact-copy h2,
.hero-card-main h2,
.stack-card h3,
.service-card h3,
.project-details h3,
.cooperation-card h3 {
  line-height: 0.98;
}

.hero-portrait {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 2 / 3;
  min-height: 0;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(173, 124, 53, 0.14);
  background: transparent;
}

.hero-slide {
  --hero-delay: 0s;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  animation: heroSlideshow 20s infinite both;
  animation-delay: var(--hero-delay);
}

.hero-slide:nth-of-type(1) {
  --hero-delay: 0s;
}

.hero-slide:nth-of-type(2) {
  --hero-delay: -15s;
}

.hero-slide:nth-of-type(3) {
  --hero-delay: -10s;
}

.hero-slide:nth-of-type(4) {
  --hero-delay: -5s;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.24));
  opacity: 0;
  animation: heroSlideWash 20s infinite both;
  animation-delay: var(--hero-delay);
}

.hero-portrait::after {
  content: none;
}

.hero-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, 56% 28%);
  filter: none;
}

.section-heading h2,
.contact-copy h2 {
  line-height: 0.92;
}

.about-copy p,
.service-card p,
.project-points dd,
.cooperation-card p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 38px 0;
}

.hero-metrics article,
.info-band article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.38);
}

.hero-metrics article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 126px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.hero-metrics article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(221, 177, 102, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 76%);
  transition: opacity 220ms ease;
}

.hero-metrics article:hover,
.hero-metrics article:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(173, 124, 53, 0.24);
  box-shadow: 0 28px 64px rgba(110, 88, 56, 0.18);
}

.hero-metrics article:hover::before,
.hero-metrics article:focus-visible::before {
  opacity: 1;
}

.hero-metrics article:focus-visible {
  outline: 2px solid rgba(173, 124, 53, 0.34);
  outline-offset: 4px;
}

.metric-card-copy {
  position: relative;
  z-index: 2;
}

.metric-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.03em;
  min-width: 3ch;
}

.metric-value-number {
  display: inline-block;
  min-width: 2ch;
}

.metric-value-suffix {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.14em) scale(0.82);
  transform-origin: left bottom;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-value-suffix.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  color: var(--accent-deep);
}

.metric-card-copy > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-pattern-fill,
.metric-route-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.metric-pattern-fill {
  inset: 14px 22px 14px 46%;
  overflow: hidden;
  border-radius: 18px;
}

.metric-pattern-surface {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(0deg, rgba(221, 177, 102, 0.98), rgba(221, 177, 102, 0.98)),
    url("./assets/ui/diagonal-parquet-reference.png")
    center / 112% auto no-repeat;
  background-blend-mode: color;
  filter: brightness(0.98) contrast(0.92);
  clip-path: polygon(-28% 100%, 4% 100%, -18% 0, -50% 0);
  transform: scale(1.02);
  transition:
    opacity 180ms ease,
    clip-path 980ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-card-pattern:hover .metric-pattern-fill,
.metric-card-pattern:focus-visible .metric-pattern-fill {
  opacity: 1;
}

.metric-card-pattern:hover .metric-pattern-surface,
.metric-card-pattern:focus-visible .metric-pattern-surface {
  opacity: 0.75;
  clip-path: polygon(-28% 100%, 126% 100%, 104% 0, -18% 0);
  transform: scale(1);
}

.metric-route-visual {
  opacity: 0;
  transition: opacity 180ms ease;
}

.metric-route-map {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  overflow: visible;
}

.metric-route-line {
  fill: none;
  stroke: rgba(173, 124, 53, 0.38);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-route-node {
  fill: var(--accent-strong);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
  filter: drop-shadow(0 0 10px rgba(221, 177, 102, 0.32));
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.metric-route-car {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(173, 124, 53, 0.24);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 14px 30px rgba(110, 88, 56, 0.14);
  color: var(--accent-deep);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(8deg) scale(0.86);
  will-change: left, top, transform, opacity;
}

.metric-route-car svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card-route:hover .metric-route-visual,
.metric-card-route:focus-visible .metric-route-visual {
  opacity: 1;
}

.metric-card-route:hover .metric-route-line,
.metric-card-route:focus-visible .metric-route-line {
  stroke-dashoffset: 0;
}

.metric-card-route:hover .metric-route-node,
.metric-card-route:focus-visible .metric-route-node {
  opacity: 1;
  transform: scale(1);
}

.metric-card-route:hover .metric-route-car,
.metric-card-route:focus-visible .metric-route-car {
  opacity: 1;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  animation: rise 1s ease 0.12s both;
  overflow: hidden;
  border-left: 1px solid rgba(173, 124, 53, 0.16);
  padding-left: 40px;
}

.hero-card,
.stack-card,
.service-card,
.cooperation-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.76), rgba(241, 233, 223, 0.7));
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: 26px;
}

.hero-card-main {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-card-main h2 {
  margin-top: 0;
  max-width: 100%;
  font-size: clamp(1.45rem, 1.85vw, 2.05rem);
  line-height: 1.02;
  white-space: normal;
  text-wrap: balance;
}

.hero-bio {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  max-width: 48ch;
}

.hero-bio p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-lead {
  margin: 0;
}

.hero-proof-block {
  display: grid;
  gap: 12px;
}

.hero-proof-title {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.hero-proof-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 10px;
}

.hero-proof {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.hero-proof::marker {
  color: var(--muted);
}

.hero-proof-intro {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.hero-socials {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  justify-items: start;
}

.hero-work-cta {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.hero-work-button {
  margin-inline: auto;
  letter-spacing: 0.03em;
  color: #1a1309;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 34px rgba(222, 170, 83, 0.22);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(173, 124, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.6);
  color: var(--text);
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.hero-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(173, 124, 53, 0.4);
  background: rgba(255, 248, 237, 0.92);
  color: var(--accent-deep);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(197, 144, 72, 0.12);
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon-filled svg {
  fill: currentColor;
  stroke: none;
}

.feature-list,
.upgrade-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature-list li,
.upgrade-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li + li,
.upgrade-list li + li {
  margin-top: 12px;
}

.feature-list li::before,
.upgrade-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(222, 170, 83, 0.4);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-grid span {
  padding: 10px 14px;
  border: 1px solid rgba(222, 170, 83, 0.18);
  border-radius: 999px;
  background: rgba(197, 144, 72, 0.1);
  color: var(--text);
  font-size: 0.9rem;
}

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

.info-band article {
  min-height: 168px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: rise 0.9s ease both;
}

.info-band article:nth-child(2) {
  animation-delay: 0.08s;
}

.info-band article:nth-child(3) {
  animation-delay: 0.16s;
}

.info-band span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  color: var(--accent-deep);
}

.section {
  padding: 110px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

.about-grid,
.project-layout,
.cooperation-grid,
.contact-panel {
  display: grid;
  gap: 24px;
}

.about-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.about-copy {
  display: grid;
  gap: 20px;
  padding-right: 18px;
}

.about-stack {
  display: grid;
  gap: 18px;
}

.stack-card,
.service-card,
.cooperation-card {
  padding: 28px;
}

.stack-card h3,
.service-card h3,
.project-details h3,
.cooperation-card h3 {
  margin: 8px 0 12px;
  font-size: 1.9rem;
  line-height: 1.05;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 170, 83, 0.16), transparent 70%);
  transition:
    transform 260ms ease,
    opacity 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(222, 170, 83, 0.58), rgba(222, 170, 83, 0));
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(173, 124, 53, 0.28);
  box-shadow: 0 28px 64px rgba(110, 88, 56, 0.18);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(244, 235, 225, 0.82));
}

.service-card:hover::after,
.service-card:focus-within::after {
  opacity: 1;
  transform: translate3d(-10px, -8px, 0) scale(1.06);
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover h3,
.service-card:focus-within h3 {
  color: var(--accent-deep);
}

.project-heading {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.project .section-heading h2 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 0.95;
}

.project-lead {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.78;
}

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

.project-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  align-content: start;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.92), rgba(236, 226, 213, 0.98));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-preview:hover {
  transform: translateY(-3px);
  border-color: rgba(173, 124, 53, 0.26);
  box-shadow: 0 30px 72px rgba(110, 88, 56, 0.18);
}

.project-preview:focus-visible {
  outline: 2px solid rgba(173, 124, 53, 0.44);
  outline-offset: 6px;
}

.project-preview-visual,
.project-featured,
.project-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(173, 124, 53, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.84), rgba(241, 233, 223, 0.76));
  box-shadow: var(--shadow);
}

.project-preview-visual img,
.project-featured img,
.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.project-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.project-preview-copy h3,
.project-modal-header h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-preview-copy h3 {
  font-size: clamp(1.9rem, 3.1vw, 2.55rem);
  line-height: 0.98;
}

.project-preview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: auto;
  align-self: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(173, 124, 53, 0.22);
  background: rgba(255, 249, 241, 0.86);
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.project-preview-cta::after {
  content: "→";
  font-size: 1rem;
}

.project-modal {
  width: min(calc(100% - 32px), 1120px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: none;
}

.project-modal::backdrop {
  background: rgba(45, 36, 26, 0.34);
  backdrop-filter: blur(10px);
}

.project-modal-shell {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 40px);
  padding: 28px;
  border: 1px solid rgba(173, 124, 53, 0.16);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.98), rgba(236, 226, 213, 0.99));
  box-shadow: 0 36px 90px rgba(74, 57, 33, 0.24);
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(173, 124, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.96);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.project-modal-header {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-right: 82px;
}

.project-modal-header h3 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.project-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  align-items: start;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.92), rgba(236, 226, 213, 0.98));
}

.project-layout-modal {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.project-featured figcaption,
.project-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}

.project-featured figcaption {
  color: var(--muted);
  line-height: 1.62;
}

.project-details {
  display: grid;
  align-content: start;
  gap: 22px;
  padding-top: 8px;
}

.project-summary {
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.82;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(173, 124, 53, 0.18);
  background: rgba(255, 249, 241, 0.74);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-points {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.project-points div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.project-points dt {
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.project-card strong {
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.project-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(221, 177, 102, 0.24), rgba(171, 121, 54, 0.08)),
    linear-gradient(180deg, rgba(255, 251, 245, 0.8), rgba(240, 231, 220, 0.76));
}

.section-note {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: start;
}

.review-panel {
  display: grid;
  gap: 20px;
}

.review-panel-copy {
  display: grid;
  gap: 10px;
}

.review-panel-copy h3 {
  margin: 0;
  font-size: 2rem;
}

.review-panel-copy p:last-child {
  margin: 0;
}

.review-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}

.review-shot {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.review-shot-label {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.review-shot-featured {
  grid-row: span 2;
}

.review-shot-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  overflow: hidden;
  appearance: none;
  border-radius: 24px;
  border: 1px solid rgba(173, 124, 53, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(244, 235, 225, 0.84));
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.review-shot-frame:hover,
.review-shot-frame:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(173, 124, 53, 0.34);
  box-shadow: 0 28px 64px rgba(110, 88, 56, 0.18);
}

.review-shot-frame:focus-visible {
  outline: 2px solid rgba(173, 124, 53, 0.34);
  outline-offset: 4px;
}

.review-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.trust-column {
  display: grid;
  gap: 0;
}

.certificates-card {
  display: grid;
  align-content: start;
  gap: 24px;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(221, 177, 102, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.82), rgba(241, 233, 223, 0.76));
}

.certificates-copy {
  display: grid;
  gap: 10px;
}

.certificates-copy h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 0.94;
}

.certificates-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed rgba(173, 124, 53, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.9), rgba(243, 235, 226, 0.82));
}

.certificate-sheet {
  position: absolute;
  width: 36%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(173, 124, 53, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 232, 0.96));
  box-shadow: 0 20px 46px rgba(110, 88, 56, 0.12);
}

.certificate-sheet::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(197, 144, 72, 0.14);
  background:
    linear-gradient(180deg, rgba(221, 177, 102, 0.08), transparent 24%),
    linear-gradient(rgba(173, 124, 53, 0.06) 1px, transparent 1px);
  background-size: auto, 100% 26px;
}

.certificate-sheet-back {
  transform: translate(-22%, 10%) rotate(-10deg);
}

.certificate-sheet-front {
  transform: translate(20%, -6%) rotate(8deg);
}

.certificate-stamp {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid rgba(173, 124, 53, 0.22);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

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

.certificate-brands span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(173, 124, 53, 0.18);
  background: rgba(255, 249, 241, 0.78);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.certificate-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.trust-card {
  height: 100%;
}

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

.trust-fact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.74), rgba(241, 233, 223, 0.7));
  box-shadow: var(--shadow);
}

.trust-fact span {
  display: block;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.95;
  color: var(--accent-deep);
}

.trust-fact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.review-modal {
  width: min(calc(100% - 32px), 980px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: none;
}

.review-modal::backdrop {
  background: rgba(45, 36, 26, 0.42);
  backdrop-filter: blur(10px);
}

.review-modal-shell {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 40px);
  padding: 28px;
  border: 1px solid rgba(173, 124, 53, 0.16);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.98), rgba(236, 226, 213, 0.99));
  box-shadow: 0 36px 90px rgba(74, 57, 33, 0.24);
}

.review-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(173, 124, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.96);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.review-modal-figure {
  display: grid;
  gap: 22px;
}

.review-modal-copy {
  display: grid;
  gap: 12px;
  padding-right: 82px;
}

.review-modal-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 0.95;
}

.review-modal-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.review-modal-image-frame {
  padding: 12px;
  border-radius: 28px;
  border: 1px solid rgba(173, 124, 53, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(244, 235, 225, 0.88));
  box-shadow: var(--shadow);
}

.review-modal-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
}

.contact-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(197, 144, 72, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(249, 243, 235, 0.94), rgba(236, 226, 213, 0.98));
}

.contact-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding-right: 18px;
}

.contact-note {
  max-width: 40ch;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.7;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.contact-item {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-item span {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.contact-item a {
  width: fit-content;
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-button {
  width: 100%;
  margin-top: 4px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 44px 0 48px;
  color: var(--soft);
  font-size: 0.92rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideshow {
  0%,
  20% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0;
  }
}

@keyframes heroSlideWash {
  0% {
    opacity: 0.24;
  }

  7%,
  20% {
    opacity: 0;
  }

  24%,
  100% {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
  }

  .hero-slide::after {
    animation: none;
    opacity: 0;
  }

  .hero-slide:first-of-type {
    opacity: 1;
  }

  .hero-metrics article,
  .metric-pattern-fill,
  .metric-route-visual,
  .metric-value-suffix,
  .metric-pattern-surface,
  .metric-route-car,
  .metric-route-line,
  .metric-route-node,
  .service-card,
  .service-card::before,
  .service-card::after {
    transition: none;
    animation: none;
  }

  .metric-pattern-fill,
  .metric-route-visual {
    opacity: 0;
  }

  .metric-pattern-surface {
    transform: none;
  }

  .service-card:hover,
  .service-card:focus-within {
    transform: none;
  }
}

@media (max-width: 1120px) {
  .topbar {
    border-radius: 30px;
    padding: 18px 20px;
  }

  .hero,
  .about-grid,
  .project-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid rgba(173, 124, 53, 0.16);
    padding-left: 38px;
    padding-top: 34px;
  }

  .hero-metrics {
    padding-left: 38px;
    padding-right: 38px;
  }

  .service-grid,
  .project-gallery,
  .cooperation-grid,
  .info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .certificates-card {
    aspect-ratio: auto;
    min-height: 520px;
  }

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

@media (max-width: 860px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 34px;
  }

  .project-preview,
  .project-modal-shell {
    padding: 20px;
  }

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

  .project-preview {
    gap: 14px;
  }

  .project-preview-copy {
    gap: 14px;
  }

  .project-preview-copy h3 {
    font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  }

  .project-preview-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .project-modal-header {
    padding-right: 0;
  }

  .project-modal-close {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 16px;
  }

  .review-modal-close {
    position: static;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 16px;
  }

  .review-modal-copy {
    padding-right: 0;
  }

  .hero-metrics,
  .service-grid,
  .project-gallery,
  .cooperation-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .hero-card-main h2 {
    white-space: normal;
  }

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

  .review-stack {
    grid-template-columns: 1fr;
  }

  .review-shot-featured {
    grid-row: auto;
  }

  .certificates-card {
    min-height: 440px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 2rem;
  }

  .hero-portrait {
    width: 100%;
    aspect-ratio: 2 / 3;
  }

  .hero-slide::before {
    background-position: var(--hero-focus-mobile, var(--hero-focus, 60% 24%));
  }

  .hero-slide img {
    object-position: var(--hero-focus-mobile, var(--hero-focus, 60% 24%));
  }

  .topbar,
  .hero,
  .hero-copy,
  .hero-panel,
  .project-preview,
  .project-layout,
  .contact-panel,
  .stack-card,
  .service-card,
  .cooperation-card,
  .contact-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-panel {
    padding-top: 24px;
  }

  .project-modal-shell {
    padding: 20px;
  }

  .review-modal-shell {
    padding: 20px;
  }

  .hero-metrics {
    gap: 12px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-metrics article {
    min-height: 94px;
    padding: 16px 18px;
  }

  .hero-metrics strong {
    margin-bottom: 4px;
    font-size: 1.16rem;
  }

  .metric-card-copy > span {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .metric-pattern-fill,
  .metric-route-visual {
    display: none;
  }

  .certificates-card {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .certificates-preview {
    min-height: 180px;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .project-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .project-preview {
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
  }

  .project-preview-visual {
    border-radius: 18px;
  }

  .project-preview-visual img {
    aspect-ratio: 4 / 4.8;
  }

  .project-preview-copy {
    gap: 10px;
  }

  .project-preview .project-meta {
    font-size: 0.54rem;
    line-height: 1.42;
    letter-spacing: 0.16em;
  }

  .project-preview-copy h3 {
    font-size: clamp(1.18rem, 4.2vw, 1.45rem);
    line-height: 0.98;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-preview .project-summary {
    font-size: 0.75rem;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-preview-cta {
    min-height: 34px;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-contact-link {
    width: 44px;
    height: 44px;
  }

  .section {
    padding-top: 88px;
  }
}
