/* ===== Variables ===== */
:root {
  --bg-deep: #0a0e17;
  --bg-card: rgba(18, 26, 42, 0.72);
  --bg-card-hover: rgba(24, 34, 56, 0.9);
  --border: rgba(120, 180, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.35);
  --text: #e8edf7;
  --text-muted: #8b9bb8;
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-warm: #f59e0b;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f59e0b 100%);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Unbounded", system-ui, sans-serif;
  --header-h: 72px;
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #5ee7ff;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* ===== Background effects ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  top: -120px;
  right: -80px;
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 20%;
  left: -100px;
  opacity: 0.2;
}

/* ===== Corner contacts ===== */
.corner-contacts {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.corner-contacts__link,
.corner-contacts__location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.corner-contacts__link:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--text);
}

.corner-contacts__location {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--text-muted);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 90;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.logo__accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* ===== Layout ===== */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 48px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__title--center {
  text-align: center;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 48px) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__text,
.hero__cta-text {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 16px;
}

.hero__cta-text {
  color: var(--text);
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 32px;
}

.phone-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  padding: 22px 32px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0e17;
  background: var(--gradient);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.phone-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.45);
  color: #0a0e17;
}

.phone-hero img {
  filter: brightness(0);
}

.hero__visual {
  position: relative;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero__float {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero__float--1 {
  top: 12%;
  right: -12px;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 15%;
  left: -16px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

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

.card--featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.12) 0%, var(--bg-card) 50%);
}

.card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__icon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.card__body {
  padding: 28px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.35;
}

.card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: 4px;
  vertical-align: middle;
}

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

/* ===== Advantages ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.advantage {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}

.advantage:hover {
  border-color: var(--border-bright);
}

.advantage__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border-radius: 16px;
  margin-bottom: 20px;
}

.advantage__image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  height: 140px;
}

.advantage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ===== Order ===== */
.order__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 5vw, 56px);
  backdrop-filter: blur(16px);
}

.order__image {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.order__steps {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
}

.order__text {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--gradient);
  color: #0a0e17;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  color: #0a0e17;
}

.btn--primary img {
  filter: brightness(0);
}

/* ===== Contacts ===== */
.contacts {
  text-align: center;
  padding-bottom: 80px;
}

.phone-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 32px auto 48px;
  max-width: 100%;
  transition: opacity 0.2s, transform 0.2s;
}

.phone-main:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-item__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-item small {
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.footer__phone {
  font-weight: 600;
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero,
  .order__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .corner-contacts {
    top: auto;
    bottom: 16px;
    right: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: calc(100% - 32px);
  }

  .corner-contacts__location {
    border-top: none;
    margin-top: 0;
    padding-top: 6px;
    border-left: 1px solid var(--border);
    padding-left: 12px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .phone-hero {
    font-size: 1rem;
    padding: 18px 20px;
  }

  .corner-contacts span {
    display: none;
  }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.copy-toast.show {
    opacity: 1;
}

.btn--secret {
  background: var(--accent);
  color: #0a0e17;
}

.btn--secret:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  color: #0a0e17;
}

.btn--secret img {
  filter: brightness(0);
}

.btn--secret-second {
  background: var(--accent);
  color: #0a0e17;
}

.btn--secret-second:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  color: #0a0e17;
}

.btn--secret-second img {
  filter: brightness(0);
}