:root {
  --bg: #ffffff;
  --bg-soft: #f3fbf5;
  --card: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: #16a34a;
  --accent-dark: #128a3e;
  --accent-light: #22c55e;
  --accent-soft: #ebfdf1;
  --border: #e7ece9;
  --yellow: #ffbf0e;
  --orange: #f2a91c;
  --blue: #3b82f6;
  --purple: #9b7cff;
  --red: #ea3b3b;
  --gray: #eef1f4;
  --radius: 24px;
  --radius-lg: 28px;
  --shadow: 0 22px 50px -24px rgba(22, 100, 60, 0.28);
  --shadow-sm: 0 12px 30px -18px rgba(30, 41, 59, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-title: "Onest", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-drag: none; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img { -webkit-user-drag: none; pointer-events: none; }

h1, h2, h3, .logo, .btn, .eyebrow, .card__badge, .tag {
  font-family: var(--font-title);
}

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

a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  font-family: var(--font-title);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 11px 20px; font-size: 15px; border-radius: 12px; }
.btn--lg { padding: 18px 36px; font-size: 18px; border-radius: 18px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(22, 163, 74, 0.8);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(22, 163, 74, 0.85); }

.btn--outline {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover { background: var(--accent-soft); transform: translateY(-2px); }

.btn--light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35);
}
.btn--light:hover { transform: translateY(-2px); }

.btn__arrow { width: 20px; height: 20px; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; }

.btn--on-accent {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn--on-accent:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }

