/* /style.css - Общие стили для всего сайта Rybinsk.my */

/* ===================================================================
   1. Основные стили и фон
   =================================================================== */
body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; color: #fff; overflow-x: hidden; position: relative; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #007bff, #00c6ff, #9d4edd, #d00000, #ff7f50); background-size: 400% 400%; animation: gradientAnimation 25s ease infinite; z-index: -1; }
@keyframes gradientAnimation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; text-align: center; position: relative; z-index: 1; }
#services, #catalog-section { background-color: rgba(255, 255, 255, 0.98); color: #333; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
#about, #waf-promo { background-color: rgba(0, 0, 0, 0.85); color: #fff; }
h1, h2, h3, p { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
#services h2, #services h3, #services p, #catalog-section h2, #catalog-section p, #waf-promo h2, #waf-promo p { text-shadow: none; }

/* ===================================================================
   2. Шапка (Header) и навигация
   =================================================================== */
header { background-color: rgba(0, 0, 0, 0.8); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6em; font-weight: 900; color: #00c6ff; text-decoration: none; margin-right: 15px; }
nav.desktop-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 15px; }
nav.desktop-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1em; padding: 5px 0; transition: color 0.3s ease; white-space: nowrap; }
nav.desktop-nav a:hover, nav.desktop-nav a.active { color: #00c6ff; }
.hamburger-menu { display: none; font-size: 1.8em; color: #fff; cursor: pointer; z-index: 1020; }
.mobile-nav { display: none; position: fixed; top: 0; right: -300px; width: 250px; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 1010; transition: right 0.3s ease-out; padding-top: 80px; box-sizing: border-box; }
.mobile-nav.active { right: 0; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.mobile-nav ul li a { display: block; padding: 10px 20px; color: #fff; text-decoration: none; font-size: 1.2em; }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2em; color: #fff; cursor: pointer; }

/* ===================================================================
   3. Секции главной страницы
   =================================================================== */
#hero { padding-top: calc(70px + 30px); min-height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; }
#hero h1 { font-size: 3.2em; margin-bottom: 15px; font-weight: 900; }
#hero p { font-size: 1.3em; font-weight: 300; margin-bottom: 30px; max-width: 900px; margin-left: auto; margin-right: auto; }
.highlight { color: #00c6ff; }
.cta-button { display: inline-block; background-color: #00c6ff; color: #000; padding: 15px 30px; font-size: 1.2em; font-weight: 700; text-decoration: none; border-radius: 5px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.cta-button:hover { background-color: #00b0e0; transform: translateY(-3px); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; }
.service-item { padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; color: #333; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.service-icon { font-size: 2.5em; color: #007bff; margin-bottom: 15px; width: 100%; text-align: center; }
#about p { max-width: 800px; margin: 0 auto; font-size: 1.2em; line-height: 1.6; }
.project-name-highlight { font-weight: 700; color: #00c6ff; }
.former-name-lowlight { font-weight: 400; opacity: 0.8; }

/* ===================================================================
   4. Футер
   =================================================================== */
footer { background-color: rgba(0, 0, 0, 0.9); color: #ccc; padding: 30px 20px; text-align: center; font-size: 0.9em; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 15px; }
footer nav ul { gap: 15px; }
footer nav a { color: #ccc; }

/* ===================================================================
   5. Общие компоненты (переключатель языка, cookie)
   =================================================================== */
.floating-language-switcher { position: fixed; bottom: 20px; right: 20px; z-index: 100; }
.language-button { background-color: rgba(0, 0, 0, 0.7); color: #fff; border: 1px solid #fff; border-radius: 5px; padding: 10px 15px; cursor: pointer; display: flex; align-items: center; }
.language-button i { margin-right: 8px; }
.language-list { position: absolute; bottom: calc(100% + 10px); right: 0; background-color: rgba(0, 0, 0, 0.8); border-radius: 5px; opacity: 0; visibility: hidden; transition: all 0.3s ease; min-width: 150px; }
.language-list.show { opacity: 1; visibility: visible; }
.language-list ul { list-style: none; margin: 0; padding: 10px 0; }
.language-list li a { display: block; padding: 10px 15px; color: #fff; text-decoration: none; text-align: left; }
.language-list li a.active { font-weight: 700; color: #00c6ff; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background-color: rgba(0, 0, 0, 0.9); padding: 15px 20px; font-size: 0.9em; display: flex; justify-content: center; align-items: center; gap: 15px; transform: translateY(100%); transition: transform 0.4s ease-out; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { text-shadow: none; margin: 0; }
.cookie-banner p a.cookie-link { color: #00c6ff; }
.cookie-banner button { background-color: #28a745; color: white; padding: 8px 15px; border: none; border-radius: 4px; cursor: pointer; white-space: nowrap; }

/* ===================================================================
   6. Адаптивность
   =================================================================== */
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    header .container { flex-wrap: nowrap; }
    nav.desktop-nav { display: none; }
    .hamburger-menu, .mobile-nav { display: block; }
    #hero { text-align: left; }
    #hero h1 { font-size: 2.2em; }
    #hero p { font-size: 1.1em; }
}