:root {
  color-scheme: dark;
  --ink: #f7f1e8;
  --muted: #c9c0b3;
  --soft: #8f887d;
  --dark: #141415;
  --panel: #1e201f;
  --line: rgba(232, 247, 247, 0.16);
  --gold: #cfa66a;
  --sage: #87926f;
  --wine: #8b343f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(14, 15, 15, 0.88), rgba(14, 15, 15, 0.35));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 90px) 84px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 10, 10, 0.92) 0%, rgba(9, 10, 10, 0.62) 42%, rgba(9, 10, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(20, 21, 21, 1) 0%, rgba(20, 21, 21, 0) 42%);
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #17130d;
  border-color: var(--gold);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

section:not(.hero) {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 6vw, 90px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 760px);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: #181918;
}

.portrait-wrap {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-text h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-text p:not(.section-kicker),
.contact p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 760px;
}

.services {
  background: linear-gradient(180deg, #141515, #20211f);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: var(--panel);
}

.service-grid span {
  color: var(--sage);
  font-weight: 900;
}

.service-grid h3 {
  margin: 50px 0 12px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.portfolio {
  background: #111212;
}

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

.gallery-item {
  position: relative;
  width: 100%;
  min-height: 250px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #242424;
  cursor: pointer;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(207, 166, 106, 0);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(207, 166, 106, 0.95);
}

.gallery-item:hover img {
  transform: scale(1.055);
  filter: contrast(1.04) saturate(1.04);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(135, 146, 111, 0.22), transparent 38%),
    linear-gradient(315deg, rgba(139, 52, 63, 0.2), transparent 42%),
    #191a19;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.contact-card a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
}

.contact-card a::after {
  content: ">";
  color: var(--gold);
}

footer {
  padding: 22px clamp(20px, 6vw, 90px);
  color: var(--soft);
  background: #101111;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  text-align: center;
}


@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 150px;
  }

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

  .portrait-wrap {
    max-width: 440px;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    background: linear-gradient(180deg, rgba(14, 15, 15, 0.9), transparent);
  }

  nav {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 90svh;
    padding: 150px 20px 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 10, 10, 0.9) 0%, rgba(9, 10, 10, 0.5) 100%),
      linear-gradient(0deg, rgba(20, 21, 21, 1) 0%, rgba(20, 21, 21, 0.08) 58%);
  }

  .button {
    width: 100%;
  }

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

  .service-grid article {
    min-height: auto;
  }

  .service-grid h3 {
    margin-top: 32px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}


.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--gold);
  color: #17130d;
  border-color: var(--gold);
}

.gallery-item img {
  cursor: zoom-in;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item.is-hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

.floating-telegram {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #17130d;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 620px) {
  .floating-telegram {
    left: 18px;
    right: 18px;
  }
}

.faq-section {
  background: #171818;
}

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

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-question span {
  transform: rotate(45deg);
}

.request-section {
  background:
    linear-gradient(135deg, rgba(207, 166, 106, 0.13), transparent 35%),
    #111212;
}

.telegram-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.telegram-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.telegram-form input,
.telegram-form select,
.telegram-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.telegram-form input:focus,
.telegram-form select:focus,
.telegram-form textarea:focus {
  border-color: var(--gold);
}

.telegram-form textarea {
  resize: vertical;
}

.telegram-form button {
  justify-self: start;
  margin-top: 6px;
}

@media (max-width: 620px) {
  .telegram-form button {
    width: 100%;
  }
}