:root {
  --blue: #0877bd;
  --deep: #122238;
  --orange: #f05a28;
  --orange-dark: #c43f17;
  --ink: #142033;
  --muted: #64748b;
  --line: #dbe4ef;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --mint: #e8f7f2;
  --shadow: 0 18px 45px rgba(8, 49, 95, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 2px solid var(--orange);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #25344a;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 10px 11px;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--orange-dark);
  background: #fff2ec;
}

.nav-toggle {
  display: none;
  padding: 9px 12px;
  color: var(--orange-dark);
  background: #fff2ec;
  border: 1px solid #ffd1bf;
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(64, 20, 8, 0.9), rgba(196, 63, 23, 0.66) 48%, rgba(8, 119, 189, 0.3));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(46px, 8vw, 96px) clamp(18px, 6vw, 76px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.hero-subtitle {
  margin: 14px 0 0;
  color: #fff0e8;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: #edf6ff;
  font-size: 1.1rem;
}

.hero-actions,
.filters,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--orange);
}

.btn.secondary {
  color: var(--orange-dark);
  background: #fff;
  border: 1px solid #ffd1bf;
}

.quick-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-band article {
  padding: 24px clamp(18px, 4vw, 56px);
  background: #fff;
}

.quick-band strong,
.quick-band span {
  display: block;
}

.quick-band span {
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 76px);
}

.section:nth-of-type(odd) {
  background: var(--soft);
}

.split,
.appointment,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.section h2 {
  max-width: 780px;
  color: var(--deep);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section p {
  color: #40516a;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.values,
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.values span,
.stat-card,
.mission-panel,
.service-grid article,
.product-card,
.article-card,
.form,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(8, 49, 95, 0.06);
}

.values span {
  padding: 14px;
  color: var(--orange-dark);
  font-weight: 800;
}

.mission-panel {
  padding: 26px;
}

.mission-panel h3 {
  margin: 0 0 8px;
  color: var(--orange-dark);
}

.mission-panel p + h3 {
  margin-top: 24px;
}

.service-grid,
.product-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article {
  padding: 24px;
}

.service-grid span {
  color: var(--orange);
  font-weight: 900;
}

.service-grid h3,
.product-card h3,
.article-card h3 {
  margin: 10px 0 8px;
  color: var(--deep);
}

.filter {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--orange-dark);
  background: #fff;
  border: 1px solid #ffd1bf;
  border-radius: 999px;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  background: var(--orange);
}

.product-card {
  overflow: hidden;
}

.product-card button {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body,
.article-card {
  padding: 18px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--deep);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}

.gallery-item {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.blog-tools {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin-bottom: 20px;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 16px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  content: "";
  transform: rotate(42deg);
}

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.form.compact {
  margin-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.contact-list div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--deep);
  font-weight: 800;
}

.socials a {
  padding: 9px 12px;
  color: var(--orange-dark);
  background: #fff2ec;
  border-radius: 999px;
  font-weight: 800;
}

.map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  color: var(--deep);
  font-size: 2rem;
}

.stat-card span {
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-tab {
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.admin-tab.active {
  color: #fff;
  background: var(--orange);
}

.admin-panel {
  min-height: 280px;
  padding: 20px;
  overflow: auto;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

.mini-btn {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--orange-dark);
  background: #fff;
  border: 1px solid #ffd1bf;
  border-radius: 6px;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 76px);
  color: #fff;
  background: var(--deep);
}

.site-footer p {
  margin: 4px 0 0;
  color: #d7e8fb;
}

.media-dialog,
.article-dialog {
  width: min(920px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-dialog::backdrop,
.article-dialog::backdrop {
  background: rgba(8, 20, 34, 0.78);
}

.media-dialog img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(8, 20, 34, 0.7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.article-dialog {
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
}

.article-dialog h2 {
  margin: 14px 0 18px;
  color: var(--orange-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.article-dialog p {
  color: #40516a;
  font-size: 1.04rem;
}

.article-close {
  color: #fff;
  background: var(--orange-dark);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 15px;
  color: #fff;
  background: var(--deep);
  border-left: 5px solid var(--orange);
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

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

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

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .quick-band,
  .split,
  .appointment,
  .contact,
  .service-grid,
  .product-grid,
  .article-grid,
  .stats,
  .admin-layout {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 44px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .quick-band,
  .split,
  .appointment,
  .contact,
  .service-grid,
  .product-grid,
  .article-grid,
  .values,
  .stats,
  .form-row,
  .blog-tools,
  .admin-layout,
  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }
}
