/* Self-hosted fonts (убран рантайм-запрос к fonts.googleapis.com/fonts.gstatic.com — на нестабильном мобильном интернете render-blocking <link> на внешний домен подвешивал всю страницу) */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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;
}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgFE_.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgFE_.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgFE_.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.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;
}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgFE_.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgFE_.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgFE_.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.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;
}

:root {
  --ink: #1c2b3a;
  --muted: #6b7785;
  --muted-light: #99a3ad;
  --line: #e6e1d6;
  --bg: #fbfaf7;
  --bg-alt: #f3f1ea;
  --white: #ffffff;
  --accent: #2f6e6e;
  --accent-light: #5c9c9c;
  --brass: #ad8a53;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(28, 43, 58, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 1600px) {
  .container { max-width: 1480px; padding: 0 40px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-call {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-call:hover { border-color: var(--accent); color: var(--accent); }
.btn-quick-return {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-quick-return:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-quick-return.overdue { background: #b03a2e; border-color: #b03a2e; }
.btn-quick-return.overdue:hover { background: #c84433; border-color: #c84433; }
.btn-quick-return:not(:disabled) { animation: btn-blink 2s ease-in-out infinite; }
#toggle-btn.btn-blinking:not(:disabled) { animation: btn-blink 2s ease-in-out infinite; }
@keyframes btn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); }
.btn-primary:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.btn-primary:disabled:hover { background: var(--line); }
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.burger {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 22px; height: 1.5px; background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 16%, rgba(251,250,247,0.78) 27%, rgba(251,250,247,0.22) 38%, rgba(251,250,247,0) 50%),
    url('images/hero-khimki.jpg?v=2');
  background-size: auto, cover;
  background-position: left, center 62%;
  background-repeat: no-repeat;
  z-index: -1;
}
.section-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  fill: var(--bg);
}
.hero-inner {
  padding: 96px 24px 100px 0;
  max-width: 740px;
}
.hero .container { padding-left: 0; margin-left: 0; max-width: none; padding-right: 0; }
.hero .hero-inner { margin-left: 48px; }
@media (min-width: 1600px) {
  .hero .hero-inner { margin-left: calc((100vw - 1480px) / 2 + 24px); }
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
  text-shadow: 0 0 8px rgba(251,250,247,0.9);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 26px;
  text-shadow: 0 0 10px rgba(251,250,247,0.9), 0 2px 22px rgba(251,250,247,0.75);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 420px;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(251,250,247,0.9), 0 2px 16px rgba(251,250,247,0.7);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-ghost {
  background: rgba(251,250,247,0.9);
  border-color: var(--ink);
}
.hero-cta .btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Sections */
.section { padding: 100px 0; }
#about { padding-top: 26px; }
.section-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(28,43,58,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 22px;
}
.section-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 50px;
}

/* Icons */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 18px;
  background: var(--white);
}
.icon-circle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card .icon-circle { margin-bottom: 14px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { color: var(--muted); font-size: 1.02rem; }
.about-stats {
  display: grid;
  gap: 28px;
  padding-top: 4px;
}
.stat-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: var(--ink);
  font-weight: 600;
}
.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--white);
  padding: 38px 34px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
}
.service-item {
  padding: 30px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.service-item:last-child { border-right: none; }
.service-item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.service-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.free-note {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  background: rgba(47,110,110,0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Info / weather / tax calc */
.info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 60px;
}
.info-block {
  background: var(--white);
  padding: 34px;
}
.info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.info-block p { color: var(--muted); font-size: 0.96rem; }
.weather-embed {
  width: 100%;
  aspect-ratio: 650 / 450;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}
.info-note {
  color: var(--muted-light);
  font-size: 0.86rem;
  font-style: italic;
  margin: 0;
}
.info-note a { color: var(--accent); font-style: normal; }
.info-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.info-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.info-links a:hover { color: var(--accent); border-color: var(--accent); }

.tax-calc {
  border: 1px solid var(--line);
  padding: 40px;
}
.tax-calc h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.tax-calc .info-note { margin-bottom: 28px; }
.calc-row {
  display: flex;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.calc-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.calc-row input {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  width: 190px;
}
.calc-row input:focus { outline: none; border-color: var(--accent); }
.calc-result {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  min-height: 1.4em;
}
.calc-result .calc-detail {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.76fr;
  gap: 40px;
  align-items: stretch;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}
.contact-list strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contacts-map {
  min-height: 572px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(10%) contrast(0.97);
}

.event-banner {
  background: var(--accent);
  padding: 12px 0;
  text-align: center;
}
.event-banner a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.event-banner a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--white);
  color: var(--muted);
  padding: 32px 0;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a { color: var(--accent); }
.footer-credit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-light);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .contacts-map { height: 400px; min-height: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .tax-calc { padding: 28px; }
  .calc-row input { width: 100%; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero .container { padding-left: 20px; padding-right: 20px; }
  .hero .hero-inner { margin-left: 0; }
  .section { padding: 56px 0; }
  #about { padding-top: 56px; }
  .section-lead { margin-bottom: 30px; }
  .about-grid { gap: 36px; }
  .about-stats { gap: 18px; }
  .stat-card { padding-top: 14px; }
  .card { padding: 28px; }
  .service-item { padding-top: 22px; }
  .info-block { padding: 26px; }
  .tax-calc { padding: 26px; }
  .info-grid { margin-bottom: 32px; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .nav.open { display: flex; }
  .btn-call { display: none; }
  .burger { display: flex; }
  .header-inner { gap: 10px; }
  .btn-quick-return { padding: 5px 10px; font-size: 0.72rem; }
  .header-inner { height: auto; min-height: 76px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .hero-bg { background-position: left, 72% 48%; }
  .hero-inner {
    margin: 5px 0 54px;
    padding: 24px 20px;
    background: none;
    border-radius: 14px;
  }
  .hero-kicker {
    margin-bottom: 142px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(11,31,58,0.75), 0 1px 12px rgba(11,31,58,0.65), 0 0 3px rgba(11,31,58,0.9);
  }
  .hero h1,
  .hero-sub {
    color: #fff;
    text-shadow: 0 2px 6px rgba(11,31,58,0.75), 0 1px 12px rgba(11,31,58,0.65), 0 0 3px rgba(11,31,58,0.9);
  }
  .hero-cta .btn-primary { box-shadow: 0 6px 18px rgba(11,31,58,0.25); }
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Auth / app pages ---- */
.app-main {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
  padding: 44px 40px;
  background: var(--white);
}
.auth-card.wide { max-width: 900px; }
/* Журнал — таблица "Полная история" заметно шире остальных карточек (10 колонок), на десктопе
   упиралась в общий max-width:900px и приходилось скроллить по горизонтали без надобности. */
.auth-card.wide.journal-card { max-width: 1280px; }
.auth-card.wide.admin-card { max-width: 1280px; }
#journal-table th:nth-child(9),
#journal-table td:nth-child(9) { min-width: 160px; }
.auth-card h1 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.auth-card .section-lead { margin-bottom: 30px; font-size: 0.97rem; }
.form-grid { display: grid; gap: 18px; margin-bottom: 8px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-hint { font-size: 0.78rem; color: var(--muted); margin-top: -2px; }
.doc-file-list { display: flex; flex-direction: column; gap: 4px; margin-top: -2px; }
.doc-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f6f7fb; border-radius: 6px; padding: 5px 9px; font-size: 0.8rem; }
.doc-file-row a { color: var(--accent, #2e6bf2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file-row a:hover { text-decoration: underline; }
.doc-file-del { border: none; background: none; color: #c0392b; cursor: pointer; font-size: 0.95rem; font-weight: 700; line-height: 1; padding: 2px 4px; flex: none; }
.doc-file-del:hover { color: #e74c3c; }
.form-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-field input,
.form-field select {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23767265' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field input:focus,
.form-field select:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--muted-light); margin-top: 18px; }
.form-note a { color: var(--accent); }
.form-msg {
  margin-top: 18px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(47,110,110,0.08); color: var(--accent); }
.form-msg.err { background: rgba(176,58,46,0.08); color: #b03a2e; }
.app-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.app-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.app-nav a.active, .app-nav a:hover { color: var(--accent); }

.cabinet-status {
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.cabinet-status.out { border-color: var(--brass); }
.cabinet-status.overdue { border-color: #b03a2e; background: rgba(176,58,46,0.05); }
.status-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.status-value { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--ink); }
.status-value.warn { color: #b03a2e; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.data-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}
table.data-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
table.data-table tr.overdue-row td { color: #b03a2e; }
/* Кнопки действий в "Все пользователи" — всегда в одну строку, компактно (не только
   на мобильном): короткие подписи (title держит полный текст для подсказки).
   Flex — на ВНУТРЕННЕМ div (.admin-row-actions-table), а не на самой <td>: иначе ячейка
   выпадает из обычного поведения строки таблицы и перестаёт тянуться на высоту строки,
   из-за чего кнопки "прилипают" к верхнему краю и граница ячейки не совпадает со строкой. */
table.data-table td.actions-cell { padding: 0; }
table.data-table .admin-row-actions-table {
  display: flex; flex-wrap: nowrap; gap: 4px; white-space: nowrap;
  justify-content: center; align-items: center; min-width: 230px;
  height: 100%; box-sizing: border-box; padding: 6px 12px;
}
table.data-table .admin-row-actions-table .btn-small { padding: 4px 8px; font-size: 0.72rem; }

/* Компактный режим на мобильном для таблиц админки (особенно "Все пользователи" —
   больше всего строк и колонок, приходилось много скроллить). */
@media (max-width: 720px) {
  table.data-table th { padding: 7px 8px; font-size: 0.68rem; }
  table.data-table td { padding: 7px 8px; font-size: 0.8rem; }
  table.data-table .admin-row-actions-table { gap: 3px; padding: 7px 8px; }
  table.data-table .admin-row-actions .btn-small { padding: 3px 6px; font-size: 0.68rem; }
  .request-card { padding: 12px 14px; margin-bottom: 10px; }
  .request-card-grid { font-size: 0.82rem; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 4px 12px; }
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.depart { background: rgba(173,138,83,0.15); color: var(--brass); }
.badge.return { background: rgba(47,110,110,0.12); color: var(--accent); }
.badge.overdue { background: rgba(176,58,46,0.12); color: #b03a2e; }
.badge.pending { background: rgba(173,138,83,0.15); color: var(--brass); }
.badge.approved { background: rgba(47,110,110,0.12); color: var(--accent); }
.badge.rejected { background: rgba(176,58,46,0.12); color: #b03a2e; }

.dues-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 4px; }
.dues-summary-card {
  display: flex; flex-direction: column; gap: 3px;
  background: #fff; border: 1px solid var(--line, #e5e0d8);
  border-radius: 12px; padding: 10px 16px; width: 190px;
}
.dues-summary-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.dues-summary-value { font-size: 1.5rem; font-weight: 700; color: #b03a2e; line-height: 1.1; }
.dues-summary-hint { font-size: 0.72rem; color: var(--muted); }
.dues-summary-card-overpaid .dues-summary-value { color: #1f9254; }
@media (max-width: 520px) {
  .dues-summary-card { min-width: 0; flex: 1 1 100%; }
}

/* Плашка "Членские взносы" в личном кабинете (cabinet.html) — при долге рядом выводится
   QR-код быстрой оплаты, поэтому плашку уменьшили вдвое (flex:0 0 50%), чтобы оба блока
   помещались в одну строку. */
.dues-row { display: none; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: nowrap; }
.dues-widget { flex: 0 0 50%; max-width: 50%; box-sizing: border-box; padding: 14px 16px; border-radius: 10px; }
.dues-qr-block { display: none; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.dues-qr-block img {
  /* рамка/отступ минимальные — так QR увереннее сканируется телефоном даже при небольшом размере */
  width: 90px; height: 90px; flex-shrink: 0; background: #fff;
  border-radius: 4px; border: 1px solid var(--line, #e5e0d8); padding: 1px;
}
.dues-qr-text { font-size: 12px; line-height: 1.4; color: #333; min-width: 0; }
.dues-qr-title { display: block; margin-bottom: 2px; color: #b3261e; }
@media (max-width: 520px) {
  /* QR крупный даже на телефоне — ради этого строка разрешает перенос: плашка и QR+текст
     могут встать друг под другом вместо того, чтобы сжимать QR до нечитаемого размера. */
  .dues-row { gap: 10px; flex-wrap: wrap; }
  .dues-widget { padding: 10px 12px; flex-basis: 100%; max-width: 100%; }
  .dues-widget span { font-size: 17px !important; }
  .dues-qr-block { flex-basis: 100%; }
  .dues-qr-block img { width: 82px; height: 82px; }
  .dues-qr-text { font-size: 11.5px; }
}

.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.request-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.request-card-name { font-weight: 600; margin-bottom: 4px; }
.request-card-email { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; word-break: break-all; }
.request-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.btn-small { padding: 6px 14px; font-size: 0.8rem; }

.nav a.cabinet-link-active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.cabinet-link-name {
  color: var(--accent);
  font-weight: 600;
}
.cabinet-link-status {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cabinet-link-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cabinet-link-status.status-home { color: var(--muted); }
.cabinet-link-status.status-home::before { background: #2f9e52; }

.cabinet-link-status.status-out { color: var(--brass); animation: status-pulse 1.6s ease-in-out infinite; }
.cabinet-link-status.status-out::before { background: var(--brass); animation: status-pulse 1.6s ease-in-out infinite; }

.cabinet-link-status.status-overdue { color: #b03a2e; }
.cabinet-link-status.status-overdue::before { background: #b03a2e; animation: status-pulse 1s ease-in-out infinite; }

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.consent-row a { color: var(--accent); }

.policy-page .auth-card.wide { max-width: 820px; }
.policy-page h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.policy-page p, .policy-page li { color: var(--muted); font-size: 0.96rem; }
.policy-page ul { padding-left: 20px; }

/* Depart details card (cabinet) */
.depart-card {
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 18px;
}
.depart-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.depart-card-head h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.depart-card-head p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.depart-card-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
}
.section-h3 {
  margin-top: 44px;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.depart-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}
@media (max-width: 600px) {
  .depart-grid { grid-template-columns: 1fr; }
}
.trip-details {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--ink);
  display: grid;
  gap: 6px;
}

/* Members status list (journal page) */
.members-status {
  border-top: 1px solid var(--line);
}
.member-status-row {
  padding: 13px 2px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.member-status-name { font-weight: 500; color: var(--ink); }
.member-status-berth { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.member-status-row .cabinet-link-status { margin-left: auto; }

/* Compact variant — fit more on one screen without scrolling (journal page) */
.app-main.compact { padding: 24px 20px; }
.auth-card.compact { padding: 24px 28px; }
.auth-card.compact h1 { font-size: 1.35rem; margin-bottom: 6px; }
.auth-card.compact .section-lead { margin-bottom: 14px; font-size: 0.88rem; }
.auth-card.compact .section-h3 { margin-top: 18px; margin-bottom: 8px; font-size: 0.98rem; }
.auth-card.compact .member-status-row { padding: 8px 2px; font-size: 0.9rem; }
.auth-card.compact .depart-card { padding: 14px 16px; margin-bottom: 12px; }
.auth-card.compact .depart-card-note { margin-bottom: 12px; font-size: 0.82rem; }
.auth-card.compact .depart-grid { gap: 10px 16px; }
.auth-card.compact .form-field { gap: 4px; }
.auth-card.compact .form-field label { font-size: 0.72rem; }
.auth-card.compact .form-field input,
.auth-card.compact .form-field select { padding: 8px 10px; font-size: 0.92rem; }
.auth-card.compact .data-table th,
.auth-card.compact .data-table td { padding: 7px 10px; font-size: 0.82rem; }
.auth-card.compact #toggle-btn { padding: 9px 20px; font-size: 0.85rem; }
/* Текст кнопки меняется ("Отметить выход в плавание" / "Отметить возвращение из плавания") и на
   узких экранах не помещается в одну строку — .btn по умолчанию white-space:nowrap, из-за чего
   кнопка вылезала за край экрана (поймано по реальному скриншоту с iPhone). Разрешаем перенос и
   ограничиваем шириной контейнера на любом экране, не только мобильном. */
#toggle-btn { white-space: normal; width: 100%; box-sizing: border-box; text-align: center; border-radius: 999px; }

#journal-link-btn {
  display: inline-block;
  margin-bottom: 8px;
}

.badge.out { background: rgba(173,138,83,0.15); color: var(--brass); }

.journal-filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.journal-filters .form-field { min-width: 160px; }

.quick-hours {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.quick-hours .chip {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.85rem;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.quick-hours .chip:hover { border-color: var(--accent); }
.quick-hours .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quick-hours .chip.chip-danger.active {
  background: #b03a2e;
  border-color: #b03a2e;
}

.trip-editable {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9rem;
  background: none;
  border: none;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  cursor: pointer;
  padding: 2px 0;
}
.trip-editable:hover { border-bottom-color: var(--accent); color: var(--accent); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-box h4 { margin: 0 0 14px; font-family: 'Playfair Display', serif; }

.consent-info-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1100;
  overflow-y: auto;
  padding: 40px 24px 80px;
}
.fullscreen-overlay-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.fullscreen-close {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.fullscreen-close:hover { border-color: var(--accent); color: var(--accent); }
.law-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 20px;
  margin: 20px 0;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.law-quote p { margin: 14px 0; font-size: 0.95rem; color: var(--muted); }

/* Сворачивание .app-nav (шапка Журнала/Кабинета/Бронирования/Справки/Админки) на мобильном —
   объявлено здесь, ПОСЛЕ базового ".app-nav{display:flex}" выше, намеренно: иначе безусловное
   правило (оно встречается в файле позже старого mobile-блока) перебивает display:none и бургер
   визуально есть, но ничего не сворачивает — ровно такой баг поймали на реальном iPhone. */
@media (max-width: 720px) {
  .app-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .app-nav.open { display: flex; }
}

.call-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.call-link:hover { text-decoration: underline; }

/* Заголовки вкладок "Все пользователи"/"Членские взносы" с динамическим числом/долгом —
   обычным шрифтом (как ФИО в таблице), не декоративным Playfair Display, размер не меняем. */
#tab-users-heading, #tab-dues-heading { font-family: 'Inter', Arial, sans-serif; }
