﻿:root { --primary: #0A2540; --accent: #10B981; --accent-hover: #059669; --bg: #f8fafc; --text: #0A2540; --error: #e74c3c; --success: #27ae60; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; font-family: system-ui, -apple-system, 'Inter', sans-serif; background: var(--bg); color: var(--text); padding-top: 120px; line-height: 1.6; overflow-x: hidden; }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--accent); color: white; padding: 10px 15px; text-decoration: none; font-weight: 700; z-index: 10000; transition: top 0.2s ease; }
.skip-link:focus { top: 0; outline: 3px solid var(--primary); }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-main { background: var(--primary); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.burger-btn { background: transparent; border: none; display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 5px; }
.burger-line { width: 30px; height: 3px; background: white; border-radius: 2px; }
.header-logo { font-size: 2rem; font-weight: 900; color: white; text-decoration: none; letter-spacing: 1px; }
.header-action-btn { background: var(--accent) !important; color: white !important; padding: 0.6rem 1.4rem !important; border-radius: 50px !important; font-weight: 700 !important; text-decoration: none !important; transition: all 0.3s ease; white-space: nowrap; }
.header-action-btn:hover { background: var(--accent-hover) !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.header-nav-bar { background: white; border-bottom: 2px solid #e5e7eb; display: flex; align-items: center; padding: 0 0.5rem; position: relative; }
.nav-arrow { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; background: white; border: none; font-size: 1.2rem; cursor: pointer; color: var(--primary); z-index: 10; transition: color 0.2s; }
.nav-arrow:hover { color: var(--accent); }
.scroll-nav { display: flex; overflow-x: auto; scrollbar-width: none; flex-grow: 1; align-items: center; gap: 2rem; padding: 0.8rem 1rem; scroll-behavior: smooth; }
.scroll-nav::-webkit-scrollbar { display: none; }
.scroll-nav a { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; transition: color 0.2s; }
.scroll-nav a:hover, .scroll-nav a[aria-current="page"] { color: var(--accent); }

.side-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s; }
.side-menu-overlay.active { opacity: 1; visibility: visible; }
.side-menu { position: fixed; top: 0; left: -100%; width: 300px; max-width: 85vw; height: 100vh; background: var(--primary); z-index: 2000; transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1); padding: 2rem; box-shadow: 4px 0 15px rgba(0,0,0,0.3); }
.side-menu.active { left: 0; }
.side-menu-header { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.side-menu-close { background: transparent; border: none; color: white; font-size: 1.8rem; cursor: pointer; }
.side-nav-links { display: flex; flex-direction: column; gap: 1.5rem; }
.side-nav-links a { color: white; text-decoration: none; font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; transition: color 0.2s; }
.side-nav-links a:hover, .side-nav-links a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); padding-left: 10px; background: rgba(16, 185, 129, 0.05); }
.lang-switcher { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.lang-switcher a { color: #9ca3af; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: color 0.3s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--accent); }

.vdr-btn-container { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--accent); border-radius: 50px; z-index: 2000; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.vdr-btn-expanded { display: flex; align-items: stretch; }
.vdr-btn { background: transparent; color: white; border: none; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; white-space: nowrap; }
.vdr-btn-hide { background: transparent; color: white; border: none; border-left: 1px solid rgba(255,255,255,0.3); padding: 0 1.2rem; cursor: pointer; font-size: 1.2rem; }
.vdr-btn-collapsed { display: none; background: rgba(255,255,255,0.85); backdrop-filter: blur(5px); border: 2px solid var(--accent); color: var(--accent); width: 60px; height: 60px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: 0.3s; }
.vdr-btn-collapsed:hover { background: var(--accent); color: white; border-color: transparent; transform: scale(1.1); }
.vdr-btn-collapsed:hover svg { stroke: white; }
.vdr-btn-container.collapsed { background: transparent; box-shadow: none; left: 1.5rem; transform: none; right: auto; }
.vdr-btn-container.collapsed .vdr-btn-expanded { display: none; }
.vdr-btn-container.collapsed .vdr-btn-collapsed { display: flex; }

.vdr-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2005; opacity: 0; visibility: hidden; transition: 0.3s; }
.vdr-overlay.active { opacity: 1; visibility: visible; }
.vdr-panel { position: fixed; bottom: 0; left: 0; width: 100%; max-height: 95vh; background: #fff; z-index: 2006; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); text-align: center; overflow-y: auto; }
.vdr-panel.active { transform: translateY(0); }
.vdr-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(16,185,129,0.1); border: 2px solid var(--accent); color: var(--accent); font-size: 1.2rem; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 10; }
.vdr-close:hover { background: var(--accent); color: white; transform: scale(1.1); }
.vdr-content { padding: 4rem 1.5rem 1rem; max-width: 500px; margin: 0 auto; }
.vdr-logo { font-weight: 900; font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.vdr-title { color: var(--primary); font-size: 1.8rem; margin-bottom: 1rem; text-transform: uppercase; }
.vdr-desc { color: #6b7280; margin-bottom: 1.5rem; }
.vdr-input { width: 100%; padding: 1rem; border: 1px solid #d1d5db; border-radius: 50px; margin-bottom: 1rem; box-sizing: border-box; text-align: center; font-size: 1rem; }
.vdr-input:focus { outline: none; border-color: var(--accent); }
.vdr-submit { background: var(--accent); color: white; border: none; padding: 1rem; border-radius: 50px; width: 100%; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: background 0.3s; }
.vdr-submit:hover { background: var(--accent-hover); }
#vdr-form-message { margin-top: 1rem; font-size: 0.9rem; }
label[for="privacy-consent"] a { color: var(--accent-hover) !important; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
label[for="privacy-consent"] a:hover { color: var(--primary) !important; }

@keyframes holo { 0% { background-position: 0%; } 100% { background-position: 200%; } }
.holo-text { color: var(--primary); background: linear-gradient(90deg, #00f260, #0575e6, #f200cb, #00f260); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: holo 3s linear infinite; }

.hero-section { background: var(--primary); color: white; padding: 3rem 1.5rem 4rem; text-align: center; margin-top: -2px; }
.hero-container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.hero-title { font-size: 2.2rem; font-weight: 900; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; color: #9ca3af; margin: 0 0 2rem; line-height: 1.5; }
.hero-btn { display: inline-block; background: var(--accent); color: white; padding: 1rem 2rem; border-radius: 50px; font-size: 1rem; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: 0.3s; box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.hero-btn:hover { background: var(--accent-hover); transform: translateY(-3px); }
.hero-image-wrapper { width: 100%; max-width: 350px; background: rgba(255,255,255,0.05); border-radius: 20px; border: 2px dashed rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; height: 350px; color: rgba(255,255,255,0.5); font-weight: bold; }
.floating-card { animation: float-card 6s ease-in-out infinite; background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0)); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
@keyframes float-card { 0% { transform: translateY(0px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); } 50% { transform: translateY(-15px); box-shadow: 0 25px 35px rgba(0,0,0,0.4); } 100% { transform: translateY(0px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); } }

.news-feed-section { padding: 4rem 1.5rem 0; max-width: 1100px; margin: 0 auto; }
.news-feed-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #e5e7eb; padding-bottom: 1rem; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.view-all-link { color: var(--primary); font-weight: 700; text-decoration: none; transition: 0.3s; }
.view-all-link:hover { color: var(--accent); transform: translateX(5px); }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.tech-news-card { background: white; border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: 0 12px 12px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s; }
.tech-news-card:hover { transform: translateX(5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-left-color: var(--accent-hover); }
.tech-news-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.85rem; flex-wrap: wrap; gap: 0.5rem; }
.tech-news-tag { background: rgba(16,185,129,0.1); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tech-news-date { color: #9ca3af; font-weight: 500; }
.tech-news-title { margin: 0 0 0.8rem; font-size: 1.25rem; color: var(--primary); line-height: 1.4; font-weight: 800; }
.tech-news-summary { margin: 0; color: #4b5563; line-height: 1.6; font-size: 0.95rem; }

.info-section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 2.5rem; text-transform: uppercase; font-weight: 900; letter-spacing: 1px; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.info-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; transition: 0.3s; display: flex; flex-direction: column; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.info-card h3 { color: var(--primary); font-size: 1.3rem; margin-top: 0; margin-bottom: 1rem; text-transform: uppercase; font-weight: 800; }
.info-card p { color: #4b5563; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.card-link { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; font-size: 1.05rem; }
.card-link:hover { text-decoration: underline; color: var(--accent-hover); }

.site-footer { background: var(--primary); color: #e5e7eb; padding: 4rem 1.5rem 1.5rem; margin-top: 4rem; border-top: 4px solid var(--accent); position: relative; z-index: 10; }
.footer-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.8rem; font-weight: 900; text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.footer-desc { color: #9ca3af; line-height: 1.6; font-size: 0.95rem; }
.footer-heading { color: white; font-size: 1.2rem; font-weight: 700; margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.footer-list li { color: #9ca3af; font-size: 0.95rem; }
.footer-list a { color: #9ca3af; text-decoration: none; transition: color 0.2s; display: inline-block; }
.footer-list a:hover { color: var(--accent); }
.footer-contact .footer-list li { display: flex; align-items: center; gap: 0.5rem; }
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1rem; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: white; transition: 0.3s; }
.social-btn:hover { transform: scale(1.1); filter: brightness(1.15); }
.social-icon { width: 22px; height: 22px; fill: currentColor; }
.social-yt { background: #FF0000; } .social-tg { background: #229ED9; } .social-fb { background: #1877F2; } .social-x { background: #000; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; font-size: 0.85rem; color: #6b7280; }

@media (min-width: 768px) {
  .hero-section { padding: 6rem 2rem; text-align: left; }
  .hero-container { flex-direction: row; justify-content: space-between; }
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.25rem; max-width: 500px; }
  .hero-text { flex: 1; padding-right: 2rem; }
  .hero-image-wrapper { flex: 1; height: 450px; max-width: 450px; }
  .section-title { font-size: 2.5rem; margin-bottom: 3.5rem; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-news-card { border-left: none; border-top: 4px solid var(--accent); border-radius: 0 0 12px 12px; }
  .tech-news-card:hover { transform: translateY(-5px); border-top-color: var(--accent-hover); }
  .footer-container { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (max-width: 600px) {
  .header-logo { font-size: 1.5rem; }
  .header-action-btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .header-main { padding: 0.8rem 1rem; gap: 0.5rem; }
  .header-logo { font-size: 1.15rem; letter-spacing: 0; }
  .header-action-btn { padding: 0.5rem 0.8rem !important; font-size: 0.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* Доступность: скрытый, но читаемый скринридерами текст */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Доступность: скрытый, но читаемый скринридерами текст */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-tt { background: #000; }

/* Фикс: Боковое меню перекрывает кружок VDR */
.vdr-btn-container { z-index: 1990 !important; }
.side-menu-overlay { z-index: 2010 !important; }
.side-menu { z-index: 2011 !important; }

/* Перенос языков вниз меню + иконка глобуса */
.side-menu { display: flex !important; flex-direction: column !important; }
.lang-switcher { margin-top: auto !important; display: flex; align-items: center; gap: 0.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; }
.globe-icon { width: 22px; height: 22px; fill: #9ca3af; }
.lang-links { display: flex; gap: 1rem; }

/* Уменьшение бокового меню и подгонка контента */
.side-menu { width: 260px !important; padding: 1.5rem !important; height: 100dvh !important; }
.side-menu-header { margin-bottom: 1.5rem !important; }
.side-nav-links { gap: 1rem !important; }
.lang-switcher { padding-top: 1rem !important; }

/* Фикс: Длинные слова в заголовках на мобильных экранах */
.hero-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) { .hero-title { font-size: 1.5rem !important; letter-spacing: 0 !important; line-height: 1.2 !important; } .hero-subtitle { font-size: 0.95rem !important; padding: 0 0.5rem; } }

/* Перенос фото над текстом в мобильной версии */
@media (max-width: 767px) { .hero-image-wrapper { order: 1 !important; } .hero-text { order: 2 !important; } }

/* Скрываем кнопку VDR в шапке на мобильных устройствах */
@media (max-width: 767px) { .header-action-btn { display: none !important; } }
