/* ==========================================================================
   alfrednauczyciel.pl — styles
   Monochrome editorial design: black hero, white/gray sections, no color.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/InstrumentSerif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/InstrumentSerif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/InstrumentSerif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/InstrumentSerif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --white: #fdfdfb;
  --paper: #f6f6f3;
  --gray: #ececea;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Section theme scopes: components read these vars */
.sec-dark {
  --bg: var(--black);
  --text: #f4f4f1;
  --muted: #9d9d99;
  --line: rgba(255, 255, 255, 0.14);
  --card: #141414;
  --btn-bg: var(--white);
  --btn-fg: #0a0a0a;
}
.sec-light {
  --bg: var(--white);
  --text: #101010;
  --muted: #5f5f5b;
  --line: rgba(0, 0, 0, 0.13);
  --card: #ffffff;
  --btn-bg: #0a0a0a;
  --btn-fg: var(--white);
}
.sec-gray {
  --bg: var(--gray);
  --text: #101010;
  --muted: #585854;
  --line: rgba(0, 0, 0, 0.13);
  --card: #ffffff;
  --btn-bg: #0a0a0a;
  --btn-fg: var(--white);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: #f4f4f1;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #0a0a0a; color: #fff; }
.sec-dark ::selection { background: #fff; color: #0a0a0a; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: #000;
  padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Typography ---------- */
.display, .display-2, .display-3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--text);
}
.display { font-size: clamp(2.8rem, 6.6vw, 5.4rem); }
.display-2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.display-3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

.display em, .display-2 em, .display-3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  max-width: 58ch;
  margin-top: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-solid:hover { opacity: 0.88; }

.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  color: #f4f4f1;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 0.92rem;
  color: rgba(244, 244, 241, 0.68);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 241, 0.6);
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active { background: #fff; color: #0a0a0a; }

.header-actions .btn-solid { background: #fff; color: #0a0a0a; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (homepage, full-bleed photo) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #050505;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 12%;
  filter: grayscale(30%);
}
/* readability gradients: left for text, bottom for stats */
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.92) 34%, rgba(5, 5, 5, 0.55) 56%, rgba(5, 5, 5, 0.12) 74%, rgba(5, 5, 5, 0) 88%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.4) 22%, rgba(5, 5, 5, 0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 70px);
}

.hero-copy { max-width: 660px; }
.hero-copy .display { color: #fdfdfb; }
.hero-copy .eyebrow { color: rgba(244, 244, 241, 0.65); }
.hero-copy .lead { color: rgba(244, 244, 241, 0.78); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .btn-solid { background: #fff; color: #0a0a0a; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 84px;
  padding: 30px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat-value {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fdfdfb;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: rgba(244, 244, 241, 0.6); font-size: 0.88rem; }

/* ---------- Page hero (subpages, compact) ---------- */
.page-hero {
  background: var(--bg);
  color: var(--text);
  padding: calc(var(--header-h) + 90px) 0 70px;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--black);
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  padding: 17px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(244, 244, 241, 0.65);
  white-space: nowrap;
}
.marquee-track i { color: rgba(244, 244, 241, 0.35); font-style: normal; font-size: 0.8rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; background: var(--bg); color: var(--text); }
.section-tight { padding-top: 30px; }
.section-head { max-width: 780px; margin-bottom: 60px; }

/* ---------- Media frames ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e5e2;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.media:hover img { transform: scale(1.03); }
.media-tall { aspect-ratio: 3 / 4; }
.media-card { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.media-card img { object-position: center top; }

.media.is-pending::after {
  content: 'ALFRED';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0.4em; font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.3);
}
.media.is-pending img { display: none; }

/* ---------- About (light) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 44px;
  align-items: start;
}
.about-media { position: sticky; top: calc(var(--header-h) + 24px); }
.about-media figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}
.feature-index {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--text); }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Where (gray) ---------- */
.where-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.where-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.where-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.09); }
.where-card .media { border-radius: var(--radius-sm); }

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.where-card h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--text); }
.where-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Pricing (dark, offset cards) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 940px;
}
.price-card {
  position: relative;
  border-radius: var(--radius);
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); }

