:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-2: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --text: #d5d5d5;
  --muted: #9b9b9b;
  --red: #df1f26;
  --red-hover: #ff3038;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --container: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(223, 31, 38, 0.10), transparent 20%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.04), transparent 18%),
    var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 80px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--text);
}

.tag {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(223, 31, 38, 0.35);
  background: rgba(223, 31, 38, 0.08);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.full-btn {
  width: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: #050505;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}

.loader-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}

.loader img {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.topline {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
}

.topline-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.topline p,
.topline a {
  font-size: 14px;
  color: var(--muted);
}

.topline-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topline a:hover {
  color: var(--red);
}

.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(8, 8, 8, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 9px 24px rgba(223, 31, 38, 0.18);
}

.logo-text span {
  display: block;
  font-weight: 900;
  font-size: 19px;
}

.logo-text strong {
  display: block;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu a {
  position: relative;
  color: #f3f3f3;
  font-weight: 600;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.02;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cards {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-card-mini {
  max-width: 160px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.hero-card-mini strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-card-mini span {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(223, 31, 38, 0.18);
  filter: blur(70px);
  top: -30px;
  right: -30px;
}

.hero-panel img {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.hero-panel-text {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-panel-text h3 {
  font-size: 34px;
  margin-bottom: 8px;
}

.hero-panel-text p {
  color: var(--text);
  margin: 0;
}

.page-hero {
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.06;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text);
  max-width: 760px;
}

.stats-grid,
.cards-3,
.cards-4,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stats-card,
.service-card,
.review-card,
.contact-card,
.form-card,
.map-card,
.cta-box,
.info-box,
.price-card,
.faq-item,
.seo-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-card {
  text-align: center;
  padding: 28px 18px;
  border-radius: 24px;
  background: var(--bg-card);
}

.stats-card h3 {
  font-size: clamp(32px, 4vw, 50px);
  color: var(--red);
  margin-bottom: 8px;
}

.stats-card p {
  color: var(--text);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.seo-card,
.review-card,
.info-box,
.price-card {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
}

.service-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(223, 31, 38, 0.14);
  color: var(--red);
  font-weight: 900;
  margin-bottom: 18px;
}

.service-card h3,
.review-card h3,
.price-card h3,
.info-box h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service-card p,
.review-card p,
.price-card p,
.info-box p,
.seo-card p {
  color: var(--text);
}

.review-card .stars {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
}

.price {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 10px;
}

.price-note {
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-card {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-card);
  transition: 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 31, 38, 0.32);
}

.contact-card span {
  color: var(--text);
}

.form-card {
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.03)
  );
}

.form-card h3 {
  font-size: 32px;
  margin-bottom: 8px;
}

.form-card p {
  color: var(--text);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0b;
  color: #fff;
  border-radius: 15px;
  padding: 15px 16px;
  outline: none;
  transition: 0.3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(223, 31, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(223, 31, 38, 0.08);
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.map-card {
  overflow: hidden;
  border-radius: 26px;
}

.cta-box {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(223, 31, 38, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text);
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--bg-card);
}

.faq-item summary {
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  color: var(--text);
  padding-top: 14px;
}

.footer {
  padding-top: 65px;
  border-top: 1px solid var(--line);
  background: #040404;
}

.footer-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
  padding-bottom: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p,
.footer li a {
  color: var(--text);
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 14px;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer li a:hover {
  color: var(--red);
}

.footer-bottom {
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 12px;
  z-index: 1500;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.call-btn {
  background: #161616;
}

.tg-btn {
  background: linear-gradient(135deg, #1d1d1d, #df1f26);
}

.vb-btn {
  background: #202020;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 31, 38, 0.28);
}

.gallery-image {
  height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.demo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(223, 31, 38, 0.18), rgba(255, 255, 255, 0.04)),
    #111;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.gallery-content {
  padding: 22px;
}

.gallery-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.gallery-content p {
  color: var(--text);
}

.before-after-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: var(--shadow);
  padding: 24px;
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
}

.before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.before-layer {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.before-layer .before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.before-after-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #fff;
  z-index: 3;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.92);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.before-after-handle::before,
.before-after-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.before-after-handle::before {
  left: 13px;
  transform: translateY(-50%) rotate(-135deg);
}

.before-after-handle::after {
  right: 13px;
  transform: translateY(-50%) rotate(45deg);
}

.before-after-label {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.before-label {
  left: 18px;
}

.after-label {
  right: 18px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 31, 38, 0.28);
}

.case-top {
  padding: 24px 24px 12px;
}

.case-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(223, 31, 38, 0.10);
  color: var(--red);
  border: 1px solid rgba(223, 31, 38, 0.25);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.case-top h3 {
  font-size: 24px;
  line-height: 1.15;
}

.case-content {
  padding: 0 24px 24px;
  display: grid;
  gap: 16px;
}

.case-block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.case-block h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.case-block p {
  color: var(--text);
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-wrapper {
    height: 440px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-btn {
    display: none;
  }

  .menu {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 16px;
    background: #080808;
    border-bottom: 1px solid var(--line);
  }

  .menu.active {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 78px 0;
  }

  .topline-wrap {
    justify-content: center;
    text-align: center;
  }

  .topline-links {
    justify-content: center;
  }

  .stats-grid,
  .cards-3,
  .cards-4,
  .gallery-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .gallery-image {
    height: 220px;
  }

  .before-after-card {
    padding: 14px;
  }

  .before-after-wrapper {
    height: 280px;
  }

  .before-after-handle {
    width: 46px;
    height: 46px;
  }

  .case-top h3 {
    font-size: 21px;
  }
}