/* Фотофакультет — макеты сайта 2026. Дизайн-система страниц курсов (лето 2026), см. ../ДИЗАЙН-СИСТЕМА.md
   Шрифты: Montserrat (заголовки), Lato (текст), Playfair Display (номера разделов, цитаты). */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700;800&family=Playfair+Display:ital@0;1&display=swap');

:root {
  --bg: #f6f3ee; --paper: #ffffff; --alt: #efebe4; --text: #1c1917; --muted: #6b645d; --line: #ddd5cc;
  --dark: #181513; --dark-soft: #27211e; --accent: #06bae2; --accent-hover: #fd8006;
  --shadow: 0 10px 30px rgba(28, 25, 23, .06); --radius: 28px; --radius-img: 20px;
  --serif: 'Playfair Display', Georgia, serif; --head: 'Montserrat', Helvetica, sans-serif; --sans: 'Lato', Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.75 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; }
p { margin: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }

/* --- шапка --- */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.site-header .logo img { width: 200px; height: auto; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: rgba(255,255,255,.9); }
.nav a.active, .nav a:hover { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 700; }
.header-right a.phone { color: #fff; }
.icon-user { width: 22px; height: 22px; }
.burger { display: none; background: none; border: 0; padding: 0; }

/* --- кнопки, рубрики --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 35px; border-radius: 4px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; font: 700 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; transition: background .3s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-size: 12px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; }
.dark .eyebrow { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.caption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.dark .caption { color: rgba(255,255,255,.55); }

/* --- секции и заголовки --- */
.section { padding: 112px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--dark); color: #fff; }
.dark p, .dark .muted { color: rgba(255,255,255,.72); }
.section-head { display: flex; gap: 48px; align-items: flex-start; margin-bottom: 56px; }
.section-num { font: italic 400 120px/.9 var(--serif); color: var(--accent); flex: none; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2, .h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.03; letter-spacing: -.04em; color: var(--accent); }
.lead { font-size: 19px; line-height: 1.75; color: var(--muted); margin-top: 16px; max-width: 780px; }
.muted { color: var(--muted); }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }

/* --- первый экран --- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 72px 0 88px; }
.hero-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: .96; letter-spacing: -.04em; color: var(--accent); margin-top: 22px; }
.hero .lead { margin: 0 0 28px; }
.hero-photo { margin-top: 48px; }
.hero-photo img { width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; }
.fact { border-left: 1px solid var(--line); padding: 4px 16px 4px 24px; }
.fact b { display: block; font: 800 40px/1 var(--head); letter-spacing: -.05em; }
.fact span { font-size: 14px; color: var(--muted); }

/* шапка внутренних страниц */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 64px 0; }
.page-hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: .96; letter-spacing: -.04em; color: var(--accent); margin-top: 20px; max-width: 980px; }
.page-hero .lead { max-width: 820px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; line-height: 1.2; }
.tabs a.active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* --- полоса набора --- */
.status { background: var(--dark); color: #fff; padding: 22px 0; }
.status .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.status p { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 14px; color: #fff; }
.status p::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* --- сетки и карточки --- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.card p { color: var(--muted); margin-top: 12px; }
.card-dark { background: var(--dark); border-color: rgba(255,255,255,.1); color: #fff; }
.card-dark p { color: rgba(255,255,255,.72); }
.num { font: italic 400 48px/1 var(--serif); color: var(--accent); margin-bottom: 12px; display: block; }
.big { font: 800 44px/1 var(--head); letter-spacing: -.05em; display: block; margin-bottom: 10px; }
.big-accent { color: var(--accent); }

/* карточка курса */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.lane { display: grid; gap: 20px; }
.lane-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); font-weight: 700; font-size: 19px; line-height: 1.2; }
.lane-head i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.course-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 12px 28px; color: var(--text); }
.course-card img { width: 100%; height: 236px; object-fit: cover; border-radius: var(--radius-img); }
.course-card .body { padding: 20px 16px 0; display: grid; gap: 10px; }
.course-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.course-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--muted); }
.course-meta b { font: 700 18px var(--sans); color: var(--text); }
.center { text-align: center; margin-top: 48px; }

/* метод */
.split { display: grid; grid-template-columns: 560px 1fr; gap: 56px; align-items: start; }
.split img { width: 100%; height: 620px; object-fit: cover; border-radius: var(--radius); }
.list-numbered > div { display: flex; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.list-numbered .num { font-size: 56px; margin: 0; }
.list-numbered p { color: var(--muted); margin-top: 10px; }

/* преподаватели */
.person img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-img); }
.person h3 { font-size: 21px; margin-top: 14px; }
.person p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* мозаика */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 100px; gap: 20px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-img); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.mosaic figure:hover figcaption { opacity: 1; }

