:root {
  --bg: #f8f6f2;
  --bg-soft: #ffffff;
  --line: rgba(28, 26, 23, 0.1);
  --text: #1c1a17;
  --muted: #6b665c;
  --accent: #c45c26;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --photo-ring: #d4cdc2;
  --shadow: 0 8px 32px rgba(28, 26, 23, 0.06);
  --shadow-hover: 0 20px 48px rgba(28, 26, 23, 0.12);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s var(--ease) infinite alternate;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(196, 92, 38, 0.18);
}

.blob-2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: rgba(212, 180, 140, 0.35);
  animation-delay: -6s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  top: 45%;
  right: 15%;
  background: rgba(255, 255, 255, 0.9);
  animation-delay: -12s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e8a06a);
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 8vw;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.04);
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

main {
  padding: 0 8vw 80px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 40px;
  min-height: 0;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-in {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s var(--ease) forwards;
}

.hero-in:nth-child(1) { animation-delay: 0.05s; }
.hero-in:nth-child(2) { animation-delay: 0.15s; }
.hero-in:nth-child(3) { animation-delay: 0.25s; }
.hero-in:nth-child(4) { animation-delay: 0.35s; }

.hero-photo.hero-in {
  animation-delay: 0.4s;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  max-width: none;
  margin-bottom: 16px;
}

.lead {
  max-width: none;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e07a3a);
  box-shadow: 0 12px 28px rgba(196, 92, 38, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(196, 92, 38, 0.36);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: #fff;
}

.hero-photo {
  position: relative;
  width: 222px;
  height: 222px;
  flex-shrink: 0;
}

.photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #e8a06a, #f8f6f2, var(--accent));
  animation: spin 8s linear infinite;
}

.hero-photo img,
.photo-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 4px solid var(--bg-soft);
}

.photo-fallback {
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 4.5rem;
  color: var(--accent);
}

.section {
  padding: 88px 0 8px;
}

.section-head {
  margin-bottom: 36px;
  max-width: 22ch;
}

.section-head-wide {
  max-width: 42ch;
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 46ch;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease) var(--delay, 0s),
    transform 0.7s var(--ease) var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.25rem;
  transition: transform 0.35s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card-label {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card p,
.work p,
.contacts-lead {
  color: var(--muted);
}

.growth-card {
  display: flex;
  flex-direction: column;
}

.growth-card .growth-stat {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.growth-stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

.growth-card .work-more {
  margin-top: auto;
  padding-top: 16px;
}

.works {
  list-style: none;
  display: grid;
  gap: 16px;
}

.contacts-panel,
.work {
  padding: 40px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.work {
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  height: 420px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.work:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}

.work-gallery {
  position: relative;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ebe7e0;
}

.work-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.work-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.work-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.work-gallery-slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.work-gallery-slide img[src*="jishi"],
.work-gallery-slide img[src*="urentcar"],
.work-gallery-slide img[src*="artmedia"],
.work-gallery-slide img[src*="urent-"],
.work-gallery-slide img[src*="geduko"],
.work-gallery-slide img[src*="karting-kbr"] {
  object-fit: contain;
  background: #f3eee8;
}

.work-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(28, 26, 23, 0.12);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.work-gallery:hover .work-gallery-btn,
.work-gallery:focus-within .work-gallery-btn {
  opacity: 1;
}

.work-gallery-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.work-gallery-btn--prev {
  left: 12px;
}

.work-gallery-btn--next {
  right: 12px;
}

.work-gallery.is-single .work-gallery-btn {
  display: none;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.work-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.work-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 0;
  overflow: hidden;
}

.work p {
  margin: 0;
}

.work-period {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.work h3 a {
  transition: color 0.25s var(--ease);
}

.work h3 a:hover,
.work:hover h3 a {
  color: var(--accent);
}

.work-more {
  display: inline-flex;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.work-more:hover {
  transform: translateX(4px);
}

.work h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
  transition: color 0.25s var(--ease);
}

.work:hover h3 {
  color: var(--accent);
}

.contacts {
  padding-bottom: 24px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.contacts-grid--solo {
  grid-template-columns: 1fr;
  max-width: none;
}

.lead-form.is-hidden,
.lead-form[hidden] {
  display: none;
}

.contacts-lead {
  max-width: 46ch;
  margin: -12px 0 28px;
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-list-compact {
  grid-template-columns: 1fr;
}

.contact-item {
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 12px 28px rgba(28, 26, 23, 0.08);
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-item a {
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

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

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.lead-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #2f7a3e;
}

.form-status.is-error {
  color: #b42318;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 500;
  position: relative;
  padding-right: 28px;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-family: "Manrope", sans-serif;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
}

.site-footer {
  padding: 28px 8vw 40px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.project-page {
  padding: 28px 8vw 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.back-link:hover {
  color: var(--accent);
}

.project-hero {
  margin-bottom: 28px;
}

.project-hero h1 {
  max-width: 18ch;
  margin-bottom: 16px;
}

.project-hero .lead {
  max-width: 58ch;
  margin-bottom: 18px;
}

.project-gallery {
  min-height: 320px;
  margin-bottom: 36px;
}

.project-gallery .work-gallery-slide img {
  min-height: 320px;
  height: 320px;
  object-fit: contain;
  background: #f3eee8;
}

.project-gallery .work-gallery-btn {
  opacity: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 320px);
  gap: 32px;
  align-items: start;
}

.project-content h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 28px 0 12px;
}

.project-content h2:first-child {
  margin-top: 0;
}

.project-content p,
.project-content li {
  color: var(--muted);
  max-width: 62ch;
}

.project-content ul {
  margin: 0 0 8px 1.1em;
  display: grid;
  gap: 8px;
}

.project-aside {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
}

.project-meta {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-meta h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.project-meta dl {
  display: grid;
  gap: 14px;
}

.project-meta dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-meta dl div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-meta dt {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-meta dd {
  font-weight: 600;
}

.project-aside .btn {
  width: 100%;
}

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

@keyframes float {
  to {
    transform: translate3d(24px, -30px, 0) scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .work {
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header,
  main,
  .site-footer,
  .project-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-photo {
    order: -1;
    width: 168px;
    height: 168px;
  }

  .services,
  .work,
  .contact-list,
  .contacts-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .work {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .work-gallery {
    height: 220px;
  }

  .work-gallery-slide img {
    min-height: 160px;
    height: 160px;
  }

  .work .work-gallery-slide img {
    height: 100%;
    min-height: 0;
  }

  .project-gallery .work-gallery-slide img {
    min-height: 220px;
    height: 220px;
  }

  .project-aside {
    position: static;
  }

  .work-gallery-btn {
    opacity: 1;
  }

  .contacts-panel,
  .work {
    padding: 28px 22px;
  }

  .work:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blob,
  .photo-ring,
  .hero-in {
    animation: none;
  }

  .hero-in,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .work:hover,
  .contact-item:hover {
    transform: none;
  }
}

/* --- Регионы (SEO) --- */
.region-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.region-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.region-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.region-links span {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.footer-regions a {
  color: var(--muted);
}
.region-cases {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 12px 0 8px;
}
.region-cases li {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.project-content .faq-list {
  margin-top: 12px;
}
