:root {
  --blue: #123c69;
  --blue-dark: #081d35;
  --lime: #b9f227;
  --lime-dark: #8ec414;
  --ink: #101820;
  --muted: #eef4f8;
  --soft: #657381;
  --white: #ffffff;
  --line: #d9e4ec;
  --danger: #d93636;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.topbar:hover {
  box-shadow: 0 12px 34px rgba(8, 29, 53, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 0.28s var(--ease);
}

.brand:hover img {
  transform: rotate(4deg) scale(1.05);
}

.brand span {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.main-nav a:hover::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.call-pill {
  padding: 11px 16px;
  color: var(--blue-dark);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.call-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(185, 242, 39, 0.34);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 28px;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 29, 53, 0.96), rgba(8, 29, 53, 0.68), rgba(8, 29, 53, 0.25)),
    url("../img/hero.png") center / cover,
    var(--blue-dark);
  overflow: hidden;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, transparent 68%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: heroSweep 5s var(--ease) infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--lime), transparent, var(--lime));
  animation: barGlow 2.8s ease-in-out infinite;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 800px;
  animation: rise 0.65s var(--ease) both;
}

.label {
  margin: 0 0 10px;
  color: var(--lime-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .label,
.cta .label,
.admin-hero .label,
.page-title .label {
  color: var(--lime);
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: #e5edf2;
  font-size: clamp(18px, 3vw, 25px);
}

.hero-actions,
.cta-actions,
.footer-links,
.admin-actions,
.admin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions { margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 29, 53, 0.18);
}

.primary { background: var(--lime); color: var(--blue-dark); }
.primary {
  box-shadow: 0 0 0 rgba(185, 242, 39, 0);
}
.primary:hover { background: var(--lime-dark); }
.ghost { background: var(--white); color: var(--blue-dark); border-color: var(--line); }
.dark { background: var(--blue-dark); color: var(--white); }
.danger { background: var(--danger); color: var(--white); }

.hero-card {
  padding: 24px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border-top: 8px solid var(--lime);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
  animation: rise 0.65s var(--ease) 0.14s both, floatCard 5s ease-in-out 1s infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(185, 242, 39, 0.85), transparent 44%);
  filter: blur(20px);
  opacity: 0.55;
}

.hero-card span {
  font-weight: 900;
  color: var(--lime-dark);
}

.hero-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 25px;
  line-height: 1.1;
}

