body {
    font-family: sans-serif;
    margin: 0;
    background-color: #ededed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
    flex-grow: 1;
}

.gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* РђРґР°РїС‚РёРІРЅРѕРµ РєРѕР»РёС‡РµСЃС‚РІРѕ РєРѕР»РѕРЅРѕРє */
}

@media (min-width: 1100px) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.gallery-preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.733);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    background-color: #fffaff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.781);
}

.gallery-preview:hover img { transform: none; }

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    /* On touch devices tap can trigger :hover; disable hover animations for previews. */
    .gallery-preview,
    .gallery-preview img {
        transition: none !important;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .gallery-preview:hover {
        transform: none !important;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.733) !important;
    }

    .gallery-preview:focus,
    .gallery-preview:focus-visible {
        outline: none;
    }
}

/*строка под превью галереи*/

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 20px 10%;/* Отступы: 6px сверху/снизу, 10% слева/справа*/
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
    --meta-price-size: 30px;
    --meta-icon-size: 30px;
    width: 100%;
}

.gallery-meta .meta-icon {
    height: var(--meta-icon-size);
    width: auto;
    display: block;
}

.gallery-meta .meta-price {
    height: var(--meta-price-size);
    width: auto;
    display: block;
}

.price-display {
    display: inline-flex;
    align-items: center;
    min-height: var(--meta-price-size, 20px);
    color: #222;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.gallery-meta .price-display {
    min-height: var(--meta-price-size);
}

.gallery-meta .price-display img {
    height: var(--meta-price-size);
    width: auto;
    max-width: none;
    display: block;
}

.gallery-meta .meta-arrow {
    height: var(--meta-icon-size);
}

.gallery-meta .meta-spacer {
    flex: 1;
}

.gallery-cart-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-cart-btn img {
    height: var(--meta-icon-size);
    width: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-cart-btn:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: scale(1.05);
}

