/* ============================= */
/* GLOBAL VARIABLES              */
/* ============================= */
:root {
    --brand: #2e7d32;        /* основной зелёный */
    --brand-dark: #1b5e20;   /* тёмный зелёный */
    --brand-light: #e8f5e9;  /* светлый зелёный фон */

    --text-main: #1f2937;    /* почти как у FB */
    --text-muted: #6b7280;   /* серый текст */

    --bg-soft: #f3f4f6;      /* мягкий фон */
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

/* ============================= */
/* FIX ASTRA FULL-WIDTH BLOCKS   */
/* ============================= */

/*
.ast-container .sc-image-wrap,
.ast-container .sc-gallery,
.ast-container .sc-slider,
.ast-container .sc-hero-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}*/

/* ============================= */
/* IMAGE PREVIEW                 */
/* ============================= */

.sc-image-wrap {
    /*text-align: center;*/
    position: relative;
    background: #fff;
    max-width: 100vw;
  
    margin-left: auto; /*!important;*/
    margin-right: auto; /*!important;*/
    left: 0; /*!important;*/
    transform: none; /*!important;*/
}

.sc-image-wrap img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sc-image-wrap img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .sc-image-wrap {
        width: 100%; /*!important;*/
        max-width: 100%; /*!important;*/
        margin-left: 0; /*!important;*/
        margin-right: 0; /*!important;*/
    }
}

/* ============================= */
/* GALLERY                       */
/* ============================= */

/* Миниатюры */
.sc-gallery {
    /*text-align: center;*/
    position: relative;
    margin: 50px auto;
    background: #fff;
    width: 100vw;
    max-width: 100vw;
  
    margin-left: auto; /*!important;*/
    margin-right: auto; /*!important;
    left: 0; /*!important;*/
    transform: none; /*!important;*/
}
.sc-gallery img {
    /*width: 150px;*/
    max-width: 100%;
    height: auto;
    margin: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.sc-gallery img:hover {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .sc-gallery {
        width: 100%; /*!important;*/
        max-width: 100%; /*!important;*/
        margin-left: 0; /*!important;*/
        margin-right: 0; /*!important;*/
    }
}

/* Модальное окно */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

/* Изображение */
.gallery-full {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}

/* Верхняя панель */
.gallery-topbar {
    position: absolute;
    top: 15px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

/* Кнопки */
.gallery-close,
.gallery-prev,
.gallery-next {
    pointer-events: auto;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

/* Крестик */
.gallery-close {
    font-size: 70px; /*!important;*/ 
}

/* Стрелки */
.gallery-prev,
.gallery-next {
    font-size: 100px; /*!important;*/
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }


/* ============================= */
/* HORIZONTAL GALLERY            */
/* ============================= */

.sc-slider {
  position: relative;
  margin: 50px auto;
  background: #fff;
  width: 100vw;
  max-width: 100vw;
  
  margin-left: auto; /*!important;*/
  margin-right: auto; /*!important;*/
  left: 0; /*!important;*/
  transform: none; /*!important;*/
}

.sc-slider-window {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.sc-slider-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.sc-slide {
    flex: 0 0 100%;
    text-align: center;
}

.sc-slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* arrows */
.sc-slider-prev,
.sc-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 48px;
  color: #2e7d32;
  cursor: pointer;
  padding: 10px;
  z-index: 5;
}

.sc-slider-prev { left: 10px; }
.sc-slider-next { right: 10px; }

.sc-slider-prev:hover,
.sc-slider-next:hover {
  transform: translateY(-50%) scale(1.15);
}

/* dots */
.sc-slider-dots {
  margin-top: 14px;
  text-align: center;
}

.sc-slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #cfd8e3;
  border-radius: 50%;
  cursor: pointer;
}

.sc-slider-dots span.active {
  background: #2e7d32;
}

/* =============================== */
/* HORIZONTAL GALLERY - MOBILE FIX */
/* =============================== */

@media (max-width: 768px) {
    
  .sc-slider {
    position: relative;
    margin: 25px auto;
    background: #fff;
    width: 100%; /*!important;*/
    max-width: 100%; /*!important;*/
    
    margin-left: 0; /*!important;*/
    margin-right: 0; /*!important;*/
  }

  .sc-slider-window {
    /*
    width: 100%;
    overflow: hidden;
    */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .sc-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%; /* track шириной 100% для одного слайда */
  }

  .sc-slide {
    min-width: 100%;
    text-align: center; /* изображение по центру */
  }

  .sc-slide img {
    width: 100%; /* масштабируем по ширине окна */
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .sc-slider-prev,
  .sc-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #2e7d32;
    background: none;
    border: none;
    padding: 10px;
    z-index: 5;
  }

  .sc-slider-prev { left: 10px; }
  .sc-slider-next { right: 10px; }

  /* точки по центру */
  .sc-slider-dots {
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }
  .sc-slider-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #cfd8e3;
    border-radius: 50%;
    cursor: pointer;
  }
  .sc-slider-dots span.active { background: #2e7d32; }
}

/* ============================= */
/* BUTTONS                       */
/* ============================= */

.btn-link,
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn {
    background: #ffcc00;
    color: #000;
}

.btn:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

.btn-link {
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
}

.btn-link:hover {
    background: #fff;
    color: #000;
}

/* ============================= */
/* BUTTON-LINK                   */
/* ============================= */

.lang-ar .button-link {
    direction: rtl;
}

.button-link a:hover {
    outline: 2px solid #1b5e20;
}


/* ============================= */
/* BASE TYPOGRAPHY               */
/* ============================= */
body {
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
}

p {
    margin-bottom: 1.1em;
    color: var(--text-main);
}

strong {
    font-weight: 600;
}


/* ============================= */
/* LINKS                         */
/* ============================= */
a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--brand-dark);
    opacity: 0.85;
}


