/* levit.top — стили визитки (тёмная тема) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --text: #e6e6e6;
  --heading: #ffffff;
  --accent: #f7941e;
  --accent-dark: #e07c0a;
  --bg-page: #0d1117;
  --bg-section: #161b22;
  --card-bg: #1c2333;
  --white: #ffffff;
  --border: #f7941e33;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(247, 148, 30, 0.25);
}

* {
  box-sizing: border-box;
}

/* Отключаем стандартный курсор на всех элементах */
* {
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid rgba(247, 148, 30, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

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

.logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo__name {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--white);
}

.logo__sub {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--white);
  opacity: 0.8;
}

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.logo:hover::after {
  opacity: 1;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu__link {
  display: inline-block;
  padding: 5px 0;
  font-weight: 500;
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.2s;
}

.menu__link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(247, 148, 30, 0.4);
}

.menu__link--cta {
  padding: 8px 20px;
  border-radius: 20px;
  background: #f7941e;
  color: #0d1117 !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(247, 148, 30, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
}

.menu__link--cta:hover {
  background: #e07c0a;
  color: #0d1117 !important;
  box-shadow: 0 6px 20px rgba(247, 148, 30, 0.45);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Sections */
section {
  padding: 60px 20px;
}

.section__title {
  margin: 0 0 15px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--heading);
}

.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  margin: 15px auto 0;
  background: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 20px 120px;
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 100%);
}

/* Декоративные фигуры */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  background: #f7941e;
  opacity: 0.05;
  pointer-events: none;
}

.hero::before {
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.hero::after {
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  transform: rotate(45deg);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__title {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--heading);
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--text);
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

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

.btn--primary {
  background: linear-gradient(180deg, #f7941e 0%, #e07c0a 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(247, 148, 30, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--accent-dark) 0%, #c76d08 100%);
  box-shadow: 0 0 24px rgba(247, 148, 30, 0.55), 0 10px 30px rgba(247, 148, 30, 0.45);
}

/* Services */
.services,
.about,
.cases,
.contact {
  background: var(--bg-section);
}

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

.card {
  padding: 30px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 148, 30, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(247, 148, 30, 0.15);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.card__title {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--heading);
}

.card__text {
  margin: 0;
  color: var(--text);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* About */
.about__text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
  opacity: 0.85;
}

/* Cases */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case {
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--text);
  opacity: 0.85;
}

/* Pricing */
.pricing {
  background: var(--bg-section);
}

.pricing__price {
  margin: 0 0 12px;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent);
}

.pricing__note {
  margin: 0;
  text-align: center;
  color: var(--text);
  opacity: 0.85;
}

/* Contact */
.contact__form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__input {
  padding: 14px 16px;
  border: 1px solid rgba(247, 148, 30, 0.25);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--card-bg);
}

.contact__input::placeholder {
  color: rgba(230, 230, 230, 0.45);
}

.contact__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.15);
}

.contact-alternative {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
}

.alternative-text {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 30px;
  background: #f7941e;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(247, 148, 30, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-telegram:hover {
  background: #e07c0a;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(247, 148, 30, 0.55), 0 10px 30px rgba(247, 148, 30, 0.45);
}

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

.telegram-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Footer */
.footer {
  background: var(--bg-page);
  color: rgba(230, 230, 230, 0.75);
  border-top: 1px solid rgba(247, 148, 30, 0.12);
  padding: 24px 20px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Form messages */
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
}

.form-message--ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Admin login */
.admin-login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.8);
  padding: 20px;
}

.admin-login__card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-login__title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--heading);
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login__input {
  padding: 13px 16px;
  border: 1px solid rgba(247, 148, 30, 0.25);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--card-bg);
}

.admin-login__input::placeholder {
  color: rgba(230, 230, 230, 0.45);
}

.admin-login__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.15);
}

.admin-login__error {
  margin: 0;
  color: #f87171;
  font-size: 0.9rem;
  text-align: center;
}

/* Admin editing mode */
.admin-mode [contenteditable="true"] {
  outline: 2px dashed rgba(247, 148, 30, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: background 0.2s;
}

.admin-mode [contenteditable="true"]:hover {
  background: rgba(247, 148, 30, 0.08);
}

.admin-mode [contenteditable="true"]:focus {
  outline-color: var(--accent);
  background: rgba(247, 148, 30, 0.12);
}

.admin-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.admin-bar__title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 8px;
  white-space: nowrap;
}

.admin-bar__btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-bar__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.admin-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

/* Inline editing */
[data-content] {
  cursor: text;
}

[data-content].is-editing {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
  background: rgba(247, 148, 30, 0.08);
  min-width: 50px;
}

/* Scroll reveal animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    padding: 16px 20px;
    gap: 16px;
  }

  .menu.is-open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 110px 16px 70px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 28px;
  }

  section {
    padding: 40px 15px;
  }

  .pricing__price {
    font-size: 2.2rem;
  }

  .admin-bar {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 14px;
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Custom cursor */
body {
  cursor: none;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(247, 148, 30, 0.6);
  box-shadow: 0 0 20px #f7941e;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, box-shadow 0.2s;
}

#cursor.cursor--hover {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px #f7941e, 0 0 32px rgba(247, 148, 30, 0.6);
}

.cursor-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: cursor-particle 0.6s ease-out forwards;
}

@keyframes cursor-particle {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor,
  .cursor-particle {
    display: none;
  }
}

@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }

  #cursor {
    display: none !important;
  }
}

/* Admin login button */
.admin-login-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0.5;
  transition: opacity 0.3s, background 0.3s;
}

.admin-login-btn:hover {
  opacity: 1;
}

.admin-login-btn.is-active {
  background: #16a34a;
  opacity: 1;
}

body.admin-mode .admin-login-btn {
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
}

body.admin-mode [data-content] {
  outline: 1px dashed rgba(247, 148, 30, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}

.popup-content {
  background: #1c2333;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(247, 148, 30, 0.25), 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: popup-in 0.3s ease-out forwards;
}

.popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 0 24px rgba(247, 148, 30, 0.5);
}

.popup-content.popup--error .popup-icon {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.5);
}

.popup-content.popup--success .popup-icon {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.5);
}

#popup-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
}

#popup-message {
  margin: 0 0 24px;
  color: var(--text);
  opacity: 0.9;
}

#popup-close-btn {
  width: 100%;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 24px 16px;
  }

  .popup-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }

  #popup-title {
    font-size: 1.15rem;
  }

  .btn-telegram {
    width: 100%;
    max-width: 340px;
  }
}