.gallery-cart-btn img.cart-animate {
    animation: cartPulse 1s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    30% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

    .gallery-page .title {
      font-size: clamp(2.5rem, 5vw + 1rem, 5rem); /* РђРґР°РїС‚РёРІРЅС‹Р№ СЂР°Р·РјРµСЂ С€СЂРёС„С‚Р° */
      font-weight: bold;
      text-align: center; /* Р’С‹СЂР°РІРЅРёРІР°РµРј С‚РµРєСЃС‚ РїРѕ С†РµРЅС‚СЂСѓ */
      margin-top: 120px; /* РћС‚СЃС‚СѓРї РѕС‚ С…РµРґРµСЂР° */
      margin-bottom: 40px; /* Р”РѕР±Р°РІР»СЏРµРј РѕС‚СЃС‚СѓРї СЃРЅРёР·Сѓ РІРјРµСЃС‚Рѕ <br> */
      /* Р¦РІРµС‚ С‚РµРєСЃС‚Р° РґРµР»Р°РµРј РЅРµРјРЅРѕРіРѕ С‚РµРјРЅРµРµ С„РѕРЅР°, С‡С‚РѕР±С‹ СѓСЃРёР»РёС‚СЊ СЌС„С„РµРєС‚ "РІРґР°РІР»РµРЅРЅРѕСЃС‚Рё" */
      color: #b37b506c;
      text-shadow:
        /* РўРµРјРЅР°СЏ С‚РµРЅСЊ СЃРІРµСЂС…Сѓ-СЃР»РµРІР°, СЃРѕР·РґР°РµС‚ РІРЅСѓС‚СЂРµРЅРЅСЋСЋ С‚РµРЅСЊ */
        -1px -1px 1px rgba(49, 24, 0, 0.63),
        /* РЎРІРµС‚Р»С‹Р№ Р±Р»РёРє СЃРЅРёР·Сѓ-СЃРїСЂР°РІР°, СЃРѕР·РґР°РµС‚ СЌС„С„РµРєС‚ РѕСЃРІРµС‰РµРЅРЅРѕРіРѕ РєСЂР°СЏ */
        1px 1px 1px rgba(255, 255, 255, 0.075);
    }

/* =================================
   РЎС‚РёР»Рё РґР»СЏ СЃС‚Р°С‚РёС‡РµСЃРєРёС… СЃС‚СЂР°РЅРёС†
   ================================= */

    .legacy-title {
      font-size: clamp(2.5rem, 5vw + 1rem, 5rem); /* РђРґР°РїС‚РёРІРЅС‹Р№ СЂР°Р·РјРµСЂ С€СЂРёС„С‚Р° */
      font-weight: bold;
      text-align: center; /* Р’С‹СЂР°РІРЅРёРІР°РµРј С‚РµРєСЃС‚ РїРѕ С†РµРЅС‚СЂСѓ */
      margin-top: 40px; /* РћС‚СЃС‚СѓРї РѕС‚ С…РµРґРµСЂР° */
      margin-bottom: 40px; /* Р”РѕР±Р°РІР»СЏРµРј РѕС‚СЃС‚СѓРї СЃРЅРёР·Сѓ РІРјРµСЃС‚Рѕ <br> */
      /* Р¦РІРµС‚ С‚РµРєСЃС‚Р° РґРµР»Р°РµРј РЅРµРјРЅРѕРіРѕ С‚РµРјРЅРµРµ С„РѕРЅР°, С‡С‚РѕР±С‹ СѓСЃРёР»РёС‚СЊ СЌС„С„РµРєС‚ "РІРґР°РІР»РµРЅРЅРѕСЃС‚Рё" */
      color: #b37b506c;
      text-shadow:
        /* РўРµРјРЅР°СЏ С‚РµРЅСЊ СЃРІРµСЂС…Сѓ-СЃР»РµРІР°, СЃРѕР·РґР°РµС‚ РІРЅСѓС‚СЂРµРЅРЅСЋСЋ С‚РµРЅСЊ */
        -1px -1px 1px rgba(49, 24, 0, 0.63),
        /* РЎРІРµС‚Р»С‹Р№ Р±Р»РёРє СЃРЅРёР·Сѓ-СЃРїСЂР°РІР°, СЃРѕР·РґР°РµС‚ СЌС„С„РµРєС‚ РѕСЃРІРµС‰РµРЅРЅРѕРіРѕ РєСЂР°СЏ */
        1px 1px 1px rgba(255, 255, 255, 0.075);
    }

/* РљРѕРЅС‚РµР№РЅРµСЂ РґР»СЏ С‚РµРєСЃС‚РѕРІРѕРіРѕ РєРѕРЅС‚РµРЅС‚Р°.
   Р”РµР»Р°РµРј РµРіРѕ СѓР¶Рµ, С‡РµРј РѕСЃРЅРѕРІРЅРѕР№ РєРѕРЅС‚РµР№РЅРµСЂ СЃС‚СЂР°РЅРёС†С‹, РґР»СЏ Р»СѓС‡С€РµР№ С‡РёС‚Р°РµРјРѕСЃС‚Рё. */
.text-content {
    max-width: 900px; /* РћРїС‚РёРјР°Р»СЊРЅР°СЏ С€РёСЂРёРЅР° РґР»СЏ С‡С‚РµРЅРёСЏ С‚РµРєСЃС‚Р° */
    margin: 40px auto;   /* Р¦РµРЅС‚СЂРёСЂСѓРµРј Рё РґРѕР±Р°РІР»СЏРµРј РІРµСЂС‚РёРєР°Р»СЊРЅС‹Рµ РѕС‚СЃС‚СѓРїС‹ */
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.2); /* Р›РµРіРєРёР№ С„РѕРЅ, С‡С‚РѕР±С‹ РѕС‚РґРµР»РёС‚СЊ РѕС‚ Vanta */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 #68402280 !important;
    color: #e0e0e0; /* Р‘Р°Р·РѕРІС‹Р№ С†РІРµС‚ С‚РµРєСЃС‚Р° РґР»СЏ СЌС‚РѕРіРѕ Р±Р»РѕРєР° */
}

.legal-text {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
}