/* ============================= */
/* HEADINGS                      */
/* ============================= */
h1, h2, h3, h4, h5 {
    color: var(--brand);
    line-height: 1.25;
}

h2 {
    margin-bottom: 0.6em;
}

h3 {
    margin-bottom: 0.5em;
}


/* ============================= */
/* SECTIONS                      */
/* ============================= */
.section,
.wp-block-group {
    padding: 60px 20px;
}

.section-soft,
.bg-soft {
    background: var(--bg-soft);
}


/* ============================= */
/* BUTTONS – OVERRIDE            */
/* ============================= */
.btn,
.wp-block-button__link {
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 26px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.btn:hover,
.wp-block-button__link:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}


/* ============================= */
/* CARDS                         */
/* ============================= */
.card,
.wp-block-column {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


/* ============================= */
/* ICON BLOCKS                   */
/* ============================= */
.icon-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-box-icon {
    color: var(--brand);
    font-size: 28px;
    flex-shrink: 0;
}


/* ============================= */
/* HERO BLOCKS                   */
/* ============================= */

.sc-hero-slider {
    position: relative;
    width: 100vw;
    height: auto;
    min-height: 28vh;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    background-color: #fff;
}

/* ВЫРЫВАЕМ HERO ИЗ ASTRA-КОНТЕЙНЕРА */
.ast-container .sc-hero-slider {
    width: 100vw;
    min-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.sc-hero-track {
    display: flex;
    height: 100vh;
    transition: transform 1s ease;
}

.sc-hero-slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.sc-hero-slide img{
    width: 100%; /* масштабируем по ширине окна */
    height: 100%;
    object-fit: cover;
    object-position: center center; 
}

/* OVERLAY */
.sc-hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px;
    max-width: 60%;
    color: #fff;

    /*
    background: linear-gradient(
        to right,
        rgba(0,92,184,0.75),
        rgba(0,92,184,0.25),
        rgba(0,92,184,0)
    );
    */
}

.sc-hero-overlay h1 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 15px;
    color: #fff;
    text-shadow:
        0 0 4px rgba(0,0,0,0.8),
        0 0 8px rgba(0,0,0,0.6);
}

.lang-ar .sc-hero-overlay h1 {
    direction: rtl;
}

.sc-hero-overlay p {
    font-size: 24px;
    max-width: 600px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow:
        0 0 4px rgba(0,0,0,0.8),
        0 0 8px rgba(0,0,0,0.6);
}

.lang-ar .sc-hero-overlay p {
    direction: rtl;
}

.sc-hero-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #2e7d32;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
}

.lang-ar .sc-hero-btn {
    direction: rtl;
}

.sc-hero-btn:hover {
    background: #e6f0ff;
    transform: translateY(-2px);
}


/* ============================= */
/* HERO-MOBILE                   */
/* ============================= */

