/* Sobotnia Szkoła Języka i Kultury Ormiańskiej w Krakowie — szkic v0.1 */
:root {
  --red: #D90012;
  --blue: #0033A0;
  --blue-dark: #00267a;
  --apricot: #F2A800;
  --apricot-soft: #fff3d6;
  --ink: #1b2333;
  --muted: #5b6475;
  --line: #ece4d2;
  --paper: #fffdf8;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(27, 35, 51, .08);
  --wrap: 1120px;
  --font: "Segoe UI", "Noto Sans", "Noto Sans Armenian", Sylfaen, system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- wersja robocza ---------- */
.draft-bar {
  background: #1b2333; color: #fff; font-size: .82rem; text-align: center; padding: .4rem 1rem;
}
.draft-bar strong { color: var(--apricot); }
.flag { height: 6px; background: linear-gradient(to right, var(--red) 0 33.33%, var(--blue) 33.33% 66.66%, var(--apricot) 66.66% 100%); }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--blue); margin-right: auto; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--apricot); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-size: 1.7rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(242, 168, 0, .35);
}
.brand .name { font-weight: 700; font-size: .98rem; line-height: 1.2; max-width: 19rem; }
.brand .name small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.site-header .brand { flex: none; }
.site-header .brand .name { max-width: none; white-space: nowrap; font-size: 1rem; }
.site-header .brand .name small { display: block; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
  padding: .5rem .75rem; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: #f4efe3; }
.nav a.active { color: var(--blue); background: #eef2fb; }

.langs { display: flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.langs button {
  font: inherit; font-size: .8rem; font-weight: 700; border: 0; background: transparent; cursor: pointer;
  padding: .3rem .6rem; border-radius: 999px; color: var(--muted);
}
.langs button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.menu-btn {
  display: none; font: inherit; font-weight: 700; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: .45rem .8rem; cursor: pointer; color: var(--ink);
}

/* ---------- sekcje ---------- */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}
h1, h2, h3 { color: var(--blue); line-height: 1.2; margin: 0 0 .8rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue); background: transparent;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.light { border-color: #fff; color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, .12); }
.btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; }
.hero .letters {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 1.2; color: var(--blue); opacity: .05;
  word-break: break-all; font-weight: 700; padding: 1rem;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; }
.hero .badge {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: #fff1f2; border: 1px solid #ffd5d9; border-radius: 999px; padding: .35rem .9rem; margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--red); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 36px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), transparent 45%),
    linear-gradient(145deg, var(--apricot) 0%, #f7c24a 50%, #f29e00 100%);
  box-shadow: 0 30px 70px rgba(242, 168, 0, .35);
  display: grid; place-items: center;
}
.hero-art .big { font-size: clamp(9rem, 20vw, 15rem); font-weight: 700; color: var(--blue); line-height: 1; }
.hero-art .chip {
  position: absolute; background: #fff; border-radius: 18px; padding: .7rem 1rem; box-shadow: var(--shadow);
  font-weight: 700; font-size: .9rem; color: var(--ink); display: flex; gap: .55rem; align-items: center;
}
.hero-art .chip i { font-style: normal; font-size: 1.3rem; }
.hero-art .c1 { top: 8%; left: -6%; }
.hero-art .c2 { bottom: 12%; right: -6%; }
.hero-art .c3 { bottom: -4%; left: 12%; }

/* ---------- fakty ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.fact .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
  background: var(--apricot-soft); margin-bottom: .8rem;
}
.fact .k { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.35; margin-top: .15rem; }

/* ---------- karty ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: #fff;
}
.t-red { background: var(--red); }
.t-blue { background: var(--blue); }
.t-apricot { background: var(--apricot); color: var(--blue) !important; }
.t-ink { background: var(--ink); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; background: #eef2fb; color: var(--blue);
}
.tag.sample { background: #fff1f2; color: var(--red); }

/* ---------- aktualności ---------- */
.news .thumb {
  aspect-ratio: 16 / 9; border-radius: 16px; margin: -.4rem -.4rem 1.1rem;
  display: grid; place-items: center; font-size: 3.5rem; font-weight: 700; color: rgba(255, 255, 255, .9);
}
.news .meta { display: flex; gap: .6rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; flex-wrap: wrap; }
.news h3 a { text-decoration: none; color: inherit; }
.news h3 a:hover { text-decoration: underline; }
.news .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.g1 { background: linear-gradient(135deg, var(--blue), #2a5bd7); }
.g2 { background: linear-gradient(135deg, var(--red), #ff5a5f); }
.g3 { background: linear-gradient(135deg, var(--apricot), #f7c24a); color: var(--blue) !important; }
.g4 { background: linear-gradient(135deg, #1b2333, #3b4a66); }

/* ---------- pasek CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, #0b2a7a 100%); color: #fff; border-radius: 32px;
  padding: 3rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta .btns { justify-content: flex-end; }
.cta::after {
  content: "Հ"; position: absolute; right: -1rem; bottom: -4rem; font-size: 16rem; font-weight: 700; color: rgba(255, 255, 255, .06); line-height: 1;
}

/* ---------- nagłówek podstrony ---------- */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff7e6, var(--paper)); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--muted); }

/* ---------- treść ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.aside { position: sticky; top: 100px; }
.note {
  background: var(--apricot-soft); border: 1px solid #f6dc9c; border-radius: 18px; padding: 1.2rem 1.3rem; font-size: .95rem;
}

/* ---------- plan zajęć ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fcf8ef; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--blue); }

/* ---------- nauczycielki ---------- */
.person { text-align: center; align-items: center; }
.person .avatar {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.person .role { color: var(--red); font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery .ph {
  aspect-ratio: 1 / 1; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: rgba(255, 255, 255, .95); font-weight: 700; font-size: .95rem; line-height: 1.3;
}
.gallery .ph b { display: block; font-size: 2.6rem; margin-bottom: .3rem; }
.gallery .ph.wide { grid-column: span 2; aspect-ratio: auto; }

/* ---------- kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--apricot-soft); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-list strong { display: block; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 .35rem; }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid #ddd3bd; background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 1rem; }
.map-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: repeating-linear-gradient(45deg, #f6f1e4 0 12px, #fbf7ee 12px 24px);
  min-height: 220px; display: grid; place-items: center; text-align: center; padding: 1.5rem;
}

/* ---------- stopka ---------- */
.site-footer { margin-top: 2rem; background: #141b2d; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h4 { color: #fff; margin: 0 0 .9rem; font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand .name small { color: rgba(255, 255, 255, .6); }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0 1.6rem; font-size: .84rem; color: rgba(255, 255, 255, .6);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-footer .bottom strong { color: rgba(255, 255, 255, .85); font-weight: 600; }

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .nav, .site-header .langs { display: none; }
  .menu-btn { display: inline-block; }
  .site-header.open .nav, .site-header.open .langs { display: flex; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 1rem; }
  .site-header.open .nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; }
  .site-header.open .langs { order: 4; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 1rem auto 0; width: 100%; }
  .facts, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .split, .cta { grid-template-columns: 1fr; }
  .cta .btns { justify-content: flex-start; }
  .aside { position: static; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 3.2rem 0; }
  .brand .name { font-size: .88rem; max-width: 13rem; }
  .brand .name small { display: none; }
  .facts, .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .ph.wide { grid-column: span 2; }
  form .row { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.5rem; }
  .site-footer .top { grid-template-columns: 1fr; }
  .hero-art .c1 { left: 0; }
  .hero-art .c2 { right: 0; }
}

/* ormiańskie menu jest dłuższe — ciaśniej, a na węższych ekranach wcześniej przycisk „Menu” */
html[lang="hy"] .nav a { padding: .45rem .55rem; font-size: .86rem; }
html[lang="hy"] .site-header .brand .name { font-size: .92rem; }
@media (max-width: 1240px) and (min-width: 1021px) {
  html[lang="hy"] .nav, html[lang="hy"] .site-header .langs { display: none; }
  html[lang="hy"] .menu-btn { display: inline-block; }
  html[lang="hy"] .site-header.open .nav, html[lang="hy"] .site-header.open .langs { display: flex; }
  html[lang="hy"] .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 1rem; }
  html[lang="hy"] .site-header.open .nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; }
  html[lang="hy"] .site-header.open .langs { order: 4; }
}
.menu-btn { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .brand .name { white-space: normal; font-size: .9rem; }
  .site-header .brand .name small { display: none; }
}

/* ---------- aplikacja: zdjęcia i treści z panelu ---------- */
.test-bar { background: #1b2333; color: #fff; font-size: .8rem; text-align: center; padding: .35rem 1rem; letter-spacing: .04em; }
.news .thumb { overflow: hidden; }
.news .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news .thumb.hasimg { background: #eee !important; }
.post-img { border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; }
.post-img img { width: 100%; display: block; }
.person .avatar { overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery a.ph { text-decoration: none; padding: 0; overflow: hidden; position: relative; background: #eee; }
.gallery a.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a.ph:hover img { transform: scale(1.03); }
.gallery a.ph .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-size: .85rem; font-weight: 600; text-align: left;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose table { min-width: 0; }
.prose a { text-underline-offset: 3px; }
.nav a.ext::after { content: " ↗"; font-size: .8em; }
.langs a { font-size: .8rem; font-weight: 700; text-decoration: none; padding: .3rem .6rem; border-radius: 999px; color: var(--muted); }
.langs a.on { background: var(--blue); color: #fff; }

/* mapa dojazdu (obraz z naszego serwera, bez zewnętrznych skryptów i cookies) */
figure.map { margin: 0; }
figure.map img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 15 / 8; object-fit: cover; }
figure.map figcaption { margin-top: .7rem; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
figure.map .map-links { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; }
figure.map .map-links a { font-weight: 600; }
figure.map small { color: var(--muted); font-size: .78rem; }
.footer-links a { margin-left: 1rem; }
.split.contact-split { grid-template-columns: 1fr 1.5fr; align-items: start; }
@media (max-width: 1020px) { .split.contact-split { grid-template-columns: 1fr; } }
.cta.fb-cta { margin-bottom: 0; }

/* formularz kontaktowy */
.contact-form { max-width: 760px; }
.contact-form select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid #ddd3bd; background: #fff; color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-info { font-size: .85rem; color: var(--muted); margin: .2rem 0 1.2rem; }
.form-msg { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; }
.form-msg.ok { background: #e7f5ee; color: #1a7f4b; border: 1px solid #b7e2cc; }
.form-msg.err { background: #fdecea; color: #b42318; border: 1px solid #f4c3bd; }
.btn.small-btn { padding: .45rem .9rem; font-size: .85rem; margin-top: .8rem; }
html[data-skin="minimal"] .contact-form select, html[data-skin="minimal"] .form-msg { border-radius: 0; }
html[data-skin="classic"] .contact-form select { border-radius: 2px; border-color: #d9ccb3; background: #fffdf8; }
.split.contact-split2 { grid-template-columns: 1.25fr 1fr; align-items: start; gap: 2.5rem; }
.contact-side { display: flex; flex-direction: column; gap: 1.8rem; }
.fixed-to { background: var(--apricot-soft); padding: .75rem 1rem; border-radius: 12px; margin: 0 0 1rem; }
html[data-skin="minimal"] .fixed-to { border-radius: 0; background: #f1efea; }
@media (max-width: 1020px) { .split.contact-split2 { grid-template-columns: 1fr; } }

/* udostępnianie (zwykłe odnośniki, bez skryptów serwisów) */
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.share-l { font-size: .85rem; color: var(--muted); margin-right: .3rem; }
.share-b { font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.share-b:hover { border-color: var(--ink); }
html[data-skin="minimal"] .share-b { border-radius: 0; }

/* kotwice pod przyklejonym nagłówkiem; dwa przyciski w zaproszeniu */
[id] { scroll-margin-top: 110px; }
.cta .cta-btns { flex-direction: column; align-items: flex-end; }
.btn.light.ghost { border-color: rgba(255,255,255,.45); }
@media (max-width: 1020px) { .cta .cta-btns { flex-direction: row; align-items: flex-start; } }
html[data-skin="minimal"] .btn.light.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
html[data-skin="minimal"] .btn.light.ghost:hover { background: var(--ink); color: #fff; }

/* ozdobna litera w tle zaproszenia nie może zasłaniać przycisków */
.cta::after { pointer-events: none; z-index: 0; }
.cta > * { position: relative; z-index: 1; }