.section,
.page-title,
.admin-section,
.admin-hero,
.admin-login {
  padding: clamp(42px, 7vw, 80px) clamp(16px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.split h2,
.process h2,
.items h2,
.reviews h2,
.cta h2,
.page-title h1,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04;
}

.split > p {
  margin: 0;
  font-size: 20px;
}

.process {
  background: var(--muted);
}

.process-grid,
.item-grid,
.trust,
.review-list {
  display: grid;
  gap: 14px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.process-grid article,
.trust-box,
.review,
.review-form,
.contact-form,
.login-card,
.admin-card,
.empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.process-grid article:hover,
.trust-box:hover,
.review:hover,
.contact-form:hover,
.login-card:hover,
.admin-card:hover {
  transform: translateY(-5px);
  border-color: rgba(185, 242, 39, 0.85);
  box-shadow: 0 18px 40px rgba(8, 29, 53, 0.13);
}

.process-grid article {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.process-grid article::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 4px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.process-grid article:hover::after {
  transform: scaleX(1);
}

.process-grid span {
  color: var(--lime-dark);
  font-weight: 900;
}

.item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.item-grid div {
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-left: 6px solid var(--lime);
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.item-grid div:hover {
  transform: translateY(-4px) skewX(-1deg);
  filter: saturate(1.16);
  box-shadow: 0 16px 34px rgba(8, 29, 53, 0.2);
}

.trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--white);
  background: var(--blue-dark);
}

.trust-box {
  padding: 20px;
  color: var(--blue-dark);
}

.trust-box strong,
.trust-box span {
  display: block;
}

.trust-box strong {
  font-size: 22px;
}

.trust-box span {
  margin-top: 6px;
  color: var(--soft);
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 18px;
  margin-top: 24px;
}

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

.review,
.review-form {
  padding: 20px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-meta span,
.review-form small {
  color: var(--soft);
}

.stars {
  display: flex;
  gap: 2px;
  margin: 8px 0;
  color: #c6d0d8;
  font-size: 23px;
}

.stars .on {
  color: #ffc107;
  text-shadow: 0 0 16px rgba(255, 193, 7, 0.35);
}

.review-form {
  display: grid;
  gap: 14px;
  align-self: start;
}

.review-form h3 {
  margin: 0;
  font-size: 26px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 900;
}

.rating {
  display: inline-flex;
  flex-direction: row-reverse;
}

.rating input {
  position: absolute;
  opacity: 0;
}

.rating label {
  color: #c6d0d8;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: transform 0.16s var(--ease), color 0.16s var(--ease), text-shadow 0.16s var(--ease);
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: #ffc107;
  text-shadow: 0 0 18px rgba(255, 193, 7, 0.36);
}

.rating label:hover {
  transform: scale(1.14);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(42px, 7vw, 78px) clamp(16px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.cta p {
  max-width: 720px;
  color: #dfeaf1;
}

.page-title {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.page-title p {
  max-width: 760px;
  color: #dfeaf1;
  font-size: 19px;
}

.form-wrap {
  background: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: 24px;
}

.wide { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
}

textarea { resize: vertical; }

.messages {
  position: fixed;
  z-index: 30;
  top: 76px;
  left: 50%;
  width: min(92vw, 720px);
  transform: translateX(-50%);
}

.message {
  margin-bottom: 8px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 900;
  animation: messageDrop 0.28s var(--ease) both;
}

.message.success { border-color: var(--lime-dark); }
.message.error { border-color: var(--danger); }

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--white);
  background: var(--blue-dark);
}

.admin-section {
  background: var(--muted);
}

.admin-section + .admin-section {
  padding-top: 20px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section-head h2 {
  margin: 0;
}

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

.admin-card {
  padding: 18px;
}

.admin-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-card-top span {
  display: block;
  color: var(--soft);
}

.admin-card-top em {
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--lime);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

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

.admin-login {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: var(--muted);
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  padding: 26px;
}

.empty {
  padding: 22px;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 5vw, 72px);
  color: var(--white);
  background: #061321;
}

.footer p {
  margin: 6px 0 0;
  color: #b7c7d3;
}

.footer-links {
  align-items: center;
  font-weight: 900;
}

.reveal-target {
  opacity: 0;
  transform: translateY(22px);
}

.process-grid article,
.item-grid div,
.trust-box,
.review {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-target.visible,
.process-grid article.visible,
.item-grid div.visible,
.trust-box.visible,
.review.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { background-position: center, center, center; }
  to { background-position: center, 56% center, center; }
}

@keyframes heroSweep {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes barGlow {
  0%, 100% { opacity: 0.65; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.4); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes messageDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav,
  .call-pill {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-open .main-nav {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    padding: 8px;
    background: var(--blue-dark);
    border-radius: var(--radius);
    animation: menuDrop 0.24s var(--ease) both;
  }

  .nav-open .menu-btn span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-btn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-open .main-nav a {
    padding: 13px 12px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-open .main-nav a:last-child {
    border-bottom: 0;
  }

  .nav-open .call-pill {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }

  .hero,
  .split,
  .cta,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .item-grid,
  .trust,
  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    max-width: 56vw;
    font-size: 13px;
  }

  .hero,
  .section,
  .page-title,
  .admin-section,
  .admin-hero,
  .admin-login,
  .cta {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 42px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .contact-form .btn,
  .admin-search .btn {
    width: 100%;
  }

  .process-grid,
  .item-grid,
  .trust,
  .review-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-section-head,
  .admin-card-top,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-search,
  .admin-search input,
  .admin-actions,
  .admin-actions form {
    width: 100%;
  }

  .admin-actions form {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-target {
    opacity: 1;
    transform: none;
  }

  .process-grid article,
  .item-grid div,
  .trust-box,
  .review {
    opacity: 1;
    transform: none;
  }
}