@media (max-width: 768px) {

  .sc-hero-slider {
        width: 100vw;
        /*height: 28vh;*/
        height: 50vh;
        min-height:28vh;     /* защита от слишком низких экранов */
        overflow: hidden;
  }
  
  .sc-hero-track {
        display: flex;
        /*height: 100vh;*/
  }
  
  .sc-hero-slide {
        /*
        min-width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
        */
        min-width: 100%;
        text-align: center; /* изображение по центру */
  }

  .sc-hero-slide img{
        width: 100%; /* масштабируем по ширине окна */
        /*
        height: 100%;
        object-fit: cover;
        object-position: center center;
        */
        height: auto;
        display: block;
        margin: 0 auto;
  }
    
  /* текст поверх */
  .sc-hero-overlay {
        max-width: 100%;
        padding: 20px;
  }
}


/* ============================= */
/* FORMS */
/* ============================= */
input,
textarea,
select {
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    width: 100%;
    font-size: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,92,184,0.15);
}


/* ============================= */
/* TABLES */
/* ============================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
}

th, td {
    padding: 14px;
    border: 1px solid #e5e7eb;
}


/* ============================= */
/* FOOTER                        */
/* ============================= */
/* заголовки */
.ast-footer-overlay h1,
.ast-footer-overlay h2,
.ast-footer-overlay h3 {
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* текст */
.ast-footer-overlay p {
    font-size: 14px;
    line-height: 1.7;
}

/* ссылки */
.ast-footer-overlay a {
    text-decoration: none;
}

.ast-footer-overlay a:hover {
    text-decoration: underline;
}

/* иконки */
.ast-footer-overlay svg {
    fill: #fff;
}

.lang-switcher {
   text-align: center;
   color: #fff;
}

.lang-switcher a {
   color: #fff;
}

.lang-switcher a:hover {
   color: #fff;
}


/* ============================= */
/* FOOTER MENU - SHORTCODE       */
/* ============================= */
.sc-footer-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    color: #ffffff;
}

.lang-ar .sc-footer-menu {
    text-align: right;
}

.sc-footer-col h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.sc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-footer-col li {
    margin-bottom: 6px;
    font-size: 14px;
}

.sc-footer-col li strong {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.sc-footer-col a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.sc-footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .sc-footer-menu {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .lang-ar .sc-footer-menu {
        text-align: center;
    }

    .sc-footer-col li strong {
        margin-top: 14px;
    }
}

/* ============================= */
/* BLOCK  MENU                   */
/* ============================= */
.block-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;   
    color: #ffffff;
}

.lang-ar .block-menu {
    text-align: right;
}

.block-menu-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-menu-col a{
    height: 190px;
    width: 250px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    
    text-align: center;
    line-height: normal;
    white-space: normal;
    box-sizing: border-box;
    
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    
    align-items: center;
}

.block-menu-col a:hover {
    opacity: 1;
    text-decoration: underline;
    align-items: center;
    
    outline: 2px solid #1b5e20;
}

/* MOBILE */
@media (max-width: 768px) {
    .block-menu {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .lang-ar .block-menu {
        text-align: center;
    }
    
    .block-menu-col a {
        height: 170px;
    }
}

/* ============================= */
/* BLOCK  LISTBOX 3 COLUMN       */
/* ============================= */
.block-listbox-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;   
}

.lang-ar .block-listbox-3col {
    text-align: right;
}

