@import url("https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Noto+Sans+Armenian:wght@100..900&display=swap');
@font-face {
  font-family: 'Montserratarm';
  src: url('/res/fonts/Montserratarm.otf?v=2') format('opentype');
        font-style: normal; 
        font-weight: normal; ;
}
@font-face {
  font-family: 'Armguard'; /* Name you choose to reference the font in CSS */
  src: url('/res/fonts/Armguard.ttf') format("truetype");
        font-style: normal; 
        font-weight: normal; ;
}
:root {
     --primary-color: #3b82f6;
     --primary-hover: #2563eb;
     --primary-shadow-color: rgba(59, 130, 246, 0.3);
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

*::-webkit-scrollbar {
        width: 7px;
        background-color: #0f0f0f;
        transition: all 1;
        height: 4px;
    }

    *::-webkit-scrollbar-thumb {
      background-color: var(--primary-color);
      border-radius: 4px;
    }

    *::-webkit-scrollbar-track {
      background-color: #000000;
        display: none;
    }

    *::-webkit-scrollbar-button:single-button {
      display: none;
      height: 0;
      width: 0;
    }

    *::-webkit-scrollbar-button {
      display: none;
      height: 0;
      width: 0;
    }

/* svg resources */

.mingcute--grid-2-fill::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -0.125em;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23fff' d='M19 11a2 2 0 0 1 1.995 1.85L21 13v6a2 2 0 0 1-1.85 1.995L19 21h-4a2 2 0 0 1-1.995-1.85L13 19v-6a2 2 0 0 1 1.85-1.995L15 11zM9 15a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2zM9 3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm10 0a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.glyphs--grid-1-bold::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -0.125em;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-linecap='round' stroke-width='4'%3E%3Crect width='16' height='24' x='8' y='12' rx='4'/%3E%3Crect width='16' height='24' x='32' y='12' rx='4'/%3E%3Crect width='16' height='24' x='56' y='12' rx='4'/%3E%3Crect width='16' height='24' x='8' y='44' rx='4'/%3E%3Crect width='16' height='24' x='32' y='44' rx='4'/%3E%3Crect width='16' height='24' x='56' y='44' rx='4'/%3E%3C/g%3E%3C/svg%3E");
}

.mingcute--key-3-fill::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23fff' d='M10.75 2a3.75 3.75 0 0 1 3.718 3.269a4.5 4.5 0 0 1 3.93 2.249l2 3.463a4.5 4.5 0 0 1-7.796 4.5l-.59-1.022A5.98 5.98 0 0 0 14 10a5.97 5.97 0 0 0-.839-3.06a1 1 0 0 1-.66-.905l-.002-.297a1.75 1.75 0 0 0-3.383-.612a5.001 5.001 0 0 1 1.263 9.272l.09.36l.02.087a1 1 0 0 1-.095.602l-.276.553l.277.553a1 1 0 0 1 0 .894l-.395.79V19a2 2 0 1 1-4 0v-4.418a4.999 4.999 0 0 1 1.059-9.493A3.75 3.75 0 0 1 10.75 2M8 9a1 1 0 1 0 0 2a1 1 0 0 0 0-2'/%3E%3C/g%3E%3C/svg%3E");
}

/* End of svg resources */
html {
  scroll-behavior: smooth;
  user-select:none;
}

::selection {
  background-color: #001f50; 
  color: #fff;             
}

.copyright {
    text-decoration:none;
    color:#3d5d90e8;
    transition: .3s ease;
}

.copyright:hover {
    color:var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo','Noto Sans Armenia','Montserratarm','Armguard', sans-serif;
}