/* offset: rent sits lower, purchase raised — deliberately uneven */
.price-card-rent { margin-top: 56px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.16); }
.price-card-rent .price-label, .price-card-rent .price-unit, .price-card-rent .price-desc { color: #9d9d99; }
.price-card-rent .price-value { color: #fdfdfb; }
.price-card-rent .btn { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.price-card-rent .btn:hover { border-color: #fff; }

.price-card-buy { background: var(--white); color: #0a0a0a; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.price-card-buy .price-label, .price-card-buy .price-unit, .price-card-buy .price-desc { color: #5f5f5b; }
.price-card-buy .price-value { color: #0a0a0a; }
.price-card-buy .btn { background: #0a0a0a; color: #fff; }

.price-badge {
  position: absolute;
  top: -13px; right: 28px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.price-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.price-value {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-value span { font-size: 0.55em; font-weight: 500; }
.price-unit { font-size: 0.9rem; margin-top: 8px; }
.price-desc { margin: 20px 0 22px; font-size: 0.97rem; }
.price-leasing {
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  color: #5f5f5b;
  width: 100%;
}
.price-leasing strong { color: #0a0a0a; white-space: nowrap; }
.price-card .btn { margin-top: auto; }

.pricing-more {
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pricing-more p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text);
  max-width: 34ch;
  line-height: 1.3;
}

/* ---------- Comparison page ---------- */
.vs-table-wrap { overflow-x: auto; }
.vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.vs-table th, .vs-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vs-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid var(--text);
}
.vs-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 30%;
}
.vs-table td { color: var(--muted); }
.vs-table td.vs-alfred {
  color: var(--text);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.03);
}
.vs-mark { font-weight: 700; margin-right: 8px; }

.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
.cost-card {
  border-radius: var(--radius);
  padding: 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #141414;
}
.cost-card-alfred { background: var(--white); color: #0a0a0a; border-color: transparent; }
.cost-card h3 { font-size: 1.2rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.cost-calc { font-size: 0.88rem; color: #9d9d99; min-height: 44px; }
.cost-card-alfred .cost-calc { color: #5f5f5b; }
.cost-total {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
  font-variant-numeric: tabular-nums;
}
.cost-total .unit { font-size: 0.5em; font-weight: 500; color: #9d9d99; }
.cost-card-alfred .cost-total .unit { color: #5f5f5b; }
.cost-card ul { display: grid; gap: 10px; }
.cost-card li { position: relative; padding-left: 24px; font-size: 0.93rem; color: #9d9d99; }
.cost-card-alfred li { color: #2a2a28; }
.cost-card li::before { content: '-'; position: absolute; left: 0; }
.cost-card-alfred li::before { content: '✓'; font-weight: 700; }

.years-table-wrap { overflow-x: auto; margin-top: 40px; }
.years-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.years-table th, .years-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.years-table th:first-child, .years-table td:first-child { text-align: left; }
.years-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9d9d99;
  font-weight: 600;
}
.years-table td { color: #c9c9c5; }
.years-table td strong { color: #fdfdfb; }
.years-note { margin-top: 14px; font-size: 0.82rem; color: #7c7c78; }

.verdict {
  margin-top: 44px;
  padding: 30px 34px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: #fdfdfb;
  text-wrap: balance;
}

/* ---------- CTA band ---------- */
.cta-inner { text-align: center; max-width: 820px; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner .eyebrow::before { display: none; }
.cta-inner .lead { margin-inline: auto; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.cta-mail {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}
.cta-mail:hover { color: var(--text); border-color: var(--text); }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-aside h2 { margin-bottom: 8px; }
.contact-aside .cta-mail { margin-top: 26px; font-size: 1.25rem; }
.contact-aside .contact-note { margin-top: 26px; color: var(--muted); font-size: 0.95rem; max-width: 40ch; }

.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}
.form-hint { font-size: 0.84rem; color: var(--muted); }
.form-status { font-size: 0.9rem; color: var(--text); min-height: 1.4em; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--text); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 12px; height: 12px; position: relative; }
.faq-item summary i::before,
.faq-item summary i::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.faq-item summary i::before { inset: 5px 0; }
.faq-item summary i::after { inset: 0 5px; }
.faq-item[open] summary i::after { transform: rotate(90deg) scaleY(0); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #f4f4f1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 74px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo { font-size: 2rem; }
.footer-brand p { color: #9d9d99; margin-top: 16px; max-width: 34ch; font-size: 0.95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7c7c78;
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-nav a, .footer-contact a { color: #e6e6e2; font-size: 0.95rem; transition: color 0.2s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { color: #9d9d99; font-size: 0.88rem; }

/* SEO page links block (filled from the database by js/main.js) */
.footer-seo {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 44px 0 34px;
}
.footer-seo > h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7c7c78;
  margin-bottom: 26px;
  font-weight: 600;
}
.footer-seo-links {
  columns: 4;
  column-gap: 30px;
}
.footer-seo-links li { break-inside: avoid; margin-bottom: 9px; line-height: 1.4; }
.footer-seo-links a {
  color: #83837f;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.footer-seo-links a:hover { color: #fff; text-decoration: underline; }
.footer-seo-more {
  margin-top: 22px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #c9c9c5;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.footer-seo-more:hover { border-color: #fff; color: #fff; }

[hidden] { display: none !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #83837f;
  font-size: 0.85rem;
}
.footer-credits { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-credits a { color: #e6e6e2; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: border-color 0.2s; }
.footer-credits a:hover { border-color: #fff; }
.footer-credits .sep { color: #55554f; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .where-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .footer-seo-links { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 820px) {
  .section { padding: 80px 0; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 13px 0; font-size: 1.05rem; color: #f4f4f1; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .hero { min-height: 88svh; }
  .hero-photo img { object-position: 62% 0%; filter: grayscale(30%) brightness(0.75); }
  .hero-photo::before {
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.97) 8%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0.25) 100%);
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; margin-top: 60px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 440px; }

  .price-grid { grid-template-columns: 1fr; }
  .price-card-rent { margin-top: 0; order: 2; }

  .cost-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-seo-links { columns: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