/* MOBILE */
@media (max-width: 768px) {
    .block-listbox-3col {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}


/* ============================= */
/* BLOCK VERTICAL LINE           */
/* ============================= */
.block-vline {
    border-left: 3px solid #005cb8; /*#004a94;*/
    padding-left: 12px;
    text-align: left;
}


/* ============================= */
/* ANIMATIONS                    */
/* ============================= */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================= */
/* HEADER & MAIN MENU            */
/* ============================= */

.site-header {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    z-index: 999;
}

/* Контейнер меню */
.main-header-bar {
    padding: 14px 24px;
}

/* Пункты меню */
.main-header-menu > li > a {
    color: var(--text-main);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

/* Hover */
.main-header-menu > li:hover > a {
    background: var(--brand-light);
    color: var(--brand);
    
    /*outline: 2px solid #1b5e20;*/
}

/* Активный пункт */
.main-header-menu > li.current-menu-item > a,
.main-header-menu > li.current_page_item > a {
    color: #fff;
    background: var(--brand);
}

/* Подменю */
.main-header-menu ul {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 8px;
}

.main-header-menu ul li a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.main-header-menu ul li a:hover {
    background: var(--brand-light);
    color: var(--brand);
    
    outline: 2px solid #1b5e20;
}

/* Только основное меню (desktop) */
@media (min-width: 768px) {

    .main-header-menu > li.current-menu-item > a,
    .main-header-menu > li.current_page_item > a {
        background: var(--brand);
        color: #ffffff !important;
    }

    /* Чтобы hover НЕ ломал активный пункт */
    .main-header-menu > li.current-menu-item:hover > a,
    .main-header-menu > li.current_page_item:hover > a {
        background: var(--brand);
        color: #ffffff !important;
    }
}

.main-header-menu > li.current-menu-item > a {
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.25);
}


/* ============================= */
/* HEADER - SHORTCODE            */
/* ============================= */
.sc-top-header {
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    padding: 6px 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-top-center {
    margin: auto;
    white-space: nowrap;
}

.sc-top-center > a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.sc-top-center > a:hover {
    color: #fff;
    opacity: 0.85;
}

.sc-top-right {
    margin-right: 15px;
    white-space: nowrap;
}

.sc-top-right img {
    width: 24px;
    margin-left: 8px;
    cursor: pointer;
}

/* ============================= */
/* TABLES – ADVANCED             */
/* ============================= */

table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

thead th {
    background: var(--brand);
    color: #fff;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: var(--brand-light);
}


/* ============================= */
/* LISTS                         */
/* ============================= */

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

ul li::marker {
    color: var(--brand);
    font-weight: bold;
}


/* ============================= */
/* BREADCRUMBS                   */
/* ============================= */

.ast-breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
}

.ast-breadcrumbs a {
    color: var(--brand);
}

.ast-breadcrumbs span {
    color: var(--text-muted);
}


/* ============================= */
/* PAGINATION                    */
/* ============================= */

.page-numbers {
    display: inline-flex;
    gap: 6px;
    margin-top: 30px;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
}

.page-numbers .current {
    background: var(--brand);
    color: #fff;
}


/* ============================= */
/* PRE                           */
/* ============================= */
pre {
    /*background: #f4f6f8;*/
    color: #1f2933;

    padding: 18px 22px;
    border-radius: 10px;

    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;

    white-space: pre-wrap;       /* сохраняет переносы + разрешает перенос строк */
    word-wrap: break-word;       /* старые браузеры */
    overflow-wrap: break-word;   /* современные браузеры */

    border: 1px solid #e1e6eb;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.06);
        
    background: linear-gradient(180deg, #f7f9fb, #eef1f4);
    /*backdrop-filter: blur(4px);*/
}

pre:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

pre code {
    font-family: inherit;
    background: none;
    padding: 0;
    color: inherit;
    white-space: inherit;
}

@media (max-width: 768px) {
    pre {
        font-size: 13px;
        padding: 14px 16px;
    }
}


/* ============================= */
/* MOBILE MENU                   */
/* ============================= */

.ast-mobile-header-wrap {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.ast-mobile-header-wrap .menu-link {
    font-weight: 600;
}

.ast-mobile-header-wrap .menu-link:hover {
    color: var(--brand);
}


/* ============================= */
/* МУЛЬТИЯЗЫЧНОСТЬ               */
/* ============================= */
.lang-ar {
    direction: rtl;
}

.lang-ar .site-content {
    direction: rtl;
}

.lang-ar .main-header-menu .menu-link {
    direction: rtl;
    /*unicode-bidi: isolate;*/
    text-align: right;
}

.lang-ar .main-header-menu .sub-menu {
    direction: rtl;
    /*text-align: right;*/
}


/* ===================== */
/* Copyright             */
/* ===================== */
.sc-footer-copyright {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    opacity: 0.85;
}


/* ===================================================== */
/* ВСЕГДА В КОНЦЕ                                        */
/* ===================================================== */
/* MOBILE CENTER FIX — HERO, SLIDER, GALLERY (SAFE)      */
/* ===================================================== */

@media (max-width: 768px) {

  /* --- Общий принцип ---
     Никогда не используем 100vw внутри Astra на мобилке.
     Только 100% + auto-centering.
  */

  .sc-hero-slider,
  .sc-slider,
  .sc-gallery,
  .sc-image-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    transform: none;
    box-sizing: border-box;
  }

  /* --- HERO --- */

  .sc-hero-track,
  .sc-hero-slide {
    width: 100%;
    max-width: 100%;
  }

  .sc-hero-overlay {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* --- Horizontal slider window --- */

  .sc-slider-window {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  /* --- Track & slides --- */

  .sc-slider-track {
    width: 100%;
  }

  .sc-slide {
    min-width: 100%;
    box-sizing: border-box;
  }

  /* --- Dots always centered --- */

  .sc-slider-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* --- Gallery thumbnails --- */

  .sc-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}