/* ===== СБРОС ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --accent: #FF8C42;
  --accent-soft: rgba(255, 140, 66, 0.08);
  --accent-hover: rgba(255, 140, 66, 0.2);
  --accent-glow: rgba(255, 140, 66, 0.3);
  --border: #E6E6E6;
  --overlay: rgba(0, 0, 0, 0.5);
  --header-height: 56px;
  --footer-height: 52px;
  --max-width: 1000px;
  --radius: 14px;
  --transition: 0.25s ease;
  --glow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --bg-alt: #111111;
    --text: #F0F0F0;
    --text-secondary: #999999;
    --accent-soft: rgba(255, 140, 66, 0.12);
    --accent-hover: rgba(255, 140, 66, 0.25);
    --accent-glow: rgba(255, 140, 66, 0.5);
    --border: #2A2A2A;
    --overlay: rgba(0, 0, 0, 0.7);
    --glow: 0 0 20px rgba(255, 140, 66, 0.15);
  }
}

html.dark {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --text: #F0F0F0;
  --text-secondary: #999999;
  --accent-soft: rgba(255, 140, 66, 0.12);
  --accent-hover: rgba(255, 140, 66, 0.25);
  --accent-glow: rgba(255, 140, 66, 0.5);
  --border: #2A2A2A;
  --overlay: rgba(0, 0, 0, 0.7);
  --glow: 0 0 20px rgba(255, 140, 66, 0.15);
}

html.light {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --accent-soft: rgba(255, 140, 66, 0.08);
  --accent-hover: rgba(255, 140, 66, 0.2);
  --accent-glow: rgba(255, 140, 66, 0.3);
  --border: #E6E6E6;
  --overlay: rgba(0, 0, 0, 0.5);
  --glow: none;
}

/* ===== БАЗА ===== */
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.has-cursor {
  cursor: none;
}

.theme-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0A0A0A;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theme-overlay.active {
  opacity: 1;
}

.main-content {
  width: 100%;
  overflow-x: hidden;
  padding-bottom: var(--footer-height);
}

.main-content.blurred {
  filter: blur(6px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ===== ССЫЛКИ ===== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease, background-size 0.2s ease;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
}

a:hover {
  background-size: 100% 1px;
}

/* ===== ФОКУС ДЛЯ ДОСТУПНОСТИ ===== */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 2px;
}

/* ===== КАСТОМНЫЙ КУРСОР ===== */
.cursor-outer {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
  will-change: transform;
}

.cursor-inner {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
  will-change: transform;
}

.cursor-outer.hover {
  width: 24px;
  height: 24px;
}

.cursor-inner.hover {
  width: 8px;
  height: 8px;
}

.cursor-outer.click {
  transform: translate(-50%, -50%) scale(1.2);
  transition: transform 0.1s ease;
}

.cursor-outer.text {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  border: none;
  background-color: var(--accent);
}

.cursor-inner.text {
  display: none;
}

.cursor-outer.slider {
  width: 28px;
  height: 14px;
  border-radius: 7px;
  border: 2px solid var(--accent);
}

.cursor-inner.slider {
  width: 6px;
  height: 6px;
}

.cursor-outer.zoom {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.cursor-inner.zoom {
  width: 2px;
  height: 6px;
  border-radius: 1px;
  transform: translate(-50%, -30%) rotate(-45deg);
}

/* ===== ТИПОГРАФИКА ===== */
h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.accent {
  color: var(--accent);
}

/* ===== КНОПКИ ===== */
button {
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

button:hover {
  transform: scale(1.03);
}

button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ===== CTA-КНОПКА ===== */
.cta-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  transform: scale(1.03);
  box-shadow: 0 0 24px var(--accent-glow);
}

.cta-button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

html.dark .cta-button {
  box-shadow: 0 0 12px var(--accent-glow);
}

html.dark .cta-button:hover {
  box-shadow: 0 0 32px var(--accent-glow);
}

/* ===== ХЕДЕР ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 2rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.5s ease;
}

.header-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  line-height: 1.2;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo .header-title {
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.header-subtitle {
  font-size: 0.6rem;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-nav-link {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: var(--accent);
}

.header-phone {
  font-size: 0.75rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  transition: stroke 0.3s ease, transform 0.4s ease;
}

.theme-toggle:hover svg {
  stroke: var(--accent);
}

.theme-toggle.rotating svg {
  transform: rotate(180deg);
}

/* ===== ФУТЕР ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.5s ease;
  padding: 0 2rem;
}

.footer-email {
  cursor: pointer;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== ХИРО ===== */
.hero {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) 2rem calc(var(--footer-height) + 48px);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.hero-features span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: calc(var(--footer-height) + 12px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.6;
  z-index: 10;
  text-align: center;
  background: none;
  border: none;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  will-change: auto;
}

.hero-scroll-hint:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-scroll-hint:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  animation: hint-pulse 2.5s ease-in-out infinite;
}

.hero-scroll-hint.clicked svg {
  animation: none;
}

@keyframes hint-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(4px); opacity: 1; }
}

.hero-scroll-hint .question-mark {
  font-size: 0.7rem;
  font-weight: 300;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  color: inherit;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 3.5rem 2rem;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-soft), var(--accent), var(--accent-soft), transparent);
}

.section:nth-child(even) {
  background-color: var(--bg-alt);
}