/* РЎС‚РёР»Рё РґР»СЏ РѕСЃРЅРѕРІРЅРѕРіРѕ С‚РµРєСЃС‚Р° (РїР°СЂР°РіСЂР°С„РѕРІ) */
.text-content p {
    font-size: 1.1rem;      /* РќРµРјРЅРѕРіРѕ СѓРІРµР»РёС‡РёРј Р±Р°Р·РѕРІС‹Р№ СЂР°Р·РјРµСЂ С€СЂРёС„С‚Р° */
    line-height: 1.7;       /* РЈРІРµР»РёС‡РёРІР°РµРј РјРµР¶СЃС‚СЂРѕС‡РЅС‹Р№ РёРЅС‚РµСЂРІР°Р» РґР»СЏ РєРѕРјС„РѕСЂС‚РЅРѕРіРѕ С‡С‚РµРЅРёСЏ */
    margin-bottom: 1.25em;  /* РћС‚СЃС‚СѓРї РјРµР¶РґСѓ РїР°СЂР°РіСЂР°С„Р°РјРё */
}

/* РЎС‚РёР»Рё РґР»СЏ РїРѕРґР·Р°РіРѕР»РѕРІРєРѕРІ РІРЅСѓС‚СЂРё С‚РµРєСЃС‚Р° */
.text-content h2,
.text-content h3 {
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(222, 184, 135, 0.5); /* Р›РёРЅРёСЏ-СЂР°Р·РґРµР»РёС‚РµР»СЊ РІ С„РёСЂРјРµРЅРЅРѕРј С†РІРµС‚Рµ */
}

.text-content h2 {
    font-size: 1.8rem;
}

.text-content h3 {
    font-size: 1.4rem;
}

/* РЎС‚РёР»Рё РґР»СЏ СЃСЃС‹Р»РѕРє РІ С‚РµРєСЃС‚Рµ */
.text-content a {
    color: #DEB887; /* Р¤РёСЂРјРµРЅРЅС‹Р№ С†РІРµС‚ РґР»СЏ СЃСЃС‹Р»РѕРє */
    text-decoration: none;
    font-weight: bold;
}

.text-content a:hover {
    color: #ffffff;
    text-decoration: underline;
    background-color: transparent;
}

.kontakt-formular {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.2); /* Р›РµРіРєРёР№ С„РѕРЅ, С‡С‚РѕР±С‹ РѕС‚РґРµР»РёС‚СЊ РѕС‚ Vanta */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 #68402280 !important;
  color: #e0e0e0; /* Р‘Р°Р·РѕРІС‹Р№ С†РІРµС‚ С‚РµРєСЃС‚Р° РґР»СЏ СЌС‚РѕРіРѕ Р±Р»РѕРєР° */
}

.kontakt-formular label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.kontakt-formular input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.2); /* Р’РѕР·РІСЂР°С‰Р°РµРј РїРѕР»СѓРїСЂРѕР·СЂР°С‡РЅС‹Р№ С„РѕРЅ */
  backdrop-filter: blur(5px); /* Р”РѕР±Р°РІР»СЏРµРј СЌС„С„РµРєС‚ СЂР°Р·РјС‹С‚РёСЏ РґР»СЏ "СЃС‚РµРєР»Р°" */
  -webkit-backdrop-filter: blur(5px); /* Р”Р»СЏ СЃРѕРІРјРµСЃС‚РёРјРѕСЃС‚Рё СЃ Safari */
  color: #f0f0f0;
  box-sizing: border-box;
}

.kontakt-formular textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.2); /* Р’РѕР·РІСЂР°С‰Р°РµРј РїРѕР»СѓРїСЂРѕР·СЂР°С‡РЅС‹Р№ С„РѕРЅ */
  backdrop-filter: blur(5px); /* Р”РѕР±Р°РІР»СЏРµРј СЌС„С„РµРєС‚ СЂР°Р·РјС‹С‚РёСЏ РґР»СЏ "СЃС‚РµРєР»Р°" */
  -webkit-backdrop-filter: blur(5px); /* Р”Р»СЏ СЃРѕРІРјРµСЃС‚РёРјРѕСЃС‚Рё СЃ Safari */
  color: #f0f0f0;
  resize: none;
  min-height: 150px;
  box-sizing: border-box;
}

