* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #fff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --border: #e5e5e0;
  --card-bg: #fff;
  --card-hover-bg: #fafaf9;
  --accent: #378add;
  --accent-hover: #2560a5;
  --accent-contrast: #fff;
  --pricing-bg: #f5f5f3;
  --badge-bg: #eaf2fb;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14161b;
  --text: #eaeaea;
  --text-secondary: #a3a3a3;
  --border: #2c2e35;
  --card-bg: #1b1d24;
  --card-hover-bg: #22242c;
  --accent: #5b9fe8;
  --accent-hover: #7fb4ed;
  --accent-contrast: #0c0d10;
  --pricing-bg: #1b1d24;
  --badge-bg: #1e2a3a;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b;
    --text: #eaeaea;
    --text-secondary: #a3a3a3;
    --border: #2c2e35;
    --card-bg: #1b1d24;
    --card-hover-bg: #22242c;
    --accent: #5b9fe8;
    --accent-hover: #7fb4ed;
    --accent-contrast: #0c0d10;
    --pricing-bg: #1b1d24;
    --badge-bg: #1e2a3a;
    color-scheme: dark;
  }
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero,
.section-content {
  scroll-margin-top: 76px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

:root[data-theme="dark"] .topbar {
  background: #f5f5f3;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] .topbar .brand h1 {
  color: #666;
}

:root[data-theme="dark"] .topbar .theme-toggle {
  color: #666;
}

:root[data-theme="dark"] .topbar .theme-toggle:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar {
    background: #f5f5f3;
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  :root:not([data-theme="light"]) .topbar .brand h1 {
    color: #666;
  }

  :root:not([data-theme="light"]) .topbar .theme-toggle {
    color: #666;
  }

  :root:not([data-theme="light"]) .topbar .theme-toggle:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.06);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
}

.brand h1 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.q-underline {
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--card-hover-bg);
}

.theme-toggle .fa-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .fa-sun {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .fa-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .fa-sun {
    display: inline;
  }
}

.hero {
  padding: 2rem 0 2rem;
  text-align: center;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  /* max-width: 500px;
  margin-left: auto;
  margin-right: auto; */
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: #999;
  background: var(--card-hover-bg);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card-cta {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.section-content {
  padding: 3rem 0;
  display: none;
  border-top: 0.5px solid var(--border);
}

.section-content.active {
  display: block;
}

.section-content h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.subsection {
  margin-bottom: 2.5rem;
}

.subsection h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
}

.subsection p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 12px;
}

.feature-item i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item span {
  font-size: 14px;
  color: var(--text);
}

.feature-item strong {
  font-weight: 500;
}

.pricing-box {
  background: var(--pricing-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.pricing-box .label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pricing-box h4 {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-box .value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-top: 1rem;
}

.pricing-box .value a {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.pricing-box .value a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.price-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card .cta-button {
  margin-top: auto;
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--card-hover-bg);
}

.price-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--badge-bg);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.price-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.price-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.price-amount span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.case-study {
  background: var(--pricing-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.case-study h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.case-study p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 2rem;
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.back-button:hover {
  color: var(--text);
}

.cta-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

.footer {
  border-top: 0.5px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-email {
  justify-self: center;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.footer-email:hover {
  color: var(--text);
}

.footer-phones {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.footer-phone:hover {
  color: var(--text);
}

.footer-phone .flag {
  font-size: 14px;
}

@media (max-width: 640px) {

  .section-content h2 {
    font-size: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-phones {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar-inner {
    align-items: flex-start;
  }

  .brand {
    flex-wrap: wrap;
  }

  .brand h1 {
    flex-basis: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }
}