body {
    background: radial-gradient(circle at top, #0f0f0f, #000);
    color: #fff;
}

/* ===== HEADER ===== 
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    transition: all .3s ease;
}

header.scrolled {
    background: rgba(0,0,0,.85);
    height: 60px;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Cal Sans';
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
}

.logo span {
    font-family: "Cal Sans";
    color: #3b82f6;
}

.logo svg {
    margin-right: 5px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #aaa;
    margin-left: 15px;
    text-decoration: none;
    transition: all .3s ease;
}

nav a:hover {
    transform: scale(1.15);
    color: #3b82f6;
}

nav a.active {
    transform: scale(1.15);
    color: #3b82f6;
} */

/* ===== TITLE ===== */
.hero {
    text-align: center;
    margin: 20px 8px;
}

.hero h1 {
    font-size: 24px;
    line-height: 1.3;
}

/* ===== SLIDER ===== */
.slider-wrapper {
    max-width: 1200px;
    padding:0 1rem;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    gap: 30px;
    transition: transform .6s ease;
}

/* ===== CARD ===== */
.card {
    position: relative;
    min-width: 360px;
    background: linear-gradient(180deg, #111, #0b0b0b);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,.7);
    display: flex;
    flex-direction: column;
}

/* CONTENT with padding */
.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-logo {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #3b82f6;
}

.card-logo img {
    width: 36px;
    height: auto;
}

.card h3 {
    font-size: 22px;
    line-height: 1.2;
}

.card p {
    color: #aaa;
    margin-top: 2px;
    font-size: 14px;
}

/* Изображение машины */
.car-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    min-height: 180px;
    position: relative;
}

.car-img {
    max-width: 100%;
    max-height: max-content;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .car-img {
    transform: translateY(-5px);
}

.specs {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer карточки с ценой и кнопкой */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* ===== BUY BUTTON (TRUE REF STYLE) ===== */
.buy-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    background: #3b82f6;
    border-radius: 18px 0 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -8px -1px 30px rgba(59, 130, 246, .45);
    cursor: pointer;
    transition: transform .2s ease;
    z-index: 2;
}

.buy-btn:hover {
    transform: translateY(-2px);
}

.buy-btn i {
    font-size:1.5rem;
    transition: transform .4s ease;
}

.buy-btn:hover i {
    transform: translateY(-2px) rotate(15deg);
}

/* ===== DOTS ===== */
.dots {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #3b82f6;
}


/* ===== HERO TOP SECTION ===== */
.hero-top {
    position: relative;
    padding: 120px 80px 80px;
    overflow: hidden;
}

.hero-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59,130,246,.25), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,.15), transparent 45%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    font-family: "Noto Sans Armenian";
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59,130,246,.12);
    color: #93c5fd;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero-inner h1 {
    font-size: 42px;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: "Noto Sans Armenian";
}

.hero-inner h1 span {
    color: #3b82f6;
}

.hero-desc {
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    font-family: "Noto Sans Armenian";
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-btn {
    font-family: "Noto Sans Armenian";
    font-weight: 400;
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}

.hero-btn.primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 8px 30px rgba(59,130,246,.35);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59,130,246,.5);
}

.hero-btn.secondary {
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,.05);
}

/* ===== HERO ANIMATIONS ===== */
.hero-inner > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp .8s ease forwards;
}

