/* Jēkabpils Optika — base styles */
:root {
  --blue-900: #0b2d4d;
  --blue-800: #123e67;
  --blue-700: #17639a;
  --blue-600: #1b7fb5;
  --blue-100: #eaf6fc;
  --blue-50: #f4fbff;
  --teal: #1a9bb0;
  --text: #18324a;
  --muted: #607386;
  --line: #dce9f2;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(19, 62, 103, 0.09);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 29px;
  letter-spacing: -0.8px;
  color: var(--blue-900);
  white-space: nowrap;
}

.logo-mark {
  width: 46px;
  height: 31px;
  color: var(--blue-700);
  flex: 0 0 auto;
}

.logo span { color: var(--teal); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
}

.nav a { position: relative; padding: 28px 0; }

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #94c9e5;
  color: var(--blue-700);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
}

.lang-switcher {
  display: flex;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px;
}

.lang-switcher a {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 999px;
}

.lang-switcher a.active { background: var(--blue-700); color: #fff; }

.hero {
  background: linear-gradient(90deg, #eef9ff 0%, #f7fcff 39%, #ffffff 39%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  min-height: 520px;
}

.hero-content {
  padding: 64px 52px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dff3fb;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}

h1, h2, h3 {
  color: var(--blue-900);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

h1 {
  font-size: clamp(42px, 5.3vw, 68px);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 18px;
  color: #38536a;
  max-width: 520px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 10px 20px rgba(27, 127, 181, 0.18);
}

.btn-primary:hover { background: var(--blue-900); transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  color: var(--blue-700);
  border-color: #9ac9e2;
}

.btn-outline:hover {
  border-color: var(--blue-700);
  background: var(--blue-50);
}

.hero-image {
  min-height: 520px;
  border-radius: 0 0 0 44px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0)),
    url("images/hero-family.jpg") center / cover no-repeat;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.05) 34%);
  pointer-events: none;
}

.section { padding: 46px 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(11, 45, 77, 0.06);
  overflow: hidden;
}

.category-card { padding: 20px; }

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 900;
  color: var(--blue-900);
}

.icon {
  width: 27px;
  height: 27px;
  color: var(--blue-700);
  flex: 0 0 auto;
}

.category-card img {
  height: 125px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--blue-50);
}

.category-card p {
  color: #3f556a;
  font-size: 15px;
}

.why {
  background: linear-gradient(90deg, var(--blue-50), #ffffff);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.why h2 {
  font-size: 34px;
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  color: #31506a;
  font-weight: 700;
}

.check-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 13px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.why-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
}

.why-visual svg {
  width: 140px;
  height: 140px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  padding: 18px;
  text-align: center;
}

.product-card img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff;
}

.product-card h3 {
  font-size: 15px;
  margin-bottom: 5px;
  color: #274762;
  letter-spacing: 0;
}

.price {
  color: var(--blue-800);
  font-weight: 900;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.inspiration-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.footer {
  margin-top: 40px;
  background: #eef8fd;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.25fr;
  gap: 42px;
  padding: 38px 0;
  align-items: start;
}

.footer h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 16px;
}

.contact-list,
.hours-list {
  display: grid;
  gap: 8px;
  color: #31506a;
  font-size: 15px;
}

.map-placeholder {
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    url("images/map-placeholder.jpg") center / cover no-repeat,
    #ddebf2;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  font-weight: 900;
}

.footer-bottom {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.mobile-menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 900;
}

@media (max-width: 1020px) {
  .nav, .phone-pill { display: none; }
  .mobile-menu-button { display: inline-flex; }

  .nav.mobile-open {
    display: flex;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 76px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(11,45,77,0.12);
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 52px 0; }
  .hero-image {
    min-height: 420px;
    border-radius: 28px 28px 0 0;
  }

  .category-grid,
  .product-grid,
  .inspiration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 620px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header { min-height: 72px; }
  .logo { font-size: 23px; }
  .logo-mark { width: 36px; }
  h1 { font-size: 40px; }
  .hero-text { font-size: 16px; }

  .buttons,
  .buttons .btn {
    width: 100%;
  }

  .category-grid,
  .product-grid,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }

  .why { padding: 26px 22px; }
  .section-title { font-size: 28px; }
  .footer-bottom .container { display: grid; }
}
