/* ========================================
   Переопределение CSS-переменных Claro
   ======================================== */

:root {
  /* Базовый размер шрифта (по умолчанию 16px) */
  --font-size-base: 14px;
  
  /* Размеры заголовков */
  --font-size-h1: 1.802rem;  /* было ~2rem */
  --font-size-h2: 1.424rem;  /* было ~1.6rem */
  --font-size-h3: 1.266rem;  /* было ~1.4rem */
  --font-size-h4: 1.125rem;  /* было ~1.25rem */
  --font-size-h5: 1rem;
  --font-size-h6: 0.889rem;
  
  /* Размеры текста */
  --font-size-s: 0.889rem;   /* small */
  --font-size-xs: 0.79rem;   /* extra small */
  
  /* Можно также уменьшить межстрочное расстояние */
  --line-height-base: 1.5;   /* было 1.6 */
}

/* ========================================
   Стили для логотипа
   ======================================== */

/* Стили для логотипа */
.site-logo {
    float: left;
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

.site-logo img {
    max-height: 3.7rem;
    height: auto;
    width: auto;
}

/* Header content рядом с логотипом */
.content-header .header-top {
    overflow: hidden;
}

/* Убираем лишние отступы у breadcrumb */
.content-header .breadcrumb {
    margin-bottom: 0;
}

/* Page title ближе к breadcrumb */
.content-header #block-clientsd10-theme-page-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Табы без верхнего отступа */
.content-header #block-clientsd10-theme-primary-local-tasks {
    margin-top: 0;
}

/* User account menu - справа вверху, первый */
#block-clientsd10-theme-account-menu {
    float: right;
    margin-top: -2.45rem;
    margin-left: 0;
    padding: 0.5rem 0;
}

/* User Language Switcher - слева от account menu */
#block-clientsd10-theme-language-switcher {
    float: right;
    margin-top: -2.45rem;
    margin-right: 1.5rem;
    margin-left: 0;
    padding: 0.5rem 0;
}

#block-clientsd10-theme-language-switcher h2 {
    display: none;
}

.user-language-switcher-select {
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
    color: #333;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 110px;
}

.user-language-switcher-select:hover {
    border-color: #0074bd;
    box-shadow: 0 0 3px rgba(0, 116, 189, 0.3);
}

.user-language-switcher-select:focus {
    outline: none;
    border-color: #0074bd;
    box-shadow: 0 0 5px rgba(0, 116, 189, 0.5);
}

#block-clientsd10-theme-account-menu h2 {
    display: none;
    /* Скрываем заголовок "Меню пользователя" */
}

#block-clientsd10-theme-account-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#block-clientsd10-theme-account-menu li {
    display: inline-block;
    margin-left: 1rem;
}

#block-clientsd10-theme-account-menu li:first-child {
    margin-left: 0;
}

#block-clientsd10-theme-account-menu a {
    text-decoration: none;
    font-size: 0.9rem;
    color: #0074bd;
}

#block-clientsd10-theme-account-menu a:hover {
    text-decoration: underline;
}

/* Иконка пользователя перед логином */
#block-clientsd10-theme-account-menu li:first-child a::before {
    content: "👤";
    margin-right: 0.3rem;
    font-size: 1rem;
    filter: invert(1) grayscale(1) brightness(0.8);
}

/* User Language Switcher - dropdown рядом с user menu */
#block-clientsd10-theme-language-switcher {
    float: right;
    margin-top: -2.45rem;
    margin-right: 1rem;
    padding: 0.5rem 0;
}

#block-clientsd10-theme-language-switcher h2 {
    display: none;
}

.user-language-switcher-select {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: #333;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.user-language-switcher-select:hover {
    border-color: #0074bd;
    box-shadow: 0 0 3px rgba(0, 116, 189, 0.3);
}

.user-language-switcher-select:focus {
    outline: none;
    border-color: #0074bd;
    box-shadow: 0 0 5px rgba(0, 116, 189, 0.5);
}

/* Language switcher - dropdown рядом с user menu */
#block-clientsd10-theme-language-switcher {
    float: right;
    margin-top: -2.45rem;
    margin-right: 1rem;
    padding: 0.5rem 0;
}

#block-clientsd10-theme-language-switcher h2 {
    display: none;
    /* Скрываем заголовок */
}

.language-switcher-select {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: #333;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.language-switcher-select:hover {
    border-color: #0074bd;
    box-shadow: 0 0 3px rgba(0, 116, 189, 0.3);
}

.language-switcher-select:focus {
    outline: none;
    border-color: #0074bd;
    box-shadow: 0 0 5px rgba(0, 116, 189, 0.5);
}

.layout--threecol-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
}

.layout--twocol-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
}