* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Фокус для клавиатуры */
a:focus-visible, button:focus-visible {
  outline: 3px solid #7a5b3e;
  outline-offset: 2px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to right, #e0e0e0, #ffffff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color .2s;
}
.nav a:hover { color: #7a5b3e; }
.phone {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

/* ABOUT */
.about {
  padding: 80px 30px;
  background: #fff;
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  background: linear-gradient(135deg, #d0d0d0, #999);
  border-radius: 4px;
}
.about-content .caption {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.about-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 30px;
  color: #444;
}
.about-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.about-content p b { font-weight: 700; }
.about-content p i { font-style: italic; color: #555; }

/* QUOTE */
.quote {
  padding: 80px 30px;
  background: linear-gradient(to right, #e0e0e0, #ffffff);
  text-align: center;
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.quote-icon {
  color: rgba(0,0,0,0.08);
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.quote h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 20px;
}
.quote .author {
  font-size: 18px;
  font-weight: 500;
  color: #666;
}

/* SECTION common */
.section {
  padding: 80px 30px;
  background: #f7f8fa;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: #666;
  margin-bottom: 50px;
}

/* SLIDER */
.slider {
  position: relative;
  padding: 0 60px;
}
.slider-viewport {
  overflow: hidden;
  width: 100%;
}
.slider-track {
  display: flex;
  gap: 30px;
  transition: transform .5s ease;
  will-change: transform;
}
.slide {
  flex: 0 0 calc((100% - 60px) / 3);
  height: 380px;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .3s;
}
.slide:hover { transform: scale(1.02); }
.slide.contain {
  background-size: contain;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 5;
  transition: background .2s;
}
.slider-btn:hover { background: #f0f0f0; }
.slider-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  padding: 0;
}
.dot.active {
  background: #7a5b3e;
  transform: scale(1.2);
}
.dot:hover { background: #a07d5e; }

/* EXTRACURRICULAR */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.extra-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform .3s;
}
.extra-card:hover { transform: translateY(-5px); }
.extra-card .img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
}
.extra-card .info {
  padding: 24px;
}
.extra-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.extra-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  background: linear-gradient(to right, #000, #181818);
  color: #fff;
  padding: 40px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, transform .2s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.footer-email {
  color: #fff;
  font-size: 15px;
  transition: color .2s;
}
.footer-email:hover { color: #ccc; }
.copyright {
  font-size: 14px;
  color: #ccc;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: transform .2s;
}
.modal-close:hover { transform: rotate(90deg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 15px 0;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .phone { display: block; } /* всегда показываем */

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 400px; }
  .quote h2 { font-size: 24px; }
  .section-title { font-size: 28px; }
  .slide { height: 300px; }
  .slider { padding: 0 50px; }
  .extra-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 18px; }
  .burger { font-size: 22px; }
  .nav a { font-size: 18px; padding: 6px 0; }

  .about { padding: 40px 16px; }
  .about-img { height: 250px; }
  .about-content .caption { font-size: 22px; }
  .about-content h1 { font-size: 20px; }

  .quote { padding: 50px 16px; }
  .quote h2 { font-size: 20px; }

  .section { padding: 50px 16px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 15px; }

  .slider { padding: 0 35px; }
  .slider-btn { width: 36px; height: 36px; font-size: 18px; }
  .slide { height: 220px; flex: 0 0 calc((100% - 30px) / 1); } /* 1 слайд */

  .extra-grid { grid-template-columns: 1fr; gap: 20px; }
  .extra-card .img { height: 160px; }
  .extra-card .info { padding: 16px; }

  .footer { padding: 30px 16px; }
}