:root { --primary: #004d40; --secondary: #00796b; --accent: #ff6f00; --bg: #f4f6f8; --text: #333333; }
html, body { height: 100%; display: flex; flex-direction: column; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; }
* { box-sizing: border-box; }
.content-wrapper { flex: 1 0 auto; width: 100%; display: block; }

/* Навигация */
.site-nav { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.site-nav .inner { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-nav .brand { font-weight: 800; color: var(--primary); font-size: 1.05rem; padding: 14px 0; text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 12px 12px; text-decoration: none; color: #555; font-size: 0.92rem; font-weight: 500; border-bottom: 3px solid transparent; transition: all .15s; }
.site-nav a:hover { color: var(--primary); background: #f8f9fa; }
.site-nav a.active { color: var(--primary); border-bottom-color: var(--accent); }

.tatarstan-banner { width: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin-bottom: 40px; }
.bg-green { background-color: #007A33; padding: 50px 20px 35px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; color: white; }
.bg-white { background-color: #FFFFFF; height: 15px; width: 100%; }
.bg-red { background-color: #CE1126; padding: 30px 20px 40px 20px; text-align: center; color: white; }
.kazan-crest { width: 120px; margin-bottom: 25px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.bg-green h1 { font-size: 44px; font-weight: 800; margin: 0; line-height: 1.1; text-shadow: 2px 2px 5px rgba(0,0,0,0.3); }
.bg-red p { font-size: 22px; font-weight: 500; max-width: 1100px; margin: 0 auto; line-height: 1.4; text-shadow: 1px 1px 4px rgba(0,0,0,0.2); }
.site-footer { flex-shrink: 0; background-color: #e6e6e6; color: #555555; text-align: center; padding: 30px 20px; font-size: 15px; width: 100%; margin-top: 40px; }
.site-footer a { color: var(--primary); text-decoration: none; }

.container { max-width: 1000px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.card { background: white; border-radius: 12px; padding: 2.2rem; box-shadow: rgba(0,0,0,0.05) 0px 10px 30px; margin-bottom: 2rem; }
h2 { color: var(--primary); margin-bottom: 1rem; font-size: 1.7rem; }
h3 { color: var(--secondary); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.feature-item { background: #fafafa; border-left: 4px solid var(--accent); padding: 1.4rem; border-radius: 4px; }
.feature-item h3 { margin-top: 0; margin-bottom: 0.5rem; }
.intro { font-size: 1.08rem; color: #444; }

/* Отзывы */
.review { background: #fafafa; border-radius: 10px; padding: 1.4rem; margin-bottom: 1.2rem; border-left: 4px solid var(--secondary); }
.review .who { font-weight: 700; color: var(--primary); }
.review .date { font-size: 0.85rem; color: #888; margin-left: 8px; }
.review .stars { color: #ffb300; margin: 4px 0 8px; letter-spacing: 2px; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; background: #fafafa; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.gallery img { width: 100%; height: 190px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: 0.9rem; color: #555; }

/* Таймлайн */
.timeline { border-left: 3px solid var(--accent); margin-left: 10px; padding-left: 24px; }
.timeline .step { margin-bottom: 1.6rem; position: relative; }
.timeline .step::before { content: ''; position: absolute; left: -32px; top: 6px; width: 13px; height: 13px; background: var(--accent); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.timeline .when { font-weight: 700; color: var(--primary); font-size: 0.95rem; }

table.info { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.info td { padding: 10px 12px; border-bottom: 1px solid #eee; }
table.info td:first-child { color: #666; width: 40%; }
table.info td:last-child { font-weight: 600; }

@media (max-width: 768px) {
  .bg-green h1 { font-size: 30px; }
  .bg-red p { font-size: 17px; }
  .kazan-crest { width: 90px; }
  .site-nav .inner { justify-content: center; }
  .site-nav ul { justify-content: center; }
}

/* Переключатель языка */
.lang-sw { display: block; padding: 8px 14px; margin: 6px 0; border: 1.5px solid var(--primary); border-radius: 6px; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-decoration: none; letter-spacing: 0.5px; transition: all .15s; }
.lang-sw:hover { background: var(--primary); color: #fff; }
.site-nav .inner { gap: 10px; }

/* Lightbox */
.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lb-overlay.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); background: #111; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s; font-family: Arial, sans-serif; }
.lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-download { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600; transition: background .15s; }
.lb-download:hover { background: rgba(255,255,255,0.3); }
.lb-caption { position: absolute; bottom: 78px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 0.95rem; padding: 0 20px; }
.gallery figure a { cursor: zoom-in; display: block; }
@media (max-width: 768px) { .lb-img { max-width: 96vw; max-height: 78vh; } .lb-close { top: 10px; right: 12px; width: 40px; height: 40px; } }
