/* ==========================================================================
   Компьютерный мастер Владимир — стили
   ========================================================================== */

:root {
  --graphite: #0f1418;
  --graphite-2: #141a20;
  --graphite-3: #1b232b;
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --white: #ffffff;
  --bronze: #c4935f;
  --bronze-dark: #a9793f;
  --bronze-light: #e0bb8d;
  --navy: #1c3a57;
  --muted: #8b939c;
  --muted-dark: #6f7882;
  --text-dark: #18202a;
  --border-light: rgba(15, 20, 24, 0.08);
  --shadow-soft: 0 24px 60px -24px rgba(15, 20, 24, 0.25);
  --grad-bronze: linear-gradient(135deg, #d3a878 0%, #b0803f 100%);
  --radius: 18px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

/* Защита от горизонтального скролла на мобильных
   (широкие Bootstrap-гуттеры .g-5 выходят за контейнер). */
html,
body {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .brand-text strong {
  font-family: "Manrope", "Inter", sans-serif;
}

::selection {
  background: var(--bronze);
  color: #fff;
}

section[id] {
  scroll-margin-top: 84px;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}

.section-light {
  background: var(--cream);
}

.section-dark {
  background: var(--graphite);
  color: #e8ebef;
}

.section-dark .section-desc {
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head.text-start {
  margin-left: 0;
  text-align: left;
}

.section-eyebrow {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 14px;
  position: relative;
}

.section-eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--grad-bronze);
}

.section-head.text-start .section-eyebrow::after {
  margin-left: 0;
}

.section-dark .section-eyebrow {
  color: var(--bronze-light);
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-dark .section-title {
  color: #fff;
}

.section-desc {
  color: var(--muted-dark);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn-bronze {
  --bs-btn-color: #fff;
  background: var(--grad-bronze);
  border: none;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  box-shadow: 0 14px 30px -12px rgba(169, 121, 63, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-bronze:hover,
.btn-bronze:focus {
  background: linear-gradient(135deg, #deb07c 0%, #a9793f 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(169, 121, 63, 0.65);
}

.btn-bronze:active {
  transform: translateY(0);
}

.btn-outline-light {
  border-radius: 12px;
  border-width: 1.5px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
}

.btn-outline-secondary {
  border-radius: 12px;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 14px 0;
}

.site-header.is-scrolled {
  background: rgba(15, 20, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
}

.site-header .navbar {
  --bs-navbar-toggler-border-color: transparent;
}

.navbar-brand {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand:hover {
  color: #fff;
}

.brand-mark {
  color: var(--bronze);
  display: inline-flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--bronze-light);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: #c69963;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.nav-phone {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-phone:hover {
  color: var(--bronze-light);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
  .site-header {
    background: rgba(15, 20, 24, 0.96);
  }
  .navbar-collapse {
    background: var(--graphite);
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
  }
  .nav-phone {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--graphite);
  padding: 140px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  animation: heroZoom 22s ease forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 16, 20, 0.92) 0%, rgba(12, 16, 20, 0.72) 48%, rgba(12, 16, 20, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 16, 20, 0.55) 0%, rgba(12, 16, 20, 0.85) 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-light);
  border: 1px solid rgba(196, 147, 95, 0.4);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 26px;
  background: rgba(196, 147, 95, 0.08);
}

.hero__title {
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero__title-accent {
  display: block;
  color: transparent;
  background: linear-gradient(120deg, #e3bd8e 0%, #c4935f 55%, #9c6b33 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero__subtitle strong {
  color: #fff;
}

.hero__trust {
  gap: 28px !important;
}

.hero__trust li {
  border-left: 2px solid var(--bronze);
  padding-left: 14px;
}

.hero__trust-num {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.1;
}

.hero__trust-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.hero__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--bronze-light);
  margin-bottom: 18px;
}

.hero__card-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58c177;
  box-shadow: 0 0 0 0 rgba(88, 193, 119, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 193, 119, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(88, 193, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 193, 119, 0); }
}

.hero__card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero__card-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.hero__card-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll-line {
  width: 3px;
  height: 10px;
  border-radius: 100px;
  background: var(--bronze);
  animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 130px 0 70px;
  }
  .hero__title-accent {
    margin-top: 4px;
  }
}

/* ---------- Reveal animations ----------
   Скрываются только когда JS работает (html.js): если скрипт не загрузился,
   текст остаётся видимым. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px 28px;
  height: 100%;
  box-shadow: 0 6px 24px -18px rgba(15, 20, 24, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(196, 147, 95, 0.45);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 147, 95, 0.14), rgba(196, 147, 95, 0.04));
  border: 1px solid rgba(196, 147, 95, 0.3);
  color: var(--bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.service-card__text {
  color: var(--muted-dark);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Stats ---------- */
.stats .stat {
  text-align: center;
  padding: 26px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats .col-6:nth-child(even) .stat,
.stats .col-md-3:last-child .stat {
  border-right: none;
}

@media (max-width: 767.98px) {
  .stats .stat,
  .stats .col-6:nth-child(even) .stat {
    border-right: none;
  }
}

.stat__num {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--bronze);
  line-height: 1;
  margin-bottom: 10px;
}

.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Advantage cards ---------- */
.advantage {
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 34px 28px;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.advantage:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 147, 95, 0.5);
  background: var(--graphite-3);
}

.advantage__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 147, 95, 0.2), rgba(196, 147, 95, 0.05));
  color: var(--bronze);
  border: 1px solid rgba(196, 147, 95, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.advantage__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.advantage__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Portfolio ---------- */
.portfolio-filters .btn-filter {
  --bs-btn-color: var(--text-dark);
  border: 1px solid rgba(15, 20, 24, 0.15);
  background: transparent;
  border-radius: 100px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  margin: 0 4px 8px;
  transition: all 0.25s ease;
}

.portfolio-filters .btn-filter:hover {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

.portfolio-filters .btn-filter.active {
  background: var(--grad-bronze);
  color: #fff;
  border-color: transparent;
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  padding: 0;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.portfolio-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.07);
}

.portfolio-card__zoom {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 20, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card__zoom {
  opacity: 1;
}

.portfolio-card__body {
  padding: 22px 24px 26px;
}

.portfolio-card__tag {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  background: rgba(196, 147, 95, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.portfolio-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.portfolio-card__text {
  color: var(--muted-dark);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* Portfolio filtering */
.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Work modal */
.work-modal {
  border-radius: 22px;
  border: none;
  background: #fff;
}

.work-modal .modal-header,
.work-modal .modal-footer {
  background: #fff;
}

.work-modal__img {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.work-modal__title {
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.work-modal__meta {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bronze-dark);
  background: rgba(196, 147, 95, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.work-modal__text {
  color: var(--muted-dark);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 147, 95, 0.5);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--bronze) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}

.step__num {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--bronze);
}

.step__icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(196, 147, 95, 0.2), rgba(196, 147, 95, 0.05));
  border: 1px solid rgba(196, 147, 95, 0.35);
  color: var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 16px;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.step__text {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:not(:last-child)::after {
    display: none;
  }
}

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

/* ---------- Order form ---------- */
.order-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.form-label {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.form-control {
  border-radius: 12px;
  border: 1.5px solid rgba(15, 20, 24, 0.14);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 0.22rem rgba(196, 147, 95, 0.18);
}

.form-control-lg {
  padding: 0.85rem 1.1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-check-input:checked {
  background-color: var(--bronze);
  border-color: var(--bronze);
}

.form-check-input:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 0.22rem rgba(196, 147, 95, 0.18);
}

#orderForm .form-check-label a {
  color: var(--bronze-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#orderForm .form-check-label a:hover {
  color: var(--bronze);
}

.form-note {
  font-size: 0.83rem;
  color: var(--muted-dark);
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ---------- Review cards + rating ---------- */
#reviewsCarousel {
  padding-bottom: 56px;
}

.review-card {
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card__stars {
  color: var(--bronze);
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
}

.review-card__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 18px;
}

.review-card__author {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bronze-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

#reviewsCarousel .carousel-indicators {
  bottom: 0;
}

#reviewsCarousel .carousel-indicators [data-bs-target] {
  background-color: var(--bronze);
  width: 30px;
  height: 4px;
  border-radius: 100px;
  opacity: 0.35;
}

#reviewsCarousel .carousel-indicators .active {
  opacity: 1;
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: auto;
  bottom: -8px;
  opacity: 1;
}

#reviewsCarousel .carousel-control-prev {
  right: 56px;
  left: auto;
}

#reviewsCarousel .carousel-control-next {
  right: 0;
  left: auto;
}

#reviewsCarousel .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next-icon {
  filter: none;
  background-color: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-size: 50%;
  border-radius: 12px;
  width: 100%;
  height: 100%;
}

/* Review submit form */
.review-form-wrap {
  margin-top: 56px;
  background: var(--graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}

.review-form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}

.review-form .form-label {
  color: rgba(255, 255, 255, 0.85);
}

.review-form .form-check-label {
  color: rgba(255, 255, 255, 0.85);
}

.review-form .form-check-label a {
  color: var(--bronze-light);
}

.review-form .form-control {
  background: var(--graphite-3);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.review-form .form-control::placeholder {
  color: var(--muted);
}

.review-form .form-control:focus {
  background: var(--graphite-3);
  border-color: var(--bronze);
  color: #fff;
}

.review-form .form-control.is-invalid {
  border-color: #dc3545;
  background-image: none;
}

.review-form .form-control:valid:not(:placeholder-shown) {
  border-color: rgba(196, 147, 95, 0.55);
}

/* Star rating input */
.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 1.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0 2px;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: var(--bronze);
}

.rating-input label:hover {
  transform: scale(1.15);
}

.rating-input label {
  order: 1;
}

.rating-input input:checked ~ label {
  color: var(--bronze);
}

/* ---------- Contacts ---------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(196, 147, 95, 0.16), rgba(196, 147, 95, 0.05));
  border: 1px solid rgba(196, 147, 95, 0.3);
  color: var(--bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__label {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 2px;
}

.contact-item__value {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item__value:hover {
  color: var(--bronze-dark);
}

.contacts-map {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contacts-map__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.contacts-map__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 20, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.contacts-map__badge span {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  color: var(--bronze-light);
  font-size: 0.9rem;
}

.contacts-map__badge strong {
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e12;
  color: var(--muted);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .navbar-brand {
  margin-bottom: 16px;
}

.site-footer__about {
  font-size: 0.9rem;
  max-width: 320px;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--bronze-light);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.site-footer__legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--bronze-light);
}

.site-footer__legal small {
  color: #55606b;
  margin-top: 8px;
}

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(15, 20, 24, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #e8ebef;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-bar.is-show {
  transform: none;
}

.cookie-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.cookie-bar__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.9rem;
}

.cookie-bar__text a {
  color: var(--bronze-light);
}

.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: none;
  background: var(--grad-bronze);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 12px 24px -10px rgba(169, 121, 63, 0.6);
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Toast ---------- */
.toast {
  border-radius: 14px;
  border: none;
}

.toast-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.toast-icon.text-success { color: #2e9a63; }
.toast-icon.text-danger { color: #d9534f; }

/* ---------- Validation helpers ---------- */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: rgba(46, 154, 99, 0.6);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
}

.was-validated .form-control:focus:valid,
.form-control.is-valid:focus {
  box-shadow: 0 0 0 0.22rem rgba(46, 154, 99, 0.15);
}

.was-validated .form-control:focus:invalid,
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.15);
}
/* Пустой список отзывов */
.reviews-empty {
  padding: 32px 16px;
  color: var(--text-muted, #8899a6);
  font-size: 1.05rem;
}

/* ---------- Собственный тост (не зависит от Bootstrap) ---------- */
.app-toast-box {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 440px);
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 14px 40px -12px rgba(15, 20, 24, 0.35);
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.app-toast__icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.app-toast--success .app-toast__icon {
  color: #24a05f;
}

.app-toast--error .app-toast__icon {
  color: #d13d3d;
}

@media (max-width: 575.98px) {
  .app-toast-box {
    top: 10px;
  }
}
