:root {
  --bg: #ffffff;
  --bg-gray: #f7f7f5;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #999999;
  --accent: #3d5a73;
  --accent-hover: #2e4659;
  --border: #e2e2de;
  --border-dark: #cccccc;
  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; font-weight: 600; color: var(--text); }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--bg-gray); }
.btn--lg { padding: 14px 28px; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* Top bar */
.topbar { background: var(--bg-gray); border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__contact { display: flex; gap: 24px; }
.topbar__contact a:hover { color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.brand__mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; border-radius: var(--radius);
}
.brand__suffix { color: var(--text-muted); font-weight: 500; }
.nav__links { display: flex; gap: 28px; flex: 1; }
.nav__links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav__phone { display: none; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); }

/* Language switcher — prominent, top-right */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bg-gray);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  min-width: 80px;
}
.lang-switch__btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch__flag { font-size: 1.1rem; line-height: 1; }
.lang-switch__label { letter-spacing: 0.04em; }
.lang-switch__arrow { color: var(--text-muted); }
.lang-switch__menu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  list-style: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
}
.lang-switch__menu.open { display: block; }
.lang-switch__menu li {
  padding: 12px 16px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.lang-switch__menu li:last-child { border-bottom: none; }
.lang-switch__menu li:hover { background: var(--bg-gray); color: var(--accent); }
.lang-switch__menu li.active { background: var(--bg-gray); color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__copy h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.hero__sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__image { margin: 0; }
.hero__image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-gray);
}
.hero__image figcaption { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; text-align: center; }

/* Sections */
.section { padding: 80px 0; }
.section--gray { background: var(--bg-gray); }
.section__head { max-width: 600px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 14px; }
.section__head p { color: var(--text-muted); font-size: 1rem; }

/* Gallery */
.gallery { display: grid; gap: 20px; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-gray);
}
.gallery__item--wide img { aspect-ratio: 16/9; }
.gallery__item figcaption { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }

/* Spec grid */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.spec-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--accent); }
.spec-item p { font-size: 0.92rem; color: var(--text-muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--text-muted); }

/* About */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__copy h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about__copy p { color: var(--text-muted); margin-bottom: 20px; }
.about__list { list-style: none; display: grid; gap: 10px; }
.about__list li { position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--text-muted); }
.about__list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.about__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-gray); }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: 1.8rem; margin-bottom: 14px; }
.contact__info > p { color: var(--text-muted); margin-bottom: 28px; }
.contact__list { list-style: none; display: grid; gap: 18px; }
.contact__label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 4px; }
.contact__list a { font-size: 0.95rem; color: var(--text); }
.contact__list a:hover { color: var(--accent); }
.contact__form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: 0.95rem; font-family: inherit;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.contact__note { font-size: 0.82rem; color: var(--text-light); margin-top: 12px; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer__brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.footer__copy { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.footer__links a:hover { color: var(--accent); }

/* Image placeholder fallback */
img[src] { background: var(--bg-gray); }

/* Responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg);
    padding: 20px 32px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav__toggle { display: flex; }
  .nav__phone { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .gallery--3, .gallery--2 { grid-template-columns: 1fr; }
  .spec-grid, .card-grid { grid-template-columns: 1fr; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .topbar__inner { flex-direction: column; height: auto; padding: 8px 0; gap: 4px; }
  .nav__right .btn--primary { display: none; }
}
