/* ============================================================
   Банката 1925 — styles
   Palette: logo colors (gold/coral/navy/cream) + graphite grey
   ============================================================ */

:root {
  --graphite: #2b5672;        /* primary brand blue-grey (from site) */
  --graphite-deep: #22262b;   /* dark graphite surface */
  --graphite-900: #1a1d21;    /* darkest */
  --gold: #e0a010;
  --gold-soft: #f5c645;
  --coral: #e06050;
  --navy: #104060;
  --cream: #e8ddcb;
  --cream-bg: #f6f1e9;

  --ink: #20262c;             /* body text on light */
  --muted: #5d6873;           /* secondary text */
  --line: #e4ddd2;            /* hairlines on light */
  --white: #ffffff;

  --max: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(16, 30, 45, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(16, 30, 45, 0.4);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--graphite); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #2a1d00; box-shadow: 0 10px 30px -12px rgba(224, 160, 16, 0.7); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-outline { border-color: currentColor; color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--graphite-deep); border-color: var(--cream); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(34, 38, 43, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand-logo { height: 52px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.82);
  position: relative; padding: 0.3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold); transition: right 0.3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.header-cta { margin-left: 0.4rem; }
.header-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(224,160,16,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,160,16,0.6);} 70% { box-shadow: 0 0 0 8px rgba(224,160,16,0);} 100% { box-shadow: 0 0 0 0 rgba(224,160,16,0);} }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.menu-toggle span { width: 26px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: var(--graphite-deep); padding: 1rem clamp(1.1rem,4vw,2.5rem) 1.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a { font-family: var(--font-display); color: rgba(255,255,255,0.9); padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a.btn { border-bottom: 0; margin-top: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("/images/home-hall-1.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(43,86,114,0.55), transparent 60%),
    linear-gradient(180deg, rgba(26,29,33,0.78) 0%, rgba(26,29,33,0.62) 45%, rgba(26,29,33,0.9) 100%);
}
.hero-inner { padding-block: 7rem 6rem; max-width: 760px; }
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 0.78rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 1.3rem;
}
.hero-title { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -0.02em; }
.accent-gold { color: var(--gold-soft); }
.accent-coral { color: var(--coral); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.86); max-width: 600px; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-facts {
  list-style: none; padding: 0; margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.8rem;
}
.hero-facts li { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; font-weight: 600; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.45); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--gold); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
section[id] { scroll-margin-top: 84px; }
.section-dark { background: var(--graphite-deep); color: var(--cream); }
.section-muted { background: var(--cream-bg); }
.section-eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.76rem; font-weight: 600; color: var(--coral); margin-bottom: 0.9rem;
}
.section-dark .section-eyebrow { color: var(--gold-soft); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); color: inherit; }
.section .section-title { color: var(--graphite); }
.section-dark .section-title, .section-muted .section-title { color: inherit; }
.section-dark .section-title { color: #fff; }
.section-muted .section-title { color: var(--graphite); }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: 1rem; color: inherit; opacity: 0.85; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.media-badge {
  position: absolute; bottom: -18px; right: -10px; background: var(--gold); color: #2a1d00;
  font-family: var(--font-display); font-weight: 600; padding: 0.7rem 1.2rem; border-radius: 999px;
  font-size: 0.85rem; box-shadow: var(--shadow-sm); letter-spacing: 0.02em;
}
.about-text p { color: var(--muted); margin-top: 1.1rem; }
.about-text > p:first-of-type { margin-top: 1.4rem; }
.about-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5;
  color: var(--graphite) !important; border-left: 3px solid var(--coral); padding-left: 1.3rem; margin-top: 1.8rem !important;
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,160,16,0.5); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.6rem 1.9rem; }
.card-body h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.7rem; }
.card-body p { color: rgba(232,221,203,0.78); font-size: 0.97rem; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.services-lead { color: var(--muted); margin-top: 1.3rem; }
.feature-list { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.5rem; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem;
  background: var(--gold); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.services-media { display: grid; gap: 1.2rem; }
.services-media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; }
.services-media img:first-child { aspect-ratio: 3/2; }
.services-media img:last-child { aspect-ratio: 16/9; }

/* ---------- gallery ---------- */
.gallery { columns: 3; column-gap: 1rem; }
.gallery .g-item {
  break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; position: relative; background: var(--graphite);
}
.gallery img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.6s; }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(16,30,45,0.35));
  opacity: 0; transition: opacity 0.4s;
}
.gallery .g-item:hover::after { opacity: 1; }

/* ---------- events ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.event {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.event:hover { transform: translateY(-5px); border-color: rgba(224,96,80,0.55); }
.event-img { overflow: hidden; background: var(--graphite-900); }
.event-img img { width: 100%; height: auto; }
.event-info { padding: 1.3rem 1.4rem 1.6rem; }
.event-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-soft);
  border: 1px solid rgba(245,198,69,0.4); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.event-info h3 { color: #fff; font-size: 1.15rem; }
.event-meta { color: rgba(232,221,203,0.6); font-size: 0.88rem; margin-top: 0.5rem; }
.events-cta { text-align: center; margin-top: 3rem; color: var(--cream); font-size: 1.1rem; }
.events-cta a { color: var(--gold-soft); font-weight: 600; }
.events-cta a:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-text > p { color: var(--muted); margin-top: 1.2rem; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--coral); font-weight: 600; }
.contact-list a { font-size: 1.12rem; color: var(--graphite); font-weight: 500; transition: color 0.2s; }
.contact-list a:hover { color: var(--gold); }
.socials { display: flex; gap: 1.4rem; margin-top: 0.5rem; }
.socials a { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 500; color: var(--graphite); }
.socials img { border-radius: 6px; }
.socials a:hover { color: var(--gold); }

.contact-form { background: var(--cream-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,160,16,0.18); }
.field input:user-invalid { border-color: var(--coral); }
.form-note { margin-top: 1rem; font-size: 0.92rem; min-height: 1.2em; }
.form-note.ok { color: #1f7a4d; }
.form-note.err { color: var(--coral); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite-900); color: rgba(255,255,255,0.7); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 300px; font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-contact a, .footer-contact span { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(16,18,21,0.94); display: flex; align-items: center; justify-content: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; cursor: pointer; border-radius: 50%; transition: background 0.2s; }
.lightbox button:hover { background: rgba(224,160,16,0.4); }
.lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue span, .header-cta .dot { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .about-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .events { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .services-media { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cards, .events, .feature-list, .field-row, .services-media { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-facts { gap: 1.4rem; }
  .hero-facts li { flex: 1 1 40%; }
  .footer-inner { grid-template-columns: 1fr; }
  .media-badge { right: 10px; }
}
