:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --accent: #1a1a1a;
  --text: #1a1a1a;
  --muted: #6c757d;
  --border: #e9ecef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 100000;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}

.brand-logo {
  width: 180px;
  height: 44px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  color: var(--muted);
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

.desktop-cta {
  display: none;
}

.burger {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.burger svg,
.mobile-close svg,
.back-to-top svg,
.modal-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-link {
  font-size: 20px;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  min-height: 48px;
  font-weight: 700;
}

.mobile-menu-cta {
  width: calc(100% - 32px);
  max-width: 340px;
}

.btn {
  min-height: 48px;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
}

.hero {
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow.centered {
  justify-content: center;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 12vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 18px 0 20px;
}

h2 {
  font-size: clamp(1.7rem, 8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 14px 0 16px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-text,
.section-heading p,
.contact-copy p,
.cta-banner p,
.final-cta p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.hero-actions .btn,
.final-cta .btn,
.cta-banner .btn,
.contact-form .btn {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trust-row div {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
}

.trust-row strong,
.stats-strip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.trust-row span,
.stats-strip span {
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  position: relative;
  min-height: 440px;
}

.hero-main-img {
  width: 88%;
  height: 390px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.hero-float-img {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 48%;
  height: 170px;
  object-fit: cover;
  border-radius: 22px;
  border: 8px solid var(--bg);
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.12);
}

.hero-card {
  position: absolute;
  left: 10px;
  bottom: 8px;
  max-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.12);
}

.hero-card svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  color: var(--muted);
  font-size: 13px;
}

.trust-logos {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  display: grid;
  gap: 20px;
  align-items: center;
}

.trust-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-logo {
  width: 120px;
  height: 56px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.about,
.reviews,
.contact {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-images img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.about-images img:first-child {
  grid-column: 1 / -1;
  height: 240px;
}

.about-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
}

.about-content p,
.course-card p,
.instructor-card p,
.review-card p,
.faq-answer p,
.legal-modal p {
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.benefit-card,
.instructor-card,
.review-card,
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
}

.benefit-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}

.stats-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stats-strip div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.filter-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.course-grid,
.instructor-grid,
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.course-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover,
.review-card:hover,
.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.08);
}

.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.course-content {
  padding: 20px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 16px 0;
  font-weight: 800;
}

.quick-view {
  width: 100%;
}

.instructors-block,
.cert-row {
  margin-top: 48px;
}

.instructor-card {
  text-align: center;
}

.instructor-card img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 1px solid var(--border);
}

.instructor-card span {
  font-size: 14px;
  color: var(--text);
  font-weight: 800;
}

.cert-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  background: var(--surface);
  align-items: center;
}

.cert-badge svg {
  width: 120px;
  height: 136px;
  margin: 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  background: var(--bg);
}

.timeline-item > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.cta-banner {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.cta-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
}

.cta-banner > div {
  padding: 6px;
}

.review-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.rating svg {
  width: 17px;
  height: 17px;
}

.review-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.review-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author strong,
.review-author span {
  display: block;
}

.review-author span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
}

.faq-question svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.contact-info a,
.contact-info span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--text);
}

.contact-img {
  border-radius: 26px;
  border: 1px solid var(--border);
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 800;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.consent input {
  min-height: auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.error-message {
  min-height: 18px;
  color: #9f1d1d;
  font-size: 13px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.final-cta {
  padding: 48px 0;
  background: var(--accent);
  color: var(--bg);
}

.final-cta-inner {
  text-align: center;
  max-width: 760px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.final-cta .btn-primary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 360px;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer a,
.site-footer button,
.site-footer span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
}

.site-footer button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  min-height: 28px;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.socials svg {
  width: 20px;
  height: 20px;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.12);
}

.back-to-top.visible {
  display: flex;
}

.modal-overlay,
.legal-modal-overlay,
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
}

.modal-box,
.legal-modal,
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100000;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 50%;
}

.quick-modal img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.quick-modal h2,
.legal-modal h2,
.cookie-modal h2 {
  padding-right: 44px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 20px;
  background: var(--accent);
  color: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.16);
}

.cookie-banner-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bg);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-actions button,
.cookie-modal button {
  cursor: pointer;
  min-height: 48px;
  min-width: 100px;
  font-size: 16px;
}

.cookie-actions button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
  font-weight: 800;
}

.cookie-accept {
  background: var(--bg);
  color: var(--accent);
}

.cookie-reject,
.cookie-settings {
  background: transparent;
  color: var(--bg);
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cookie-options label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}

.cookie-options input {
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (min-width: 600px) {
  .hero-actions,
  .cookie-actions {
    flex-direction: row;
  }

  .hero-actions .btn,
  .final-cta .btn,
  .cta-banner .btn {
    width: auto;
  }

  .trust-row,
  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 80px, 1180px);
  }

  .section {
    padding: 80px 0;
  }

  .desktop-nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .header-phone {
    display: inline-flex;
  }

  .desktop-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-main-img {
    height: 560px;
  }

  .hero-float-img {
    height: 230px;
  }

  .trust-logos {
    grid-template-columns: 230px 1fr;
  }

  .logos {
    justify-content: space-between;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .about-content,
  .contact-form {
    padding: 34px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructor-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-row {
    grid-template-columns: 160px 1fr;
    padding: 34px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 18px;
  }

  .cta-banner > div {
    padding: 24px;
  }

  .contact-img {
    height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .instructor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .modal-box,
  .legal-modal,
  .cookie-modal {
    width: calc(100vw - 32px);
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 16px;
    border-radius: 12px;
  }

  .modal-overlay,
  .legal-modal-overlay,
  .cookie-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .btn {
    width: 100%;
  }

  .cookie-banner {
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-actions button {
    width: 100%;
  }

  h1 {
    font-size: max(28px, 12vw);
  }

  h2 {
    font-size: max(22px, 8vw);
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 150px;
  }

  .header-inner {
    gap: 8px;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-main-img {
    height: 340px;
  }

  .hero-float-img {
    height: 140px;
  }

  .hero-card {
    max-width: 230px;
  }
}