:root {
  --color-primary: #BF1A1A;
  --color-accent: #FF6C0C;
  --color-soft: #FFE08F;
  --color-deep: #060771;
  --color-bg: #fffdf8;
  --color-text: #1a1b2b;
  --color-muted: #50536a;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 10px 30px rgba(6, 7, 113, 0.08);
  --shadow-mid: 0 14px 38px rgba(6, 7, 113, 0.14);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --container: min(1140px, 92vw);
  --trans: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fffcf4 0%, #fff 28%, #fffdf8 100%);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.notice-bar {
  background: linear-gradient(90deg, #060771, #161a8a);
  color: #eef1ff;
  text-align: center;
  padding: .45rem 1rem;
  font-size: .95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 7, 113, 0.12);
}

.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-deep);
  padding: .55rem .9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.nav a {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--trans);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  border-color: rgba(6, 7, 113, .3);
  color: var(--color-deep);
  background: #fff;
  transform: translateY(-1px);
}

main {
  padding-bottom: var(--space-7);
}

.hero {
  padding: var(--space-7) 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.hero-panel,
.hero-card,
.tile {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(6, 7, 113, 0.08);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.hero-panel:hover,
.hero-card:hover,
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-mid);
  border-color: rgba(255, 108, 12, .35);
}

.hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--color-deep);
}

.hero p {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  padding: .68rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
}

.button:hover,
button.button:hover {
  transform: translateY(-2px);
  background: #a81515;
  box-shadow: 0 10px 24px rgba(191, 26, 26, .24);
}

.button.alt {
  background: #fff;
  color: var(--color-deep);
  border-color: rgba(6, 7, 113, .2);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) auto;
}

.tile {
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.section-title {
  margin-bottom: var(--space-3);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  color: var(--color-deep);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}

.list-clean li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.list-clean i {
  color: var(--color-accent);
  margin-top: .15rem;
}

.metric {
  background: linear-gradient(140deg, #fff 0%, #fff8ec 100%);
  text-align: center;
}

.metric strong {
  font-size: 1.6rem;
  color: var(--color-primary);
}

.highlight {
  background: linear-gradient(155deg, #060771 0%, #171a8e 100%);
  color: #fdfdff;
}

.highlight h3,
.highlight p {
  color: inherit;
}

.visual {
  overflow: hidden;
}

.visual img {
  transition: transform .55s ease;
}

.visual:hover img {
  transform: scale(1.045);
}

.local-note {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1rem 1rem 1.2rem;
  background: #fff8ec;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.interactive-panel {
  background: linear-gradient(160deg, #fff, #fff6e6);
}

.picker {
  display: grid;
  gap: .9rem;
}

.picker-result {
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(6, 7, 113, .15);
  min-height: 70px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

form {
  display: grid;
  gap: var(--space-3);
}

label {
  font-weight: 600;
  color: var(--color-deep);
}

input,
textarea,
select {
  width: 100%;
  margin-top: .35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 7, 113, .2);
  padding: .75rem .8rem;
  font: inherit;
  background: #fff;
  transition: border-color var(--trans), box-shadow var(--trans);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 12, .15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error {
  color: #b01212;
  font-size: .92rem;
  min-height: 1.1rem;
}

.checkbox {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.checkbox input {
  width: auto;
  margin-top: .2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.badge {
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 7, 113, .2);
  background: #fff;
}

.site-footer {
  background: #090a4f;
  color: #f5f6ff;
  margin-top: var(--space-6);
}

.footer-grid {
  padding: var(--space-6) 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
}

.footer-grid a {
  color: #f5f6ff;
  opacity: .92;
}

.footer-grid a:hover {
  opacity: 1;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: var(--space-3) 0;
  color: #d8daf6;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 94vw);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 7, 113, .14);
  box-shadow: var(--shadow-mid);
  padding: var(--space-4);
  z-index: 60;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: softUp .4s ease;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: var(--space-3);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 50, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-card {
  width: min(560px, 92vw);
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #d0d3ea;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--trans);
}

.slider::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  left: 3.5px;
  top: 3.5px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--trans);
}

.switch input:checked+.slider {
  background: var(--color-primary);
}

.switch input:checked+.slider::before {
  transform: translateX(20px);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.float-soft {
  animation: floating 5s ease-in-out infinite;
}

.pulse-glow:hover {
  box-shadow: 0 0 0 4px rgba(255, 108, 12, .14), var(--shadow-mid);
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes softUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 950px) {

  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 83px;
    right: 4vw;
    left: 4vw;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(6, 7, 113, .16);
    box-shadow: var(--shadow-mid);
    padding: var(--space-3);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    text-align: center;
  }
}