* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #18201c;
  --muted: #66716b;
  --line: #dfe5df;
  --surface: #ffffff;
  --surface-soft: #f5f7f2;
  --primary: #133f2a;
  --primary-dark: #092818;
  --accent: #d8a724;
  --accent-soft: #fff4cf;
  --shadow: 0 18px 45px rgba(17, 40, 27, 0.1);
  --shadow-soft: 0 10px 28px rgba(17, 40, 27, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbf5 0%, #eef4eb 100%);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(19, 63, 42, 0.1);
  box-shadow: 0 8px 30px rgba(24, 32, 28, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

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

.logo h1 {
  max-width: 420px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.logo-box {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(19, 63, 42, 0.2);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #38463f;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--primary-dark);
}

#hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImageFade 1.2s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 40, 24, 0.85), rgba(9, 40, 24, 0.58) 48%, rgba(9, 40, 24, 0.2)),
    linear-gradient(0deg, rgba(9, 40, 24, 0.32), rgba(9, 40, 24, 0));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.hero-overlay h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-overlay p {
  max-width: 650px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s both;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
  text-align: center;
}

.section > p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.section h3 {
  color: var(--primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card,
.team-member,
.contact-info,
.contact-form,
.form-card,
.question,
.gallery figure {
  border: 1px solid rgba(19, 63, 42, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card {
  overflow: hidden;
  padding: 26px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card-delay-0 {
  animation-delay: 0s;
}

.card-delay-1 {
  animation-delay: 0.12s;
}

.card-delay-2 {
  animation-delay: 0.24s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img {
  width: calc(100% + 52px);
  height: 210px;
  margin: -26px -26px 22px;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.card p {
  color: var(--muted);
}

.banner {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-member {
  padding: 28px 20px;
}

.team-member h4 {
  margin-top: 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.team-member p {
  color: var(--muted);
}

.avatar-img {
  width: 132px;
  height: 132px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(19, 63, 42, 0.16);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.contact-info,
.contact-form,
.form-card {
  padding: 24px;
}

.contact-info ul {
  margin: 10px 0 14px 20px;
}

.map-frame {
  width: 100%;
  height: 280px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  filter: saturate(0.85);
}

.contact-form a,
.note a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(216, 167, 36, 0.6);
  text-underline-offset: 3px;
}

.btn,
.btn-primary,
.btn-secondary,
.video-list button,
.video-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.video-list button:hover,
.video-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(19, 63, 42, 0.12);
}

.btn.primary,
.btn-primary,
.video-controls button {
  background: linear-gradient(135deg, var(--accent) 0%, #f0c64b 100%);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn.primary:hover,
.btn-primary:hover,
.video-controls button:hover {
  background: #efc64a;
  border-color: #efc64a;
}

.btn.secondary,
.btn-secondary,
.video-list button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border-color: rgba(19, 63, 42, 0.2);
}

.btn.secondary:hover,
.btn-secondary:hover,
.video-list button:hover,
.video-list button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.video-section {
  margin-top: 48px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.video-player {
  width: min(860px, 100%);
  margin: 22px auto 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player video {
  display: block;
  width: 100%;
}

.video-controls,
.video-list,
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.video-status {
  margin-top: 10px;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.video-controls {
  padding: 12px;
  background: var(--surface);
}

.video-controls button.stop {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(19, 63, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fcf4 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(19, 63, 42, 0.12);
}

.video-card h3 {
  color: var(--primary);
  font-size: 1rem;
  text-align: left;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.question {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(19, 63, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbf4 100%);
  text-align: left;
  box-shadow: 0 8px 24px rgba(17, 40, 27, 0.04);
}

.question p {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
}

.form-card {
  margin-top: 20px;
  text-align: left;
  border: 1px solid rgba(19, 63, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbf4 100%);
  box-shadow: 0 14px 34px rgba(17, 40, 27, 0.06);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--primary);
  font-size: 0.93rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(216, 167, 36, 0.26);
  border-color: var(--accent);
}

.answer-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.answer-option {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(19, 63, 42, 0.12);
  border-radius: 8px;
  background: #fbfcf8;
  color: #33413a;
  cursor: pointer;
  font-weight: 650;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.answer-option:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 167, 36, 0.6);
  background: #fffaf0;
}

.answer-option:has(input:checked) {
  border-color: var(--primary);
  background: #eef6ef;
  box-shadow: inset 4px 0 0 var(--accent);
}

.answer-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.answer-letter {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.answer-text {
  min-width: 0;
  padding-top: 2px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.quiz-summary {
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px dashed rgba(19, 63, 42, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9e8 0%, #fdf3d1 100%);
  text-align: left;
}

.payment-instructions {
  width: min(720px, 100%);
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 36, 0.38);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9e8 0%, #fdf3d1 100%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 30px rgba(17, 40, 27, 0.06);
}

.payment-instructions h3 {
  margin-bottom: 8px;
}

.payment-instructions p {
  margin: 6px 0;
}

.payment-instructions strong {
  color: var(--primary);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.payment-instructions span {
  color: var(--muted);
  font-weight: 800;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.error {
  margin-top: 10px;
  color: #a42525;
  font-weight: 800;
}

.hidden {
  display: none;
}

.gallery-section {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gallery figure {
  overflow: hidden;
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 11px 12px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}

@keyframes heroImageFade {
  from {
    transform: scale(1.03);
    opacity: 0.92;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

footer {
  margin-top: 38px;
  padding: 28px 20px;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-social a.youtube:hover {
  background: #ff0000;
}

.footer-social a.facebook:hover {
  background: #1877f2;
}

.footer-social a.linkedin:hover {
  background: #0077b5;
}

@media (min-width: 769px) {
  .has-fixed-footer {
    padding-bottom: 86px;
  }

  .fixed-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    margin: 0;
  }
}

@media (max-width: 1120px) {
  .header {
    gap: 14px;
    padding-inline: 18px;
  }

  .logo h1 {
    max-width: 300px;
    font-size: 0.82rem;
  }

  .nav a {
    padding-inline: 9px;
    font-size: 0.88rem;
  }
}

@media (max-width: 920px) {
  .logo h1 {
    max-width: 220px;
    font-size: 0.76rem;
  }

  .nav a {
    padding-inline: 7px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .header {
    min-height: 70px;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    display: none;
  }

  .nav.active {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: block;
    width: min(320px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid rgba(19, 63, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.active ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav.active a {
    width: 100%;
  }

  .hero,
  .hero-overlay {
    min-height: calc(100vh - 70px);
  }
}

@media (max-width: 520px) {
  .logo h1 {
    max-width: 190px;
    font-size: 0.72rem;
  }

  .section,
  .hero-overlay {
    width: min(100% - 28px, 1120px);
  }

  .card {
    padding: 22px;
  }

  .card img {
    width: calc(100% + 44px);
    height: 180px;
    margin: -22px -22px 18px;
  }

  .gallery img {
    height: 122px;
  }

  .question {
    padding: 14px;
  }

  .answer-option {
    grid-template-columns: 18px 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .answer-letter {
    width: 28px;
    height: 28px;
  }
}
