/* ============================================================
   ЗАО «Молдавкабель» — статическая тема (Hugo)
   Воспроизводит дизайн оригинального сайта, адаптивная версия
   ============================================================ */

:root {
  --teal: #2E85B2;
  --teal-dark: #22719c;
  --teal-ink: #3990BD;
  --text: #333333;
  --muted: #646566;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 150%;
  color: var(--text);
  background: var(--teal);
}

img { max-width: 100%; height: auto; }

a:link, a:visited { color: var(--teal-ink); }
a:hover { color: var(--muted); }

.wrapper {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------------- Шапка ---------------- */

.page-header {
  background: url("/assets/img/aurora_blue.jpg") 50% 0 no-repeat;
  background-color: var(--teal);
  background-size: cover;
}

.header-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0 6px;
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 75px; width: auto; }
.brand-text { white-space: nowrap; }
.brand-name { font-size: 30px; font-weight: bold; line-height: 1.1; color: #fff; }
.brand-line { background: #fff; height: 2px; margin: 5px 0; }
.brand-sub { font-size: 15px; text-align: center; color: #fff; }

.header-qr img { height: 75px; width: auto; }

.header-right { margin-left: auto; text-align: right; }
.header-slogan { font-size: 20px; line-height: 1.4; white-space: nowrap; }

.tagline {
  color: #fff;
  line-height: 1.4;
  padding: 4px 0 14px;
}

/* Переключатель языков */
.lang-switch { margin-top: 8px; }
.lang-switch a {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 4px;
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 3px;
}
.lang-switch a:hover { background: rgba(255,255,255,.15); }
.lang-switch a.active { background: #fff; color: var(--teal-dark); font-weight: bold; }

/* ---------------- Меню ---------------- */

.navbar { background: #fff; border-bottom: 4px solid var(--teal-dark); }
.nav-toggle { display: none; }

.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li { position: relative; }
.menu > li > a,
.menu > li > span {
  display: block;
  padding: 16px 26px;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  cursor: pointer;
}
.menu > li > a:hover,
.menu > li > span:hover { color: var(--teal-ink); }
.menu > li > a::after,
.menu > li.parent > span::after {
  content: "";
  display: block;
  width: 0; height: 0;
  margin: 3px auto 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #999;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 280px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-top: 3px solid var(--teal);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  display: none;
}
.menu > li:hover .submenu,
.menu > li:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--teal-ink);
  white-space: normal;
}
.submenu a:hover { background: #eef6fb; color: var(--muted); }

/* ---------------- Слайдер ---------------- */

.hero { background: #fff; }
.slideshow {
  position: relative;
  overflow: hidden;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  height: min(300px, 16.6vw);
  min-height: 140px;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
}
.slideshow .slide.active { opacity: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Контент ---------------- */

.middle { background: #fff; }
.middle-grid {
  display: flex;
  gap: 30px;
  padding: 20px 0 40px;
}
.sidebar { flex: 0 0 260px; }
.main { flex: 1 1 auto; min-width: 0; }

.sidebar h1 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--teal-ink);
  font-weight: normal;
  margin: 10px 0;
}
.sidebar h4 { line-height: 1.6; margin: 0 0 8px; }
.sidebar table { width: 100%; }
.sidebar td { padding: 4px 0; }

.sway-banner { display: inline-block; animation: sway 2s ease-in-out infinite; }
.sway-banner img { width: 100%; }
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-1deg); }
  50%      { transform: rotate(1deg); }
  75%      { transform: rotate(-1deg); }
}

.main h1.title {
  font-size: 22px;
  line-height: 22px;
  font-weight: normal;
  color: var(--teal-ink);
  margin: 14px 0;
}
.main h4 { color: #303030; font-weight: bold; margin: 14px 0 6px; }

ul.check {
  margin: 10px 0;
  padding-left: 20px;
  list-style: none;
}
ul.check li {
  margin: 5px 0;
  padding-left: 35px;
  font-weight: bold;
  line-height: 26px;
  background: url("/assets/img/list_check.png") 0 0 no-repeat;
}

/* ---------------- Подвал ---------------- */

.page-footer {
  background: var(--teal);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
  padding: 20px 0 30px;
}
.footer-grid {
  display: flex;
  gap: 40px;
}
.footer-col { flex: 1 1 50%; border-left: 1px solid rgba(255,255,255,.35); padding-left: 25px; }
.footer-col:first-child { border-left: none; padding-left: 0; }
.footer-col h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: normal;
  font-size: 19px;
  margin: 10px 0 12px;
}
.footer-col h3 em { font-style: normal; }
.footer-col p { margin: 0 0 10px; }
.footer-col a { color: #fff; }
.footer-phones { font-size: 20px; }

/* ---------------- Адаптив ---------------- */

@media (max-width: 1024px) {
  .brand-name { font-size: 24px; }
  .menu > li > a, .menu > li > span { padding: 14px 16px; font-size: 15px; }
}

@media (max-width: 860px) {
  .header-top { flex-wrap: wrap; gap: 12px; }
  .brand img, .header-qr img { height: 56px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 12px; }
  .header-right { margin-left: 0; text-align: left; width: 100%; }
  .header-slogan { font-size: 16px; white-space: normal; }
  .lang-switch { margin-top: 6px; }
  .lang-switch a { margin: 0 4px 0 0; }

  .nav-toggle {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e2e2e2;
    text-align: left;
    cursor: pointer;
  }
  .nav-toggle::after { content: " \25BC"; font-size: 11px; color: #999; }

  .menu { display: none; flex-direction: column; }
  .menu.open { display: flex; }
  .menu > li > a, .menu > li > span { padding: 12px 18px; font-size: 15px; }
  .menu > li > a::after, .menu > li.parent > span::after { display: none; }

  .submenu {
    position: static;
    display: block;
    border: none;
    border-top: 1px solid #eee;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }
  .submenu a { padding: 8px 18px 8px 34px; font-size: 13px; }

  .slideshow { height: 180px; }

  .middle-grid { flex-direction: column; gap: 10px; }
  .sidebar { flex: none; order: 2; border-top: 1px solid #eee; padding-top: 10px; }
  .main { order: 1; }

  .footer-grid { flex-direction: column; gap: 10px; }
  .footer-col { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 10px; }
  .footer-col:first-child { border-top: none; }
}
