body {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: rgba(17, 24, 39, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: 0.2s ease;
}

.menu a:hover {
    color: #38bdf8;
}

.hero,
.page-hero {
    text-align: center;
    padding: 80px 20px 50px;
    max-width: 1000px;
    margin: auto;
}

.hero h1,
.page-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p,
.page-hero p {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 850px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 24px;
    margin: 10px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #374151, #4b5563);
    box-shadow: 0 0 20px rgba(75, 85, 99, 0.25);
}

.section,
.content-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2,
.content-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: rgba(17, 24, 39, 0.95);
    padding: 25px;
    width: 300px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.card h3 {
    margin-top: 0;
    font-size: 24px;
}

.card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.info-box {
    background: rgba(17, 24, 39, 0.95);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
    color: #cbd5e1;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.cool-list {
    max-width: 800px;
    margin: auto;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.9;
}

.cool-list li {
    margin-bottom: 12px;
}
.contact-form {
  margin-top: 60px;
  text-align: center;
}

/* поля */
.contact-form input,
.contact-form textarea {
  display: block;
  width: 300px;
  margin: 12px auto;
  padding: 12px;

  background: #111;
  color: white;

  border: 1px solid #333;
  border-radius: 8px;
}

/* кнопка */
.btn-glow {
  margin-top: 15px;
  padding: 12px 30px;

  background: #000080;
  color: black;

  border: none;
  border-radius: 8px;

  cursor: pointer;

  transition: 0.3s;
}

/* эффект при наведении */
.btn-glow:hover {
  box-shadow: 0 0 20px #00ffcc;
  transform: scale(1.05);
}
footer { 
width: 100%;
text-align: center;
}

hr {
  margin: 60px auto;
  width: 60%;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #00ffcc, transparent);
}


/* Базовый контейнер пингвина */
.aura-container {
    cursor: pointer;
    position: absolute;
    left: calc(50% + 190px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 180px;
    height: 180px;
}

/* 1. КАРТИНКА ПИНГВИНА (Всегда стабильна, на переднем плане) */
.penguin-pic {
    width: 160px;
    height: auto;
    display: block;
    transform: scaleX(-1); /* Разворот влево к форме */
    position: relative;
    z-index: 5; /* Строго поверх всех эффектов */
}

/* Жесткая вибрация пингвина от перегрузки током при наведении */
.aura-container:hover .penguin-pic {
    animation: godspeed-vibration 0.05s infinite;
    /* Легкий электрический отсвет на самом теле пингвина */
    filter: scaleX(-1) drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #00bfff);
}

/* 2. ЦЕНТРАЛЬНОЕ ЯДРО АУРЫ (Заменяет скучный круг на рваный энергетический кокон) */
.lightning-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 10%, rgba(0,191,255,0.7) 40%, rgba(138,43,226,0) 70%);
}
.aura-container:hover .lightning-glow {
    opacity: 1;
    /* Бешеная пульсация ядра */
    animation: core-surge 0.1s linear infinite;
}

/* 3. ОБЩИЙ СТИЛЬ ДЛЯ ХАОТИЧНЫХ МОЛНИЙ (bolt-1 и bolt-2) */
.lightning-layer {
    position: absolute;
    width: 280px; /* Делаем ауру намного шире пингвина */
    height: 280px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
}
.aura-container:hover .lightning-layer {
    opacity: 1;
}

/* Первая молния: Фиолетовые рваные шпили энергии */
.bolt-1 {
    background: #a020f0;
    /* Рисуем очень сложную, остроконечную звезду/корону из молний */
    clip-path: polygon(50% 0%, 53% 20%, 70% 5%, 63% 35%, 95% 15%, 75% 50%, 100% 60%, 78% 70%, 90% 90%, 65% 80%, 50% 100%, 35% 80%, 10% 90%, 22% 70%, 0% 60%, 25% 50%, 5% 15%, 37% 35%, 30% 5%, 47% 20%);
    filter: drop-shadow(0 0 12px #a020f0) drop-shadow(0 0 25px #00bfff);
    animation: lightning-rage-1 0.15s steps(3) infinite;
}

/* Вторая молния: Голубые встречные разряды тока */
.bolt-2 {
    background: #00bfff;
    /* Другая ломаная форма, чтобы слои не перекрывали друг друга ровно */
    clip-path: polygon(50% 10%, 60% 25%, 85% 10%, 70% 40%, 95% 45%, 75% 60%, 85% 85%, 60% 75%, 50% 90%, 40% 75%, 15% 85%, 25% 60%, 5% 45%, 30% 40%, 15% 10%, 40% 25%);
    filter: drop-shadow(0 0 10px #00bfff) drop-shadow(0 0 20px #fff);
    /* Другая скорость и разворот, чтобы молнии пересекались */
    animation: lightning-rage-2 0.12s steps(2) infinite;
}

/* --- ГЕНИАЛЬНАЯ АНИМЕ-ФИЗИКА (АНИМАЦИИ) --- */

/* Сверхбыстрое сжатие и расширение ядра (эффект нестабильного тока) */
@keyframes core-surge {
    0% { transform: scale(0.85) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.15) rotate(180deg); filter: brightness(1.8); }
    100% { transform: scale(0.95) rotate(360deg); filter: brightness(1.2); }
}

/* Бешенство первого слоя молний: они резко меняют размер, крутятся и зеркалятся */
@keyframes lightning-rage-1 {
    0% { transform: scale(0.9) rotate(0deg); }
    33% { transform: scale(1.2) rotate(45deg) scaleX(-1); }
    66% { transform: scale(1.05) rotate(-30deg); }
    100% { transform: scale(1.25) rotate(90deg) scaleY(-1); }
}

/* Бешенство второго слоя молний: работает в противофазе, создавая рваный хаос */
@keyframes lightning-rage-2 {
    0% { transform: scale(1.2) rotate(180deg) scaleY(-1); }
    50% { transform: scale(0.85) rotate(60deg); }
    100% { transform: scale(1.15) rotate(-120deg) scaleX(-1); }
}

/* Агрессивная, микроскопическая тряска самого Киллуа-пингвина */
@keyframes godspeed-vibration {
    0% { transform: scaleX(-1) translate(0, 0); }
    25% { transform: scaleX(-1) translate(-2px, 2px); }
    50% { transform: scaleX(-1) translate(2px, -1px); }
    75% { transform: scaleX(-1) translate(-1px, -2px); }
    100% { transform: scaleX(-1) translate(1px, 1px); }
}
 @media (max-width: 768px) {
  .contact-form > div {
  flex-direction: column !important; 
  gap: 30px !important;
  }
  .aura-container {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 auto !important;
    width: 140px !important;
   height: 140px !important;
   }
   .penguin-pic {
   width: 110px !important;
   height: auto !important;
  }

  .penguin-aura { 
     width: 180px !important;
     height: 180px !important;
}
   .lightning-layer { 
    width: 190px !important;
     height: 190px !important;
}