.hero-badge { animation-delay: .1s; }
.hero-inner h1 { animation-delay: .25s; }
.hero-desc { animation-delay: .4s; }
.hero-actions { animation-delay: .55s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* responsive hero */
@media(max-width: 900px) {
    header.scrolled { 
        height: 75px;
    }
    .hero-top {
        padding: 90px 24px 2rem;
    }

    .hero-inner h1 {
        font-size: 28px;
    }
}

@media(max-width: 768px){
  /*  header {flex-direction: column;padding:5px 10px;}*/
    .hero h1 {font-size: 16px;}
}

/* ================= EXTENDED CATALOG ================= */
.cars-catalog {
    padding: 25px 80px;
    max-width: 1500px;
    margin: auto;
}

.catalog-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.catalog-view {
    display: inline-flex;
    gap: 10px;
}

.catalog-view button {
    font-weight: 600;
    padding: 5px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.2);
    background: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-view button.active {
    background: #3b82f6;
}

.catalog-filters {display: inline-flex; gap:10px;}

.catalog-filters input,
.catalog-filters select {
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
}

/* GRID */
.catalog-grid {
    display: grid;
    gap: 24px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-grid.hidden {
    opacity: 0;
    transform: scale(0.95);
}

.catalog-grid.standard {
    grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
}

.catalog-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
}

/* CATALOG CARD - ОБНОВЛЕННАЯ СТРУКТУРА */
.catalog-card {
    background: linear-gradient(180deg,#111,#0b0b0b);
    border-radius: 22px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: 
        transform 0.35s ease,
        opacity 0.35s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
}

.catalog-card.tips {
    flex-direction: unset !important;
    align-items: center !important;
    min-height: 0 !important;
}

.catalog-grid.switching .catalog-card {
    opacity: 0;
    transform: scale(0.96);
}

/* Заголовок карточки */
.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.catalog-card-logo {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #3b82f6;
}

.catalog-card-logo img {
    width: 30px;
    height: auto;
}

.catalog-card h4 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.catalog-card .model {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 6px;
}

.electric {
    font-family: "Noto Sans Armenian";
    font-weight: 400 !important;
    color:rgb(34, 197, 94) !important;
}

/* Бейджи после имени и модели - только в стандартном режиме */
.catalog-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.catalog-badges-row .catalog-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Контейнер для изображения */
.catalog-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    min-height: 150px;
    position: relative;
}

.catalog-card img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.catalog-card:hover img {
    transform: scale(1.05);
}

/* Спецификации для компактного вида */
.catalog-card .compact-specs {
    display: none;
    gap: 15px;
    font-size: 12px;
    color: #bbb;
    margin: 8px 0 12px 0;
    flex-wrap: wrap;
}

.catalog-card .compact-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Информация о машине */
.catalog-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Цена */
.catalog-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 5px 0 10px 0;
}