/* --- РСЃРїСЂР°РІР»РµРЅРёРµ РґР»СЏ СЃС‚РёР»РµР№ Р°РІС‚РѕР·Р°РїРѕР»РЅРµРЅРёСЏ РІ Chrome/Safari --- */
/* Р‘СЂР°СѓР·РµСЂС‹ С‡Р°СЃС‚Рѕ РґРѕР±Р°РІР»СЏСЋС‚ СЃРІРѕР№ С„РѕРЅ (Р±РµР»С‹Р№/СЃРёРЅРёР№) Рє РїРѕР»СЏРј СЃ Р°РІС‚РѕР·Р°РїРѕР»РЅРµРЅРёРµРј.
   Р­С‚РѕС‚ Р±Р»РѕРє РїРµСЂРµРѕРїСЂРµРґРµР»СЏРµС‚ СЌС‚Рё СЃС‚РёР»Рё, С‡С‚РѕР±С‹ СЃРѕС…СЂР°РЅРёС‚СЊ РІР°С€ РґРёР·Р°Р№РЅ. */
.kontakt-formular input:-webkit-autofill,
.kontakt-formular input:-webkit-autofill:hover,
.kontakt-formular input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f0f0f0 !important; /* РЎРѕС…СЂР°РЅСЏРµРј С†РІРµС‚ С‚РµРєСЃС‚Р° */
  /* РЎРѕРІСЂРµРјРµРЅРЅС‹Р№ С‚СЂСЋРє РґР»СЏ РѕС‚РјРµРЅС‹ С„РѕРЅР° Р°РІС‚РѕР·Р°РїРѕР»РЅРµРЅРёСЏ.
     РњС‹ Р·Р°РґР°РµРј РѕС‡РµРЅСЊ РґРѕР»РіРёР№ РїРµСЂРµС…РѕРґ РґР»СЏ background-color, С‡С‚РѕР±С‹ Р±СЂР°СѓР·РµСЂ
     РЅРµ СѓСЃРїРµР» РїСЂРёРјРµРЅРёС‚СЊ СЃРІРѕР№ СЃС‚РёР»СЊ. Р­С‚Рѕ РїРѕР·РІРѕР»СЏРµС‚ РЅР°С€РµРјСѓ `backdrop-filter` СЂР°Р±РѕС‚Р°С‚СЊ. */
  transition: background-color 5000s ease-in-out 0s;
}

.kontakt-formular button {
  background-color: rgba(0, 0, 0, 0.2); /* Р›РµРіРєРёР№ С„РѕРЅ, С‡С‚РѕР±С‹ РѕС‚РґРµР»РёС‚СЊ РѕС‚ Vanta */
  color: #e0e0e0; /* Р‘Р°Р·РѕРІС‹Р№ С†РІРµС‚ С‚РµРєСЃС‚Р° РґР»СЏ СЌС‚РѕРіРѕ Р±Р»РѕРєР° */
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 #68402280 !important;
  opacity: 0.85;
  transition: background-color 0.3s, opacity 0.3s, top 0.1s linear;
}

.kontakt-formular button:hover {
  background-color: rgba(0, 0, 0, 0.37);
  opacity: 1;
}

/* Alert */
.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 #68402280 !important;
  color: white;
  padding: 2rem 2rem 3.5rem 2rem;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
  z-index: 999;
  box-sizing: border-box;
}

.alert.success {
  background-color: #28a746da;
}

.alert.error {
  background-color: #dc3545;
}

/* Cart form alert: look like form container */
.cart-page .alert,
.contact-page .alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  max-width: 100%;
  display: block;
  margin: 0;
  padding: 16px 18px 20px;
  background-color: #fffaff;
  color: #000000;
  text-shadow: none !important;
  box-shadow: var(--surface-shadow);
  border: var(--surface-border);
  border-radius: var(--surface-radius);
  z-index: 10000;
}

.cart-page .alert.success,
.cart-page .alert.error {
  background-color: #fffaff;
  color: #000000;
}

.alert.hidden {
  display: none;
}

.alert .close-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 1px solid white;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.alert .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.cart-page .alert .close-btn {
  position: static;
  transform: none;
  display: inline-block;
  margin-top: 12px;
  border-color: #1f7f7b;
  color: #1f7f7b;
}

.contact-page .alert .close-btn {
  position: static;
  transform: none;
  display: inline-block;
  margin-top: 12px;
  border-color: #1f7f7b;
  color: #1f7f7b;
}

/* =================================
   РЎС‚РёР»Рё РґР»СЏ СЃС‚Р°СЂС‚РѕРІРѕР№ СЃС‚СЂР°РЅРёС†С‹
   ================================= */

   .start-gallery-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 0;
}

