/* ==========================================================================
   ЕДИНЫЙ ШАБЛОН ДЛЯ ВСЕХ 100 СТРАНИЦ: ПЕРЕМЕННЫЕ, СБРОС, ШАПКА И ФУТЕР
   ========================================================================== */

/* 1. Глобальные переменные (меняете здесь — меняется на всех 100 страницах) */
:root {
  --primary-color: #0088ad;
  --primary-hover: #006b88;
  --accent-blue: #00b5ef;
  --bg-page: #fafafa;
  --bg-card: #f0f4f8;
  --text-main: #333333;
  --text-muted: #718096;
  --border-color: #e5e5e5;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 2. Глобальный сброс для стабильности */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

/* 3. Единая шапка (Header) */
.header {
  display: flex;
  min-height: 110px;
  padding: 10px 40px;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  width: 100%;
}

.logo {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
}

.logo span {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  outline: none;
  font-size: 15px;
  width: 240px;
  transition: all 0.2s;
}

.search input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 181, 239, 0.15);
}

.search button {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
  white-space: nowrap;
}

.search button:hover {
  background: #009ecc;
}

.language-switcher {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* 4. Единый футер (Footer) */
.footer {
  display: flex;
  width: 100%;
  padding: 30px 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-blue);
}

/* 5. Адаптив для шапки на мобильных */
@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 14px 20px;
    gap: 12px;
    min-height: auto;
  }

  .logo img {
    width: 56px;
    height: 56px;
  }

  .logo span {
    font-size: 22px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .search {
    width: 100%;
    justify-content: center;
  }

  .search input {
    width: 100%;
    max-width: 100%;
  }

  .language-switcher {
    justify-content: center;
    width: 100%;
  }
}