/* цитата */
.quote { font: italic 400 40px/1.25 var(--serif); color: var(--text); }
.quote-author { color: var(--accent); font-weight: 700; font-size: 21px; margin-top: 20px; }
.quote-row { display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.quote-row img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }

/* лента дат */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); }
.timeline > div { padding-right: 20px; }
.timeline .dot { display: flex; align-items: center; margin-bottom: 16px; }
.timeline .dot::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.timeline .dot::after { content: ''; height: 1px; background: rgba(255,255,255,.18); flex: 1; }
.timeline b { font: 700 30px/1.1 var(--head); color: var(--accent); letter-spacing: -.03em; display: block; margin-bottom: 10px; }
.timeline p { font-size: 15px; line-height: 1.5; }

/* журнал и новости */
.journal { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; }
.journal-card { display: flex; gap: 32px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.journal-card img { width: 250px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.journal-card > div { width: 300px; display: grid; gap: 16px; align-content: start; }
.news-list > a { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.news-list h3 { font-size: 22px; margin-top: 8px; }

/* аккордеон */
.faq details { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font: 700 22px/1.2 var(--head); letter-spacing: -.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 34px; line-height: .7; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 800px; }

/* заявка */
.final-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 56px; display: grid; grid-template-columns: 1fr 540px; gap: 56px; }
.final-card p { color: rgba(255,255,255,.72); font-size: 19px; margin-top: 16px; }
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--text); }
.dark .form input, .final-card .form input, .final-card .form select { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.final-card .form input::placeholder { color: rgba(255,255,255,.55); }

/* таблица */
.table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { background: var(--alt); text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 30px; }
.table td { padding: 18px 30px; border-top: 1px solid var(--line); vertical-align: top; }
.table td:nth-child(2) { font-weight: 700; }

/* статья / юридический текст */
.prose { font-size: 19px; line-height: 1.75; }
.prose p + p, .prose p + h2, .prose h2 + p, .prose figure, .prose blockquote { margin-top: 24px; }
.prose h2 { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; color: var(--accent); margin-top: 48px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: var(--radius-img); width: 100%; }
.prose blockquote { margin-left: 0; padding-left: 28px; border-left: 3px solid var(--accent); font: italic 400 28px/1.35 var(--serif); }
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.legal nav { position: sticky; top: 120px; align-self: start; display: grid; gap: 10px; font-size: 15px; }
.legal .prose { font-size: 17px; }
.legal .prose h2 { font-size: 24px; color: var(--text); }

/* --- подвал --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 72px 0 40px; font-size: 14px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-cols .label { margin-bottom: 14px; display: block; }
.footer-cols a { display: block; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.footer-cols img { width: 260px; margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 28px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.45); margin-left: 24px; }

/* пометка для программиста/Антонины: факт ждёт подтверждения */
.q { background: #fff3c4; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-style: normal; }

/* --- адаптив --- */
@media (max-width: 1120px) {
  .nav { display: none; } .burger { display: block; } .header-right .phone { display: none; }
  .g4, .g6 { grid-template-columns: repeat(3, 1fr); }
  .lanes { grid-template-columns: 1fr 1fr; }
  .split, .quote-row, .journal, .final-card, .hero-top { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 40px); }
  .site-header .container { height: 64px; } .site-header .logo img { width: 166px; }
  .header-right .btn { display: none; } .header-right { gap: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; } .hero h1 { font-size: 40px; } .hero-photo img { height: 440px; border-radius: 22px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 16px; } .fact b { font-size: 32px; } .fact:last-child { display: none; }
  .section-head { flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .section-num { font-size: 56px; }
  .section-head h2, .h2 { font-size: 34px; } .lead { font-size: 17px; }
  .g2, .g3, .g4, .lanes { grid-template-columns: 1fr; }
  .g6 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 200px; overflow-x: auto; padding-bottom: 8px; }
  .card, .course-card, .journal-card, .final-card { border-radius: 22px; }
  .card { padding: 24px; } .final-card { padding: 32px 24px; }
  .course-card img { height: 190px; }
  .split img { height: 300px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 10px; }
  .mosaic figure { grid-column: auto !important; grid-row: span 1 !important; }
  .mosaic figure:nth-child(3n+1) { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .quote { font-size: 26px; } .quote-row img { height: 240px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline > div { display: grid; grid-template-columns: 14px 1fr; column-gap: 16px; }
  .timeline .dot { grid-row: span 2; flex-direction: column; margin: 6px 0 0; } .timeline .dot::after { width: 1px; height: auto; flex: 1; }
  .journal-card { flex-direction: column; } .journal-card img { width: 140px; } .journal-card > div { width: auto; }
  .status .container { flex-direction: column; align-items: stretch; }
  .actions .btn, .final-card .btn, .status .btn { width: 100%; }
  .faq summary { font-size: 19px; }
  .table th, .table td { padding: 14px 16px; font-size: 15px; }
  .legal { grid-template-columns: 1fr; } .legal nav { position: static; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom a { margin: 0 16px 0 0; }
}

.hist-grid { grid-template-columns: 2fr 1fr; margin-top: 56px; align-items: end; }
.journal-card .eyebrow { justify-self: start; }
body { overflow-x: hidden; }
@media (max-width: 1120px) { .hist-grid { grid-template-columns: 1fr; } .hist-grid img { height: 300px !important; } }

/* --- дополнения после проверки главной (31.10) --- */
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.link-arrow { font-weight: 700; font-size: 15px; color: var(--accent); }
.link-arrow::after { content: ' →'; }
.links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.hero-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 28px; }
.hero-intro .lead { margin: 0; max-width: 560px; }
.hero h1.wide { max-width: 1100px; }
/* дорожки курсов: первый курс крупно, остальные строкой */
.course-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.course-row h3 { font-size: 20px; }
.course-row span { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.course-row b { font-size: 16px; white-space: nowrap; }
.course-row:hover h3 { color: var(--accent); }
.course-card .more { font-weight: 700; font-size: 14px; color: var(--accent); }
/* формат: одна тёмная плашка с двумя колонками */
.format-plate { background: var(--dark); color: #fff; border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.format-plate > div { padding: 48px; }
.format-plate > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.format-plate ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.format-plate li { display: flex; gap: 14px; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.5; }
.format-plate li b { color: var(--accent); min-width: 110px; font-weight: 700; }
/* выпускники строками */
.rows > div { display: grid; grid-template-columns: 200px 1fr 1.4fr; gap: 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rows .year { font: italic 400 56px/1 var(--serif); color: var(--accent); }
.rows h3 { font-size: 24px; }
.rows p { color: var(--muted); }
/* путь: шаги на линии */
.path { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.path::before { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--accent); }
.path > div { position: relative; padding-right: 28px; }
.path .num { display: inline-block; background: var(--bg); padding-right: 16px; font-size: 80px; line-height: 1; margin-bottom: 18px; }
.path p { color: var(--muted); margin-top: 8px; }
.price-line { display: flex; gap: 56px; flex-wrap: wrap; align-items: baseline; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.price-line b { font: 800 56px/1 var(--head); letter-spacing: -.05em; }
.price-line span { color: var(--muted); font-size: 17px; margin-left: 12px; }
.cta-strip { background: var(--accent); color: #fff; padding: 28px 0; }
.cta-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-strip p { font: 700 24px/1.2 var(--head); letter-spacing: -.03em; }
.cta-strip .btn { background: var(--dark); border-color: var(--dark); }
@media (max-width: 1120px) {
  .format-plate { grid-template-columns: 1fr; } .format-plate > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .rows > div { grid-template-columns: 120px 1fr; } .rows p { grid-column: 2; }
}
@media (max-width: 720px) {
  .hero-intro { flex-direction: column; align-items: stretch; gap: 24px; }
  .format-plate > div { padding: 28px 24px; } .format-plate li { flex-direction: column; gap: 2px; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } .rows p { grid-column: auto; } .rows .year { font-size: 40px; }
  .path { grid-template-columns: 1fr; gap: 24px; } .path::before { left: 20px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .path > div { padding-left: 64px; padding-right: 0; } .path .num { position: absolute; left: 0; top: 0; font-size: 44px; padding: 0 0 8px; width: 42px; text-align: center; margin: 0; }
  .price-line { gap: 20px; margin-top: 40px; } .price-line b { font-size: 40px; } .price-line span { display: block; margin: 6px 0 0; }
  .cta-strip .container { flex-direction: column; align-items: stretch; } .cta-strip .btn { width: 100%; } .cta-strip p { font-size: 20px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic figure:nth-child(3n+1) { grid-row: span 2 !important; }
  .mosaic figure:nth-child(n+7) { display: none; }
  .mosaic figcaption { opacity: 1; padding-top: 24px; }
}

@media (max-width: 720px) { .page-hero h1 { font-size: 32px; overflow-wrap: anywhere; hyphens: auto; } .page-hero { padding: 40px 0; } }

/* наведение — оранжевый #FD8006, как на страницах курсов (решение Антонины 31.10) */
.btn:hover, .btn-outline:hover, .btn-ghost:hover, .btn-light:hover, .cta-strip .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
a:hover, .link-arrow:hover, .nav a:hover, .news-list > a:hover h3, .course-row:hover h3, .tabs a:not(.active):hover { color: var(--accent-hover); }
.tabs a:not(.active):hover { border-color: var(--accent-hover); }
.course-card:hover h3 { color: var(--accent-hover); }

.btn { white-space: nowrap; }
.status p { font-size: 17px; line-height: 1.45; }