.start-gallery-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  background-color: #111;
  /* Р”РѕР±Р°РІР»СЏРµРј РѕР±С‰СѓСЋ С‚РµРЅСЊ РґР»СЏ РІСЃРµРіРѕ РєРѕРЅС‚РµР№РЅРµСЂР°, С‡С‚РѕР±С‹ РѕРЅ РІС‹РґРµР»СЏР»СЃСЏ РЅР° СЃС‚СЂР°РЅРёС†Рµ */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.start-preview-images {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  /* РЈР±РёСЂР°РµРј С†РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ, flexbox СЃР°Рј СЂР°СЃСЃС‚Р°РІРёС‚ СЌР»РµРјРµРЅС‚С‹ РѕС‚ Р»РµРІРѕРіРѕ РєСЂР°СЏ */
}

.start-preview-images img {
  flex-shrink: 0; /* Р—Р°РїСЂРµС‰Р°РµРј flex-РєРѕРЅС‚РµР№РЅРµСЂСѓ СЃР¶РёРјР°С‚СЊ РёР·РѕР±СЂР°Р¶РµРЅРёСЏ */
  /* --- РњР°РіРёСЏ РґР»СЏ Р·Р°РїРѕР»РЅРµРЅРёСЏ РєРѕРЅС‚РµР№РЅРµСЂР° --- */
  /* РЁРёСЂРёРЅР° РєР°Р¶РґРѕРіРѕ РёР·РѕР±СЂР°Р¶РµРЅРёСЏ. Р Р°СЃСЃС‡РёС‚Р°РЅРѕ РґР»СЏ 6 РєР°СЂС‚РёРЅРѕРє СЃ 50% РїРµСЂРµРєСЂС‹С‚РёРµРј. */
  width: 28.57%;
  height: 100%;
  object-fit: cover;
  /* РћС‚СЂРёС†Р°С‚РµР»СЊРЅС‹Р№ РѕС‚СЃС‚СѓРї, СЂР°РІРЅС‹Р№ РїРѕР»РѕРІРёРЅРµ С€РёСЂРёРЅС‹, РґР»СЏ 50% РїРµСЂРµРєСЂС‹С‚РёСЏ. */
  margin-left: -14.28%;
  box-shadow: 0 0 30px rgb(0, 0, 0);
  border-radius: 8px;
  transition: transform 0.3s;
}

.start-preview-images img:first-child {
  margin-left: 0;
}

