/* ==================================================================
   SMS‑to‑Email Forwarder — refined tweaks  ▸ 2025‑06‑08
   ==================================================================
   • Tighter Hero ⇢ Features spacing
   • Full‑width hair‑line divider
   • Larger feature icons (80/48 px)
   ================================================================== */

/* ----------  VARIABLES  ---------- */
:root{
    /* Core brand colours */
    --color-primary:#2A94F4;
    --color-primary-dark:#013A8A;

    /* System colours */
    --color-success:#34C759;
    --color-danger:#FF3B30;

    /* Neutrals */
    --color-surface:#F7F9FC;
    --color-surface-alt:#FFFFFF;
    --color-border:#E5EBF3;
    --color-text-dark:#1C1C1E;
    --color-text-muted:#6E7A8A;

    /* Visuals */
    --radius:10px;
    --shadow:0 10px 20px rgba(0,0,0,.05);
    --container:1140px;
}

/* ----------  RESET / GENERICS  ---------- */
*,*::before,*::after{box-sizing:border-box;}
body{font-family:'VarelaRound',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:var(--color-text-dark);background:var(--color-surface);line-height:1.6;}

h1,h2,h3,h4{font-family:'PoppinsSemiBold',sans-serif;line-height:1.3;margin-bottom:.75em;}
h1{font-size:2.5rem;}h2{font-size:2rem;text-align:center;margin-bottom:1.5em;}h3{font-size:1.25rem;}
p{margin-bottom:1em;}
a{color:var(--color-primary);text-decoration:none;}a:hover{text-decoration:underline;}
img,.img-fluid{max-width:100%;display:block;height:auto;}

.container{max-width:var(--container);margin-inline:auto;padding-inline:15px;}
.section-padding{padding:80px 0;} .bg-light{background:var(--color-surface);} .text-center{text-align:center;}

.card{background:var(--color-surface-alt);border-radius:var(--radius);box-shadow:var(--shadow);padding:25px;}

