:root {
  --purple-deep: #1a0528;
  --purple: #33034d;
  --purple-mid: #4a1568;
  --purple-btn: #5c1a7a;
  --purple-btn-hover: #6e228f;
  --purple-light: #b582d1;
  --gold: #c9a56a;
  --gold-light: #e8d5a3;
  --gold-dark: #a67c3d;
  --white: #ffffff;
  --text: #1a1020;
  --muted: #6b6473;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background:
    linear-gradient(90deg, rgba(201, 165, 106, 0.08), transparent 18%, transparent 82%, rgba(201, 165, 106, 0.08)),
    url("assets/pattern-bg.svg") center / 180px repeat,
    var(--purple);
  box-shadow: 0 2px 16px rgba(26, 5, 40, 0.35);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo__ornament {
  width: 10px;
  height: 36px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.logo__ornament::after {
  content: "";
  position: absolute;
  inset: 4px 2px;
  background: url("assets/ornament.svg") center / contain no-repeat;
  opacity: 0.9;
  filter: brightness(1.4);
}

.logo__text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo__lead {
  color: var(--white);
}

.logo__line {
  color: var(--purple-light);
  font-weight: 500;
}

.logo__icon {
  width: 28px;
  height: 24px;
  color: var(--white);
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--gold-light);
}

.nav__link--active {
  color: var(--white);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple-light));
  border-radius: 2px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  margin: 0 auto;
  transition: 0.25s ease;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 248, 240, 0.25) 35%, rgba(40, 10, 60, 0.15) 100%),
    linear-gradient(90deg, rgba(51, 3, 77, 0.35) 0%, transparent 18%, transparent 82%, rgba(51, 3, 77, 0.35) 100%);
}

