@charset "UTF-8";

:root {
  --bg: hsl(30, 20%, 98%);
  --fg: hsl(30, 10%, 15%);
  --primary: hsl(28, 35%, 35%);
  --primary-fg: hsl(30, 20%, 98%);
  --muted-fg: hsl(30, 5%, 45%);
  --border: hsl(30, 10%, 85%);
  --accent: hsl(28, 40%, 50%);
  --footer-bg: #4f4a41;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: hsla(28, 35%, 35%, 0.2);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

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

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  width: 100%;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  padding: 10px 16px;
}
.announcement-bar p {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  width: 100%;
  background: hsla(30, 20%, 98%, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(30, 10%, 85%, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 0;
}
.header-logo {
  height: 64px;
  width: auto;
}
.nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
}
.nav-desktop a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-sans);
  font-weight: 500;
  color: hsla(30, 10%, 15%, 0.7);
  padding: 0 8px;
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--fg);
}
.nav-dot {
  color: hsla(30, 10%, 15%, 0.2);
  font-size: 0.75rem;
  user-select: none;
}

/* Mobile menu */
.mobile-menu-btn {
  display: block;
  position: absolute;
  top: 32px;
  right: 16px;
  z-index: 51;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-overlay.open {
  display: flex;
}
.mobile-overlay .close-btn {
  position: absolute;
  top: 24px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}
.mobile-overlay .close-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.mobile-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.mobile-overlay nav a {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  transition: color 0.2s;
}
.mobile-overlay nav a:hover {
  color: var(--primary);
}
.mobile-overlay .mobile-contact {
  margin-top: 48px;
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.875rem;
}
.mobile-overlay .mobile-contact p + p {
  margin-top: 4px;
}

/* ===== CONTENT SECTIONS ===== */
.section-image {
  width: 100%;
  height: 40vh;
  object-fit: cover;
}
.section-body {
  padding: 48px 24px;
  max-width: 72rem;
  margin: 0 auto;
}
.section-title {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--fg);
  text-align: center;
}
.section-divider {
  width: 48px;
  height: 1px;
  background: hsla(30, 10%, 15%, 0.2);
  margin: 0 auto 32px;
}
.section-text p {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.8;
  text-indent: 2rem;
  font-weight: 400;
}
.section-text p + p {
  margin-top: 24px;
}
.section-text p strong {
  font-weight: 700;
  color: var(--fg);
}
.section-text ul + p {
  margin-top: 24px;
}
.section-text p + ul {
  margin-top: 12px;
}
.section-text ul {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.section-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.8;
  font-weight: 400;
}
.section-text ul li + li {
  margin-top: 12px;
}
.section-text ul li::before {
  content: "\25CF";
  color: hsla(30, 10%, 15%, 0.3);
  font-size: 0.65rem;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===== RESIDENTS ===== */
.residents-section {
  padding: 80px 24px;
  background: var(--bg);
}
.residents-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.residents-title {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--fg);
}
.residents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.resident-card {
  border: 1px solid hsla(30, 10%, 85%, 0.5);
  padding: 24px;
  border-radius: 6px;
  text-align: center;
}
.resident-card h3 {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  color: var(--fg);
  margin-bottom: 12px;
}
.resident-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.resident-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.resident-links a:hover {
  color: var(--fg);
}
.resident-links svg {
  width: 16px;
  height: 16px;
}
.residents-toggle {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.residents-toggle button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  font-family: var(--font-sans);
  transition: color 0.2s;
}
.residents-toggle button:hover {
  color: var(--fg);
}
.residents-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.residents-hidden {
  display: none;
}
.residents-hidden.show {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ===== CURATOR ===== */
.curator-section {
  padding: 80px 0;
  background: var(--bg);
}
.curator-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.curator-header h2 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}
.curator-photo-mobile {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 40px;
}
.curator-photo-desktop {
  display: none;
}
.curator-content {
  padding: 0 24px;
  max-width: 72rem;
  margin: 0 auto;
}
.curator-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}
.curator-name {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--fg);
}
.curator-role {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  font-family: var(--font-sans);
  margin-top: 4px;
}
.curator-bio {
  margin-top: 16px;
}
.curator-bio p {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.8;
  font-weight: 400;
}
.curator-bio p + p {
  margin-top: 16px;
}
.curator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
  margin-top: 24px;
  transition: color 0.2s;
}
.curator-link:hover {
  color: var(--fg);
}
.curator-link svg {
  width: 16px;
  height: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--primary-fg);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-brand h3 {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 0.875rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item span {
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .announcement-bar p {
    font-size: 0.875rem;
  }
  .header-logo-wrap {
    padding: 32px 0 0;
  }
  .header-logo {
    height: 96px;
  }
  .nav-desktop {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .section-image {
    height: 70vh;
  }
  .section-body {
    padding: 80px 48px;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .section-text p,
  .section-text ul li {
    font-size: 1.125rem;
    text-align: justify;
  }
  .residents-section {
    padding: 112px 48px;
  }
  .residents-title {
    font-size: 2.25rem;
  }
  .residents-grid,
  .residents-hidden.show {
    grid-template-columns: repeat(2, 1fr);
  }
  .curator-section {
    padding: 112px 0;
  }
  .curator-header h2 {
    font-size: 2.25rem;
  }
  .curator-photo-mobile {
    display: none;
  }
  .curator-photo-desktop {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
  }
  .curator-content {
    padding: 0 48px;
  }
  .curator-layout {
    flex-direction: row;
    gap: 64px;
  }
  .curator-photo-col {
    width: 33.333%;
    flex-shrink: 0;
  }
  .curator-text-col {
    width: 66.666%;
  }
  .curator-name {
    font-size: 1.5rem;
  }
  .curator-bio p {
    font-size: 1.125rem;
    text-align: justify;
  }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-contacts {
    flex-direction: row;
  }
  .footer-bottom {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .section-body {
    padding: 80px;
  }
  .residents-section {
    padding: 112px 80px;
  }
  .residents-grid,
  .residents-hidden.show {
    grid-template-columns: repeat(3, 1fr);
  }
  .curator-content {
    padding: 0 80px;
  }
  .footer-inner {
    padding: 0 48px;
  }
}

/* ТАБЛИЦА УЧЕБНОГО ПЛАНА */

.school-table table{
width:100%;
border-collapse:collapse;
font-family:Manrope,sans-serif;
margin-top:30px;
}

.school-table th,
.school-table td{
padding:14px 16px;
border-bottom:1px solid #e6e1d9;
font-size:15px;
text-align:left;
}

.school-table th{
background:#f6f4ef;
font-size:13px;
letter-spacing:.08em;
text-transform:uppercase;
}

.stage-row td{
background:#f2efe9;
font-size:16px;
}

.module-row td{
background:#faf8f4;
}

@media(max-width:768px){
.school-table td,
.school-table th{
font-size:14px;
padding:12px;
}
}
/* ===== ШКОЛА АНТИКВАРА — СТРАНИЦА SCHOOL-ANTIQUARIAN ===== */

.school-page{
max-width:1200px;
margin:0 auto;
padding:80px 20px;
}

.school-page h1{
font-family:"Libre Baskerville",serif;
font-size:36px;
text-align:center;
margin-bottom:40px;
}

.school-page h2{
font-family:"Libre Baskerville",serif;
font-size:28px;
margin-top:60px;
margin-bottom:20px;
}

.school-page h3{
font-family:"Libre Baskerville",serif;
font-size:22px;
margin-top:40px;
margin-bottom:10px;
}

/* ===== ТАБЛИЦЫ УЧЕБНОГО ПЛАНА ===== */

.school-table{
margin-top:30px;
margin-bottom:50px;
overflow-x:auto;
}

.school-table table{
width:100%;
border-collapse:collapse;
font-family:"Manrope",sans-serif;
background:#fff;
border-radius:16px;
overflow:hidden;
box-shadow:0 8px 30px rgba(0,0,0,0.06);
}

.school-table th,
.school-table td{
padding:16px 18px;
text-align:left;
border-bottom:1px solid #ece7df;
font-size:15px;
line-height:1.6;
}

.school-table th{
background:#f8f6f2;
font-size:13px;
letter-spacing:0.08em;
text-transform:uppercase;
color:#7b6f63;
}

.school-table tr:last-child td{
border-bottom:none;
}

/* ===== БЛОК С ПАКЕТАМИ ===== */

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

.package-card{
background:#ffffff;
border-radius:18px;
padding:28px;
box-shadow:0 8px 30px rgba(0,0,0,0.06);
}

.package-card h3{
font-family:"Libre Baskerville",serif;
font-size:20px;
margin-bottom:12px;
}

.package-card ul{
padding-left:18px;
margin:10px 0 20px 0;
}

.package-card li{
margin-bottom:6px;
font-size:15px;
}

.package-price{
font-size:20px;
font-weight:600;
margin-top:10px;
}

/* ===== КНОПКА С ГЛАВНОЙ ===== */

.school-btn{
display:inline-block;
margin-top:30px;
padding:14px 26px;
border-radius:40px;
border:1px solid #1f1a17;
text-decoration:none;
font-family:"Manrope",sans-serif;
font-size:14px;
letter-spacing:0.04em;
transition:all .3s ease;
}

.school-btn:hover{
background:#1f1a17;
color:#fff;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

.school-page{
padding:60px 16px;
}

.school-page h1{
font-size:28px;
}

.school-page h2{
font-size:22px;
}

.school-table th,
.school-table td{
padding:12px;
font-size:14px;
}

}
.school-btn{
display:inline-flex;
align-items:center;
justify-content:center;

padding:18px 40px;

background:#2a1f18;
color:#ffffff;

border-radius:50px;
text-decoration:none;

font-family:"Manrope",sans-serif;
font-size:16px;
font-weight:500;

line-height:1;

transition:all .25s ease;
}

.school-btn:hover{
background:#000;
}