/* ============================================================
   OOnotaire — точная копия оригинального дизайна
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #948059; }

ul { list-style: none; }

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

/* ============ HEADER ============ */
#header_pop {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header background image (coat of arms pattern) */
.header-bg {
  position: relative;
  background-image: url('../images/Footer-1-1.png') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: auto !important;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.49);
  pointer-events: none;
  z-index: 0;
}

#header_pop > *:not(.header-overlay) {
  position: relative;
  z-index: 1;
}

/* --- Top bar contacts --- */
.top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 0;
  font-size: 16px;
  color: #333;
}

.top-bar-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.top-bar-contacts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.contact-line i {
  color: #948059;
  width: 18px;
  font-size: 15px;
  text-align: center;
}

.sep { color: #ccc; margin: 0 4px; }

.tel-link, .fb-link { color: #555; }
.tel-link:hover, .fb-link:hover { color: #948059; }

.email-line { margin-top: 2px; }
.email-line a { color: #555; }
.email-line a:hover { color: #948059; }

.top-bar-right {
  /* empty column as in original */
  min-width: 1px;
}

/* --- Main bar: title + lang --- */
.main-bar {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.main-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  height: 70px;
  width: auto;
  flex-shrink: 0;
}

.site-logo-fallback {
  height: 70px;
  width: 70px;
  flex-shrink: 0;
  background: #c8a45c;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Times New Roman", Georgia, serif;
}

.site-name {
  font-family: "Times New Roman", "Merriweather", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.site-name .gold {
  color: #948059;
  font-weight: 700;
}

/* Lang nav */
.lang-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-btn {
  background: none;
  border: 1px solid #948059;
  color: #948059;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover, .lang-btn.active {
  background: #948059;
  color: #fff;
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #948059;
  cursor: pointer;
  padding: 8px 15px;
}

/* --- Nav bar --- */
.nav-bar {
  background: #fff;
  border-bottom: 2px solid #948059;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav-item {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: #948059;
  border-bottom-color: #948059;
}

/* ============ SERVICES ============ */
.section-services {
  padding: 40px 0;
  background: #fff;
}

.section-heading {
  text-align: center;
  font-family: "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  color: #333;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.service-card {
  border: 1px solid #eaeaea;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.card-bg {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.service-card:hover .card-bg {
  transform: scale(1.08);
}

.card-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

.service-card:hover .card-bg-overlay {
  background: rgba(0,0,0,0.15);
}

.card-body {
  padding: 25px 30px;
}

.card-title {
  font-family: "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  color: #3f444b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid #948059;
  display: inline-block;
  transition: color 0.3s ease;
}

.service-card:hover .card-title {
  color: #948059;
}

.card-text {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.bullet {
  color: #948059;
  margin-right: 4px;
}

.flyer-title {
  font-size: 17px;
  font-weight: 600;
  color: #3f444b;
}

.pdf-link {
  color: #0066cc;
  text-decoration: underline;
  font-size: 14px;
}

.pdf-link:hover {
  color: #948059;
}

/* ============ CONTACT ============ */
.section-contact {
  padding: 50px 0 60px;
  background: #f9f9f9;
}

.contact-heading {
  font-family: "Merriweather", serif;
  font-size: 34px;
  font-weight: 300;
  color: #16163f;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 750px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.form-field { flex: 1; }
.form-field.half { width: 50%; }
.form-field.full { width: 100%; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #d7d7d9;
  border-radius: 0;
  font-size: 16px;
  color: #16163f;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #948059;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #999; }

.submit-row { justify-content: flex-end; }

.btn-submit {
  background: #D3B574;
  color: #16163f;
  border: none;
  padding: 10px 28px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-submit:hover { background: #C2A35E; }
.btn-submit i { font-size: 18px; }

/* ============ LOCATIONS ============ */
.section-locations {
  padding: 40px 0;
  background: #fff;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.location-card { text-align: center; }

.location-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #54595f;
  margin-bottom: 12px;
  line-height: 1.4;
}

.loc-phone { color: #54595f; }
.loc-phone:hover { color: #948059; }

.map-wrap {
  overflow: hidden;
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* ============ FOOTER BAR ============ */
.section-footer-bar {
  border-top: 1px solid #eaeaea;
  padding: 30px 0 20px;
}

.footer-bar-inner { text-align: center; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.footer-links i { color: #948059; margin-right: 3px; }
.footer-links a { color: #555; }
.footer-links a:hover { color: #948059; }

.footer-copyright {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.footer-copyright p:last-child {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .site-name { font-size: 22px; }
  .card-bg { height: 200px; }
  .card-title { font-size: 26px; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .contact-line { font-size: 12px; flex-wrap: wrap; }
  .contact-line .sep { display: none; }
  .top-bar-right { display: none; }

  .site-name { font-size: 18px; text-align: center; }
  .main-bar-inner { flex-direction: column; gap: 8px; }
  .site-brand { flex-direction: column; text-align: center; gap: 8px; }
  .site-logo { height: 50px; }

  .menu-toggle { display: block; position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }

  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-item { text-align: center; border-bottom: 1px solid #eee; }

  .section-heading { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .card-bg { height: 200px; }

  .form-row { flex-direction: column; gap: 12px; }
  .form-field.half { width: 100%; }

  .locations-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 220px; }

  .footer-links { flex-direction: column; gap: 6px; }
  .footer-links .sep { display: none; }
}

/* ============ PRIVACY PAGE ============ */
.privacy-page { padding: 50px 0; max-width: 900px; margin: 0 auto; }
.privacy-page h1 { font-size: 30px; color: #948059; margin-bottom: 25px; text-align: center; }
.privacy-page h2 { font-size: 22px; color: #333; margin: 28px 0 12px; }
.privacy-page p { margin-bottom: 14px; line-height: 1.8; color: #444; }
.privacy-page ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }

/* Offset for fixed header */
#services, #contact { scroll-margin-top: 10px; }

/* Form messages */
.form-msg { padding: 12px 18px; margin-bottom: 18px; text-align: center; border-radius: 3px; font-size: 15px; }
.form-msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
