/* Home page bundle. Keep source order aligned with its entries in the templates. */

/* Source: css/drop.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}





fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

input, textarea, select, button {
    border: none;
    outline: none;
}

body, h1, h2, h3, h4, h5, h6, p, div, header, footer, main, section, article {
    display: block;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;

}


/* Source: css/global.css */
:root {
  --base-font-size: 16px;
}


@media (min-width: 2000px) {
  :root {
    --base-font-size: 20px;
  }
}

/* Для обычных десктопов */
@media (min-width: 1024px) and (max-width: 1599px) {
  :root {
    --base-font-size: 16px;
  }
}

/* Для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --base-font-size: 14px;
  }
}

/* Для мобильных */
@media (max-width: 767px) {
  :root {
    --base-font-size: 12px;
  }
}



:root{

  --scale-ratio: 1.25;

  --text-color-simple: #666666;
  --text-color-strong: #444444;
  --text-color-darker: #222222;

  --space-xs: 0.25rem; /*4px*/
  --space-sm: 0.5rem;  /*8px*/
  --space-md: 1rem;    /*16px*/
  --space-lg: 1.5rem;  /*24px*/
  --space-xl: 2rem;    /*32px*/
}

/* старая типографика */

:root {
    --main-color: #00afca;
    --dark-theme: #2c4054;
    --background-color: #1c2833;
    --text-color: #f0f0f0;
    --input-background: #354a5f;
    --input-border: #5c6b78;
    --main-max-width: 1300px;
    --header-margin: calc((100% - var(--main-max-width)) / 2);
    --yellow-theme: #FEC502;
}


html {
    font-size: var(--base-font-size);
    color: var(--text-color-simple);
     }

/* Dark theme overrides */
body.dark-theme {
    --text-color-simple: #b8c0cc;
    --text-color-strong: #d8dde6;
    --text-color-darker: #f0f2f5;
    background-color: #111b24;
    color: var(--text-color-simple);
    color-scheme: dark;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: var(--text-color-stronger, var(--text-color-darker));
}
body.dark-theme p {
    color: var(--text-color-simple);
}

/* Base body */


:root {
  --text-xs: 0.75rem;   /* 12px  — очень мелкий текст, подписи, комментарии */
  --text-sm: 0.875rem;  /* 14px  — мелкий текст, подписи к элементам */
  --text-base: 1rem;    /* 16px  — базовый размер основного текста */
  --text-lg: 1.125rem;  /* 18px  — немного крупнее обычного, подзаголовки */
  --text-xl: 1.25rem;   /* 20px  — крупный текст, выделения */
  --text-2xl: 1.5rem;   /* 24px  — заголовки 3 уровня */
  --text-3xl: 1.875rem; /* 30px  — заголовки 2 уровня */
  --text-4xl: 2.25rem;  /* 36px  — крупные заголовки, hero-блоки */
  --text-5xl: 3rem;     /* 48px  — главный заголовок страницы */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color-strong); /* общий цвет для всех заголовков */
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
}

h2 {
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin: 0 0 var(--space-md) 0;
  font-weight: 400;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin: 0 0 var(--space-sm) 0;
  font-weight: 400;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.25;
  margin: 0 0 var(--space-sm) 0;
    font-weight: 400;
}

h5 {
  font-size: var(--text-lg);
  line-height: 1.3;
  margin: 0 0 var(--space-xs) 0;
  font-weight: 400;
}

h6 {
  font-size: var(--text-sm);
  line-height: 1.3;
  margin: 0 0 var(--space-xs) 0;
  font-weight: 400;
}

p{ font-size: var(--text-base);
 margin: 0 0 var(--space-md) 0;
 color: var(--text-color-simple:);
 }


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem; /* 10px 16px */
  font-size: var(--text-base);
  line-height: 1;
  min-height: 2.75rem; /* ~44px for touch */
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: #0b64ff;
  color: #fff;
}


.button--secondary {
  background: transparent;
  border: 1px solid #d0d7de;
  color: var(--text);
}







/* Modern approach: clamp for a responsive base heading (optional) */
.font-dark-mark {
    color: var(--text-color-darker);
}

/* Source: css/base.css */

/* PWA Install Banner */
#pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 10px 16px;
    align-items: center;
    gap: 12px;
    z-index: 9999;
}
#pwa-install-banner.pwa-banner-visible {
    display: flex;
}
.pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}
.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 13px;
}
.pwa-banner-text strong {
    font-size: 15px;
}
.pwa-btn-install {
    background: #00afca;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}
.pwa-btn-dismiss {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    padding: 4px;
    flex-shrink: 0;
}

header {
    grid-row: 1 / 2;
    background-color: var(--main-color);
    width: 100%;
    overflow: hidden; /* Чтобы избежать прокрутки хедера */
}

.image-background  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%) scale(0.75); /* Центрирует картинку в контейнере */
    transition: transform 0.2s; /* Плавный переход для эффекта */
}

.short-menu,
.long-menu {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}


nav {max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1300px) {
    nav {
        padding-left: 0px;
        padding-right: 0px;
    }
}

.short-menu{
    justify-content: space-between;
    flex-grow: 1;
}

.short-menu button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.menu-item a {
    padding: 10px;
    display: flex;
    color: white;
    text-decoration: none;
    font-size: var(--text-lg);
    height: 100%;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
}

.enter-item a {
    background-color: #fec502;
    color : #262525;

}
.enter-item a:hover {
    background-color: var(--dark-theme);
    color: white;
}


.menu-item {
    transition: background-color 0.4s ease;
}
.menu-item:hover {
    background-color: var(--dark-theme);
}
.logo-menu-item {
    margin-left: auto;
}

