/* ========================================
   Школа магии «Чёрный Кот» — Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0D0D0D;
  --bg-card:    #1A1A1A;
  --bg-alt:     #141414;
  --text:       #F0E6D3;
  --gold:       #C9A84C;
  --gold-dark:  #8B6914;
  --violet:     #7B68AE;
  --line:       rgba(201,168,76,0.2);
  --glass-bg:   rgba(255,255,255,0.03);
  --glass-border: rgba(201,168,76,0.15);
  --radius:     8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

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

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: rgba(240,230,211,0.6);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 2rem;
  opacity: 0.6;
}

/* Gold Button */
.btn-gold {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0D0D0D;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
  filter: brightness(1.1);
  color: #0D0D0D;
}
.btn-gold:active { transform: translateY(0); }

/* Outline Button */
.btn-outline {
  display: inline-block;
  padding: 12px 36px;
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: #0D0D0D;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(240,230,211,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--line);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(123,104,174,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(123,104,174,0.06) 0%, transparent 60%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px;
}

.hero-emblem {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  margin: 0 auto 28px;
  box-shadow: 0 0 40px rgba(201,168,76,0.15), 0 0 80px rgba(123,104,174,0.1);
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: rgba(240,230,211,0.75);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1rem;
  color: rgba(240,230,211,0.6);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(240,230,211,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.4), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- ABOUT ---- */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.about-content .section-title { text-align: left; }
.about-content .divider { margin-left: 0; }
.about-content .section-subtitle { text-align: left; }

.about-text {
  color: rgba(240,230,211,0.75);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-features {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.feature-text strong {
  color: var(--gold);
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.feature-text span {
  color: rgba(240,230,211,0.6);
  font-size: 0.88rem;
}

.about-visual {
  position: relative;
}

.medallion-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.medallion-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 500px;
  filter: brightness(0.85) contrast(1.05);
  border: 1px solid var(--line);
}

.medallion-glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 60px rgba(201,168,76,0.12), 0 0 120px rgba(123,104,174,0.08);
  pointer-events: none;
}

/* ---- DIRECTIONS / TABS ---- */
.directions {
  padding: 100px 0;
  background: var(--bg);
}

.tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.tab-btn {
  padding: 14px 36px;
  background: transparent;
  border: none;
  color: rgba(240,230,211,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D0D0D;
  font-weight: 600;
}

.tab-btn:not(.active):hover {
  color: var(--gold);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.tab-header {
  text-align: center;
  margin-bottom: 40px;
}

.tab-header h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 8px;
}

.tab-header p {
  color: rgba(240,230,211,0.55);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- ACCORDION ---- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item:hover {
  border-color: rgba(201,168,76,0.35);
}

.accordion-item.open {
  border-color: rgba(201,168,76,0.4);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.acc-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--violet);
  min-width: 24px;
  opacity: 0.8;
}

.acc-title {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

.accordion-item.open .acc-title {
  color: var(--gold);
}

.acc-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition);
}

.accordion-item.open .acc-icon {
  transform: rotate(45deg);
  background: rgba(201,168,76,0.15);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 400px;
}

.acc-content {
  padding: 0 24px 20px 64px;
  color: rgba(240,230,211,0.65);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---- WHO IT'S FOR ---- */
.who-for {
  padding: 100px 0;
  background: var(--bg-alt);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.who-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.who-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}

.who-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.who-card h4 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.who-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.who-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(240,230,211,0.7);
  font-size: 0.9rem;
}

.who-card ul li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ---- RESULTS ---- */
.results {
  padding: 100px 0;
  background: var(--bg);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.result-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.result-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.result-card:hover::before { opacity: 1; }

.result-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.result-card h4 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.result-card p {
  color: rgba(240,230,211,0.6);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---- TEACHER ---- */
.teacher {
  padding: 100px 0;
  background: var(--bg-alt);
}

.teacher-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.teacher-photo-wrap {
  position: relative;
}

.teacher-photo {
  width: 100%;
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  border: 1px solid var(--line);
}

.teacher-photo-frame {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
}

.teacher-content h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 4px;
}

.teacher-title {
  color: var(--violet);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.teacher-bio {
  color: rgba(240,230,211,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.teacher-quote {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.04);
  border-radius: 0 8px 8px 0;
}

.teacher-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- ADDITIONAL SERVICES ---- */
.services {
  padding: 80px 0;
  background: var(--bg);
}

.services-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123,104,174,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.services-card h3 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.services-card p {
  color: rgba(240,230,211,0.65);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.service-tag {
  padding: 8px 20px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ---- FORM ---- */
.form-section {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(123,104,174,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-wrap .section-title { color: var(--text); }
.form-wrap .section-title span { color: var(--gold); }

.enroll-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,230,211,0.5);
}

.form-field input,
.form-field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder { color: rgba(240,230,211,0.25); }
.form-field select { cursor: pointer; }
.form-field select option { background: #1A1A1A; color: var(--text); }

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.04);
}

.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.75rem;
  pointer-events: none;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn-gold {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
}

.form-note {
  text-align: center;
  color: rgba(240,230,211,0.35);
  font-size: 0.8rem;
  margin-top: 12px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
}
.form-success h4 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.form-success p {
  color: rgba(240,230,211,0.6);
}

/* ---- FOOTER ---- */
.footer {
  padding: 60px 0 32px;
  background: #0A0A0A;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

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

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
}

.footer-contacts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contacts a {
  color: rgba(240,230,211,0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-contacts a:hover { color: var(--gold); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.footer-copy {
  color: rgba(240,230,211,0.25);
  font-size: 0.8rem;
}

/* ---- Particle canvas ---- */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---- Scroll animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .medallion-wrap { max-width: 320px; }
  .about-content .section-title { text-align: center; }
  .about-content .divider { margin: 1rem auto 2rem; }
  .about-content .section-subtitle { text-align: center; }

  .who-grid { grid-template-columns: 1fr; }

  .results-grid { grid-template-columns: 1fr; }

  .teacher-grid { grid-template-columns: 1fr; }
  .teacher-photo-wrap { max-width: 280px; margin: 0 auto; }

  .tabs-wrap {
    flex-direction: column;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
  }

  .services-card { padding: 32px 24px; }

  .acc-content { padding-left: 44px; }

  .hero h1 { font-size: 2.2rem; }

  .footer-contacts { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-emblem { width: 80px; height: 80px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .tab-btn { padding: 12px 20px; font-size: 0.85rem; }
  .accordion-trigger { padding: 16px 16px; }
  .acc-content { padding: 0 16px 16px 44px; }
  .form-wrap .section-title { font-size: 1.8rem; }
}
