@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700&display=swap");

:root {
  --purple: #7e57ff;
  --blue: #00eaff;
  --bg: #12052c;
  --bg-alt: #1d0840;
  --text: #e2e5fa;
  --accent: #3b266a;
  --radius: 13px;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(
    115deg,
    var(--bg),
    var(--accent) 85%,
    var(--bg) 100%
  );
}

header,
footer {
  background: var(--bg-alt);
  padding: 24px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.19);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}
.logo .logo-text {
  font-size: 1.05rem;
}

nav {
  display: flex;
  gap: 32px;
}
footer nav {
  flex-wrap: wrap;
}
nav a {
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
nav a:hover {
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
}

main {
  max-width: 960px;
  margin: 32px auto;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(29, 8, 64, 0.92);
  box-shadow: 0 4px 32px rgba(66, 62, 119, 0.12);
}

h1,
h2,
h3,
h4 {
  color: var(--purple);
  margin-top: 0;
  letter-spacing: 0.01em;
}
a {
  color: var(--blue);
}

section {
  margin-bottom: 48px;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  padding: 28px 20px;
  margin-bottom: 32px;
  border: 1.5px solid var(--accent);
  transition: box-shadow 0.22s, border-color 0.22s;
}
.card:hover {
  box-shadow: 0 3px 24px var(--purple);
  border-color: var(--blue);
}

.cta-btn {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: var(--bg);
  padding: 13px 34px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
  font-size: 1.05em;
  margin-top: 18px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 16px #12052c50;
  cursor: pointer;
  transition: background 0.27s, color 0.19s;
}
.cta-btn:hover {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: var(--text);
}

input,
textarea,
select {
  background: var(--accent);
  color: var(--text);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 1em;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--purple);
}

.faq {
  margin-top: 32px;
}
.faq-item {
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1.2px solid var(--accent);
}
.faq-question {
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  color: var(--blue);
  background: var(--accent);
  transition: background 0.22s;
}
.faq-question:hover {
  background: var(--purple);
  color: var(--bg);
}
.faq-answer {
  padding: 0 20px 18px 20px;
  display: none;
  color: var(--text);
}
.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

::-webkit-scrollbar {
  background: var(--bg);
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 5px;
}

/* --- Burger menu --- */
.burger {
  display: none;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 50;
  margin-left: 8px;
}
.burger span {
  display: block;
  width: 30px;
  height: 4px;
  background: var(--blue);
  border-radius: 4px;
  transition: all 0.3s;
}
@media (max-width: 800px) {
  /* Footer: allow multiple rows on mobile */
  footer nav {
    justify-content: center;
    gap: 18px;
    row-gap: 10px;
    flex-wrap: wrap;
  }
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 74vw;
    max-width: 340px;
    background: var(--bg-alt);
    box-shadow: 2px 0 30px #0008;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 84px 26px 26px 26px;
    transform: translateX(-120%);
    transition: transform 0.28s;
    z-index: 40;
  }
  header nav.open {
    transform: none;
  }
  header {
    position: relative;
    height: 30px;
    z-index: 60;
  }
  .burger {
    display: flex;
    position: absolute;
    top: 22px;
    right: 32px;
  }
}
@media (min-width: 801px) {
  .burger {
    display: none;
  }
  header nav {
    position: static !important;
    transform: none !important;
    height: auto !important;
    box-shadow: none !important;
    width: auto !important;
    padding: 0 !important;
    gap: 32px !important;
    flex-direction: row !important;
  }
}

/* Основной стиль контактной формы (ильетисим) */
#iletisim-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
#iletisim-form label {
  font-size: 1.07em;
  font-weight: 500;
  margin-bottom: 3px;
  margin-top: 6px;
}
#iletisim-form input,
#iletisim-form textarea {
  font-size: 1em;
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 9px 11px;
  background: #fafafd;
  color: #282828;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.18s;
}
#iletisim-form input:focus,
#iletisim-form textarea:focus {
  outline: none;
  border-color: #7e57ff;
  background: #ffffff;
  box-shadow: 0 1px 6px #7e57ff20;
}
#iletisim-form textarea {
  min-height: 88px;
  resize: vertical;
}
#iletisim-form button[type="submit"] {
  margin-top: 11px;
  padding: 9px 18px;
  min-width: 120px;
  border-radius: 7px;
  border: 1px solid #dbeafe;
  background: #eee;
  color: #222;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.22s;
}
#iletisim-form button[type="submit"]:hover {
  background: #f1f6fd;
  border-color: #aabbe4;
  color: #444;
}

