/* Стили новой главной страницы. Все правила начинаются с .gl, чтобы не затрагивать остальные страницы и редактор. */

.gl { max-width: 1100px; margin: 0 auto; padding: 0 14px 30px; color: #1c2a2a; line-height: 1.5; }
.gl * { font-family: Verdana, Tahoma, sans-serif; }
.gl p { text-indent: 0; padding: 0; }
.gl h1, .gl h2, .gl h3 { text-align: left; }
.gl img { max-width: 100%; height: auto; }

/* Первый экран */
.gl-hero { background: #fff; border-radius: 16px; padding: 28px 24px 22px; margin-top: 16px; box-shadow: 0 2px 14px rgba(0, 90, 90, .15); text-align: center; }
.gl-hero h1 { font-size: 2em; line-height: 1.2; color: #0a7a2f; text-align: center; margin: 0 0 12px; }
.gl-lead { font-size: 1.1em; max-width: 760px; margin: 0 auto 20px; color: #33484a; }
.gl-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-bottom: 16px; }
.gl-actions form { margin: 0; }
.gl-btn { box-sizing: border-box; display: inline-block; cursor: pointer; border: 0; border-radius: 10px; padding: 14px 24px; font-size: 1.05em; font-weight: bold; text-decoration: none; line-height: 1.2; }
.gl-btn-main { background: #19b34a; color: #fff; box-shadow: 0 3px 0 #0e8535; }
.gl-btn-main:hover { background: #14a042; }
.gl-btn-sec { background: #fff; color: #0a7a2f; border: 2px solid #19b34a; padding: 12px 22px; }
.gl-btn-sec:hover { background: #effaf2; }
.gl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; }
.gl-chips li { list-style: none; background: #e8f7ee; color: #0a5f26; border-radius: 20px; padding: 5px 14px; font-size: .88em; }
.gl-shot { margin: 22px 0 0; }
.gl-shot img { border-radius: 10px; border: 1px solid #cfe3e3; display: block; margin: 0 auto; }
.gl-shot figcaption { font-size: .85em; color: #5b6f70; margin-top: 8px; }

/* Заголовки секций */
.gl-sec { margin-top: 38px; }
.gl-sec > h2 { font-size: 1.5em; color: #0a5f26; margin: 0 0 6px; }
.gl-sub { color: #4a5f60; margin: 0 0 16px; }

/* Карточки */
.gl-grid { display: grid; gap: 14px; }
.gl-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gl-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gl-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); border-top: 4px solid #19b34a; }
.gl-card h3 { font-size: 1.05em; color: #0a5f26; margin: 0 0 8px; }
.gl-card p { font-size: .93em; color: #33484a; }

/* Шаги */
.gl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; counter-reset: gl-step; }
.gl-step { background: #fff; border-radius: 12px; padding: 18px 18px 18px 64px; position: relative; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); }
.gl-step::before { counter-increment: gl-step; content: counter(gl-step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #19b34a; color: #fff; font-weight: bold; font-size: 1.1em; text-align: center; line-height: 34px; }
.gl-step h3 { font-size: 1.05em; color: #0a5f26; margin: 0 0 6px; }
.gl-step p { font-size: .93em; color: #33484a; }

/* Галерея примеров */
.gl-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.gl-gallery figure { background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); margin: 0; }
.gl-gallery img { display: block; width: 100%; border-radius: 8px; }
.gl-gallery figcaption { font-size: .88em; color: #4a5f60; padding: 8px 4px 2px; text-align: center; }

/* Блок доверия */
.gl-trust { background: #fff; border-left: 5px solid #19b34a; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); }
.gl-trust h2 { margin-top: 0; }
.gl-trust ul { margin: 8px 0 10px 0; padding-left: 20px; }
.gl-trust li { list-style: disc outside; padding: 2px 0; font-size: .95em; }

/* Встроенный гостевой редактор */
.gl-editor { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); overflow-x: auto; }
.gl-editor-cta { text-align: center; margin-top: 16px; }
.gl-editor-cta form { display: inline-block; margin: 0; }

/* Списки возможностей */
.gl-features { columns: 2 340px; column-gap: 30px; margin: 8px 0 0; padding: 0; }
.gl-features li { list-style: none; position: relative; padding: 4px 0 4px 24px; break-inside: avoid; font-size: .95em; }
.gl-features li::before { content: "✓"; position: absolute; left: 2px; color: #19b34a; font-weight: bold; }

/* Для зарегистрированных */
.gl-account { background: linear-gradient(135deg, #e8f7ee, #dff3f6); border-radius: 14px; padding: 22px; }
.gl-account ul { margin: 10px 0 14px; padding: 0; }
.gl-account li { list-style: none; padding: 3px 0 3px 24px; position: relative; }
.gl-account li::before { content: "✓"; position: absolute; left: 2px; color: #0a7a2f; font-weight: bold; }

/* Вопросы и ответы */
.gl-faq details { background: #fff; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0, 90, 90, .1); }
.gl-faq summary { cursor: pointer; padding: 14px 18px; font-weight: bold; color: #0a5f26; list-style: none; position: relative; padding-right: 44px; }
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4em; color: #19b34a; }
.gl-faq details[open] summary::after { content: "−"; }
.gl-faq details p { padding: 0 18px 16px; color: #33484a; font-size: .95em; }

/* Регистрация и карта */
.gl-reg { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 8px rgba(0, 90, 90, .12); }
.gl-reg ol { margin: 8px 0 14px 22px; padding: 0; }
.gl-reg ol li { list-style: decimal outside; padding: 3px 0; }
.gl-reg #map_vsj_login { margin-left: 0 !important; width: 100% !important; max-width: 100%; }

@media (max-width: 600px) {
  .gl-hero { padding: 20px 14px 16px; }
  .gl-hero h1 { font-size: 1.5em; }
  .gl-btn { width: 100%; text-align: center; }
  .gl-actions form { width: 100%; }
  .gl-sec { margin-top: 28px; }
}
