/* ОПЕРЦЕНТЪР ООД / OPERCENTR OOD — корпоративный сайт */

:root {
  --navy: #0f1e3c;
  --navy-dark: #0a1428;
  --gold: #c9a227;
  --gold-light: #d9bd66;
  --cream: #f7f5f0;
  --text: #1c2434;
  --text-muted: #5a6478;
  --border: #e4e1d8;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }

a { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75em;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
  border: none;
}

.divider.center { margin-left: auto; margin-right: auto; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}

.brand img { height: 190px; width: auto; display: block; }

@media (max-width: 760px) {
  .brand img { height: 120px; }
}

@media (max-width: 460px) {
  .brand img { height: 92px; }
}

nav.main-nav { display: flex; align-items: center; gap: 32px; }

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--gold); }

.lang-switch {
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.lang-switch:hover { background: var(--navy); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 96px 0 88px;
  text-align: center;
}

.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero p.lead {
  color: #cfd6e6;
  max-width: 620px;
  margin: 1.2em auto 0;
  font-size: 1.1rem;
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--cream); }

.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Values grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Activities list */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.activity-list li:last-child { border-bottom: none; }
.activity-list .dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 10px;
}

.disclaimer-box {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 24px 28px;
  border-radius: 4px;
  margin-top: 2.5rem;
}
.disclaimer-box h3 { margin-bottom: 0.75em; }
.disclaimer-box ul { margin: 0.5em 0 0; padding-left: 1.2em; color: var(--text-muted); }
.disclaimer-box li { margin-bottom: 0.4em; }

.note-box {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 1.4em;
}
.contact-info dd { margin: 0.3em 0 0; font-size: 1.02rem; }
.contact-info dd a { color: var(--navy); text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field .error { color: #b0402c; font-size: 0.82rem; display: none; }
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid textarea { border-color: #b0402c; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); }

.form-status {
  font-size: 0.9rem;
  margin-top: 4px;
  display: none;
}
.form-status.success { display: block; color: #1e7a3e; }
.form-status.error { display: block; color: #b0402c; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #cfd6e6;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { footer.site-footer .footer-grid { grid-template-columns: 1fr; } }

footer.site-footer h4 {
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
footer.site-footer a { color: #cfd6e6; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 0.6em; }
footer.site-footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 1em; }
footer.site-footer .brand-line img { height: 34px; }
footer.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  color: #8b93a8;
  font-size: 0.82rem;
}

/* Legal pages */
.legal-content h2 { margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content { max-width: 780px; }

.back-top { display: inline-block; margin-top: 2.5rem; font-size: 0.9rem; }