/* Контактная страница — основной контейнер главного блока */
.contact-main {
  max-width: 720px;
  margin: 44px auto 0 auto;
  padding: 28px;
  background: rgba(29, 8, 64, 0.92);
  border-radius: 18px;
  box-shadow: 0 6px 50px #44107024;
}
.contact-main h1 {
  color: #7e57ff;
  margin-bottom: 16px;
  font-size: 2.1em;
}
.contact-main h2 {
  color: #00eaff;
  font-size: 1.09em;
  margin-bottom: 14px;
  margin-top: 18px;
}
.contact-lead {
  color: #e2e5fa;
  font-size: 1.16em;
  max-width: 540px;
  margin-bottom: 22px;
}
.contact-lead a {
  color: #00eaff;
}

.contact-box {
  margin: 34px 0 28px 0;
}

.alt-contact {
  margin-top: 28px;
  background: rgba(60, 20, 98, 0.31);
  border-radius: 10px;
  padding: 22px;
}
.alt-contact ul {
  color: #bcddfa;
  font-size: 1.09em;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.1;
}
.alt-contact li b {
  font-weight: 600;
  color: #7e57ff;
}

.privacy-note {
  margin-top: 24px;
  background: rgba(16, 16, 48, 0.29);
  border-radius: 9px;
  padding: 16px;
  color: #cdf5fb;
  font-size: 1.02em;
}
.privacy-note a {
  color: #7e57ff;
}
.privacy-note b {
  color: #00eaff;
}

/* --- THANKS PAGE --- */
.thank-main {
  max-width: 540px;
  margin: 66px auto 0 auto;
  padding: 34px 18px;
  text-align: center;
  background: rgba(29, 8, 64, 0.933);
  border-radius: 17px;
  box-shadow: 0 2px 36px #442c7b22;
}
.thank-img {
  width: 85%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 2px 26px #7e57ff33;
  margin-bottom: 24px;
}
.thank-h1 {
  color: #7e57ff;
  margin-bottom: 16px;
}
.thank-p {
  color: #e2e5fa;
  font-size: 1.15em;
}
.thank-btns {
  margin: 28px 0 24px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
}
.thank-section {
  margin-top: 28px;
  text-align: left;
  background: rgba(34, 16, 69, 0.31);
  border-radius: 11px;
  padding: 22px;
}
.thank-section h2 {
  color: #00eaff;
  font-size: 1.2em;
}
.thank-next-list {
  color: #cfd4fa;
  font-size: 1.07em;
  line-height: 1.7;
  list-style: none;
  padding: 0;
}
.thank-next-li {
  margin-bottom: 7px;
}

/* --- Index/Evrenler/Makaleler/Karakterler/FAQ/Timeline/Bağlantı карточки и иллюстрации --- */
.hero-visual {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 32px;
  box-shadow: 0 4px 50px #31206780;
}
.evren-figure,
.makale-figure,
.karakter-figure,
.faq-figure,
.timeline-figure,
.baglanti-figure,
.cta-figure {
  margin: 0 0 18px 0;
  text-align: center;
}
.evren-img,
.makale-img,
.karakter-img,
.faq-img,
.timeline-img,
.baglanti-img,
.cta-figure img {
  width: 100%;
  border-radius: 12px;
}
.evren-img {
  max-width: 240px;
}
.makale-img {
  max-width: 190px;
  border-radius: 10px;
}
.karakter-img {
  max-width: 120px;
  width: 95%;
  border-radius: 10px;
}
.faq-img {
  max-width: 150px;
}
.timeline-img {
  max-width: 240px;
  width: 95%;
  border-radius: 9px;
  box-shadow: 0 2px 20px #7e57ff18;
}
.baglanti-img {
  max-width: 190px;
  width: 100%;
  border-radius: 8px;
}
.cta-figure img {
  max-width: 280px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 2px 24px #7e57ff42;
}
.evren-caption {
  font-size: 0.93em;
  color: #8eb3ff;
  margin-top: 8px;
}
.makale-caption {
  font-size: 0.87em;
  color: #aeafff;
  margin-top: 8px;
}
.karakter-caption {
  font-size: 0.88em;
  margin-top: 7px;
}
.karakter-figure .karakter-caption {
  color: #7e57ff;
}
.karakter-figure:nth-child(2) .karakter-caption {
  color: #00eaff;
}
.karakter-figure:nth-child(3) .karakter-caption {
  color: #b299ff;
}
.faq-caption {
  font-size: 0.84em;
  color: #7e57ff;
}
.timeline-caption {
  font-size: 0.87em;
  color: #00eaff;
}
.baglanti-caption {
  font-size: 0.84em;
  color: #7e57ff;
}
.cta-caption {
  font-size: 0.93em;
  color: #00eaff;
  margin-top: 5px;
}

/* Поиск по статьям */
.makale-search {
  width: 100%;
  margin-bottom: 22px;
  padding: 10px 12px;
  font-size: 1em;
  border-radius: 7px;
  border: 1.2px solid #bbb;
  background: #fafafd;
  box-sizing: border-box;
}
.makale-search:focus {
  outline: none;
  border-color: #7e57ff;
  box-shadow: 0 1px 8px #7e57ff12;
}