main {
    grid-row: 2 / 3;
    padding: 8px;
    width: 100%;
    min-height : 90vh;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

footer {
    grid-row: 3 / 4;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}
.mark-main-color{
    color: var(--main-color);
}

.content-block{
    margin-top:30px;
    margin-bottom:30px;
    padding: 20px;
    border-radius: 18px;
    box-sizing: border-box;
}

.logo-tele-icon {

    width: 22px;
    height: 22px;
    padding: 0;
    margin-right: 8px;

}
.logo-tele-icon a {
    padding: 0;
    margin:0;
    display: flex;
    flex-direction: row;
}

@media (max-width: 730px) {
    .long-menu {
        display: none;
        flex-direction: column;
        margin-left:10px;
    }
    .long-menu .menu-item{
        margin-right: 10px;
        border-radius: 10px;
    }
    .long-menu .menu-item a{
        border-radius: 10px;
    }

    .lm-marker {
        display: none !important;
    }

    .long-menu .theme-menu-item {
        display: none;
    }

    .short-menu {
        display: flex;
        flex-direction: row;
    }

}

@media (min-width: 730px) {
    .long-menu {
        display: flex;
        flex-direction: row;
    }
    .long-menu .menu-item{
        margin-right: 0px;
        border-radius: 0px;
    }
    .long-menu .menu-item a{
        border-radius: 0px;
    }
    .lm-marker {
        display: flex;
    }
    .short-menu {
        display: none;
    }
}


.messages {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
.messages li {
        padding: 15px;
        margin-bottom: 15px;
        border: 2px solid;
        border-radius: 5px;
    }
.error {
        color: rgba(255, 0, 0, 0.55);
        background-color: #fdd;
    }
.success {
        color: #0daaaf;
        background-color: #dfd;
}

.error-list li {
        color:  rgba(255, 0, 0, 0.55) !important;
    }


body {
    font-family: 'El Messiri', sans-serif;
}
.custom-placeholder{
    font-family: 'El Messiri', sans-serif;
}
::selection {
    background-color:var(--main-color);
    color: white;
}
.menu-button-frame {
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    transition: 0.3s;
    margin: 10px;
    padding: 10px;
}
    .logo-frame {
    margin-left: 10px;
    }

/* ── Dark theme toggle button ── */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: auto 8px;
    padding: 0;
    transition: border-color 0.3s, background 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
    display: block;
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none;  }
body.dark-theme .theme-toggle .icon-moon { display: none;  }
body.dark-theme .theme-toggle .icon-sun  { display: block; }

/* ── Dark theme structural overrides ── */
body.dark-theme header {
    background-color: #1a2c3d;
}
body.dark-theme footer {
    background-color: #0d1720;
    color: #b8c0cc;
}
body.dark-theme .enter-item a {
    background-color: #e6b000;
    color: #1a1a1a;
}
body.dark-theme .menu-item:hover {
    background-color: #0f2033;
}

/* Cards, panels, containers */
body.dark-theme .content-block,
body.dark-theme .triple-box,
body.dark-theme .registration-triple-box,
body.dark-theme .tariff-card,
body.dark-theme .order-card,
body.dark-theme .lk-card,
body.dark-theme .blog-card {
    background-color: #1a2c3d;
    border-color: #2a3d52;
    color: var(--text-color-simple);
}

body.dark-theme .content-block p,
body.dark-theme .content-block li,
body.dark-theme .content-block strong,
body.dark-theme .content-block span {
    color: var(--text-color-strong);
}

/* Inputs and forms */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .input-container input,
body.dark-theme .input-container textarea {
    background-color: #1e2f3f;
    border-color: #3a4f63;
    color: #e0e8f0;
}
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #6a8099;
}
body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus,
body.dark-theme .input-container input:focus,
body.dark-theme .input-container textarea:focus,
body.dark-theme .input-container input:hover,
body.dark-theme .input-container textarea:hover {
    outline-color: var(--main-color);
    border-color: var(--main-color);
    background-color: #243b4f;
    color: #ffffff;
}

body.dark-theme .order-form {
    background-color: #1a2c3d;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Links */
body.dark-theme a:not(.menu-item a):not(.triple-box-button):not(.button) {
    color: #4fc3d8;
}
body.dark-theme a:not(.menu-item a):not(.triple-box-button):not(.button):hover {
    color: #7dd8e8;
}

/* Messages/alerts */
body.dark-theme .success {
    background-color: #0d2a1a;
    color: #4fd483;
}
body.dark-theme .error {
    background-color: #2a0d0d;
    color: #f07070;
}

/* PWA banners */
body.dark-theme #pwa-install-banner {
    background-color: #1a2c3d;
    color: #e0e8f0;
}
body.dark-theme .pwa-banner-text {
    color: #b8c0cc;
}

.pwa-install-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px 16px 72px;
}

.pwa-install-panel {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid rgba(13, 16, 32, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(13, 16, 32, 0.08);
}

.pwa-install-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
}

.pwa-install-copy h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.15;
}

.pwa-install-copy p,
.pwa-platform-help p {
    margin: 0;
    color: #485166;
    line-height: 1.55;
}

.pwa-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pwa-install-primary,
.pwa-install-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.pwa-install-primary {
    border: 0;
    background: #00afca;
    color: #fff;
    cursor: pointer;
}

.pwa-install-secondary {
    border: 1px solid rgba(13, 16, 32, 0.16);
    color: #0d1020;
    background: #fff;
}

.pwa-platform-help {
    display: none;
    padding: 18px;
    border-radius: 8px;
    background: #f5f7fb;
}

.pwa-platform-help-visible {
    display: block;
}

.pwa-platform-help h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.pwa-platform-help ol {
    margin: 0;
    padding-left: 22px;
}

.pwa-platform-help li {
    margin: 8px 0;
    line-height: 1.45;
}

body.dark-theme .pwa-install-panel {
    border-color: rgba(184, 192, 204, 0.18);
    background: #1a2c3d;
    box-shadow: none;
}

body.dark-theme .pwa-install-copy p,
body.dark-theme .pwa-platform-help p {
    color: #b8c0cc;
}

body.dark-theme .pwa-platform-help {
    background: #142233;
}

body.dark-theme .pwa-install-secondary {
    border-color: rgba(184, 192, 204, 0.26);
    background: #142233;
    color: #e0e8f0;
}

@media (max-width: 620px) {
    #pwa-install-banner {
        padding: 10px;
    }

    .pwa-install-panel {
        padding: 20px;
    }

    .pwa-install-copy h1 {
        font-size: 1.55rem;
    }
}

