/* ==========================================================================
   Kek Dredging — общие стили сайта
   Палитра: бордовые тона + тёплый крем и приглушённое золото
   ========================================================================== */

:root {
  --burgundy-900: #330d18;
  --burgundy-800: #47121f;
  --burgundy-700: #641b2c;
  --burgundy-600: #7f2438;
  --burgundy-500: #9c3049;
  --burgundy-400: #b9536a;
  --cream-100: #fbf6ef;
  --cream-200: #f4ead9;
  --cream-300: #ecdcc3;
  --gold-500: #b98a44;
  --gold-600: #96702f;
  --ink-900: #241014;
  --ink-700: #4a3236;
  --ink-500: #6f5a5d;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(51, 13, 24, 0.12);
  --shadow-md: 0 10px 30px rgba(51, 13, 24, 0.18);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--burgundy-800);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.5em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------------------------------- Skip link ---------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--burgundy-800);
  color: var(--white);
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------------------------------- Top bar ---------------------------------- */
.topbar {
  background: var(--burgundy-900);
  color: var(--cream-200);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  color: var(--cream-200);
}
.topbar-item:last-child { margin-right: 0; }
.topbar-item a { color: var(--cream-200); }
.topbar-item a:hover { color: var(--gold-500); }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  color: var(--burgundy-700);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--burgundy-800);
  letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-600);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 26px;
}
.main-nav a {
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--burgundy-700);
  border-bottom-color: var(--gold-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--burgundy-800);
  padding: 6px;
}
.nav-toggle .svg-icon {
  width: 28px;
  height: 28px;
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 62vh;
  background: linear-gradient(180deg, rgba(51,13,24,0.55), rgba(51,13,24,0.78)), center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 90px 0 70px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.5em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream-200);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-hero {
  min-height: 34vh;
  align-items: flex-end;
}
.page-hero .hero-inner {
  padding: 60px 0 40px;
}
.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--burgundy-900);
}
.btn-primary:hover { background: var(--gold-600); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }
.btn-solid {
  background: var(--burgundy-700);
  color: var(--white);
}
.btn-solid:hover { background: var(--burgundy-800); }

/* ---------------------------------- Sections ---------------------------------- */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--cream-200);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.two-col.reverse .col-image { order: 2; }
.two-col.reverse .col-text { order: 1; }
.col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-image {
  height: 190px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--burgundy-700);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon .svg-icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p { color: var(--ink-500); margin-bottom: 0; font-size: 0.96rem; }

/* Stat strip */
.stat-strip {
  background: var(--burgundy-800);
  color: var(--cream-100);
  padding: 46px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold-500);
  font-weight: 700;
}
.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-300);
}

/* Values / list with icons */
.icon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.icon-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.icon-list-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.icon-list-item h4 { margin-bottom: 0.3em; font-size: 1.05rem; }
.icon-list-item p { margin-bottom: 0; color: var(--ink-500); font-size: 0.94rem; }

/* Quote / callout */
.callout {
  background: var(--cream-300);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 26px 30px;
  margin: 30px 0;
  font-style: italic;
  color: var(--burgundy-800);
}

/* Timeline (about page) */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 3px solid var(--cream-300);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--burgundy-700);
}
.timeline-year {
  font-weight: 700;
  color: var(--burgundy-700);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}
.team-photo { height: 210px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px; }
.team-body h4 { margin-bottom: 0.2em; }
.team-role { color: var(--gold-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

/* ---------------------------------- Contact page ---------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-list .card-icon { margin-bottom: 0; }
.contact-info-list strong { display: block; color: var(--burgundy-800); }
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  width: 100%;
  height: 420px;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--burgundy-800);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream-100);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--burgundy-500);
  background: var(--white);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 12px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.hours-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-300);
  font-size: 0.94rem;
}
.hours-table td:last-child { text-align: right; color: var(--ink-500); }

/* ---------------------------------- Policy pages ---------------------------------- */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
}
.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-300);
  color: var(--burgundy-800);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 30px;
}
.policy-content h2 {
  margin-top: 2em;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--cream-300);
  padding-bottom: 10px;
}
.policy-content h3 {
  font-size: 1.1rem;
  color: var(--burgundy-700);
}
.policy-toc {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.policy-toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
  border: none;
  padding-bottom: 0;
}
.policy-toc ol {
  columns: 2;
  margin-bottom: 0;
}
.policy-toc a { color: var(--burgundy-700); font-weight: 600; }
.policy-toc a:hover { text-decoration: underline; }

/* ---------------------------------- CTA banner ---------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--burgundy-700), var(--burgundy-900));
  color: var(--cream-100);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--cream-300); max-width: 600px; margin: 0 auto 26px; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--burgundy-900);
  color: var(--cream-300);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; color: var(--gold-500); }
.footer-brand .brand-name { color: var(--white); font-size: 1.1rem; }
.site-footer p { color: var(--cream-300); font-size: 0.92rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--cream-300); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.footer-contact-item .svg-icon { color: var(--gold-500); margin-top: 3px; }
.footer-bottom {
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--cream-300);
}
.footer-bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--gold-500); }

/* ---------------------------------- Cookie banner ---------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--burgundy-900);
  color: var(--cream-100);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
  transform: translateY(120%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-500);
  flex-shrink: 0;
}
.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--cream-200);
}
.cookie-text a { color: var(--gold-500); font-weight: 700; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }

/* Cookie preferences modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 16, 20, 0.6);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-backdrop.is-open { display: flex; }
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.cookie-modal h3 { margin-top: 0; }
.cookie-modal-close {
  float: right;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-500);
}
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-300);
  gap: 16px;
}
.cookie-toggle-row h4 { margin: 0 0 4px; font-size: 0.98rem; }
.cookie-toggle-row p { margin: 0; font-size: 0.85rem; color: var(--ink-500); }
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--cream-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .switch-slider { background: var(--burgundy-600); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:disabled + .switch-slider { opacity: 0.6; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* ---------------------------------- Breadcrumbs ---------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--cream-200);
  position: relative;
  z-index: 2;
}
.breadcrumbs a { color: var(--cream-200); }
.breadcrumbs a:hover { color: var(--gold-500); }
.breadcrumbs .svg-icon { width: 12px; height: 12px; }

/* ---------------------------------- Utility ---------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 980px) {
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .two-col .col-image { order: 1 !important; }
  .two-col .col-text { order: 2 !important; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .icon-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open ul {
    max-height: 420px;
  }
  .main-nav ul li { width: 100%; }
  .main-nav ul a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream-200);
    border-left: 3px solid transparent;
  }
  .main-nav ul a:hover,
  .main-nav ul a[aria-current="page"] {
    border-bottom-color: var(--cream-200);
    border-left-color: var(--gold-500);
    background: var(--cream-100);
  }
  .nav-toggle { display: inline-flex; }
  .hero h1 { font-size: 2rem; }
  .card-grid,
  .team-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .policy-toc ol { columns: 1; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
