/* ==========================================================================
   Ванильный Пломбир Напоследок — VPS landing
   ========================================================================== */

:root {
  --ink: #1c1a16;
  --ink-soft: #48433a;
  --border: #1c1a16;
  --cream-bg: #fbf6ec;
  --cream-card: #f6ecd8;
  --cream-card-strong: #f2e2bf;
  --cream-circle: #f3e4c4;
  --white: #fffdf9;
  --gold: #b8863f;
  --green: #3a9b5c;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --shadow-card: 0 10px 24px rgba(60, 45, 20, 0.06);
  --shadow-hover: 0 16px 32px rgba(60, 45, 20, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
}

/* ---------- Reveal on load ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-black {
  background: var(--ink);
  color: var(--white);
}
.btn-black:hover { background: #2a271f; box-shadow: var(--shadow-hover); }
.btn-outline {
  background: var(--white);
  color: var(--ink);
}
.btn-outline:hover { background: var(--cream-card); }
.btn-sm {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 11px;
  width: 100%;
}
.btn .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 20px;
  margin-bottom: 0;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.main-nav a:hover { color: var(--ink); }

.header-cta { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  max-width: var(--container);
  margin: 8px auto 0;
  padding: 14px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #ece2cd;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 64px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
}
.hero-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 560px;
}
.hero-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 420px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero-info {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-info .dot { opacity: 0.5; }
.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dff2e4;
  color: var(--green);
}
.check-badge .icon { width: 9px; height: 9px; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.hero-art img {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Section shared
   ========================================================================== */
section { padding: 50px 0; }
.section-title {
  font-size: 27px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 34px;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-panel {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 34px 30px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--ink);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 190px;
  text-align: center;
}
.step-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}
.step-circle .icon { width: 22px; height: 22px; }
.step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.step-connector {
  flex: 1;
  height: 1px;
  margin-top: 29px;
  border-top: 1.6px dashed #b9ac8c;
  position: relative;
  max-width: 90px;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid #b9ac8c;
  border-right: 1.6px solid #b9ac8c;
  transform: rotate(45deg);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.period-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.period-switch-track {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  padding: 4px;
  gap: 2px;
}
.period-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.period-btn.active {
  background: var(--ink);
  color: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.price-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.price-card.featured {
  background: var(--cream-card-strong);
  margin-top: -10px;
  padding-top: 40px;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
}
.price-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.price-card.featured .price-icon { background: var(--white); }
.price-icon .icon { width: 24px; height: 24px; }
.price-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
}
.price-divider {
  border: none;
  border-top: 1.4px dashed #cabb95;
  margin: 0 0 16px;
}
.price-value {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.price-value strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Payment methods
   ========================================================================== */
.payment-panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  padding: 4px;
  flex-wrap: wrap;
}
.payment-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid #ece2cd;
  min-width: 150px;
}
.payment-item:last-child { border-right: none; }
.payment-item .icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.faq-question .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.final-cta-art { width: 110px; flex-shrink: 0; }
.final-cta-text { flex: 1; text-align: center; }
.final-cta-text h2 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.final-cta-spacer { width: 110px; flex-shrink: 0; }
@media (min-width: 900px) {
  .final-cta-spacer { display: block; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.breadcrumbs a { color: var(--ink-soft); transition: color 0.15s var(--ease); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Page hero (subpages: /vps/, /tarify/, /blog/, статьи)
   ========================================================================== */
.page-hero { padding: 44px 0 10px; }
.page-hero .container { max-width: 860px; }
.page-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.page-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.page-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 8px;
  max-width: 640px;
}

/* ==========================================================================
   Blog listing
   ========================================================================== */
.blog-category { margin: 46px 0 0; }
.blog-category-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.blog-category-desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 22px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 26px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.blog-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--cream-circle);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.blog-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.blog-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex-grow: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.blog-card-link .icon { width: 13px; height: 13px; transform: rotate(-90deg); }
.blog-card-link:hover { color: var(--gold); }

/* ==========================================================================
   Article page
   ========================================================================== */
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.article-meta .blog-card-tag { margin: 0; }
.article-outline {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 24px 26px;
  margin: 8px 0 34px;
}
.article-outline h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}
.article-outline ul { margin: 0; padding: 0; list-style: none; }
.article-outline li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid #ece2cd;
}
.article-outline li:first-child { border-top: none; padding-top: 0; }
.article-outline .icon {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--green);
}
.article-body { font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.article-body p { margin: 0 0 20px; }
.article-note {
  border: 1.5px dashed #cabb95;
  border-radius: var(--radius-md);
  background: var(--cream-card);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.article-cta {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 32px 30px;
  text-align: center;
  margin: 40px 0 10px;
}
.article-cta h2 { margin: 0 0 18px; font-size: 21px; font-weight: 700; }
.related-articles { margin: 44px 0 0; }
.related-articles h2 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.15s var(--ease);
}
.related-list a:hover { background: var(--cream-card); }
.related-list .icon { width: 13px; height: 13px; transform: rotate(-90deg); flex-shrink: 0; color: var(--ink-soft); }

/* ==========================================================================
   Simple content sections (used on /vps/ and /tarify/)
   ========================================================================== */
.content-block { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.content-block p { margin: 0 0 18px; }
.content-block h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -0.01em; }
.content-block ul { margin: 0 0 20px; padding-left: 20px; }
.content-block li { margin-bottom: 8px; line-height: 1.6; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 46px 0 40px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1.5px solid #ece2cd;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}
.footer-brand { font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 10px; }
.footer-desc { max-width: 260px; line-height: 1.6; }
.footer-col-title { font-weight: 700; color: var(--ink); font-size: 13.5px; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid #ece2cd;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
  .article-cta { padding: 26px 20px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-art { min-height: 380px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title, .hero-desc { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-info { justify-content: center; }
  .hero-art { order: -1; min-height: 300px; margin-bottom: 10px; }
  .hero-art img { max-width: 300px; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { margin-top: 0; padding-top: 30px; order: -1; }

  .steps { flex-direction: column; align-items: center; gap: 6px; }
  .step-connector {
    width: 1.6px;
    height: 30px;
    max-width: none;
    border-top: none;
    border-left: 1.6px dashed #b9ac8c;
    margin: 0;
  }
  .step-connector::after {
    right: -4px;
    top: auto;
    bottom: -1px;
    border-top: none;
    border-right: none;
    border-bottom: 1.6px solid #b9ac8c;
    border-left: 1.6px solid #b9ac8c;
  }

  .payment-panel { flex-direction: column; }
  .payment-item { border-right: none; border-bottom: 1px solid #ece2cd; justify-content: flex-start; padding-left: 20px; }
  .payment-item:last-child { border-bottom: none; }

  .final-cta { flex-direction: column; text-align: center; padding: 34px 26px; }
  .final-cta-spacer { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .site-header { top: 10px; }
  .header-inner { height: 56px; padding: 0 16px; border-radius: 18px; }
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 30px; }
  .section-title { font-size: 22px; }
  .final-cta-text h2 { font-size: 21px; }
  .period-switch-track { flex-wrap: wrap; justify-content: center; }
}
