:root {
  --bg: #0f0f10;
  --bg-soft: #17171a;
  --card: #1d1d22;
  --text: #f5f5f7;
  --muted: #b7b7bd;
  --accent: #8b1e2d;
  --accent-soft: #b13245;
  --gold: #d5b46a;
  --border: #2b2b32;
  --success: #2a8f62;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #1f1620 0%, var(--bg) 40%);
  line-height: 1.6;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 99;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: #181818;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a {
  color: #d8d8de;
  font-size: 0.92rem;
  padding: 0.35rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #fff;
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid #33343b;
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  border-radius: 2px;
  background: #ececf1;
}

section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.section-lead {
  margin: 0 auto 2rem;
  max-width: 900px;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 10, 13, 0.92) 20%, rgba(25, 15, 20, 0.82) 60%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 80% 30%, rgba(139, 30, 45, 0.45), transparent 35%),
    radial-gradient(circle at 22% 70%, rgba(213, 180, 106, 0.18), transparent 30%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/huseyin-7.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  transform: scale(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.hero .subtitle {
  margin: 0.6rem 0 1rem;
  font-size: clamp(1rem, 2.2vw, 1.42rem);
  color: #f2d69d;
}

.hero .desc {
  margin: 0 auto 1.7rem;
  color: #dbdbe2;
  max-width: 780px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-soft));
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #4b4d58;
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  border-color: var(--gold);
}

.about {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(22, 22, 25, 0.75) 100%);
}

.about-box {
  background: #151519;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: var(--shadow);
}

.about-box p {
  color: #d4d4db;
}

.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-left: 1.5rem;
  padding: 0 0 1.3rem 1.35rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.38rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 180, 106, 0.2);
}

.timeline-year {
  color: var(--gold);
  font-weight: 700;
}

.timeline-text {
  margin: 0.3rem 0 0;
  color: #d3d3da;
}

.grid {
  display: grid;
  gap: 1rem;
}

.video-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.card-body p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.book-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.book-cover {
  min-height: 350px;
  border-radius: var(--radius);
  border: 1px dashed #5a5b64;
  background: linear-gradient(130deg, #2a1f22, #211f28);
  display: grid;
  place-items: center;
  color: #c4c4cb;
}

.book-content {
  background: #151519;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 2rem);
}

.products-grid,
.lessons-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #9fdfa5;
  font-size: 0.86rem;
}

.lesson-card {
  padding: 1.2rem;
}

.lesson-card h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.contact-form,
.contact-info {
  background: #151519;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.36rem;
  color: #d6d6dc;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #3a3a43;
  border-radius: 10px;
  background: #101015;
  color: #f4f4f7;
  padding: 0.75rem 0.8rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.contact-list a {
  color: #ececf0;
}

.contact-list a:hover {
  color: var(--gold);
}

.admin-wrap {
  display: grid;
  gap: 1rem;
}

.admin-actions {
  justify-content: flex-start;
}

.admin-login {
  background: #151519;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-login-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.admin-login-row input {
  flex: 1;
  border: 1px solid #3a3a43;
  border-radius: 10px;
  background: #101015;
  color: #f4f4f7;
  padding: 0.75rem 0.8rem;
}

.admin-message {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.admin-message.ok {
  color: #87e6b4;
}

.admin-message.error {
  color: #f28a9a;
}

.admin-form.hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid #2c2c34;
  background: #0b0b0d;
}

.footer-inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.to-top {
  color: var(--gold);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid,
  .lessons-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-wrap {
    grid-template-columns: 380px 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid #30303a;
    padding: 0.8rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .admin-login-row {
    flex-direction: column;
  }
}
