.lang-switcher {
    position: relative;
    display: inline-block;
    cursor: pointer;
    
    text-align:center;
}

.current-lang {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #888;
    padding-bottom: 2px;
    background: #fff;
}

.current-lang img {
    width: 20px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    min-width: 100%;
    text-align:center;
    padding-top:4px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
}

.lang-option:hover {
    
}

.lang-option img {
    width: 20px;
}

/*.lang-switcher:hover .lang-dropdown {
    display: block;
}*/


.product h3 a {
    text-decoration:none;
}
.card-title {
    text-shadow:
        -1px -1px 0 #333,
         1px -1px 0 #333,
        -1px  1px 0 #333,
         1px  1px 0 #333,
         0 0 8px rgba(0,0,0,0.35);
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity:0;
    margin: 0;
    color: #fff;
    text-align: center;
    cursor:pointer;
    padding:20px;
    line-height: 40px;
    font-size:30px;
}

.card .card-title {
    opacity: 0;
    transition: 0.2s;
}
html {
    overflow-y: scroll;
    font-family: 'Inter', sans-serif;
}
@font-face {
    font-family: 'Inter', sans-serif;
    font-display: swap;
}
.links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    flex-wrap: wrap;
}

.links a {
    color: #111;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    width: fit-content;
    transition: 0.2s;
}

.links a:hover {
    background: #f5f5f5;
}
.cards a {
    text-decoration:none;
    color:#333;
}
.cards {
    display: grid;
    grid-template-columns: 400px 400px;
    gap: 20px;
    justify-content: center;
    align-content: center;
}

.product img {
    height:400px;
    width:400px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.05s ease;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product {
    display:block;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    width:400px;
    
}

.card {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    overflow: hidden;
    background: #fff;
    height: 400px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card h3 {
    margin: 12px;
}

.card p {
    margin: 12px;
    color: #555;
}

@media (min-width: 769px) {
    .lang-switcher .lang-option {
    padding: 4px 6px;
    text-decoration: none;
    color: #555;
    transition: background 0.2s, color 0.2s;
    width:22px;
    display: block;
}
    nav {
        padding: 20px 0 0 0;
        width: 400px;
        margin: 0 auto;
        justify-content: space-between;
    }
    body {
        width:769px;
        margin: 0 auto;
    }
    .card:hover .card-title, .card:active .card-title {
        opacity: 1;
    }
    .page_content {
        width:600px;
        margin: 0 auto;
        text-align:center;
    }
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }
}

@media (max-width: 768px) {
    .lang-switcher .lang-option {
        width:18px;
        padding: 0 6px 2px 6px;
        text-decoration: none;
        color: #555;
        transition: background 0.2s, color 0.2s;
    }
    body {
        margin:0;
        width:100%;
    }
    nav, nav * {
        -webkit-user-select: none;
        user-select: none;
        webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    nav {
        padding:0 10px 0 10px;
    }
    .card.touch-hover .card-title {
        opacity: 1;
    }
    .page_content {
        width:100%;
        text-align:center;
    }
    .links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .product, .product img {
        width:100%;
    }
    .product img {
        height: calc(100vw - 40px);
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .card {
        height: calc(100vw - 40px);
        width: 100%;
    }
}

nav {
    display:flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}
.underline {
    border-bottom: 2px solid #888; /* сама линия */
    padding-bottom: 2px;
}

main {
    padding: 30px 20px;
}








/* from product*/

.buy_btn.disabled {
  background: #ebedf4;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.hint {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

/* показ */
.hint.show {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  width: 300px;
  max-width: 90%;
  margin: 15% auto;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.price_buy {
    display:flex;
    align-items: center;
    gap: 10px;
    margin-bottom:20px;
}

.buy_btn {
    display:inline-block;
    cursor:pointer;
    padding:10px 16px;
    background:#4a90e2;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
}

.gallery {
  position: relative;
  max-width: 400px;
  overflow: hidden;
  touch-action: pan-y; /* разрешаем вертикальный скролл, блокируем горизонтальные жесты */
}

.media {
  width: 100%;
  display: block;
  transition: transform 0.1s ease, opacity 0.2s ease;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 5;
}

.prev { left: 10px; }
.next { right: 10px; }



.product-switch {
  position: relative;
  display: inline-flex;
  background: #f1f1f1;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.switch-option {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #555;
}

.switch-option.active {
  color: #fff;
  font-weight: 500;
}

.switch-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 55%;
  background: #4a90e2;
  border-radius: 8px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    /* =======================
   BASE (общие стили)
======================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: start;
  z-index: 9999;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pop 0.2s ease-out;
  box-sizing: border-box;
}

/* =======================
   ANIMATION
======================= */

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =======================
   CLOSE BUTTON
======================= */

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  cursor: pointer;
  color: #888;
}

.modal-close:hover {
  color: #000;
}

/* =======================
   TEXT
======================= */

.modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.modal-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* =======================
   INPUTS
======================= */

.modal-input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.modal-input:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47,128,237,0.15);
}

/* =======================
   BUTTON
======================= */

.modal-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2f80ed;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.modal-btn:hover {
  background: #1f6fe0;
}

.modal-btn:active {
  transform: scale(0.98);
}

/* =======================
   DESKTOP (ПК)
======================= */

@media (min-width: 768px) {
    #logo {
    width:100px;
    border-radius:2px;
}
  .modal-content {
    padding: 24px;
  }
}

/* =======================
   MOBILE (телефон)
======================= */

@media (max-width: 767px) {
    #logo {
        width:80px;
        border-radius:2px;
    }
    #buy-btn, .modal, .modal * {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
  .modal {
    /*align-items: flex-end; /* модалка снизу как в приложениях */
  }

  .modal-content {
    max-width: 100%;
    border-radius: 16px;
    padding: 18px;
    animation: slideUp 0.25s ease-out;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-text {
    font-size: 13px;
  }

  .modal-input {
    font-size: 16px; /* важно: чтобы iOS не зумил */
  }
}

/* мобильная анимация */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.custom-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  margin-bottom: 20px;
}

/* скрываем стандартный чекбокс */
.custom-check input {
  display: none;
}

/* квадрат */
.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  transition: 0.2s;
  background: #fff;
}

/* галочка */
.checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: 0.2s;
}

/* активное состояние */
.custom-check input:checked + .checkmark {
  background: #4CAF50;
  border-color: #4CAF50;
}

.custom-check input:checked + .checkmark::after {
  opacity: 1;
}



.lang-switcher {
    background: #f1f1f1;
    display: inline-flex;
    align-items: center;
    font-family: sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}



.lang-switcher .lang-option.active {
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}

.lang-switcher .lang-option:not(.active):hover {
    
}

.lang-switcher .separator {
    padding: 0 5px;
    color: #888;
}



.lang-switcher {
    position: relative;
    display: inline-flex;
    border-bottom: 2px solid #ccc;
}

.lang-option {
    padding: 8px 16px;
    text-decoration: none;
    color: #000;
    position: relative;
}

.active-indicator {
    
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #4a90e2;
    /* плавная анимация с эффектом "ускорение-замедление" */
}