/* ImageActionBot — landing + shared tokens (Excel green / premium layout) */

:root {
  --bg0: #ffffff;
  --bg1: #f6f8f7;
  --bg2: #edf1ef;
  --acc: #217346;
  --acc-h: #185c37;
  --acc-lt: #e2efea;
  --acc-glow: rgba(33, 115, 70, 0.25);
  --tx0: #0d0d0d;
  --tx2: #5c5c5c;
  --brd: #d4d8d6;
  --ok: #107c41;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(24, 92, 55, 0.12);
  --maxw: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Calibri, "Helvetica Neue", system-ui, sans-serif;
  color: var(--tx0);
  background: var(--bg0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--acc);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 9999;
  padding: 8px 12px;
  background: var(--acc);
  color: #fff;
}

/* —— Ad strip: no placeholder text; loading shimmer or hidden on fail —— */
.ad-strip {
  background: linear-gradient(180deg, #f0f3f1 0%, #e8ecea 100%);
  border-bottom: 1px solid var(--brd);
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  overflow: hidden;
  max-height: 140px;
}
.ad-strip.is-loading {
  max-height: 140px;
}
.ad-strip.is-collapsed {
  max-height: 0;
  opacity: 0;
  border-bottom-width: 0;
  pointer-events: none;
}
.ad-slot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--shimmer {
  background: linear-gradient(
    90deg,
    #e8ecea 0%,
    #f4f6f5 45%,
    #e8ecea 90%
  );
  background-size: 200% 100%;
  animation: ad-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius);
  margin: 10px 20px;
  min-height: 90px;
  max-width: 728px;
}
@keyframes ad-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.ad-slot iframe,
.ad-slot img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.ad-slot a.ad-banner-link {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}
.ad-slot a.ad-banner-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-h) 55%, #134d30 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(24, 92, 55, 0.35);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.brand__text h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand__text span,
.brand__tagline {
  font-size: 0.78rem;
  opacity: 0.92;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}
.nav-links a.is-cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--acc-h);
}
.nav-links a.is-cta:hover {
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: #fff;
  color: var(--acc-h);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}
.btn--telegram {
  background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
}
.btn--telegram:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn--download {
  background: linear-gradient(180deg, var(--acc) 0%, var(--acc-h) 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--acc-glow);
}
.btn--download:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg1);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(33, 115, 70, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(46, 117, 182, 0.08), transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 22px clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.hero-official {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--brd);
  border-left: 4px solid var(--acc);
  border-radius: var(--radius);
  font-size: 1.05rem;
  color: var(--tx0);
  line-height: 1.5;
  max-width: 560px;
}
.hero-official strong {
  color: var(--acc-h);
}

.hero__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  color: var(--acc-h);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 26px;
  font-size: 1.125rem;
  color: var(--tx0);
  max-width: 540px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__note {
  font-size: 0.92rem;
  color: var(--tx2);
  max-width: 520px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  border: 1px solid var(--brd);
}
.hero__note code {
  background: var(--acc-lt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--acc-h);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--brd);
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.hero-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  border-radius: 14px;
  background: var(--acc-lt);
  padding: 10px;
}
.hero-card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--acc-h);
}
.hero-card__meta {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--tx2);
}
.hero-card .btn {
  width: 100%;
  justify-content: center;
}

/* Stats ribbon */
.stats {
  background: var(--acc-h);
  color: #fff;
  padding: 20px 22px;
}
.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.82rem;
  opacity: 0.88;
}

/* Sections */
section {
  padding: clamp(44px, 6vw, 72px) 22px;
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  margin-bottom: 36px;
}
.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--acc-h);
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0;
  color: var(--tx2);
  font-size: 1.05rem;
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg0);
  border: 1px solid var(--brd);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(33, 115, 70, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--acc-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--acc-h);
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tx2);
  line-height: 1.55;
}

/* Inline ad */
.ad-inline-wrap {
  padding: 0 22px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.ad-slot--inline {
  min-height: 0;
}

/* Download */
.download {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 880px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.download-box {
  background: var(--bg0);
  border: 1px solid var(--brd);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.download-box h3 {
  margin: 0 0 14px;
  color: var(--acc-h);
  font-size: 1.2rem;
}
.download-box ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--tx2);
}
.download-box li {
  margin-bottom: 10px;
}
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-list li {
  background: var(--acc-lt);
  color: var(--acc-h);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Follow — social cards */
.social-section {
  background: var(--bg0);
  border-top: 1px solid var(--brd);
}
.social-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--bg1);
  border: 1px solid var(--brd);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--tx0);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.social-card:hover {
  border-color: rgba(33, 115, 70, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--tx0);
}
.social-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 4px;
}
.social-card strong {
  font-size: 1.05rem;
  color: var(--acc-h);
}
.social-card span:last-child {
  font-size: 0.88rem;
  color: var(--tx2);
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: #c8c8c8;
  padding: 32px 22px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #7dcc9a;
}
.site-footer a:hover {
  color: #a8e8c4;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

@media (max-width: 600px) {
  .brand__text h1 {
    font-size: 1.2rem;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}