/* Badge и type в одном ряду - только для компактного режима */
.catalog-meta {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* BADGES */
.catalog-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.catalog-badge.top { background: #22c55e; }
.catalog-badge.best { background: #3b82f6; }
.catalog-badge.sale { background: #ef4444; }
.catalog-badge.sale { background: var(--primary-hover); }

/* TYPE */
.catalog-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.catalog-type.rent {
    background: rgba(34,197,94,.15);
    color: #22c55e;
}

.catalog-type.sale {
    background: rgba(239,68,68,.15);
    color: #ef4444;
}

/* Футер карточки для стандартного вида */
.catalog-card-footer {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    padding-right: 50px;
}

/* Кнопка покупки для каталога */
.catalog-buy-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    background: #3b82f6;
    border-radius: 18px 0 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -8px -1px 30px rgba(59, 130, 246, .45);
    cursor: pointer;
    transition: transform .2s ease;
    z-index: 2;
}

.catalog-buy-btn:hover {
    transform: translateY(-2px);
}

.catalog-buy-btn i {
    font-size: 2rem;
    transition: transform .4s ease;
}

.catalog-buy-btn:hover i {
    transform: translateY(-2px) rotate(15deg);
}

/* Стили для компактного вида */
.catalog-grid.compact .catalog-card {
    min-height: 320px;
    padding: 16px;
}

.catalog-grid.compact .catalog-img-container {
    min-height: 120px;
    margin: 10px 0;
}

.catalog-grid.compact .catalog-card img {
    max-height: 120px;
}

.catalog-grid.compact .catalog-card h4 {
    font-size: 16px;
}

.catalog-grid.compact .catalog-card .model {
    font-size: 13px;
}

.catalog-grid.compact .catalog-card p {
    font-size: 13px;
    margin-bottom: 8px;
}

.catalog-grid.compact .catalog-price {
    font-size: 18px;
    margin: 3px 0 8px 0;
}

/* В компактном режиме скрываем бейджи после имени и показываем мету */
.catalog-grid.compact .catalog-badges-row {
    display: none;
}

.catalog-grid.compact .catalog-meta {
    display: flex;
}

.catalog-grid.compact .catalog-badge,
.catalog-grid.compact .catalog-type {
    font-size: 11px;
    padding: 5px 10px;
}

/* Скрываем кнопку покупки и спецификации в компактном режиме */
.catalog-grid.compact .catalog-buy-btn {
    display: none;
}

.catalog-grid.compact .catalog-card-footer {
    display: none;
}

/* Показываем компактные спецификации */
.catalog-grid.compact .compact-specs {
    display: flex;
}

/* FOOT BUTTON */
.catalog-footer {
    text-align: center;
    margin-top: 50px;
}

.catalog-explore {
    font-family: "Noto Sans Armenian";
    font-weight: 400;
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 16px;
    background: #3b82f6;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59,130,246,0.4);
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .cars-catalog {
        padding: 80px 20px;
    }
    
    .card {
        min-width: 300px;
    }
    
    .car-img-container {
        min-height: 150px;
    }
    
    .car-img {
        max-height: 150px;
    }

    .catalog-header {
        flex-direction: column;
        align-items: center;
        justify-items: center;t
    }

    .catalog-controls {
        justify-content: center;
    }

    .catalog-header h2 { 
        margin-bottom: 20px;
        font-size:18px;
    }
}

@media(max-width: 600px) {
    .slider-wrapper {
        padding: 0 20px;
    }
    
    .card {
        min-width: 280px;
    }
}


/* ================= FOOTER ================= */
.site-footer {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 80px 80px 30px;
    margin-top: .5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Cal Sans';
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-logo span {
    color: #3b82f6;
    font-family: 'Cal Sans';
}

.footer-logo svg {
    margin-right: 5px;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 15px;
}

.footer-col a {
    font-family: 'Noto Sans Armenian';
    font-weight: 400;
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col p {
    font-family: "Noto Sans Armenian";
    font-weight: 600;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* FOOTER BOTTOM */
.footer-bottom {
    font-family: "Noto Sans Armenian";
    font-weight: 600;
    text-align: center;
    margin-top: 50px;
    font-size: 13px;
    color: #777;
}

/* ================= LANGUAGE SELECT ================= */
.lang-select {
    position: relative;
    user-select: none;
    max-width: 160px;
}

.lang-selected {
    padding: 10px 14px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-selected img {
    width: 24px;
    height: auto;
}

.lang-selected:hover {
    background: #1a1a1a;
}

.lang-options {
    position: absolute;
    left: 0;
    right: 0;
    top: 110%;
    background: #111;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.15);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .25s ease;
}

.lang-select.open .lang-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-option img {
    width: 24px;
}

.lang-option:hover {
    background: rgba(255,255,255,.05);
}

/* ================= RESPONSIVE FOOTER ================= */
@media(max-width: 900px) {
    .site-footer {
        padding: 1rem 20px 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Анимация для кнопок вида */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.catalog-view button:active {
    animation: pulse 0.3s ease;
}



/* START TOOLTIP STYLES */
[tooltip] {
  position: relative; 
}

[tooltip]::before,
[tooltip]::after {
  text-transform: none; 
  font-size: .9em; 
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}
[tooltip]::before {
  content: '';
  border: 5px solid transparent; 
  z-index: 1001; 
}
[tooltip]::after {
  content: attr(tooltip);
  font-family: "Noto Sans Armenian";
  text-align: center;
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: 1.5ch;
  box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, #1abc9c,#1f2c51);
  color: #fff;
  z-index: 1000; /* absurdity 2 */
}

/* Make the tooltips respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #fff;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #fff;
}
[tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #fff;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}
[tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #fff;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}
[tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

/* FX All The Things */ 
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 300ms ease-out forwards;
}