.start-gallery-preview:hover {
  /* РџСЂРё РЅР°РІРµРґРµРЅРёРё РїСЂРёРїРѕРґРЅРёРјР°РµРј РІРµСЃСЊ Р±Р»РѕРє Рё СѓСЃРёР»РёРІР°РµРј С‚РµРЅСЊ РґР»СЏ РёРЅС‚РµСЂР°РєС‚РёРІРЅРѕСЃС‚Рё */
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.start-gallery-preview:hover img {
  transform: scale(1.05);
}

.start-gallery-title {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  /* --- Р—РґРµСЃСЊ РјРѕР¶РЅРѕ РјРµРЅСЏС‚СЊ СЃС‚РёР»Рё Р·Р°РіРѕР»РѕРІРєР° --- */
  font-family: 'Georgia', serif; /* РџСЂРёРјРµСЂ: РјРµРЅСЏРµРј С€СЂРёС„С‚ РЅР° Р±РѕР»РµРµ РґРµРєРѕСЂР°С‚РёРІРЅС‹Р№ */
  font-weight: bold; /* Р”РµР»Р°РµРј С‚РµРєСЃС‚ Р¶РёСЂРЅС‹Рј */
  color: #ffffffc5;
  /* Р‘РѕР»РµРµ СЃР»РѕР¶РЅР°СЏ С‚РµРЅСЊ РґР»СЏ СЃРѕР·РґР°РЅРёСЏ СЌС„С„РµРєС‚Р° РѕР±РІРѕРґРєРё Рё Р»СѓС‡С€РµР№ С‡РёС‚Р°РµРјРѕСЃС‚Рё РЅР° Р»СЋР±РѕРј С„РѕРЅРµ */
  text-shadow: 
    2px 2px 0 #00000071,      /* РўРµРЅСЊ СЃРїСЂР°РІР°-СЃРЅРёР·Сѓ */
    -1px -1px 0 #0000001c,    /* РўРµРЅСЊ СЃР»РµРІР°-СЃРІРµСЂС…Сѓ */
    1px -1px 0 #00000033,     /* РўРµРЅСЊ СЃРїСЂР°РІР°-СЃРІРµСЂС…Сѓ */
    -1px 1px 0 #0000002d,     /* РўРµРЅСЊ СЃР»РµРІР°-СЃРЅРёР·Сѓ */
    0 0 15px rgba(0, 0, 0, 0.438); /* РњСЏРіРєРѕРµ СЂР°Р·РјС‹С‚РёРµ РґР»СЏ РіР»СѓР±РёРЅС‹ */
  white-space: nowrap; /* Р—Р°РїСЂРµС‰Р°РµРј РїРµСЂРµРЅРѕСЃ С‚РµРєСЃС‚Р° РЅР° РЅРѕРІСѓСЋ СЃС‚СЂРѕРєСѓ */
  pointer-events: none;
  transition: color 0.3s, text-shadow 0.3s; /* РџР»Р°РІРЅС‹Р№ РїРµСЂРµС…РѕРґ РґР»СЏ СЌС„С„РµРєС‚Р° РЅР°РІРµРґРµРЅРёСЏ */
}

/* РњРµРЅСЏРµРј СЃС‚РёР»СЊ Р·Р°РіРѕР»РѕРІРєР°, РєРѕРіРґР° РєСѓСЂСЃРѕСЂ РЅР°С…РѕРґРёС‚СЃСЏ РЅР° СЂРѕРґРёС‚РµР»СЊСЃРєРѕРј РєРѕРЅС‚РµР№РЅРµСЂРµ */
.start-gallery-preview:hover .start-gallery-title {
    color: #ffffffea;
    text-shadow: 
    2px 2px 0 #000000a1,      /* РўРµРЅСЊ СЃРїСЂР°РІР°-СЃРЅРёР·Сѓ */
    -1px -1px 0 #0000001c,    /* РўРµРЅСЊ СЃР»РµРІР°-СЃРІРµСЂС…Сѓ */
    1px -1px 0 #00000033,     /* РўРµРЅСЊ СЃРїСЂР°РІР°-СЃРІРµСЂС…Сѓ */
    -1px 1px 0 #0000002d,     /* РўРµРЅСЊ СЃР»РµРІР°-СЃРЅРёР·Сѓ */
    0 0 15px rgba(0, 0, 0, 0.6); /* РЈСЃРёР»РёРІР°РµРј СЂР°Р·РјС‹С‚РёРµ РґР»СЏ Р»СѓС‡С€РµРіРѕ СЌС„С„РµРєС‚Р° */
    }

/* =================================
   РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ РґР»СЏ СЃС‚Р°СЂС‚РѕРІРѕР№ СЃС‚СЂР°РЅРёС†С‹
   ================================= */

@media (max-width: 768px) {
  .start-gallery-title {
    white-space: normal; /* Р’РѕР·РІСЂР°С‰Р°РµРј РїРµСЂРµРЅРѕСЃ С‚РµРєСЃС‚Р° РЅР° СѓР·РєРёС… СЌРєСЂР°РЅР°С… */
    font-size: 1.8rem;   /* РЈРјРµРЅСЊС€Р°РµРј С€СЂРёС„С‚, С‡С‚РѕР±С‹ РѕРЅ Р»СѓС‡С€Рµ РїРѕРјРµС‰Р°Р»СЃСЏ */
    width: 90%;          /* РћРіСЂР°РЅРёС‡РёРІР°РµРј С€РёСЂРёРЅСѓ, С‡С‚РѕР±С‹ С‚РµРєСЃС‚ РЅРµ РїСЂРёР»РёРїР°Р» Рє РєСЂР°СЏРј */
    text-align: center;  /* Р“Р°СЂР°РЅС‚РёСЂСѓРµРј С†РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ РґР»СЏ РјРЅРѕРіРѕСЃС‚СЂРѕС‡РЅРѕРіРѕ С‚РµРєСЃС‚Р° */
  }
}

/* =================================
   РЎС‚РёР»Рё СЃС‚СЂР°РЅРёС†С‹ РєРѕРЅС‚Р°РєС‚РѕРІ
   ================================= */
.contact-page .kontakt-formular {
  background-color: #fffaff;
  color: #000000;
  text-shadow: none !important;
  box-shadow: var(--surface-shadow);
  border: var(--surface-border);
  border-radius: var(--surface-radius);
}

.contact-page .title {
  color: #000000;
  text-shadow: none;
}

.contact-page .kontakt-formular label,
.contact-page .kontakt-formular input,
.contact-page .kontakt-formular textarea,
.contact-page .kontakt-formular button,
.contact-page .contact-inline,
.contact-page .contact-inline p,
.contact-page .contact-inline strong {
  color: #000000;
}

.contact-page .kontakt-formular input,
.contact-page .kontakt-formular textarea {
  background-color: #fffaff;
  border: 1px solid #36afaa;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-page .kontakt-formular input:-webkit-autofill,
.contact-page .kontakt-formular input:-webkit-autofill:hover,
.contact-page .kontakt-formular input:-webkit-autofill:focus {
  -webkit-text-fill-color: #000000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-page .kontakt-formular button {
  background-color: #fffaff;
  border: 1px solid #36afaa;
  opacity: 1;
  box-shadow: none;
}

.contact-page .kontakt-formular button:hover {
  background-color: #fffaff;
}

.privacy-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 0.95rem;
}

.privacy-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.privacy-consent a {
  color: #36afaa;
  text-decoration: none;
  font-weight: bold;
}

.privacy-consent a:hover {
  background-color: #248e89;
  color: #eefaf9;
  text-decoration: none;
}

.submit-with-consent {
  display: block;
}

.submit-with-consent:has(button[disabled]) {
  cursor: not-allowed;
}

.kontakt-formular button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-page .contact-inline {
  margin-top: 1rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.contact-page .contact-inline-col {
  flex: 1;
}

.contact-page .contact-inline-col.address {
  text-align: left;
}

.contact-page .contact-inline-col.address > strong {
  display: block;
  margin-top: 1em;
}

.contact-page .contact-inline-col.direct {
  text-align: right;
}

.contact-page .schedule-block {
  margin-top: 1.5rem;
  text-align: center;
}

.contact-page .schedule-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border: var(--surface-border);
  border-radius: var(--surface-radius);
  box-shadow: var(--surface-shadow);
}

.contact-page .contact-inline a {
  color: #36afaa;
  text-decoration: none;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.contact-page .contact-inline .map-address a {
  display: inline-block;
}

.contact-page .contact-inline a:hover {
  background-color: #248e89;
  color: #eefaf9;
  text-decoration: none;
}

.cart-page .kontakt-formular {
  background-color: #fffaff;
  color: #000000;
  text-shadow: none !important;
  box-shadow: var(--surface-shadow);
  border: var(--surface-border);
  border-radius: var(--surface-radius);
}

.cart-page .kontakt-formular label,
.cart-page .kontakt-formular input,
.cart-page .kontakt-formular textarea,
.cart-page .kontakt-formular button {
  color: #000000;
}

.cart-page .kontakt-formular input,
.cart-page .kontakt-formular textarea {
  background-color: #fffaff;
  border: 1px solid #36afaa;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cart-page .kontakt-formular input:-webkit-autofill,
.cart-page .kontakt-formular input:-webkit-autofill:hover,
.cart-page .kontakt-formular input:-webkit-autofill:focus {
  -webkit-text-fill-color: #000000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.cart-page .kontakt-formular button {
  background-color: #fffaff;
  border: 1px solid #36afaa;
  opacity: 1;
  box-shadow: none;
}

.cart-page .kontakt-formular button:hover {
  background-color: #fffaff;
}

@media (max-width: 768px) {
  .contact-page .contact-inline {
    flex-direction: column;
    gap: 10px;
  }

  .contact-page .contact-inline-col.address,
  .contact-page .contact-inline-col.direct {
    text-align: left;
  }
}

/* =================================
   Р•РґРёРЅС‹Р№ СЃС‚РёР»СЊ СЃС‚Р°С‚РёС‡РµСЃРєРёС… СЃС‚СЂР°РЅРёС†
   ================================= */
.static-page .title {
  color: #000000;
  text-shadow: none;
}

.static-page .text-content {
  background-color: #fffaff;
  color: #000000;
  border: var(--surface-border);
  border-radius: var(--surface-radius);
  box-shadow: var(--surface-shadow);
  text-shadow: none !important;
}

.static-page .text-content p {
  color: #000000;
}

.static-page .text-content h2,
.static-page .text-content h3 {
  color: #000000;
  border-bottom: 1px solid #36afaa;
}

.static-page .text-content a {
  color: #36afaa;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  padding: 1px 3px;
  transition: background-color 0.3s, color 0.3s;
}

.static-page .text-content a:hover {
  background-color: #248e89;
  color: #eefaf9;
  text-decoration: none;
}

/* =================================
   Cart page
   ================================= */

.hidden {
  display: none !important;
}

.cart-form {
  margin: 1.5rem auto 2.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 120px 1fr 150px 160px auto auto; /* 110px -> 160px для Total */
  grid-template-areas: "preview price sizes qty total confirm remove";
  align-items: center;
  gap: 16px;
  padding: 6px 0;
  background: transparent;
  border: none;
}

.cart-preview {
  grid-area: preview;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-preview img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.cart-price {
  grid-area: price;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cart-price img {
  height: 20px;
  width: auto;
  display: block;
  max-width: none;
}

.cart-price .price-display {
  min-height: 20px;
  font-size: 1.1rem;
}

.cart-sizes {
  grid-area: sizes;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.size-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.size-btn img {
  height: 32px;
  width: auto;
  display: block;
}

.size-btn.active {
  opacity: 1;
  transform: translateY(-1px);
}

.cart-qty {
  grid-area: qty;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-total {
  grid-area: total;
  font-weight: bold;
  color: #222;
  text-align: center;
  white-space: nowrap;
}

.cart-qty input {
  width: 50px; /* Уменьшаем ширину, так как добавились кнопки */
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.95rem;
  -moz-appearance: textfield; /* Убираем стрелочки в Firefox */
  appearance: textfield;      /* Стандартное свойство */
  box-sizing: border-box;     /* Чтобы padding не увеличивал общую ширину */
}

/* Убираем стрелочки в Chrome/Safari/Edge */
.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  flex-shrink: 0; /* Запрещаем кнопкам сжиматься, если места мало */
}

.cart-confirm {
  grid-area: confirm;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-confirm img {
  display: none;
}

.cart-confirm.confirmed {
  opacity: 0.5;
  cursor: default;
}

.cart-remove {
  grid-area: remove;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-total-summary {
  margin-top: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: right;
  color: #222;
}

.cart-empty {
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
}

.cart-info {
  margin: 1.5rem auto 1.25rem;
  padding: 20px;
  background: var(--surface-bg);
  color: #222;
  text-align: center;
  border: var(--surface-border);
  border-radius: var(--surface-radius);
  box-shadow: var(--surface-shadow);
}

.cart-info::before {
  content: '';
  display: block;
  width: calc(100% - 24px);
  height: 4px;
  margin: 0 auto 14px;
  background: #36afaa;
  border-radius: 2px;
}

.cart-info p {
  margin: 0;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  line-height: 1.5;
}

.cart-delivery {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cart-delivery-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.cart-delivery-btn img {
  display: block;
  width: min(320px, 90vw);
  height: auto;
}

.order-details {
  border: 1px solid rgba(54, 175, 170, 0.5);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 84px;
}

.order-details + label {
  margin-top: 1.25rem;
  display: block;
}

.order-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.order-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.order-text {
  font-size: 0.95rem;
  color: #000000;
}

.order-total {
  font-weight: 700;
  color: #000000;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 8px;
  align-self: flex-end;
  text-align: right;
}

.order-delivery {
  font-weight: 600;
  color: #000000;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 8px;
}

.cart-page .schedule-block {
  margin-top: 1.5rem;
  text-align: center;
}

.cart-page .schedule-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #36afaa;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .container {
    padding: 10px; /* Уменьшаем отступы по краям на мобильных */
  }

  .cart-item {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "preview price"
      "sizes sizes"
      "qty total"
      "confirm remove";
    gap: 12px;
  }

  .cart-total {
    white-space: normal; /* Разрешаем перенос текста цены */
    text-align: right;   /* Выравниваем цену вправо, рядом с кол-вом */
  }

  .cart-confirm, .cart-remove {
    width: 100%; /* Кнопки занимают всю ширину своей ячейки */
  }
}