/* Eyebrow + section titles (green, uppercase, left aligned) */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--accent);
  text-transform: uppercase;
}
.section__lead { font-size: 18px; color: var(--text-muted); margin-top: 18px; max-width: 620px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(0,0,0,0.2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.logo__mark {
  flex: none;
  width: 38px; height: 38px;
}
.logo__mark:empty { display: none; }
.logo__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; gap: 30px; }
.nav__link { color: var(--text-muted); font-weight: 700; font-size: 15px; transition: color 0.2s; }
.nav__link:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 800; font-size: 16px; color: var(--text); }
.header__phone:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 48px 0 72px;
  position: relative;
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}
.tag--green  { background: var(--accent-soft); color: var(--accent-dark); border: 2px solid var(--accent); }
.tag--blue   { background: #eff6ff; color: #2563eb; border: 2px solid var(--blue); }
.tag--yellow { background: #fffbeb; color: #b45309; border: 2px solid var(--yellow); }
.tag--purple { background: #f3f0ff; color: #7c3aed; border: 2px solid var(--purple); }

.hero__visual { position: relative; }
.hero__photo { position: relative; }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: -22px -22px 22px 26px;
  background: var(--yellow);
  border-radius: 34px;
  z-index: 0;
}
.photo--hero { position: relative; z-index: 1; aspect-ratio: 4 / 5; }

/* Photo placeholders */
.photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #f5faf7, #f5faf7 14px, #eef6f1 14px, #eef6f1 28px);
  border: 2px dashed #cbe6d5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.photo__ph { text-align: center; padding: 20px; z-index: 1; }
.photo__ph svg { width: 42px; height: 42px; fill: var(--accent); opacity: 0.8; }
.photo__name {
  display: block;
  margin-top: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  word-break: break-all;
}
.photo__hint { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
/* When a real image has loaded, drop the placeholder frame and allow opening */
.photo.is-loaded { border-color: transparent; background: none; cursor: zoom-in; }

/* IP card */
.ip-card {
  position: absolute;
  left: -8px;
  bottom: -40px;
  background: var(--card);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 230px;
  z-index: 2;
}
.ip-card__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.ip-card__value { font-size: 24px; font-weight: 800; font-family: var(--font-title); margin: 4px 0 14px; }
.ip-card__btn { width: 100%; }

/* Sections */
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 0 48px; }

/* About / robot */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.about__text { display: flex; flex-direction: column; justify-content: center; }
.about__text .section__head { margin-bottom: 0; }
.about__photo { aspect-ratio: 4 / 3; min-height: 320px; height: 100%; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}
.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel__dot {
  width: 9px; height: 9px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}
.carousel__dot.is-active { width: 22px; border-radius: 5px; background: var(--accent); }

/* Feature cards (solid colors + folder tabs) */
.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.feats--modes { grid-template-columns: repeat(3, 1fr); }
.feats--3 { grid-template-columns: repeat(3, 1fr); }
.feat-card {
  position: relative;
  z-index: 0;
  border-radius: var(--radius);
  padding: 16px 18px 24px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Modes cards — beautiful outlined frame */
.feats--modes .feat-card {
  border: 4px solid rgba(255, 255, 255, 0.85);
  margin-top: 0;
  padding-top: 20px;
}
.feats--modes .feat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.feat-card__photo {
  aspect-ratio: 3 / 2;
  min-height: 0;
  border-radius: 16px;
  margin-bottom: 16px;
}
.feat-card__photo .photo__ph svg { width: 32px; height: 32px; }
.feat-card__photo .photo__name { font-size: 14px; margin-top: 8px; }
.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feat-card::before,
.feat-card::after {
  content: "";
  position: absolute;
  top: -13px;
  height: 24px;
  background: var(--orange);
  border-radius: 12px 12px 0 0;
  z-index: 1;
}
.feat-card::before { left: 24px; width: 38px; }
.feat-card::after { left: 68px; width: 30px; }
.feat-card__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.feat-card__text { font-size: 15px; }

.fc--green  { background: var(--accent); }
.fc--green .feat-card__title,
.fc--blue  .feat-card__title,
.fc--purple .feat-card__title,
.fc--red   .feat-card__title { color: #fff; }
.fc--green .feat-card__text,
.fc--blue  .feat-card__text,
.fc--purple .feat-card__text,
.fc--red   .feat-card__text { color: rgba(255,255,255,0.92); }
.fc--blue   { background: var(--blue); }
.fc--purple { background: var(--purple); }
.fc--red    { background: var(--red); }
.fc--yellow { background: var(--yellow); }
.fc--yellow .feat-card__title { color: #1f2937; }
.fc--yellow .feat-card__text { color: #5a4a12; }
.fc--gray   { background: var(--gray); }
.fc--gray .feat-card__title { color: #1f2937; }
.fc--gray .feat-card__text { color: var(--text-muted); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item { aspect-ratio: 4 / 3; min-height: 0; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Solo — single address card */
.solo-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 52px);
  max-width: 720px;
  text-align: center;
}
.solo-card__label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.solo-card__ip {
  font-family: var(--font-title);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 26px;
}
.platforms {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}
.platform {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 20px 22px;
}
.card__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.platform__text { display: block; color: var(--text-muted); font-weight: 600; font-size: 15px; }

/* How to start — picture guide + address card */
.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.guide-card__media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border: none;
  border-radius: 0;
}
.guide-card__num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 10px 20px -8px rgba(22, 163, 74, 0.8);
}
.guide-card__body { padding: 22px 22px 26px; }
.guide-card__title { font-family: var(--font-title); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.guide-card__text { color: var(--text-muted); font-size: 15px; }

.solo-card { margin-left: auto; margin-right: auto; }

/* Final */
.final { padding-bottom: 110px; }
.final__card {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 36px;
  padding: clamp(48px, 7vw, 82px) 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(22, 163, 74, 0.7);
  position: relative;
  overflow: hidden;
}
.final__card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
}
.final__title { font-size: clamp(28px, 5vw, 50px); font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; position: relative; }
.final__subtitle { font-size: clamp(16px, 2vw, 20px); opacity: 0.92; max-width: 560px; margin: 16px auto 32px; position: relative; }
.final__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final__card .btn { position: relative; }

/* Footer */
.footer { padding: 44px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__contacts { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer__note { color: var(--text-muted); font-weight: 700; font-size: 15px; }
a.footer__note:hover { color: var(--accent); }
.footer__credit {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__credit a { color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.footer__credit a:hover { color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  padding: 12px 22px 12px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast__icon {
  width: 30px; height: 30px;
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 20, 16, 0.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: min(1040px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  background: #0d1410;
}
.lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lightbox__close svg { width: 24px; height: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav[hidden] { display: none; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero::before { display: none; }
  .hero {
    display: block;
    min-height: 0;
    padding: 32px 0 60px;
  }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__photo::before { display: none; }
  .ip-card { position: static; width: 100%; left: auto; bottom: auto; margin-top: 18px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__text, .about__photo { height: auto; }
  .guide { grid-template-columns: 1fr; gap: 20px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .final__card::before { display: none; }
  .section { padding: 60px 0; }
  .header__phone { display: none; }
  .platforms { grid-template-columns: 1fr; }

  /* Gallery becomes a swipeable slider on phones */
  .gallery {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 12px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 84%; scroll-snap-align: center; }

  /* Carousel controls sized for touch */
  .carousel__btn { width: 40px; height: 40px; }
  .carousel__btn svg { width: 20px; height: 20px; }
  .carousel__btn--prev { left: 10px; }
  .carousel__btn--next { right: 10px; }
  .carousel__dots { bottom: 12px; gap: 7px; }
  .carousel__dot { width: 8px; height: 8px; }
  .carousel__dot.is-active { width: 20px; }

  /* Lightbox controls for small screens */
  .lightbox { padding: 12px; }
  .lightbox__img { max-height: 76vh; border-radius: 14px; }
  .lightbox__caption { font-size: 14px; }
  .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav svg { width: 22px; height: 22px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .feats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .final__actions { flex-direction: column; }
  .final__actions .btn { width: 100%; }
  .solo-card { padding: 28px 20px; }
  .about__photo { min-height: 240px; }
}

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