
/* Базовые стили */
:root {
    --primary: #ff6a00;
    --dark: #0f172a;
    --text: #334155;
    --bg: #f8fafc;
    --card: #ffffff;
    --muted: #64748b;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 14px 20px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 600; transition: transform .1s ease-in-out, box-shadow .2s; box-shadow: 0 6px 16px rgba(255,106,0,.25); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,106,0,.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .title { font-weight: 800; letter-spacing: .3px; color: var(--dark); }
.nav a { font-weight: 600; color: var(--muted); }
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 44px); color: var(--dark); line-height: 1.1; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); margin: 0 0 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.kpi .item { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid #e2e8f0; }
.section { padding: 36px 0; }
.section h2 { text-align: center; margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 32px); color: var(--dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how .step { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed #e2e8f0; }
.how .num { min-width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.tariffs { align-items: stretch; }
.tariff { display: flex; flex-direction: column; gap: 12px; border: 1px solid #e2e8f0; }
.tariff h3 { margin: 0; color: var(--dark); }
.tariff .price { font-size: 26px; font-weight: 800; color: var(--dark); }
.tariff .hint { color: var(--muted); font-size: 14px; }
.tariff .spacer { flex: 1; }
.features li { margin: 6px 0; }
.cta-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: center; }
form { display: grid; gap: 10px; }
input, textarea { padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
footer { padding: 30px 0 50px; color: var(--muted); border-top: 1px solid #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: center; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
    .hero-grid, .cta-card, .footer-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .kpi { grid-template-columns: 1fr; }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
}

.thumb {
  max-width: 240px;
  max-height: 280px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#lightbox {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

header.site-header { 
    position: sticky; 
    top: 0; 
    backdrop-filter: saturate(180%) blur(8px); 
    background: #e67e22; 
    border-bottom: 1px solid #e2e8f0; 
    z-index: 10; 
}

.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.screenshot-gallery img {
    max-width: 250px;      /* фиксированная ширина */
    height: 150px;         /* фиксированная высота */
    object-fit: cover;     /* обрезка по краям, чтобы заполнить блок */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0;  
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;  
}

.modal-scroll {
  padding: 20px 30px;
  max-height: 80vh;
  overflow-y: auto;
}


.close {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #999;
  font-size: 28px;
  cursor: pointer;
}

#results .features li {
    margin: 8px 0;
    font-size: 16px;
}
#results .lead {
    font-size: 18px;
    margin-bottom: 14px;
}