/* =========================================================
   СВЕТЛАЯ ТЕМА — ПЕРЕМЕННЫЕ
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;

  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;

  --dark-text: #1e293b;
  --light-text: #64748b;

  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

  --hero-start: var(--primary);
  --hero-end: var(--primary-dark);
}

/* =========================================================
   ОСНОВА
   ========================================================= */
body {
  font-family: "Inter", sans-serif;
  background: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.17);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  stroke: currentColor;
  fill: none;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--light-text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: white;
  padding: 80px 0;
  margin-bottom: 60px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-button {
  background: #ffffff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: 0.25s;
  border: none;
}

.cta-button:hover {
  background: #f2f4f7;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* =========================================================
   КАРТОЧКИ
   ========================================================= */
.block {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.text {
  font-size: 18px;
  color: var(--light-text);
  margin-bottom: 20px;
}

/* =========================================================
   КОМПЕТЕНЦИИ
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 24px;
  transition: 0.2s;
}

.skill-category:hover {
  background: #e2e8f0;
}

.skill-category h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3 i {
  color: var(--primary);
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.skills-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 0;
}

/* =========================================================
   ФОРМА
   ========================================================= */
.form-label {
  margin-top: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  transition: 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.submit-btn {
  margin-top: 26px;
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: 0.2s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* =========================================================
   CAPTCHA
   ========================================================= */
.captcha-wrapper {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.captcha-box {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.captcha-input {
  width: 140px;
  height: 50px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--light-bg);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--dark-text);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

#formStatus {
  display: none;
  opacity: 0;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  font-weight: 500;
  transition: opacity 0.4s ease;
}

/* Активное состояние */
#formStatus.show {
  display: block;
}
#formStatus.visible {
  opacity: 1;
}

/* =========================================================
   ТЁМНАЯ ТЕМА — переменные
   ========================================================= */
html[data-theme='dark'] {
  --light-bg: #0d1117;
  --card-bg: #161b22;

  --dark-text: #e6edf3;
  --light-text: #9da7b3;

  --border-color: #30363d;

  --dark-accent: #8cb7ff;

  --hero-start: #1b222c;
  --hero-end: #0f141a;
}

/* =========================================================
   ТЁМНАЯ ТЕМА — компоненты
   ========================================================= */

/* Лого */
html[data-theme='dark'] .logo-icon {
  background: rgba(140,183,255,0.14);
  border: 1px solid rgba(140,183,255,0.25);
  color: var(--dark-accent);
}

/* CTA button */
html[data-theme='dark'] .cta-button {
  background: rgba(140,183,255,0.15);
  color: var(--dark-accent);
  border: 1px solid rgba(140,183,255,0.25);
  transition: 0.25s;
}
html[data-theme='dark'] .cta-button:hover {
  background: rgba(140,183,255,0.25);
  border-color: rgba(140,183,255,0.35);
  transform: translateY(-3px);
}

/* Submit */
html[data-theme='dark'] .submit-btn {
  background: #1e2a3b;
  color: var(--dark-accent);
  border: 1px solid rgba(140,183,255,0.25);
}
html[data-theme='dark'] .submit-btn:hover {
  background: #2b3548;
}

/* Инпуты */
html[data-theme='dark'] .form-input,
html[data-theme='dark'] .captcha-input {
  background: #0f131a;
  border-color: #30363d;
  color: #e6edf3;
}

/* Блоки */
html[data-theme='dark'] .block {
  background: #161b22;
  border: 1px solid #232a35;
}

/* Компетенции */
html[data-theme='dark'] .skill-category {
  background: #11161f;
  border: 1px solid #1e242d;
}
html[data-theme='dark'] .skill-category:hover {
  background: #1a1f29;
}
html[data-theme='dark'] .skill-category h3 {
  color: #e6edf3;
}
html[data-theme='dark'] .skill-category h3 i {
  color: var(--dark-accent);
}
html[data-theme='dark'] .skills-list li::before {
  background: var(--dark-accent);
}

/* Заголовки */
html[data-theme='dark'] .section-title::after {
  background: var(--dark-accent);
}

/* Капча box */
html[data-theme='dark'] .captcha-box {
  background: #0f131a;
  border-color: #30363d;
}

/* Footer */
html[data-theme='dark'] footer {
  background: #0a0e14;
}


/* =========================================================
   CAPTCHA SVG override
   ========================================================= */

/* Светлая тема */
.captcha-box svg rect { fill: #f0f0f0 !important; }
.captcha-box svg text { fill: #333 !important; }
.captcha-box svg line { stroke: #bbb !important; }

/* Тёмная тема */
html[data-theme='dark'] .captcha-box svg rect { fill: #0f131a !important; }
html[data-theme='dark'] .captcha-box svg text { fill: #e6edf3 !important; }
html[data-theme='dark'] .captcha-box svg line { stroke: #555 !important; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 18px; }
  .block { padding: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .block { padding: 20px; }
}


