/* TgSale landing — layout patterns from Vuexy 9.5, brand palette = Telegram blue
   (#229ED9 / #2AABEE — official Telegram brand colors; dark surfaces #17212B) */

:root {
  --primary: #229ed9;
  --primary-dark: #1c8dc4;
  --primary-light: #55b7e4;
  --primary-bg: #e4f4fc;
  --success: #28c76f;
  --success-bg: #dff7e9;
  --warning: #ff9f43;
  --warning-bg: #fff0e1;
  --info: #00bad1;
  --danger: #ff4c51;
  --body-bg: #f5f9fc;
  --surface: #ffffff;
  --heading: rgba(33, 43, 54, 0.92);
  --text: rgba(33, 43, 54, 0.76);
  --text-muted: rgba(33, 43, 54, 0.55);
  --border: rgba(33, 43, 54, 0.12);
  --shadow-sm: 0 2px 8px rgba(33, 43, 54, 0.12);
  --shadow-md: 0 4px 18px rgba(33, 43, 54, 0.1);
  --shadow-lg: 0 10px 40px rgba(34, 158, 217, 0.2);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  letter-spacing: 0.2px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
}

.section-title .accent {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.section-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--primary-bg);
  z-index: -1;
  border-radius: 4px;
}

.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(34, 158, 217, 0.5);
}

.btn-outline:hover {
  background: var(--primary-bg);
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  padding-block: 0.9rem;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding-block: 0.6rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--heading);
}

.brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 0.3rem 0.6rem;
  color: var(--text-muted);
}

.lang-switch .active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin-block: 5px;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(34, 158, 217, 0.14) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(42, 171, 238, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #edf5fb 0%, var(--body-bg) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.hero h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-note strong { color: var(--success); }

/* ---------- Phone mockup ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 272px;
  background: #16212c;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(33, 43, 54, 0.25);
  transform: rotate(2deg);
}

.phone-screen {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  min-height: 545px;
}

.phone-header {
  background: #527da3;
  color: #fff;
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-header .shop-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--info));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.phone-header .shop-name {
  font-weight: 700;
  font-size: 12.5px;
}

.phone-header .shop-status {
  font-size: 10px;
  opacity: 0.8;
}

.phone-search {
  margin: 10px 10px 0;
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  color: #8a959e;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.phone-body {
  background: #f0f2f5;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-catalog {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: flex-start;
  flex: 1;
}

.p-card {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.p-img {
  height: 74px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 6px;
}

.p-name {
  font-weight: 600;
  color: #222;
  font-size: 11px;
  line-height: 1.3;
}

.p-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 11.5px;
  margin-top: 2px;
}

.p-btn {
  margin-top: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 10.5px;
  padding: 4px 0;
}

.phone-checkout {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px;
}

.float-chip {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  animation: float 5s ease-in-out infinite;
}

.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.chip-order { top: 8%; left: 0; }
.chip-pay { bottom: 12%; right: 0; animation-delay: 2.2s; }

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

/* ---------- Stats strip ---------- */
.stats {
  padding-block: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Features ---------- */
.features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.feature:hover {
  border-color: rgba(34, 158, 217, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.6rem;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.45);
}

.step h3 { font-size: 1.05rem; }

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: var(--heading);
}

.billing-toggle .save-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(33, 43, 54, 0.2);
  transition: background 0.2s;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .track {
  background: var(--primary);
}

.switch input:checked + .track::after {
  transform: translateX(20px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
}

.plan.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.plan .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.plan .plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  min-height: 2.2em;
}

.plan .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.plan .price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan .price-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.86rem;
  flex-grow: 1;
}

.plan ul li {
  padding-block: 0.32rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.plan ul li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.plan ul li.na {
  color: var(--text-muted);
  opacity: 0.6;
}

.plan ul li.na::before {
  content: "—";
  color: var(--text-muted);
}

.plan .btn { justify-content: center; }

.pricing-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.6rem;
}

/* ---------- Compare ---------- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--primary-bg);
  color: var(--heading);
  font-weight: 700;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table .good {
  color: var(--success);
  font-weight: 700;
}

.compare-table .bad {
  color: var(--danger);
  font-weight: 600;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--heading);
}

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 1.3rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary) 0%, #2aabee 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  margin: 0;
  opacity: 0.9;
}

.cta-banner .btn {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

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

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  justify-content: center;
  gap: 1.25rem;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  text-align: center;
}

.contact-card .feature-icon {
  margin-inline: auto;
}

.contact-card h3 { font-size: 1.05rem; }

.contact-card a {
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: #17212b;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3rem 1.5rem;
  font-size: 0.9rem;
}

.footer .brand { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li { margin-bottom: 0.5rem; }

.footer a { color: rgba(255, 255, 255, 0.75); }

.footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 1.5rem; }
  .phone { transform: rotate(0); }
  .hero { padding-top: 7.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    top: 58px;
    inset-inline: 0.8rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    gap: 0.9rem;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 576px) {
  .section { padding-block: 3.2rem; }
  .section-title { font-size: 1.55rem; }
  .hero h1 { font-size: 1.8rem; }
  .features-grid, .steps-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.2rem 1.5rem; }
  .float-chip { display: none; }
}