.hero__frame {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(52px, 7vw, 88px);
  z-index: 2;
  background: linear-gradient(180deg, #2e0a45 0%, #1a0528 100%);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.hero__frame--left {
  left: 0;
}

.hero__frame--right {
  right: 0;
}

.ornament-panel {
  width: 100%;
  height: 100%;
  background: url("assets/ornament-panel.png") center top / 100% auto repeat-y;
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 48px 100px 56px;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero__title {
  font-size: clamp(1.35rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6e228f 0%, var(--purple-btn) 55%, #4a1568 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  box-shadow:
    0 8px 24px rgba(92, 26, 122, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #7d2ba0 0%, var(--purple-btn-hover) 55%, #5c1a7a 100%);
  box-shadow: 0 12px 28px rgba(92, 26, 122, 0.55);
}

.hero__billboard {
  position: absolute;
  left: clamp(70px, 10vw, 140px);
  bottom: 18px;
  z-index: 3;
  width: clamp(140px, 18vw, 220px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(201, 165, 106, 0.55);
  animation: float-in 0.9s ease both;
}

.hero__billboard img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Services ——— */
.services {
  position: relative;
  padding: 36px 24px 48px;
  background:
    url("assets/pattern-bg.svg") center / 280px repeat,
    #faf8fc;
  background-blend-mode: soft-light, normal;
}

.services__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: url("assets/pattern-bg.svg") center / 200px repeat;
  pointer-events: none;
  filter: invert(1);
}

.services__grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: 4px;
  min-height: 150px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(51, 3, 77, 0.08);
  border: 1px solid rgba(201, 165, 106, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(51, 3, 77, 0.14);
}

.service-card__edge {
  width: 22px;
  flex-shrink: 0;
  background:
    url("assets/ornament-panel.png") center / cover;
  border-right: 1px solid var(--gold);
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.service-card__body::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 120%;
  background: url("assets/ornament-panel.png") center / cover;
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--purple-mid);
  position: relative;
  z-index: 1;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--purple);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* ——— Portfolio ——— */
.portfolio {
  padding: 56px 24px 72px;
  background:
    linear-gradient(180deg, #fff 0%, #f7f3fa 100%);
  position: relative;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/pattern-bg.svg") center / 320px repeat;
  opacity: 0.035;
  filter: invert(1);
  pointer-events: none;
}

.portfolio__head {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
}

.portfolio__title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.divider__line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider__ornament {
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  box-shadow: 0 0 0 1px var(--gold-dark);
}

.portfolio__grid {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 16px;
}

.portfolio__item {
  margin: 0;
}

.portfolio__item--wide {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.portfolio__item--tall {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.portfolio__item:last-child {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.portfolio__frame {
  height: 100%;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--gold), var(--purple-mid), var(--gold)) 1;
  box-shadow: 0 8px 24px rgba(26, 5, 40, 0.12);
  overflow: hidden;
  background: var(--purple-deep);
  position: relative;
}

.portfolio__frame::before,
.portfolio__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 1;
  border: 2px solid var(--gold);
  pointer-events: none;
}

.portfolio__frame::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.portfolio__frame::after {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
}

.portfolio__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio__item:hover img {
  transform: scale(1.04);
}

/* ——— About ——— */
.about {
  padding: 48px 24px 64px;
  background: #fff;
  border-top: 1px solid rgba(201, 165, 106, 0.25);
}

.about__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 14px;
}

.about__text {
  color: var(--muted);
  font-size: 1rem;
}

/* ——— Footer ——— */
.footer {
  position: relative;
  background:
    url("assets/pattern-bg.svg") center / 200px repeat,
    linear-gradient(180deg, #3a0d55 0%, #1a0528 100%);
  color: var(--white);
  overflow: hidden;
}

.footer__pattern {
  position: absolute;
  inset: 0;
  background: url("assets/ornament.svg") 10% center / 90px auto no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 28px;
  align-items: start;
}

.logo--footer .logo__text {
  font-size: 1.5rem;
}

.footer__address,
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 106, 0.55);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social:hover {
  background: var(--gold);
  color: var(--purple-deep);
  border-color: var(--gold);
}

.footer__bottom {
  position: relative;
  border-top: 1px solid rgba(201, 165, 106, 0.25);
  text-align: center;
  padding: 16px 20px 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .portfolio__item--wide,
  .portfolio__item--tall,
  .portfolio__item:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio__item--tall {
    grid-row: span 2;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--purple);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    padding: 14px 28px;
  }

  .nav__link--active::after {
    left: 28px;
    right: auto;
    width: 64px;
  }

  .hero__content {
    padding: 40px 72px 120px;
  }

  .hero__billboard {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: 130px;
  }

  .hero__frame {
    width: 40px;
  }
}

@media (max-width: 560px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .portfolio__item--tall {
    grid-row: auto;
  }

  .portfolio__frame {
    min-height: 200px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__eyebrow {
    letter-spacing: 0.04em;
  }
}

/* ——— Clickable service card ——— */
.service-card--link {
  color: inherit;
  cursor: pointer;
}

.service-card--link:hover .service-card__title {
  color: var(--purple-btn);
}

/* ——— Inner service page ——— */
.page-hero {
  position: relative;
  padding: 72px 24px 64px;
  background:
    linear-gradient(135deg, rgba(51, 3, 77, 0.92), rgba(92, 26, 122, 0.88)),
    url("assets/hero-cityscape.jpg") center / cover;
  color: var(--white);
  overflow: hidden;
}

.page-back {
  position: absolute;
  top: 20px;
  left: 64px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs {
  position: absolute;
  top: 28px;
  left: 124px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
  color: var(--gold-light);
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-back svg {
  width: 22px;
  height: 22px;
}

.page-back:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--gold-light);
  transform: translateX(-2px);
}

.page-hero__frame {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: url("assets/ornament-panel.png") center / cover;
  opacity: 0.85;
}

.page-hero__frame--left { left: 0; }
.page-hero__frame--right { right: 0; }

.page-hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
}

.page-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.page-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.page-section {
  padding: 56px 24px;
  background: var(--white);
}

.page-section--alt {
  background: #f7f3fa;
}

.page-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-heading {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 18px;
  line-height: 1.3;
}

.page-text {
  font-size: 1.02rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-text--accent {
  color: var(--purple);
  font-weight: 600;
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(201, 165, 106, 0.35);
  border-left: 4px solid var(--purple);
  padding: 22px 18px;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.benefit-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.benefit {
  padding: 20px 22px;
  border: 1px solid rgba(201, 165, 106, 0.3);
  background: linear-gradient(90deg, rgba(51, 3, 77, 0.04), transparent);
}

.benefit__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

.benefit__text {
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.steps__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 165, 106, 0.25);
}

.steps__item:last-child {
  border-bottom: 0;
}

.steps__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
}

.steps__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
}

.steps__text {
  color: var(--muted);
  line-height: 1.6;
}

.page-cta {
  padding: 64px 24px;
  background:
    linear-gradient(180deg, #3a0d55 0%, #1a0528 100%);
  color: var(--white);
  text-align: center;
}

.page-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-cta__title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__frame {
    width: 28px;
  }

  .page-back {
    left: 40px;
  }

  .breadcrumbs {
    left: 96px;
    top: 30px;
    max-width: calc(100% - 120px);
  }
}

@media (max-width: 560px) {
  .steps__item {
    grid-template-columns: 48px 1fr;
  }

  .page-hero {
    padding: 96px 16px 44px;
  }

  .page-hero__inner {
    padding: 0 12px;
  }

  .page-back {
    left: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
  }

  .breadcrumbs {
    left: 64px;
    top: 24px;
    font-size: 0.75rem;
  }
}

