/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
  --primary-color: #d4af37;
  --secondary-color: #b5891c;
  --accent-color: #dc2626;
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --bg-color: #0b0c10;
  --bg-alt: #12141a;
  --card-bg: #181b22;
  --border-color: rgba(212, 175, 55, 0.18);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 40px rgba(212, 175, 55, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

ul {
  list-style: none;
}

/* Доступность: состояния фокуса */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* ==========================================================================
   COMMON LAYOUT & TYPOGRAPHY (Mobile-First)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

.section__header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50px;
}

.section__title {
  margin-bottom: 12px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-color);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #fff3c4 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn--primary {
  color: #0b0c10;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--primary-color);
}

.btn--outline:hover {
  color: #0b0c10;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn--large {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(11, 12, 16, 0.92);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo__demon {
  color: var(--accent-color);
}

.logo__amp {
  font-weight: 400;
  color: var(--text-muted);
}

.logo__angel {
  color: var(--primary-color);
}

.nav {
  position: fixed;
  top: 72px;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: calc(100vh - 72px);
  padding: 32px 20px;
  background-color: var(--bg-color);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav__link {
  display: block;
  padding: 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
}

.burger__line {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 110px 0 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

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

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 16, 0.85) 0%,
    rgba(11, 12, 16, 0.78) 50%,
    rgba(11, 12, 16, 0.98) 100%
  );
}

.hero__content {
  max-width: 740px;
  animation: heroFadeUp 0.9s ease forwards;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(24, 27, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50px;
}

.hero__title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero__subtitle {
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: #d1d5db;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-icon {
  color: var(--primary-color);
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
  background-color: var(--bg-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
}

.feature-card__title {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card__text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card--featured {
  border-color: var(--border-color);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07) 0%, var(--card-bg) 100%);
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0b0c10;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-top: 10px;
}

.service-card__icon {
  font-size: 1.85rem;
}

.service-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.service-card__title {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card__desc {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-muted);
}

.service-card__link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
}

.service-card__link:hover {
  color: #ffffff;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  background-color: var(--bg-alt);
}

.about__wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
}

.about__title {
  text-align: left;
}

.about__text {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #d1d5db;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-color);
}

.about__stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about__img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about__img--main {
  grid-column: span 2;
  height: 240px;
}

.about__img--sub {
  height: 180px;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-size: 1rem;
  font-weight: 800;
  color: #0b0c10;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
}

.review-card__name {
  font-size: 1.1rem;
  font-weight: 700;
}

.review-card__badge {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-card__rating {
  margin-bottom: 12px;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.review-card__text {
  font-size: 1rem;
  color: #d1d5db;
}

/* ==========================================================================
   CONTACTS & MAP SECTION
   ========================================================================== */
.contacts {
  background-color: var(--bg-alt);
}

.contacts__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contacts__info {
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacts__icon {
  font-size: 1.4rem;
  line-height: 1.2;
}

.contacts__label {
  margin-bottom: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts__value {
  font-size: 1.05rem;
  font-weight: 600;
}

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

.contacts__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__messengers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contacts__map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 36px 0;
  background-color: #07080a;
  border-top: 1px solid var(--border-color);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__copy {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__policy {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
}

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

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
}

.social-btn:hover {
  color: #0b0c10;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.social-btn__text {
  font-size: 0.7rem;
  font-weight: 800;
}

/* ==========================================================================
   SCROLL TO TOP & ANIMATIONS
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0b0c10;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

/* ==========================================================================
   MEDIA QUERIES (768px, 1024px, 1440px)
   ========================================================================== */
@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__buttons {
    flex-direction: row;
  }

  .hero__meta {
    flex-direction: row;
    gap: 28px;
  }

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

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

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__img--main {
    height: 300px;
  }

  .about__img--sub {
    height: 220px;
  }

  .contacts__messengers {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .burger,
  .nav__cta-mobile {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 32px;
  }

  .nav__link {
    padding: 4px 0;
    font-size: 1rem;
    border-bottom: none;
  }

  .hero__title {
    font-size: 3rem;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contacts__wrapper {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 3.25rem;
  }
}