@media(min-width:992px){body::before{content:"";position:fixed;inset:0;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none' stroke='%23ccd6e4' stroke-width='1'><path d='M0 0h40v40H0z' opacity='.08'/></svg>");background-size:40px 40px;pointer-events:none;opacity:.12;z-index:-1;}}

/* ==================================================================
   HEADER (dark variant)
   ================================================================== */
.header{position:sticky;top:0;z-index:1000;background:var(--color-primary-dark);color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.12);}  
.header-container{display:flex;justify-content:space-between;align-items:center;padding:15px 0;}
.header .logo{display:flex;align-items:center;gap:10px;font-family:'PoppinsSemiBold',sans-serif;font-size:1.25rem;color:#fff;white-space:nowrap;}
.header .logo img{height:32px;width:auto;}
.main-nav a{margin-inline:15px;font-weight:500;font-size:1rem;color:#fff;transition:opacity .2s;} .main-nav a:hover{opacity:.75;}
.header .btn-outline{border-color:#fff;color:#fff;} .header .btn-outline:hover{background:#fff;color:var(--color-primary-dark);}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn{display:inline-block;padding:10px 25px;border-radius:40px;font-weight:500;transition:all .2s;cursor:pointer;text-align:center;border:1px solid transparent;}
.btn-primary{background:var(--color-primary);color:#fff;} .btn-primary:hover{background:var(--color-primary-dark);} .btn-outline{border-color:var(--color-primary);color:var(--color-primary);} .btn-outline:hover{background:var(--color-primary);color:#fff;}
.btn-lg{padding:12px 30px;font-size:1.1rem;}

/* ==================================================================
   HERO
   ================================================================== */
.hero{background:linear-gradient(180deg,#FFFFFF 0%,var(--color-surface) 100%);padding:120px 0 30px;} /* even tighter bottom */
.hero-container{display:flex;align-items:center;gap:40px;}
.hero-content{flex:1;}
.hero .subtitle{font-size:1.1rem;color:var(--color-text-muted);margin-bottom:2em;}
.hero-content .btn-primary{display:block;margin:0 auto;}
.hero-content .availability{text-align:center;}
.hero-image{flex:0 0 40%;text-align:center;}
.hero-image img{width:100%;max-width:340px;border-radius:24px;box-shadow:0 25px 60px rgba(0,0,0,.08);}

/* ==================================================================
   FEATURES & BENEFITS
   ================================================================== */
.features{padding-top:20px;} /* very close to hero */
.features::before{content:"";display:block;width:100%;height:1px;background:rgba(0,0,0,.05);margin:0 auto 40px;}

.features-grid,.benefits-grid{display:grid;gap:30px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));}
.feature-item .feature-icon,.benefit-item .feature-icon{width:80px;height:80px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;}
.feature-icon img{width:48px;height:48px;}
.feature-item h3{margin-bottom:.5em;font-size:1.15rem;}
.feature-item p,.benefit-item p{font-size:.95rem;color:var(--color-text-muted);margin:0;}

/* ==================================================================
   SCREENSHOTS
   ================================================================== */
.screenshots-grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-top:40px;}
.screenshots-grid img{aspect-ratio:9/19;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow);max-height:600px;}

/* ==================================================================
   TESTIMONIALS
   ================================================================== */
.testimonials-grid {
  display: grid; gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px; max-width: 800px; margin-inline: auto;
}
.testimonial-card { padding: 30px; text-align: left; }
.testimonial-stars { font-size: 1.2rem; margin-bottom: 10px; }
.testimonial-card h3 { font-size: 1.1rem; margin-bottom: 0.8em; color: var(--color-text-dark); }
.testimonial-body { font-style: italic; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1em; }
.testimonial-author { font-weight: 600; font-size: 0.9rem; color: var(--color-text-dark); margin: 0; }
.testimonial-source { font-weight: 400; color: var(--color-text-muted); font-size: 0.85rem; }

/* ==================================================================
   FAQ
   ================================================================== */
.faq-item{margin-bottom:20px;border:1px solid var(--color-border);border-radius:var(--radius);padding:15px 20px;}
.faq-item summary{cursor:pointer;font-weight:600;list-style:none;}
.faq-item p{margin-top:10px;color:var(--color-text-muted);}

/* ==================================================================
   CALL‑OUTS
   ================================================================== */
.callouts{display:flex;flex-wrap:wrap;background:var(--color-surface);gap:1px;}
.callout-item{flex:1 1 50%;background:var(--color-surface-alt);padding:80px 40px;text-align:center;}
.callout-item h2{margin-bottom:.5em;}@media(max-width:768px){.callout-item{flex:1 1 100%;}}


/* ==================================================================
   SETUP GUIDE
   ================================================================== */
.guide-container .subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3em;
    color: var(--color-text-muted);
}
.setup-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.setup-step {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid var(--color-border);
}
.setup-step .step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.setup-step .step-number {
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family:'PoppinsSemiBold',sans-serif;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.setup-step h3 {
    margin: 0;
    font-size: 1.5rem;
}
.step-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.step-body .instructions {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}
.step-body .instructions strong {
    color: var(--color-text-dark);
}
.step-body .instructions ol {
    padding-left: 20px;
    margin-top: 15px;
}
 .step-body .instructions ol li {
    margin-bottom: 10px;
}
.step-body .screenshot {
    margin-top: 10px;
}
.step-body .screenshot img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
    .step-body {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    .step-body.image-right .instructions { order: 1; }
    .step-body.image-right .screenshot { order: 2; }
    .step-body.image-left .instructions { order: 2; }
    .step-body.image-left .screenshot { order: 1; }
}

/* ==================================================================
   FOOTER
   ================================================================== */
.footer{background:#073D64;color:#fff;padding:40px 0 20px;font-size:.9rem;}
.footer a{color:#ced4da;} .footer a:hover{color:#fff;text-decoration:underline;}
.footer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #495057;}
.footer-logo img{height:30px;width:auto;}
.footer-social a{width:24px;height:24px;display:inline-block;margin-left:15px;background-size:24px;opacity:.8;} .footer-social a:hover{opacity:1;}
.footer-links{display:flex;flex-wrap:wrap;gap:15px 25px;justify-content:center;margin-bottom:20px;}
.footer-bottom{text-align:center;border-top:1px solid #495057;padding-top:20px;}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос элементов */
    justify-content: center; /* Центрируем ссылки */
    gap: 10px 15px; /* Промежутки между ссылками (вертикальный и горизонтальный) */
  }
  .main-nav a {
    margin-inline: 0; /* Убираем боковые отступы, чтобы gap работал корректно */
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-container { flex-direction: column; text-align: center; }
  .hero-image { order: -1; max-width: 300px; margin-top: 30px; }
  .features-grid, .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 15px; }
  .header .logo { font-size: 1.1rem; }
  .hero-content .btn-primary { margin-inline: auto; }
  .features::before { height: 1px; }
}
@media (max-width: 576px) {
  .section-padding { padding: 40px 0; }
  .btn { padding: 8px 20px; font-size: 0.9rem; }
  .btn-lg { padding: 10px 25px; font-size: 1rem; }
}

/* ==================================================================
   PRICING (3 plans: Free / Personal / Business)
   ================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* Уменьшим гэп для 4 колонок */
  margin-top: 40px;
  max-width: 1100px;
  margin-inline: auto;
}
.pricing-plan {
  padding: 25px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pricing-plan .btn {
    margin-top: auto;
}
.pricing-plan.popular {
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
}
.popular-badge {
  position: absolute;
  top: 15px;
  right: -35px; /* Немного сдвинем */
  background-color: var(--color-primary);
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
  width: 150px;
}
.pricing-plan h3 {
  font-size: 1.3rem; /* Уменьшим для 4 колонок */
  margin-bottom: 0.5em;
}
.price {
  font-size: 1.4rem;
  font-family: 'PoppinsSemiBold', sans-serif;
  color: var(--color-primary-dark);
  margin-bottom: 0.2em;
}
.price span {
  font-size: 1.6rem;
}
.plan-description {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.5em;
  min-height: 40px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
  text-align: center;
}
.plan-features li {
  margin-bottom: 0.75em;
  color: var(--color-text-muted);
}
.plan-features strong {
  color: var(--color-text-dark);
}
.coming-soon {
  font-style: italic;
}
.badge-soon {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pricing-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Стили для нового блока */
.pricing-callout {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}
.pricing-callout h3 {
    margin-bottom: 25px;
}
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}
.option-item h4 {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}
.option-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}
/* Конец стилей для нового блока */

/* Медиа-запросы */
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .options-grid {
      grid-template-columns: 1fr 1fr;
  }
}

/* ==================================================================
   SHARED PAGE COMPONENTS
   ================================================================== */
.page-hero { margin-bottom: 3em; }
.page-hero h1 { font-size: 2.2rem; }
.page-hero .subtitle { max-width: 700px; margin: 0 auto; color: var(--color-text-muted); font-size: 1.1rem; }

.page-cta { margin-top: 4em; padding: 3em 2em; background: var(--color-surface); border-radius: var(--radius); }
.page-cta h2 { margin-bottom: 0.5em; }
.page-cta p { color: var(--color-text-muted); margin-bottom: 1.5em; }

.main-nav a.active { opacity: 0.7; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ==================================================================
   USE CASES
   ================================================================== */
.use-cases-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
.use-case-card { padding: 30px; }
.use-case-icon { font-size: 2.5rem; margin-bottom: 10px; }
.use-case-tagline { font-style: italic; color: var(--color-text-muted); margin-bottom: 1.5em; font-size: 1.05rem; }
.use-case-body h3 { font-size: 1.1rem; margin-top: 1.5em; margin-bottom: 0.5em; color: var(--color-primary-dark); }
.use-case-body p { color: var(--color-text-muted); }
.use-case-body ul { padding-left: 20px; margin-bottom: 1em; }
.use-case-body li { margin-bottom: 0.5em; color: var(--color-text-muted); }
.use-case-card .btn { margin-top: 1em; }

@media (min-width: 768px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================================
   COMPARE TABLE
   ================================================================== */
.compare-table-wrapper { overflow-x: auto; margin-bottom: 3em; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 680px; border-collapse: collapse;
  background: var(--color-surface-alt); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem; vertical-align: top;
}
.compare-table thead th {
  background: var(--color-primary-dark); color: #fff;
  font-family: 'PoppinsSemiBold', sans-serif; font-size: 0.9rem;
  position: sticky; top: 0;
}
.compare-table thead th small { font-weight: 400; opacity: 0.8; display: block; margin-top: 2px; }
.compare-table thead th.highlight-col { background: var(--color-primary); }
.compare-table td.highlight-col { background: rgba(42, 148, 244, 0.06); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(42, 148, 244, 0.03); }

.compare-analysis { margin-top: 2em; }
.compare-analysis h2 { margin-bottom: 1em; }
.analysis-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.analysis-card h3 { margin-bottom: 0.5em; }
.analysis-card p { color: var(--color-text-muted); margin: 0; }

@media (min-width: 768px) {
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================================
   BLOG
   ================================================================== */
.blog-list { display: grid; gap: 25px; grid-template-columns: 1fr; }
.blog-card { padding: 25px; display: flex; flex-direction: column; }
.blog-card h2 { font-size: 1.3rem; margin-bottom: 0.3em; }
.blog-card h2 a { color: var(--color-text-dark); text-decoration: none; }
.blog-card h2 a:hover { color: var(--color-primary); }
.blog-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1em; }
.blog-card p { color: var(--color-text-muted); flex: 1; }
.blog-card .btn { align-self: flex-start; margin-top: 1em; }

@media (min-width: 768px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .blog-list { grid-template-columns: repeat(3, 1fr); }
}

/* Blog Article */
.blog-article { max-width: 780px; margin: 0 auto; }
.blog-article h1 { font-size: 2rem; margin-bottom: 0.3em; }
.blog-article .blog-meta { margin-bottom: 2em; }
.blog-article h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 0.5em; color: var(--color-primary-dark); text-align: left; }
.blog-article h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: 0.5em; }
.blog-article p { color: var(--color-text-muted); line-height: 1.8; }
.blog-article ul, .blog-article ol { padding-left: 20px; margin-bottom: 1.5em; }
.blog-article li { margin-bottom: 0.5em; color: var(--color-text-muted); line-height: 1.7; }
.blog-article blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5em 0; padding: 15px 20px;
  background: rgba(42, 148, 244, 0.05); border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-article blockquote p { margin: 0; font-style: italic; }
.blog-article code {
  background: var(--color-surface);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em;
}

/* Blog CTA box */
.blog-cta-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: 30px; border-radius: var(--radius);
  text-align: center; margin: 3em 0;
}
.blog-cta-box h3 { color: #fff; margin-bottom: 0.5em; }
.blog-cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.5em; }
.blog-cta-box .btn { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.blog-cta-box .btn:hover { background: rgba(255,255,255,0.9); }