/* === Variables === */
:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-alt: #232f42;
  --color-primary: #d4a853;
  --color-primary-dark: #b8923f;
  --color-accent: #c41e3a;
  --color-text: #e8e6e3;
  --color-text-muted: #9ca3af;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul {
  list-style: none;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn-telegram) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav a:not(.btn-telegram):hover {
  color: var(--color-text);
}

/* Услуги — выпадающее меню */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

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

.nav-dropdown-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 6px 0 0 0;
  padding: 8px 0;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-primary);
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.3);
}

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

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-telegram:hover {
  background: #0077b5;
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Подложка: финансы/бухучёт. При желании замените ссылку на свой файл (например images/hero-accounting.jpg) */
  background: 
    linear-gradient(135deg, rgba(15,20,25,0.78) 0%, rgba(15,20,25,0.55) 50%, rgba(15,20,25,0.88) 100%),
    url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.1rem, 6.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

/* === Pros === */
.pros-list {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.pros-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--color-text);
  text-align: center;
}

.pros-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--color-primary);
  border-radius: 50%;
}

.pros .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 320px;
  text-align: center;
}

/* === Services block === */
.services-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.services-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
}

.services-list li::before {
  content: '✓ ';
  display: inline;
  color: var(--color-primary);
  font-weight: 700;
}

/* === Benefits (icons) === */
.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 92%;
  text-align: left;
  background: var(--color-surface-alt);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  min-height: 106px;
  flex-wrap: nowrap;
}

.benefit-card:nth-child(odd) {
  align-self: flex-start;
}

.benefit-card:nth-child(even) {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.benefit-leading-icon {
  width: 69px;
  height: 69px;
  flex: 0 0 69px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.benefit-leading-icon svg {
  width: 47px;
  height: 47px;
  display: block;
}

.benefit-leading-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.benefit-inline-icon {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.benefit-inline-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.benefit-text {
  font-size: calc(0.98rem + 1px);
  line-height: 1.55;
  color: var(--color-text);
}
/* === Pricing cards === */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.pricing-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.pricing-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: #fff;
}

.pricing-card .price {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-usd, .price-rub {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-card ul {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  margin-bottom: 10px;
  position: relative;
}

.pricing-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* === Process steps === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-bottom: 12px;
}

.step-num {
  display: block;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--color-surface-alt);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.why-card-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
}

.why-card-title {
  font-weight: 700;
}

.why-card-text {
  margin-top: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.why-cta .btn {
  max-width: 320px;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 800px;
}

.faq-answer p {
  padding: 0 0 20px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* === Footer === */
.footer {
  background: var(--color-surface);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-text {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.1em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.footer-text p:last-child {
  margin-bottom: 0;
}

.footer-articles {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-articles h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.footer-articles-list a {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer-articles-list a:hover {
  color: var(--color-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* === Blog page === */
.blog-page {
  padding-top: 100px;
}

.blog-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  border-color: rgba(212, 168, 83, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card__img {
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px;
  margin: 0;
  color: var(--color-text);
  line-height: 1.4;
  transition: color var(--transition);
}

.blog-card:hover .blog-card__title {
  color: var(--color-primary);
}

/* === Article page === */
.article-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.container--narrow {
  max-width: 1200px;
}

.article-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--color-primary);
}

.article-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  color: #fff;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 0 28px;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1.25em;
  color: var(--color-text);
}

.article-body p:last-of-type {
  margin-bottom: 0;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  color: var(--color-primary);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3,
.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  color: var(--color-primary);
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25em 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.article-body li {
  margin-bottom: 0.35em;
  color: var(--color-text);
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--color-primary-dark);
}

.article-body .article-list {
  margin: 0 0 1.25em 0;
  padding-left: 1.5em;
  list-style: disc;
}

.article-body .article-list li {
  margin-bottom: 0.35em;
  color: var(--color-text);
}

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-articles-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    min-height: 45vh;
    padding: 90px 16px 50px;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section {
    padding: 56px 0;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  /* Benefits list: single-column, no left/right alternation */
  .benefits-grid {
    max-width: 100%;
  }
  .benefit-card {
    width: 100%;
    align-self: stretch;
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .benefit-card:nth-child(even) {
    align-self: stretch;
    flex-direction: row;
    text-align: left;
  }
  .benefit-leading-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }
  .benefit-text {
    flex: 1 1 220px;
  }
  .blog-page,
  .article-page {
    padding-top: 88px;
  }
}

.nav-link-active {
  color: var(--color-primary) !important;
}

/* Mobile menu (optional toggle) */
.nav.open {
  display: flex;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  background: var(--color-surface);
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav.open .nav-dropdown {
  position: static;
}

.nav.open .nav-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin: 8px 0 0 12px;
  padding: 4px 0;
  min-width: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav.open .nav-dropdown.is-open .nav-dropdown-menu {
  max-height: 400px;
}

/* === Scroll to top button === */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.95);
  color: var(--color-bg);
  border: none;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease,
    background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