body.dark-theme .logistics-scheme {
    filter: invert(0.9) hue-rotate(180deg);
}

/* Buttons — dimmer accents for dark theme */
body.dark-theme .submit-button,
body.dark-theme .control-form-button,
body.dark-theme .calculators-button {
    background-color: #0d8ca3 !important;
    color: #f0f2f5;
}
body.dark-theme .submit-button:hover,
body.dark-theme .control-form-button:hover,
body.dark-theme .calculators-button:hover {
    background-color: #0a6f82 !important;
    border-color: #0a6f82;
}
body.dark-theme .triple-box-button {
    background-color: #cc3700;
    color: #f0e6dc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
body.dark-theme .triple-box-button:hover {
    background-color: #e64500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
body.dark-theme .botton-register-container {
    background: linear-gradient(90deg, #b8860b, #b35200);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
body.dark-theme .botton-register-container:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}
body.dark-theme .go-and-register {
    color: #f0f2f5;
}
body.dark-theme .button {
    background-color: #1e4a99;
    color: #f0f2f5;
}
body.dark-theme .button--secondary {
    background: transparent;
    border-color: #3a4f63;
    color: var(--text-color-simple);
}


/* Source: css/text_insert.css */
p {

    line-height: 1.6;
    margin-bottom: 18px;
}

ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

ul li {

    line-height: 1.6;
    margin-bottom: 8px;
}
ul li:before {
    content: "• ";
}

.strong-theme-text {
    color: var(--main-color);
    font-weight: bold;
}


.content-block p,
.content-block li {
    color: #666666;
}

body.dark-theme .content-block p,
body.dark-theme .content-block li,
body.dark-theme .low-text-content {
    color: var(--text-color-strong);
}

.low-text-content {
    color: #666666;
}
.strong-text-content{
    color: #444444;
    font-weight: bold;
}

body.dark-theme .strong-text-content {
    color: var(--text-color-darker);
}

/* Source: css/multi-banner.css */
.multi-banner {
  width: 100%;
  background: linear-gradient(135deg, #FEC502 0%, #fffbe6 100%);
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  overflow: hidden;
}



.banner-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}


.right-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

.banner-image-dark {
  display: none;
}

.bottom-text {
  margin-top: 20px;
  margin-bottom: 6px;
  color: #444;
  line-height: 1.4;
  font-family: 'El Messiri', sans-serif;
}

.image-circle {
  margin-right: 10px;
  margin-left: auto;
  width: 400px;
  height: 350px;
  background-color: white;
  border-radius: 50%;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body.dark-theme .multi-banner {
  background: linear-gradient(135deg, #1a2c3d 0%, #2c4054 100%);
}
body.dark-theme .multi-banner .font-dark-mark {
  color: #e6b000;
}
body.dark-theme .bottom-text {
  color: #d8dde6;
}
body.dark-theme .image-circle {
  background: linear-gradient(145deg, #c8d2dc 0%, #aab7c5 100%);
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}
body.dark-theme .right-image {
  border-radius: 24px;
}
body.dark-theme .banner-image-light {
  display: none;
}
body.dark-theme .banner-image-dark {
  display: block;
  filter: brightness(0.98) contrast(1.04) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}
body.dark-theme .right-image img {
  mix-blend-mode: normal;
  filter: brightness(0.97) contrast(1.08) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  opacity: 0.96;
}

.widget-plus-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.triple-box-button {
  white-space: nowrap;
}

.menu-item.active a {
  font-weight: bold;
  color: #fec502; /* твой цвет */
}

@media (max-width: 768px) {
  .widget-plus-button {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: left;
  }

  .triple-box-button {
    white-space: normal;
  }

  .right-image img {
    max-height: 200px;
    margin-top: 10px;
    display: none;
  }

  .image-circle {
    display: none;
  }
}



/* Source: css/start-page.css */


.youtube-container {
    display: flex;
    flex-wrap: wrap;
}

.youtube-link {
    flex: 1 1 250px; /* Элемент занимает минимум 230px */
    gap: 5px;
    margin: auto;
    padding: 5px;
    overflow: hidden; /* Скрыть часть изображения, если оно выходит за пределы контейнера */
    perspective: 1000px; /* Задает перспективу для дочерних элементов */
}
.youtube-link a{

}
.youtube-link img {
    max-width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid #262525;
    transition: transform 0.5s ease; /* Плавный переход при наведении */
    transform-style: preserve-3d; /* Сохраняет 3D-эффекты */
}

.youtube-link:hover img {
    transform: scale(1.1) rotateY(10deg); /* Увеличение и поворот по оси Y */
}

.youtube-play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.youtube-play:focus-visible { outline: 3px solid #087ca8; outline-offset: 3px; }
.youtube-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 17px; border-radius: 12px; background: #d00; color: white; font-size: 20px; pointer-events: none; }
.youtube-link iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* Keep the embedded player the same size as the portrait preview tile. */
.public-page .youtube-link { aspect-ratio: 308 / 398; overflow: hidden; }
.public-page .youtube-play, .public-page .youtube-link iframe { width: 100%; height: 100%; }
.public-page .youtube-play img { width: 100%; height: 100%; object-fit: cover; }
.public-page .youtube-link iframe { aspect-ratio: auto; }

/* Rounded preview and player edges. */
.public-page .youtube-link { border-radius: 16px; background: #142532; box-shadow: 0 6px 18px rgba(17, 42, 55, .13); }
.public-page .youtube-link img { border: 0; }


/* Source: css/public-layout.css */

/* Shared geometry for public pages. Theme changes must not shift content. */
main.public-page {
    --section-inset: 20px;
    --section-gap: 32px;
    width: 100%; max-width: 1200px; min-width: 0;
    margin-inline: auto; padding: 32px 8px 40px;
    gap: var(--section-gap);
}
.public-page > br { display: none; }
.public-page .content-block {
    margin: 0; padding: var(--section-inset); min-width: 0;
}
.public-page > :is(h1,h2,h3,p) {
    padding-inline: var(--section-inset); margin: 0;
}
.public-page :is(h1,h2,h3) { text-align: left; overflow-wrap: anywhere; }
.public-page .content-block > :is(h1,h2,h3) { margin: 0 0 16px; }
.public-page .content-block > :is(p,ul,ol) + :is(h2,h3) { margin-top: 32px; }
.public-page .content-block > p { margin: 0 0 12px; line-height: 1.6; }
.public-page .content-block > :is(ul,ol) { margin: 0 0 12px; padding-left: 20px; }
.public-page .content-block > :last-child { margin-bottom: 0; }
.public-page .content-block .content-block { padding: 0; margin-block: 16px 0; }
.public-page :is(.seo-landing,.compare-landing) { gap: var(--section-gap); min-width: 0; }
.public-page .blog-grid { padding-block: 0; min-width: 0; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.public-page .blog-article-page { width: 100%; padding: 0; margin: 0 auto; }
.public-page .blog-article { padding: var(--section-inset); }
.public-page .blog-article-header { margin-bottom: 16px; }
.public-page .blog-article-body p { margin-bottom: 12px; }
.public-page .blog-article-body :is(h2,h3) { margin: 32px 0 16px; }
.public-page .seo-article { width: 100%; padding: 0; margin: 0 auto; display: grid; gap: var(--section-gap); }
.public-page .seo-article > :is(header,div,section) { margin-block: 0; padding: var(--section-inset); min-width: 0; }
.public-page .seo-article-body :is(h2,h3) { margin: 32px 0 16px; }
.public-page .seo-article-body p { margin-bottom: 12px; }
.public-page img { max-width: 100%; }
@media (max-width: 640px) {
    main.public-page { --section-inset: 16px; --section-gap: 24px; padding-block: 24px 32px; }
    .public-page :is(h1,h2,h3) { line-height: 1.25; }
    .public-page .content-block > :is(p,ul,ol) + :is(h2,h3),
    .public-page :is(.blog-article-body,.seo-article-body) :is(h2,h3) { margin-top: 24px; }
}

/* One heading family and weight across public sections and articles. */
.public-page :is(h1,h2,h3,h4,h5,h6) {
    font-family: 'El Messiri', Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
}
.public-page h2 {
    font-size: 30px;
    line-height: 1.25;
}
.public-page .youtube-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.public-page .youtube-link { min-width: 0; margin: 0; padding: 0; }
.public-page .youtube-link img { display: block; width: 100%; height: auto; }
@media (max-width: 768px) {
    .public-page .youtube-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) { .public-page h2 { font-size: 24px; } }

/* Light theme: visible sections with the existing ShipKZ blue palette. */
body:not(.dark-theme):has(> main.public-page) {
    background-color: #f4f7f9;
}
body:not(.dark-theme) main.public-page .content-block {
    background-color: #ffffff;
    border: 1px solid #dce7ec;
    box-shadow: 0 5px 18px rgba(26, 67, 83, 0.06);
}
body:not(.dark-theme) main.public-page .content-block .content-block {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Keep public links recognizable in the light theme. */
body:not(.dark-theme) main.public-page .content-block a { color: #087ca8; }
body:not(.dark-theme) main.public-page .content-block a:hover { color: #005d85; }
.public-page .content-block > ul.prohibited-list { padding-left: 0; list-style: none; }
.public-page .prohibited-list li { position: relative; padding-left: 18px; }
.public-page .prohibited-list li::before { content: "•"; position: absolute; left: 0; }
.public-page .prohibited-list li::marker { content: none; }

/* Keep navigation available while the page scrolls. */
body { height: auto; min-height: 100%; }
.site-nav-shell { position: sticky; top: 0; z-index: 1000; background: var(--main-color); transition: transform .22s ease; }
.site-nav-shell.site-nav-hidden { transform: translateY(-100%); }
body.dark-theme .site-nav-shell { background: var(--dark-theme); }
@media (max-width: 730px) {
  .site-nav-shell .long-menu { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) { .site-nav-shell { transition: none; } }

/* Laptop density; mobile and private layouts retain their existing scale. */
@media (min-width: 768px) and (max-width: 1024px) {
 body.public-page-scale { zoom: .75; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
 body.public-page-scale { zoom: calc(.75 + .15 * ((100vw - 1024px) / 176px)); }
}
@media (min-width: 1200px) and (max-width: 1440px) {
 body.public-page-scale { zoom: .9; }
}
@media (min-width: 1440px) and (max-width: 1600px) {
 body.public-page-scale { zoom: calc(.9 + .1 * ((100vw - 1440px) / 160px)); }
}


/* Source: css/triple_box.css */
.text-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.triple-box-container {
    display: flex;
    margin: 10px;
    flex-wrap: wrap;
    min-width: 80%;
}

.one-box-container {
    flex: 1 1 250px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin: 5px;
    padding: 20px;
}

.one-box-container h3 {
    display: block;
    align-self: center;
    padding-left: 20px;
    padding-right: 20px;
}

.one-box-container p {
    padding: 10px;
    text-align: justify;
}

.h3-wrapper {
    display: flex;
    width : 100%;
    align-items: center;
}

.icon-container {
    margin: 10px;
    margin-top:20px;
    width: 40px;
    height: 40px;
    align-self: center;
}
.triple-title{
    font-weight: bold;
    margin-right: auto;
    margin-left: auto;
    font-size: 21px;
    color:#444444;
}

body.dark-theme .triple-title {
    color: var(--text-color-darker);
}

/* Compact benefit cards on the Kazakhstan page. */
.triple-box-container.kz-benefits { justify-content: center; gap: 24px; margin: 12px auto; min-width: 0; }
.kz-benefits .one-box-container { flex: 1 1 250px; margin: 0; padding: 20px; border-radius: 18px; }
.kz-benefits .one-box-container p { padding: 4px 0; text-align: left; }
.kz-benefits .icon-container { margin-top: 8px; }
@media (max-width: 700px) { .kz-benefits .one-box-container { flex: 1 1 220px; } }

.kz-benefits .one-box-container { display: grid; grid-template-rows: 64px 82px 1fr; align-items: start; }
.kz-benefits .icon-container { margin: 8px auto 0; }
.kz-benefits .kz-benefit-title { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 82px; text-align: center; font-size: 21px; line-height: 1.3; font-weight: bold; color: #444; }
body.dark-theme .kz-benefits .kz-benefit-title { color: var(--text-color-darker); }
.kz-benefits .one-box-container p { margin: 0; }

/* Match the three home-page benefit cards to the Kazakhstan cards. */
.triple-box-container.home-benefits { justify-content: center; gap: 24px; margin: 12px auto; min-width: 0; }
.home-benefits .one-box-container { flex: 1 1 250px; display: grid; grid-template-rows: 64px 82px 1fr; align-items: start; margin: 0; padding: 20px; border-radius: 18px; }
.home-benefits .icon-container { margin: 8px auto 0; }
.home-benefits .triple-title { display: flex; align-items: center; justify-content: center; width: 100%; height: 82px; margin: 0; text-align: center; font-size: 21px; line-height: 1.3; }
.home-benefits .one-box-container p { margin: 0; padding: 4px 0; text-align: left; }
@media (max-width: 700px) { .home-benefits .one-box-container { flex: 1 1 220px; } }


/* Source: css/triple_register.css */
.botton-register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    margin: 50px auto;
    max-width: 800px;
    width: 90%;

    min-height: clamp(100px, 10vw, 170px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.botton-register-container:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.go-and-register {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.triple-box-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #fffbf0;
    background-color: #ff4500;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.triple-box-button:hover {
    background-color: #ff6347;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.arrow {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.triple-box-button:hover .arrow.left {
    transform: translateX(-5px);
}

.triple-box-button:hover .arrow.right {
    transform: translateX(5px);
}
.triple-image-container {
    margin: 10px;
    margin-top: 20px;
    width: 150px;
    height: 150px;
    align-self: center;
    display: flex; /* ✅ исправлено */
    justify-content: center;
    align-items: center;
}

.triple-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* масштабирует без обрезки */
    border-radius: 10px; /* по желанию */
}

body.dark-theme .one-box-container p {
    color: var(--text-color-strong);
}

body.dark-theme .triple-image-container img {
    filter: brightness(0.9) contrast(1.06) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}
body.dark-theme .triple-image-container {
    background: linear-gradient(145deg, #ccd4de 0%, #b4c0cd 100%);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}


/* Three equal steps, with smaller rounded illustrations. */
.triple-box-container.registration-steps { justify-content: center; gap: 24px; margin: 12px auto; min-width: 0; }
.registration-steps .one-box-container { flex: 1 1 250px; display: grid; grid-template-rows: 136px 52px 1fr; align-items: start; margin: 0; padding: 20px; border-radius: 18px; }
.registration-steps .triple-image-container { width: 112px; height: 112px; margin: 4px auto 0; padding: 0; overflow: hidden; border-radius: 16px; }
.registration-steps .triple-image-container img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: contain; }
.registration-steps .triple-title { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 0; text-align: center; font-size: 21px; line-height: 1.3; }
.registration-steps .one-box-container p { margin: 0; padding: 4px 0; text-align: left; }
@media (max-width: 700px) { .registration-steps .one-box-container { flex: 1 1 220px; } }
body.dark-theme .registration-steps .triple-image-container { padding: 0; }


/* Quiet registration invitation below the three steps. */
.botton-register-container.steps-register-cta { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; width: 100%; max-width: none; min-height: 0; margin: 28px 0 0; padding: 24px 28px; text-align: left; background: #f3f9fb; border: 1px solid #d7e8ee; border-radius: 18px; box-shadow: none; transform: none; }
.botton-register-container.steps-register-cta:hover { transform: none; box-shadow: none; }
.steps-register-cta-copy { max-width: 580px; }
.steps-register-cta .go-and-register { display: block; margin: 0 0 5px; color: #183a49; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; text-shadow: none; }
.steps-register-cta-copy p { margin: 0; color: #496371; font-size: 15px; line-height: 1.5; }
.steps-register-cta .triple-box-button { flex: 0 0 auto; min-height: 48px; padding: 11px 22px; border: 1px solid #ff4500; border-radius: 11px; background: #ff4500; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.2; box-shadow: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.steps-register-cta .triple-box-button:hover { background: #e63e00; border-color: #e63e00; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(180,62,0,.18); }
.steps-register-cta .triple-box-button:active { transform: translateY(0); box-shadow: none; }
.steps-register-cta .triple-box-button:focus-visible { outline: 3px solid rgba(255,111,41,.38); outline-offset: 3px; }
body.dark-theme .botton-register-container.steps-register-cta,
body.dark-theme .botton-register-container.steps-register-cta:hover { background: #203545; border-color: #36586a; box-shadow: none; }
body.dark-theme .steps-register-cta .go-and-register { color: #eef8fb; }
body.dark-theme .steps-register-cta-copy p { color: #c4d8e1; }
body.dark-theme .steps-register-cta .triple-box-button { background: #cc3700; border-color: #cc3700; color: #fff; box-shadow: none; }
body.dark-theme .steps-register-cta .triple-box-button:hover { background: #e64500; border-color: #e64500; box-shadow: 0 6px 14px rgba(0,0,0,.24); }
@media (max-width: 700px) { .botton-register-container.steps-register-cta { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; } .steps-register-cta .triple-box-button { align-self: flex-start; } }
@media (prefers-reduced-motion: reduce) { .steps-register-cta .triple-box-button { transition: none; } }

.steps-register-cta .triple-box-button, .steps-register-cta .triple-box-button:hover, .steps-register-cta .triple-box-button:focus-visible, .steps-register-cta .triple-box-button:active { color: #fff !important; }


/* Source: css/form.css */
.order-form {
        display: flex;
        flex-direction: column;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
        padding: 20px;
        border-radius: 10px;

    }

.form-country {
        display: flex;
        gap: 10px;
    }

.radio-img {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

.radio-img input[type="radio"] {
        display: none;
    }

.radio-img img {
        width: 60px;
        height: 60px;
        border: 3px solid transparent;
        border-radius: 50%;
    }

.radio-img img:hover {
        border-color: var(--main-color);
    }

.radio-img input[type="radio"]:checked + img {
        border-color: var(--main-color);
    }

.input-container input {
        padding: 5px;
    }

.row-container {
            display: flex;
            gap: 10px;
            width: 100%;
            flex-wrap: wrap;
    }


.input-container {
            flex: 1 1 300px;
            display: flex;
            flex-direction: column;
            padding-top: 10px;
            padding-bottom: 10px;
        }

.input-container input,
.input-container textarea {
            padding: 10px;
            background-color: #dedfe0;
            color: gray;
            border: 2px solid gray;
            border-radius: 5px;
            min-width: 200px;
        }
.comment-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-input-actions input,
.comment-input-actions textarea {
    flex: 1 1 auto;
    min-width: 0;
}

.input-container textarea {
    min-width: 0; /* Remove minimum width constraint */
    resize: none; /* Disable auto-resizing */
    overflow: auto;
}

.input-container input:focus,
.input-container textarea:focus {
            background-color: gray;
            color: white;
            border: 2px solid var(--main-color);
        }


.input-container input:hover,
.input-container textarea:hover {
        background-color: gray;
        color: white;
        border: 2px solid var(--main-color);
        }

.input_explain {
            font-size: 0.875rem;
            text-align: left;
            margin-bottom: 6px;
        }

.submit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 22px;
        margin-top: 20px;
        max-width: 220px;
        background-color: var(--main-color) !important;
        border: 2px solid transparent;
        border-radius: 10px;
        color: white;
        cursor: pointer;
        font-family: inherit;
        font-size: var(--text-base);
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: 0.015em;
        text-align: center;
        transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
.control-form-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        margin: 5px;
        min-width: 128px;
        max-width: 160px;
        background-color: var(--main-color);
        border: 2px solid transparent;
        border-radius: 10px;
        color: white;
        cursor: pointer;
        font-family: inherit;
        font-size: var(--text-sm);
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: 0.01em;
        text-align: center;
        transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        min-height: 40px;
    }
.control-form-button:hover {
        background-color: var(--dark-theme);
        border: 2px solid var(--dark-theme);
        transform: translateY(-1px);
    }
.remove-item-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex: 0 0 30px;
        margin: 0;
        padding: 0;
        position: relative;
        border: 1px solid rgba(0, 175, 202, 0.38);
        border-radius: 50%;
        background-color: #e9fbff;
        color: #007f95;
        cursor: pointer;
        font-family: inherit;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
.remove-item-button::before,
.remove-item-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        border-radius: 999px;
        background-color: currentColor;
        transform-origin: center;
    }
.remove-item-button::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
.remove-item-button::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
.remove-item-button:hover {
        background-color: var(--main-color);
        border-color: var(--main-color);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 175, 202, 0.2);
    }
.remove-item-button:focus-visible {
        outline: 3px solid rgba(0, 175, 202, 0.25);
        outline-offset: 2px;
    }
.submit-button:hover {
        background-color: var(--dark-theme);
        border: 2px solid var(--dark-theme);
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(44, 64, 84, 0.18);
    }
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.order-attachment-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 38px;
    max-width: 100%;
}

.order-attachment-input {
    display: none;
}

.order-attachment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    background-color: transparent;
    color: var(--main-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.order-attachment-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.order-attachment-button:hover {
    background-color: rgba(0, 175, 202, 0.08);
    border-color: var(--dark-theme);
    color: var(--dark-theme);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(44, 64, 84, 0.14);
}

.order-attachment-button:focus-visible {
    outline: 3px solid rgba(0, 175, 202, 0.25);
    outline-offset: 2px;
}

.order-attachment-name {
    display: inline-block;
    max-width: min(240px, 48vw);
    overflow: hidden;
    color: #4b5563;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plus {
    flex-grow: 1;
    min-width: 180px;
    max-width: 280px;
}

.order-form .button-container .submit-button {
    margin-top: 0;
    min-width: 180px;
}

.order-form .button-container .submit-button:not(.plus) {
    background-color: transparent !important;
    border-color: var(--main-color);
    color: var(--main-color);
}

.order-form .button-container .submit-button:not(.plus):hover {
    background-color: rgba(0, 175, 202, 0.08) !important;
    border-color: var(--dark-theme);
    color: var(--dark-theme);
}

body.dark-theme .submit-button,
body.dark-theme .control-form-button {
    background-color: #203545 !important;
    border-color: #2f5265;
    color: #f4fbfd;
}

body.dark-theme .submit-button:hover,
body.dark-theme .control-form-button:hover {
    background-color: #162735 !important;
    border-color: #4fc3d8;
}

body.dark-theme .remove-item-button {
    background-color: rgba(79, 195, 216, 0.12);
    border-color: rgba(79, 195, 216, 0.45);
    color: #9dddea;
}

body.dark-theme .remove-item-button:hover {
    background-color: #0d8ca3;
    border-color: #4fc3d8;
    color: #f4fbfd;
    box-shadow: 0 6px 16px rgba(79, 195, 216, 0.24);
}

body.dark-theme .order-form .button-container .submit-button:not(.plus) {
    background-color: transparent !important;
    border-color: #3b6273;
    color: #9dddea;
}

body.dark-theme .order-form .button-container .submit-button:not(.plus):hover {
    background-color: rgba(79, 195, 216, 0.12) !important;
    border-color: #4fc3d8;
    color: #f4fbfd;
}

body.dark-theme .order-attachment-button {
    border-color: #3b6273;
    color: #9dddea;
}

body.dark-theme .order-attachment-button:hover {
    background-color: rgba(79, 195, 216, 0.12);
    border-color: #4fc3d8;
    color: #f4fbfd;
}

body.dark-theme .order-attachment-name {
    color: #c5d7df;
}

.max_length {
    max-width: 400px;
    margin: 0 auto;
}
.row-container.good-input input{
    color: green; /* Цвет текста */
    border: 2px solid green; /* Зеленая рамка */
    background-color: #e0f7e0; /* Светло-зеленый фон */
}

.row-container.bad-input input {
    color: red; /* Цвет текста */
    border: 2px solid red; /* Красная рамка */
    background-color: #f8d7da; /* Светло-красный фон */
}
.error-list {
    color: red;
    font-size: 0.875rem;
    text-align: left;
    margin-bottom: 6px;
}
.register-link{
    display: flex;
    flex-direction: column;
}
.register-link div{
    margin-top: 5px;
}

.captcha {
    width: 150px;
    height: 50px;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}


/* Public order form inside the page section. */
main.public-page .order-form { padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.dark-theme main.public-page .order-form { background: transparent; box-shadow: none; }
main.public-page .order-form .row-container { gap: 12px 18px; }
main.public-page .order-form .input-container { padding-block: 8px; }
main.public-page .order-form .input_explain { color: #385262; font-weight: 600; }
main.public-page .order-form .input-container :is(input, textarea) { min-height: 46px; padding: 11px 13px; border: 1px solid #cbdce3; border-radius: 10px; background: #f8fbfd; color: #203846; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
main.public-page .order-form .input-container :is(input, textarea)::placeholder { color: #718994; }
main.public-page .order-form .input-container :is(input, textarea):hover { border-color: #86b7c6; background: #fff; color: #203846; }
main.public-page .order-form .input-container :is(input, textarea):focus { outline: none; border-color: #087ca8; background: #fff; color: #203846; box-shadow: 0 0 0 3px rgba(8,124,168,.14); }
main.public-page .order-form .radio-img img { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
main.public-page .order-form .radio-img:hover img { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(30,85,105,.12); }
main.public-page .order-form .radio-img input:checked + img { box-shadow: 0 0 0 3px rgba(8,124,168,.15); }
main.public-page .order-form .submit-button { min-height: 48px; border-radius: 12px; transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease; }
main.public-page .order-form .submit-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8,124,168,.18); }
main.public-page .order-form .submit-button:active { transform: translateY(0); box-shadow: 0 2px 7px rgba(8,124,168,.12); }
main.public-page .order-form .submit-button:focus-visible { outline: 3px solid rgba(8,124,168,.28); outline-offset: 3px; }
main.public-page .order-form .button-container .submit-button:not(.plus) { background: #eaf7fb !important; border-color: #9dccdc; color: #086b8e; }
main.public-page .order-form .button-container .submit-button:not(.plus):hover { background: #d7f0f8 !important; border-color: #087ca8; color: #075a7a; }
body.dark-theme main.public-page .order-form .input_explain { color: #d4e6ed; }
body.dark-theme main.public-page .order-form .input-container :is(input, textarea) { border-color: #3b6273; background: #203545; color: #f4fbfd; }
body.dark-theme main.public-page .order-form .input-container :is(input, textarea)::placeholder { color: #a9c0cb; }
body.dark-theme main.public-page .order-form .input-container :is(input, textarea):hover,
body.dark-theme main.public-page .order-form .input-container :is(input, textarea):focus { border-color: #4fc3d8; background: #263f50; color: #fff; }
body.dark-theme main.public-page .order-form .button-container .submit-button:not(.plus) { background: #203f4d !important; border-color: #4b8294; color: #d0f4fa; }
body.dark-theme main.public-page .order-form .button-container .submit-button:not(.plus):hover { background: #285368 !important; border-color: #73cee0; color: #fff; }
@media (prefers-reduced-motion: reduce) { main.public-page .order-form :is(.submit-button, .radio-img img, .input-container input, .input-container textarea) { transition: none; } }

/* Center the Add item label within the full button height. */
main.public-page .order-form #add-form { display: grid; place-items: center; height: 48px; min-height: 48px; padding: 0 20px; box-sizing: border-box; line-height: 1; }
main.public-page .order-form .button-container .submit-button.plus { flex: 0 0 auto; min-width: 136px; padding-inline: 24px; }


/* Source: css/mini_messanger.css */
.documentButton {
            background-color: #ccc;
            color: white;
            padding: 10px 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        /* Изменение цвета при наведении мыши */
.documentButton:hover {
    background-color: #00afca; /* Серый цвет при наведении */
}
.simaFor {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin: 5px;
    border: 1px solid black;
}
.simaGreen {
    background-color: lightgreen;
}
.simaRed {
    background-color: red;
}
.miniMessagerContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.miniMessanger {
    width: 70px;
    height: 70px;
    background-color: #00afca;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s; /* Добавление плавности анимации */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.miniMessanger:hover {
    transform: scale(1.2); /* Увеличение размера */
    background-color: black;
}
.chatMainContainer {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}
.messageWindowFrame {
    margin-top: 15px;
    margin-left:10px;
    max-width: 350px;
    min-height: 400px;
    max-height: 550px;
    background: white;
    border-radius: 10px;/* Поменял порядок свойств */
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.3);
}

.returnContainer{
    display: flex;
    justify-content: space-between;
    background: #fec502;


    padding: 10px;
    border-top-left-radius: 10px; /* скругление верхнего левого угла */
    border-top-right-radius: 10px;
}
.closeCustomButton {
    height: 30px;
    width: 30px;
    display: flex;
    cursor: pointer;
}
.returnText {
    display: flex;
    align-self: flex-start;
    color: black;
    font-size: 18px;
    font-weight: bold;
}
.messageWindow {
    overflow: auto;
    flex: 1;
    min-height: 50%;
    border-radius: 10px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: darkgray lightgray;
    &::-webkit-scrollbar {
        width: 2px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: darkgray;
        border-radius: 2px;
    }
    &::-webkit-scrollbar-track {
        background-color: lightgray;
    }
}
.inputContainer {
    flex-basis: 5%;
    max-height: 50%;
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
    padding-bottom: 18px;
    border-top: 1px solid grey;
    border-bottom-left-radius: 10px; /* Скругление левого нижнего угла */
    border-bottom-right-radius: 10px; /* Скругление правого нижнего угла */
}
.myTextArea {
    width: 100%;
    border-radius: 10px !important;
    flex-grow: 1;
    max-height: 250px !important;
    border: none !important;
    font-size: large !important;
    padding: 10px;
    resize: none;
    overflow-y: scroll;
    scrollbar-width: none; /* Для Firefox */
    user-select: none !important;
    -moz-user-select: none !important; /* Для Firefox */
    -ms-user-select: none !important; /* Для Internet Explorer/Edge */
    -webkit-user-select: none !important; /* Для старых версий WebKit-браузеров (Chrome, Safari) */
}
.myTextArea::-webkit-scrollbar {
    display: none !important;
}
.myTextArea {
    scrollbar-width: none !important;
}

.myTextArea:focus {
    outline: none !important;
}
.buttonsContainer{
    display: flex;
    margin: 10px;
}
.buttonAddFileContainer{
    width: 30px;
    height: 30px;
    display: flex;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
    background: #00afca;
    padding: 0;
    margin-left: 5px;
    margin-right: 5px !important;
    cursor: pointer;
    border: none;
    border-radius: 10px !important;
}

.buttonAddFileContainerInactive{
    width: 30px;
    height: 30px;
    display: flex;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    margin-left: 5px;
    margin-right: 5px !important;
    cursor: pointer;
    border: none;
    border-radius: 10px !important;

}

.buttonSendContainerInactive{
    width: 30px;
    height: 30px;
    display: flex;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    margin-left: 5px;
    margin-right: 5px;
    border: none;
}
.buttonSendContainerActive{
    height: 30px;
    width: 30px;
    display: flex;
    background: #00afca;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    border-radius: 10px !important;
}
.oneMessageContainer{
    display: flex;
    flex-direction: row;
    margin-right: 10px;
    margin-left: 10px;
}
.oneMessageLaminar{
    margin-bottom: 2px;
}
.oneMessageGap {
    margin-top: 13px;
    margin-bottom: 2px;
}
.oneMessageText{
    min-width: 20%;
    max-width: 80%;
    background: #00afca;
    padding: 10px;
    border-radius: 10px;
    font-size: large;
    color: white;
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.historyPhoto .oneMessageText {
    display: flex;
    flex-direction: column;
    max-width: min(80%, 320px);
}
.oneMessageText img:not(.fullscreen-image) {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: min(60vh, 420px) !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    cursor: zoom-in;
}
.historyPhoto .oneMessageText img:not(.fullscreen-image) {
    width: 100% !important;
}
.oneMessageText img.messenger-image-cropped:not(.fullscreen-image) {
    height: min(60vh, 420px) !important;
    object-fit: cover !important;
    object-position: center top !important;
}
.messenger-upload-status {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    min-height: 16px;
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    color: #475467;
    pointer-events: none;
}
.messenger-upload-status.error {
    color: #b42318;
}
.messenger-upload-status.success {
    color: #067647;
}
.messenger-upload-status.info {
    color: #475467;
}
.managerMessageText{
    min-width: 20%;
    background: transparent;
}
.timeElement {
    font-size: x-small; /* Пример размера шрифта */
    text-align: right;
}
.managerName {
    font-size: x-small;
}
.spacer{
    flex: 1;
}

.createSignal {
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% {
        background-color: #17bbd1;
    }
    100% {
        background-color: #eabb23;
    }}

/* Dark theme */
body.dark-theme .messageWindowFrame {
    background: #1a2c3d;
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
}
body.dark-theme .messageWindow {
    scrollbar-color: #5c6b78 #1a2c3d;
}
body.dark-theme .messageWindow::-webkit-scrollbar-thumb {
    background-color: #5c6b78;
}
body.dark-theme .messageWindow::-webkit-scrollbar-track {
    background-color: #1a2c3d;
}
body.dark-theme .inputContainer {
    border-top-color: #2a3d52;
    background-color: #1a2c3d;
}
body.dark-theme .myTextArea {
    background-color: #1a2c3d;
    color: #f0f0f0;
}
body.dark-theme .managerMessageText {
    background: #243b4f;
    color: #b8c0cc;
}
body.dark-theme .timeElement,
body.dark-theme .managerName {
    color: #7a8a9a;
}

body.dark-theme .miniMessagerContainer {
    filter: none;
}
body.dark-theme .miniMessanger {
    background: linear-gradient(145deg, #2f495f 0%, #1d3041 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-theme .miniMessanger:hover {
    background: linear-gradient(145deg, #3b5c78 0%, #24394d 100%);
    transform: scale(1.12);
}
body.dark-theme .miniMessanger a {
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-theme .miniMessanger svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
body.dark-theme .miniMessangerUnreadCounter {
    background: linear-gradient(145deg, #ff8a3d 0%, #e5482d 100%);
    color: #fff7f2;
    box-shadow: 0 6px 16px rgba(229, 72, 45, 0.45);
    border: 2px solid #1a2c3d;
}


/* Source: css/mini_messanger_update.css */
.miniMessangerHelpUnregister {
    max-width: 40vw;
    height: 60px;
    background-color: #00afca;
    color: white;
    border-radius: 25px;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    margin-left: 10px;
}

@media (max-width: 472px) {
    .miniMessangerHelpUnregister {
        font-size: 14px;
        line-height: 1.0;
    }

}

/* Для экранов шириной от 340px до 500px */
@media (min-width: 472px) and (max-width: 700px) {
    .miniMessangerHelpUnregister {
        font-size: 18px;
        line-height: 1.0;
    }

}

/* Для экранов шириной больше 500px */
@media (min-width: 500px) {
    .miniMessangerHelpUnregister {
        font-size: 21px;
    }

}


.miniMessangerHelpUnregister text-inside {
    margin-left: 5 px;
}

.miniMessangerHelpUnregister img {
    height: 90%;
    max-width: 96px;
    width: auto; /* Автоматический расчет ширины для сохранения пропорций */
    margin-right: 5px;
    object-fit: contain; /* Убедитесь, что изображение не искажается */
}

.miniMessangerHelpUnregister:hover {
    transform: scale(1.2);
    background-color: black;
    color: gold;
}

body.dark-theme .miniMessangerHelpUnregister {
    background: linear-gradient(145deg, #2f495f 0%, #1d3041 100%);
    color: #eef4fa;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-theme .miniMessangerHelpUnregister:hover {
    background: linear-gradient(145deg, #3b5c78 0%, #24394d 100%);
    color: #ffd36a;
}
body.dark-theme .miniMessangerHelpUnregister img {
    filter: brightness(0.92) contrast(1.08);
}
