:root {
  --bg-primary: #0c0c0d;
  --bg-secondary: #171719;
  --bg-card: #111113;
  --text-primary: #f7f7f8;
  --text-muted: #b8b8bf;
  --accent: #ff7a00;
  --accent-soft: #ff9e45;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(255, 122, 0, 0.15), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(255, 122, 0, 0.1), transparent 40%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.home-page {
  background-image:
    linear-gradient(125deg, rgba(8, 8, 9, 0.92) 0%, rgba(12, 12, 13, 0.82) 42%, rgba(18, 18, 20, 0.9) 100%),
    radial-gradient(circle at 18% 22%, rgba(255, 122, 0, 0.2), transparent 46%),
    radial-gradient(circle at 86% 14%, rgba(255, 122, 0, 0.14), transparent 44%),
    url("../assets/media/hero-studio.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.services-page {
  background-image:
    linear-gradient(125deg, rgba(8, 8, 9, 0.92) 0%, rgba(12, 12, 13, 0.84) 42%, rgba(18, 18, 20, 0.9) 100%),
    radial-gradient(circle at 12% 25%, rgba(255, 122, 0, 0.2), transparent 44%),
    radial-gradient(circle at 82% 12%, rgba(255, 122, 0, 0.12), transparent 42%),
    url("../assets/media/service-recording.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.services-page .hero--upper {
  padding-top: 12.5rem;
}

.contacts-page {
  background-image:
    linear-gradient(125deg, rgba(8, 8, 9, 0.92) 0%, rgba(12, 12, 13, 0.84) 42%, rgba(18, 18, 20, 0.9) 100%),
    radial-gradient(circle at 16% 24%, rgba(255, 122, 0, 0.2), transparent 46%),
    radial-gradient(circle at 88% 16%, rgba(255, 122, 0, 0.14), transparent 42%),
    url("../assets/media/contacts-map.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.about-page {
  background-image:
    linear-gradient(125deg, rgba(8, 8, 9, 0.92) 0%, rgba(12, 12, 13, 0.84) 42%, rgba(18, 18, 20, 0.9) 100%),
    radial-gradient(circle at 16% 22%, rgba(255, 122, 0, 0.18), transparent 44%),
    radial-gradient(circle at 84% 14%, rgba(255, 122, 0, 0.12), transparent 40%),
    url("../assets/media/studio-team.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #111, #0a0a0a);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__ring {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
  box-shadow: 0 0 24px rgba(255, 122, 0, 0.35);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  color: #ffffff;
  max-width: min(62vw, 360px);
}

.logo__mark {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.site-nav {
  display: none;
  position: absolute;
  right: 1rem;
  top: 84px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.45rem 0.5rem;
  display: block;
  border-radius: 10px;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(255, 122, 0, 0.14);
  color: var(--text-primary);
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  font: inherit;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.btn-primary {
  color: #0d0d0e;
  background: linear-gradient(135deg, var(--accent), #ff9f4d);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.36);
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
}

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

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero--center {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
}

.hero--center .container {
  text-align: center;
}

.hero--center .lead {
  margin-inline: auto;
}

.hero--center .actions {
  justify-content: center;
}

.hero--upper {
  align-items: start;
  padding-top: 5.5rem;
}

.hero--top {
  min-height: auto;
  display: block;
  padding-top: 8.5rem;
  padding-bottom: 3.2rem;
}

.hero--top .container {
  text-align: center;
}

.hero--top .lead {
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.kicker {
  display: inline-block;
  color: var(--accent-soft);
  margin-bottom: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.section {
  padding: 4rem 0;
}

.section > .container > h2,
.section > .container > .lead {
  text-align: center;
  margin-inline: auto;
}

.section--tight-top {
  padding-top: 4.8rem;
}

.section--contacts-lift {
  margin-top: -22vh;
  position: relative;
  z-index: 2;
}

.lead {
  color: var(--text-muted);
  max-width: 58ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.actions--center {
  justify-content: center;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.card-grid > * {
  height: 100%;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 1.05rem;
}

.card p,
.meta {
  margin: 0;
  color: var(--text-muted);
}

.icon {
  width: 36px;
  height: 36px;
}

.portfolio-item,
.price-item,
.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item .content,
.price-item .content,
.review .content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.about-panel,
.adv-list,
.contacts-grid,
.cta-box {
  display: grid;
  gap: 1rem;
}

.adv-list {
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.adv-list > * {
  height: 100%;
}

.adv {
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.13), rgba(255, 122, 0, 0.03));
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: var(--radius);
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contacts-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.contacts-grid > * {
  height: 100%;
}

.contacts-grid--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.contacts-grid--row .contact-item {
  min-width: 0;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 0.95rem 0.95rem;
  display: grid;
  justify-items: center;
  align-content: start;
  grid-template-rows: 112px auto auto;
  gap: 0.75rem;
  text-align: center;
  min-height: 230px;
  width: 100%;
}

.contact-item__icon {
  width: 112px;
  height: 112px;
  margin-top: 0.1rem;
  filter: brightness(0) invert(1);
}

.contact-item .meta {
  text-align: center;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  line-height: 1.35;
  max-width: 100%;
}

.contact-item .meta-warning {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--accent-soft);
}

.cta-box {
  background: linear-gradient(160deg, rgba(255, 122, 0, 0.2), rgba(255, 122, 0, 0.05));
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.2rem;
  justify-items: center;
  text-align: center;
}

.map-embed {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: #101012;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.74);
  z-index: 120;
}

.modal.open {
  display: flex;
}

.modal__dialog {
  width: min(560px, 100%);
  background: #111113;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

.input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f0f10;
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

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

.modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #141416;
  border: 1px solid rgba(255, 122, 0, 0.32);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 140;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.home-page .cta-box > div {
  display: flex;
  justify-content: center;
}

.services-page .card-grid,
.prices-page .card-grid,
.home-page #services .card-grid,
.home-page #prices .card-grid {
  grid-template-columns: minmax(260px, 320px);
  justify-content: center;
}

@media (min-width: 701px) and (max-width: 999px) {
  .card-grid,
  .adv-list,
  .contacts-grid,
  .contacts-grid--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-page .card-grid,
  .prices-page .card-grid,
  .home-page #services .card-grid,
  .home-page #prices .card-grid {
    grid-template-columns: repeat(2, minmax(260px, 320px));
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .card-grid,
  .adv-list,
  .contacts-grid,
  .contacts-grid--row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .card-grid,
  .contacts-grid,
  .contacts-grid--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-page .card-grid,
  .prices-page .card-grid,
  .home-page #services .card-grid,
  .home-page #prices .card-grid {
    grid-template-columns: repeat(3, minmax(260px, 320px));
    justify-content: center;
  }

  .adv-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .section--contacts-lift {
    margin-top: -12vh;
  }
}