.section:last-of-type::after {
  display: none;
}

/* ===== УСЛУГИ ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.service-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

html.dark .service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.service-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-card ul {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 1.2rem;
}

.service-card ul li {
  margin-bottom: 0.3rem;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-price small {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  margin-top: 0.2rem;
}

/* ===== О НАС ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.team-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.team-card h3 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.team-card .code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
}

.team-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.team-text strong {
  color: var(--text);
}

/* ===== SWIPER (Процессы + Дневник) ===== */
.swiper-container {
  margin: 1.5rem 0;
  overflow: hidden;
  padding: 0 40px;
  position: relative;
}

.swiper-slide {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
  height: auto;
  min-height: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(4px);
  opacity: 0.75;
  will-change: transform, opacity;
  margin-top: 10px;
  box-shadow: none;
}

.swiper-slide-active {
  transform: translateY(0);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

html.dark .swiper-slide-active {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.swiper-slide:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.swiper-slide:active {
  cursor: grabbing;
}

.swiper-slide h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.swiper-slide p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.25s ease;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform, opacity;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px;
  font-weight: bold;
}

.swiper-fraction {
  position: absolute;
  top: -2rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent) !important;
  opacity: 0.3;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 20px;
}

/* ===== ПОПАП ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  position: relative;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 301;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

html.dark .popup {
  background-color: #161616;
  border-color: #333;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.popup-overlay.open .popup {
  transform: scale(1) translateY(0);
}

.popup.swiping {
  transition: transform 0.15s linear;
}

.popup-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 302;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

html.dark .popup-close {
  background: #222;
  border-color: #333;
}

.popup-close:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.08);
}

.popup-close:active {
  transform: scale(0.94);
}

.popup-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  transition: stroke 0.2s ease;
  pointer-events: none;
}

.popup-close:hover svg {
  stroke: var(--accent);
}

.popup textarea,
.popup input[type="text"],
.popup input[type="email"],
.popup select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background-color: var(--bg-alt);
  color: var(--text);
  margin-bottom: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

html.dark .popup textarea,
html.dark .popup input[type="text"],
html.dark .popup input[type="email"],
html.dark .popup select {
  background-color: #1a1a1a;
  border-color: #333;
}

.popup select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.popup select:invalid {
  color: var(--text-secondary);
  opacity: 0.6;
}

.popup textarea:focus,
.popup input:focus,
.popup select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background-color: var(--bg);
}

html.dark .popup textarea:focus,
html.dark .popup input:focus,
html.dark .popup select:focus {
  background-color: #1e1e1e;
}

.popup textarea::placeholder,
.popup input::placeholder {
  color: var(--text-secondary);
  opacity: 0.45;
  transition: opacity 0.2s ease;
  font-weight: 300;
}

.popup textarea:focus::placeholder,
.popup input:focus::placeholder {
  opacity: 0.2;
}

.popup textarea {
  min-height: 100px;
  line-height: 1.5;
}

.popup .consent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

html.dark .popup .consent {
  background: #1a1a1a;
}

.popup .consent:hover {
  border-color: var(--border);
}

.popup .consent input {
  width: 17px;
  height: 17px;
  margin-bottom: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.popup button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 16px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  letter-spacing: -0.01em;
}

.popup button[type="submit"]:hover {
  background-color: #FF7828;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.popup button[type="submit"]:active {
  transform: scale(0.97);
  background-color: #E67830;
}

.popup button[type="submit"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.popup-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ===== ПОПАП УСПЕХА ===== */
.success-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.success-popup.open {
  opacity: 1;
  pointer-events: auto;
}

.success-popup-inner {
  background-color: var(--bg);
  border-radius: 20px;
  padding: 2.25rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  animation: success-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .success-popup-inner {
  background-color: #161616;
  border-color: #333;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

@keyframes success-pop {
  0% { transform: scale(0.92) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.success-popup-inner p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.success-popup-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.success-popup-inner a:hover {
  opacity: 0.7;
}

/* ===== АНИМАЦИЯ ЗАГРУЗКИ ===== */
body .main-content,
body .header,
body .footer {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded .main-content,
body.loaded .header,
body.loaded .footer {
  opacity: 1;
  transform: translateY(0);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    padding: var(--header-height) 1.25rem calc(var(--footer-height) + 48px);
  }

  .hero-features {
    flex-direction: column;
    gap: 0.3rem;
  }

  .hero-scroll-hint {
    bottom: calc(var(--footer-height) + 12px);
  }

  .hero-scroll-hint .question-mark {
    font-size: 0.7rem;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .header {
    padding: 0 1.25rem;
  }

  .header-title {
    font-size: 0.7rem;
  }

  .header-right {
    gap: 0.4rem;
  }

  .header-nav-link {
    display: none;
  }

  .header-phone {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.35rem 0.7rem;
  }

  .popup {
    padding: 1.75rem;
    margin: 0 0.5rem;
    max-height: 80vh;
    touch-action: pan-y;
  }

  .swiper-container {
    padding: 0 32px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 12px;
  }

  .swiper-slide {
    padding: 1rem;
  }

  .footer {
    gap: 0.75rem;
    padding: 0 1rem;
  }
}

@media (min-width: 769px) {
  .swiper-container {
    padding: 0 48px;
  }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll-hint svg {
    animation: none;
  }
}