:root {
  --bg: #11100f;
  --bg-soft: #1c1715;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(93, 57, 22, 0.14);
  --primary: #d60000;
  --primary-dark: #9f0000;
  --gold: #d6a65b;
  --blue: #8b1a1a;
  --cream: #fbf6ee;
  --shadow: 0 24px 80px rgba(58, 33, 14, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 252, 247, 0.9);
  border-bottom: 1px solid rgba(214, 166, 91, 0.22);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: 156px;
  height: auto;
  object-fit: contain;
}

.brand-text {
  max-width: 270px;
  color: #6b4a24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 26px;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
}

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

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(214, 0, 0, 0.2);
}

.section-pad {
  padding: 88px clamp(20px, 6vw, 92px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 46px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 0, 0, 0.32), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(214, 166, 91, 0.22), transparent 30%),
    linear-gradient(135deg, #100b09 0%, #241813 52%, #080705 100%);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  content: "";
  background: rgba(214, 0, 0, 0.22);
  border-radius: 50%;
  filter: blur(18px);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 16px 36px rgba(214, 0, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7e0000, var(--primary));
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card {
  padding: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(214, 166, 91, 0.08));
  border: 1px solid rgba(214, 166, 91, 0.34);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
}

.card-title {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.metric-main {
  margin: 22px 0 4px;
  color: var(--gold);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 900;
  line-height: 1;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.72);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.mini-grid span {
  padding: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(214, 166, 91, 0.2);
  border-radius: 20px;
}

.mini-grid strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
  background: #fffaf3;
}

.intro-text,
.section-title p,
.media-card p,
.advantage-item p,
.process-grid p,
.contact p,
.site-footer p {
  color: var(--muted);
  line-height: 1.85;
}

.intro-text {
  margin: 0;
  font-size: 18px;
}

.section-title.center {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title:not(.center) {
  max-width: 720px;
}

.media {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}

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

.media-card,
.advantage-item,
.process-grid div,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.media-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
}

.media-visual {
  position: relative;
  height: 190px;
  margin: 0 0 22px;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(135deg, #fff8ef, #f4eadc);
  border-radius: 20px;
}

.media-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.media-card:hover .media-visual img {
  transform: scale(1.04);
}

.icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #8f0808, var(--primary));
  border-radius: 16px;
}

.advantages {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  background: var(--bg);
}

.advantages h2,
.contact h2 {
  color: #fff;
}

.advantage-list {
  display: grid;
  gap: 16px;
}

.advantage-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.advantage-item strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
}

.advantage-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.scenes {
  background: #fff;
}

.case-gallery {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

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

.gallery-item {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8ef, #eadcc8);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.94;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(138, 0, 0, 0.92), rgba(214, 0, 0, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.scene-tags span {
  padding: 14px 22px;
  color: #1e293b;
  font-weight: 700;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.process {
  background: var(--cream);
}

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

.process-grid div {
  padding: 26px;
}

.process-grid b {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 32px;
}

.process-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.process-grid p {
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 11, 9, 0.96), rgba(35, 23, 18, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(214, 0, 0, 0.32), transparent 34%);
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-card {
  padding: 30px;
  color: var(--text);
}

.contact-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 24px;
}

.contact-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 20px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(214, 0, 0, 0.2);
}

.qr-box {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  background: #fff8ef;
  border: 1px solid rgba(214, 166, 91, 0.26);
  border-radius: 22px;
}

.qr-box img {
  display: block;
  width: min(240px, 100%);
  height: auto;
  border-radius: 14px;
}

.qr-box span {
  color: #6b4a24;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 92px);
  background: #070b15;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero,
  .intro,
  .advantages,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .gallery-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .header-phone {
    width: 100%;
  }

  .section-pad {
    padding: 64px 20px;
  }

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

  .hero-text {
    font-size: 17px;
  }

  .hero-card {
    padding: 24px;
  }

  .mini-grid,
  .media-grid,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .media-visual {
    height: 240px;
  }

  .gallery-item {
    min-height: 300px;
  }
}
