@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f2f2ef;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6b6b68;
  --border: #e4e4e0;
  --callout-bg: #f7f7f4;
  --link: #1a56db;
  --accent: #E30613;
  --accent-light: #fde8e6;
  --green-bg: #d4edda;
  --green-text: #135c19;
  --yellow-bg: #fdecc8;
  --yellow-text: #7a5e14;
  --red-bg: #fde8e6;
  --red-text: #a82f2a;
  --blue-bg: #daeaf4;
  --blue-text: #163248;
  --purple-bg: #e8deee;
  --purple-text: #4a2466;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161614;
    --surface: #1f1f1d;
    --text: #efefec;
    --muted: #888884;
    --border: #2e2e2b;
    --callout-bg: #282825;
    --link: #6ea8fe;
    --accent: #E30613;
    --accent-light: #2d1012;
    --green-bg: #1a3a1e;
    --green-text: #86efac;
    --yellow-bg: #2d2310;
    --yellow-text: #fcd34d;
    --red-bg: #2d1012;
    --red-text: #fca5a5;
    --blue-bg: #0f2235;
    --blue-text: #93c5fd;
    --purple-bg: #1e1030;
    --purple-text: #c4b5fd;
  }
}
[data-theme="dark"] {
  --bg: #161614;
  --surface: #1f1f1d;
  --text: #efefec;
  --muted: #888884;
  --border: #2e2e2b;
  --callout-bg: #282825;
  --link: #6ea8fe;
  --accent: #E30613;
  --accent-light: #2d1012;
  --green-bg: #1a3a1e;
  --green-text: #86efac;
  --yellow-bg: #2d2310;
  --yellow-text: #fcd34d;
  --red-bg: #2d1012;
  --red-text: #fca5a5;
  --blue-bg: #0f2235;
  --blue-text: #93c5fd;
  --purple-bg: #1e1030;
  --purple-text: #c4b5fd;
}

/* Theme toggle button — fixed, floating */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  padding: 0;
}
.theme-toggle:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 96px;
  background: var(--surface);
  min-height: 100vh;
  border-top: 4px solid var(--accent);
}

.container > *:not(.cookie-banner) {
  padding-left: 36px;
  padding-right: 36px;
}
.container > .map-wrap,
.container > .contact-row,
.container > .phone-grid {
  padding-left: 36px;
  padding-right: 36px;
}

@media (min-width: 760px) {
  .container {
    margin: 48px auto 60px;
    min-height: unset;
    border-radius: 20px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
  }

  .container > *:not(.cookie-banner) {
    padding-left: 56px;
    padding-right: 56px;
  }
  .container > .map-wrap,
  .container > .contact-row,
  .container > .phone-grid {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* Header area */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-top: 40px;
  margin-bottom: 4px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}

h1 {
  font-size: 38px;
  font-weight: 900;
  margin: 20px 0 6px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
}
h1 .emoji { margin-right: 10px; }

h2 {
  font-size: 11px;
  font-weight: 700;
  margin: 48px 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

p { margin: 0 0 14px; }
ul { padding-left: 20px; }
li { margin: 6px 0; line-height: 1.55; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Callout */
.callout {
  display: flex;
  gap: 14px;
  background: var(--callout-bg);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 8px;
  align-items: flex-start;
  border-left: 3px solid var(--accent);
}
.callout-icon { font-size: 20px; line-height: 1.4; }
.callout-text { flex: 1; font-size: 15px; color: var(--text); }

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 4px 6px 4px 0;
}
.tag-green { background: var(--green-bg); color: var(--green-text); }
.tag-yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.tag-red { background: var(--red-bg); color: var(--red-text); }
.tag-blue { background: var(--blue-bg); color: var(--blue-text); }
.tag-purple { background: var(--purple-bg); color: var(--purple-text); }

/* Link blocks */
.link-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.link-block:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(227,6,19,0.08);
  transform: translateY(-1px);
  color: var(--text);
}
.link-block .icon {
  width: 40px;
  height: 40px;
  background: var(--callout-bg);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.link-block:hover .icon { background: var(--accent-light); }
.link-block .text { flex: 1; font-weight: 600; font-size: 14.5px; }
.link-block .arrow { color: var(--muted); font-size: 16px; transition: transform 0.2s, color 0.2s; }
.link-block:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(227,6,19,0.10);
  transform: translateY(-2px);
  color: var(--text);
}
.contact-card .icon {
  width: 46px;
  height: 46px;
  background: var(--accent-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s;
}
.contact-card:hover .icon { background: var(--accent); }
.contact-card .label {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-card .value {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.3;
}

/* Map */
.map-wrap {
  margin-top: 20px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* Details/accordions */
details {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 8px 0;
  background: var(--surface);
}
details[open] { background: var(--callout-bg); }
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "›";
  font-size: 18px;
  transition: transform 0.15s;
  color: var(--muted);
}
details[open] summary::before { transform: rotate(90deg); }
details .body { margin-top: 14px; font-size: 15px; }

/* Divider & footer */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0 24px;
}

.privacy-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.privacy-links a { color: var(--muted); text-decoration: none; }
.privacy-links a:hover { color: var(--accent); text-decoration: underline; }

footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Subpage header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s, gap 0.15s;
}
.back-link:hover { color: var(--accent); gap: 10px; }

.page-header .logo { margin: 0; }

/* Phone grid */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.phone-card {
  padding: 20px 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
}
.phone-card .num {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.phone-card .label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* Mobile */
@media (max-width: 640px) {
  .container > *:not(.cookie-banner) { padding-left: 22px; padding-right: 22px; }
  .container > .map-wrap,
  .container > .contact-row,
  .container > .phone-grid { padding-left: 22px; padding-right: 22px; }
  h1 { font-size: 28px; letter-spacing: -0.8px; }
  h2 { font-size: 10px; }
  .contact-row { grid-template-columns: 1fr; }
  .phone-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111111;
  color: #efefef;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  z-index: 999;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
}
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: #efefef; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-btn-ok { background: #ffffff; color: #111; }
.cookie-btn-ok:hover { background: #e8e8e8; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
