/* =========================================================
   AI-автопостинг — base: tokens, reset, header, buttons
   ========================================================= */

:root {
  --bg: #f6f1e8;
  --bg-2: #efe7da;
  --paper: #fffcf7;
  --ink: #191512;
  --ink-2: #3b332c;
  --muted: #7a6f63;
  --line: rgba(25, 21, 18, 0.12);
  --line-soft: rgba(25, 21, 18, 0.07);
  --accent: #d9542b;
  --accent-2: #f0a23e;
  --accent-soft: #f8ded0;
  --violet: #5b4be0;
  --violet-soft: #e7e3ff;
  --green: #1e9e75;
  --dark: #161210;
  --dark-2: #211a14;
  --cream: #f6f1e8;

  --radius: 26px;
  --radius-lg: 36px;

  --shadow-sm: 0 2px 10px rgba(25, 21, 18, 0.05);
  --shadow-md: 0 22px 50px -24px rgba(25, 21, 18, 0.32);
  --shadow-lg: 0 45px 95px -38px rgba(25, 21, 18, 0.48);

  --container: 1240px;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, p, blockquote, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

section {
  scroll-margin-top: 96px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #cbbfae;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.hero__content,
.hero__visual,
.about__content,
.profile-card,
.demo__content,
.demo__phone-wrap,
.contact-card__content,
.contact-list,
.case-card,
.price-card,
.bento-card,
.channel-card,
.faq__aside,
.accordion {
  min-width: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.25s;
}
.skip-link:focus {
  top: 16px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 9s linear infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 84, 43, 0.12);
  flex: none;
}

.eyebrow--light {
  color: rgba(246, 241, 232, 0.55);
}
.eyebrow--light .eyebrow__dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(240, 162, 62, 0.14);
}

.section {
  position: relative;
  padding: 110px 0;
}

.section--tint {
  background: var(--bg-2);
}

.section__head {
  margin-bottom: 54px;
}

.section__head--center {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.section__head--center .section__lead {
  margin-inline: auto;
}

.section__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section__lead {
  max-width: 620px;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}

.section--dark {
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  top: -25%;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(217, 84, 43, 0.18), transparent 65%);
  pointer-events: none;
}
.section--dark .section__title {
  color: var(--cream);
}
.section--dark .section__lead {
  color: rgba(246, 241, 232, 0.6);
}
.section--dark .grad {
  background-image: linear-gradient(100deg, var(--accent-2), #ffd9a0, var(--accent-2));
}

/* Warm brown variant for the service section */
.section--dark.section--cycle {
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(240, 162, 62, 0.22), transparent 60%),
    linear-gradient(160deg, #68432c 0%, #4b2e1e 55%, #372117 100%);
}
.section--dark.section--cycle::before {
  background: radial-gradient(ellipse, rgba(217, 84, 43, 0.24), transparent 65%);
}
.section--cycle .bento-card--full {
  background: linear-gradient(140deg, #23150e, #150c08);
  border: 1px solid rgba(240, 162, 62, 0.2);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s var(--ease);
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(130%);
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: linear-gradient(135deg, #e8602f, #c9481e);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(217, 84, 43, 0.6);
}
.btn--primary:hover {
  box-shadow: 0 18px 42px -12px rgba(217, 84, 43, 0.72);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 26px -14px rgba(25, 21, 18, 0.6);
}
.btn--dark:hover {
  background: #2a211b;
}

.btn--ghost {
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid rgba(25, 21, 18, 0.14);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: rgba(25, 21, 18, 0.26);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45);
}
.btn--light:hover {
  background: #fff;
}

.btn--sm {
  padding: 12px 18px;
  font-size: 12.5px;
  gap: 8px;
}
.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.magnetic {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a211b, #171310);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(25, 21, 18, 0.5);
}
.loader__mark span {
  color: var(--accent-2);
}
.loader__bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  animation: loadbar 1.1s var(--ease) forwards;
}
.loader__text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Scroll progress / grain ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(246, 241, 232, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -22px rgba(25, 21, 18, 0.45);
  border-bottom-color: rgba(25, 21, 18, 0.06);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a211b, #171310);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 14px -6px rgba(25, 21, 18, 0.45);
}
.brand__mark span {
  color: var(--accent-2);
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.brand__text b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand__text small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  position: relative;
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}
.nav__link.is-active {
  color: var(--ink);
}

.header__cta {
  justify-self: end;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  z-index: 1200;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s, top 0.35s var(--ease), background 0.25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span {
  background: var(--cream);
}
.burger.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: #14100d;
  color: var(--cream);
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease), visibility 0s linear 0.55s;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.55s var(--ease), visibility 0s;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__inner {
  width: min(100%, 620px);
  min-height: 100%;
  margin-inline: auto;
  padding: 108px 32px 36px;
  display: flex;
  flex-direction: column;
}
.mobile-menu__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.38);
}
.mobile-menu__nav {
  margin-top: 24px;
  display: grid;
}
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.mobile-menu__link span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.mobile-menu__link:hover {
  color: var(--accent-2);
}
.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.4s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.46s; }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 8px;
}
.mobile-menu__foot a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(246, 241, 232, 0.55);
  transition: color 0.25s;
}
.mobile-menu__foot a:hover {
  color: var(--accent-2);
}

/* Header when the mobile menu is open */
.menu-open .header {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.menu-open .brand__text b {
  color: var(--cream);
}
.menu-open .brand__text small {
  color: rgba(246, 241, 232, 0.45);
}
.menu-open .brand__mark::after {
  border-color: #14100d;
}
.menu-open .header__cta {
  opacity: 0;
  pointer-events: none;
}
.menu-open .nav {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Keyframes ---------- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes loadbar {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(0.82); }
  100% { transform: scaleX(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(30, 158, 117, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(30, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 158, 117, 0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, -36px, 0) scale(1.08); }
  100% { transform: translate3d(-22px, 26px, 0) scale(0.96); }
}
