:root {
  --brand: #07368A;
  --brand-dark: #052468;
  --text: #222;
  --muted: #6d6e70;
  --light-bg: #f4f4f4;
  --border: #ddd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #fff;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 3px solid var(--brand); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--brand); }
.brand .logo { height: 60px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-size: 1.6rem; font-weight: 700; }
.brand-tagline { font-size: 1rem; color: var(--muted); font-weight: 400; }
.header-phones { text-align: right; font-size: 1rem; }
.header-phones a { display: block; color: var(--text); text-decoration: none; padding: 2px 0; }
.header-phones .phone-label { color: var(--muted); }
.header-phones a:hover { color: var(--brand); }

/* Navigation */
.site-nav { background: var(--brand); }
.nav-container { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.site-nav a {
  display: block; padding: 0.9rem 1.25rem;
  color: #fff; text-decoration: none; font-weight: 500;
  transition: background 0.15s;
}
.site-nav li.active > a,
.site-nav a:hover { background: rgba(255,255,255,0.15); }

/* Hamburger: hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 48px; height: 48px;
  padding: 0; margin-left: auto;
  flex-direction: column; justify-content: center; align-items: center;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 3px;
  background: #fff; margin: 3px 0; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Main */
.site-main { padding: 2rem 0 3rem; }
h1 { color: var(--brand); margin-top: 0; }
h2 { color: var(--brand); }

/* Home */
.hero { margin: -2rem -1rem 2rem; }
.hero img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.welcome { text-align: center; padding: 0 0 2rem; }
.welcome h1 { font-size: 1.8rem; margin: 0 0 0.5rem; color: var(--text); font-weight: 600; }
.welcome .lead { font-size: 1.15rem; margin: 0; color: var(--muted); }
.brand-accent { color: var(--brand); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tile h3 { padding: 0.85rem 1rem; margin: 0; text-align: center; color: var(--brand); font-size: 1.1rem; }

/* Product pages */
.page-description { margin: 1rem 0 1.5rem; font-size: 1.05rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--border); border-radius: 4px;
  transition: opacity 0.15s;
}
.gallery a:hover img { opacity: 0.88; }
.gallery figcaption {
  padding: 0.5rem 0.25rem; font-size: 0.9rem;
  color: var(--muted); text-align: center;
}

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-address p { margin: 0.5rem 0 1rem; }
.map { margin-top: 1rem; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 4px; }

.contact-form label { display: block; margin-bottom: 0.75rem; font-size: 0.95rem; }
.contact-form label.inline { display: inline-block; margin-right: 1rem; margin-bottom: 0.5rem; font-size: 1rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; padding: 0.55rem 0.65rem;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: inherit; font-size: 1rem;
  margin-top: 0.2rem;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; }
.contact-form fieldset { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 3px; }
.contact-form fieldset legend { padding: 0 0.4rem; font-size: 0.95rem; color: var(--muted); }
.contact-form .req { color: #c0392b; }
.contact-form button {
  background: var(--brand); color: #fff;
  padding: 0.75rem 2rem; border: 0; border-radius: 3px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--brand-dark); }

/* Footer */
.site-footer { background: var(--brand); color: #fff; padding: 1rem 0; margin-top: 2rem; text-align: center; font-size: 0.9rem; }
.site-footer a { color: #fff; text-decoration: underline; }

/* Responsive header tweaks */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: center; gap: 0.5rem; }
  .header-phones { text-align: center; }
}

/* Mobile / narrow: hamburger menu */
@media (max-width: 850px) {
  .nav-container { padding: 0 0.75rem; }
  .nav-toggle { display: flex; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    flex: 1 1 100%;
  }
  .site-nav.open ul { display: flex; }
  .site-nav ul li { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); }
  .site-nav ul li a { padding: 0.85rem 1rem; }
  /* Hamburger → X when open */
  .site-nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
