/* ============================================
   ОБНОВЛЁННЫЕ СТИЛИ — 2026
   Цвета: тёплое дерево + бирюза + чистый белый
   Подход: мягкие тени, плавные переходы, чистая типографика
   ============================================ */

/* --- Офлайн страница --- */

body > div.tm-offline {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}

body > div.tm-offline input, body > div.tm-offline button {
    border-radius: 10px !important;
}

body > div.tm-offline h1 {
    color: #b8451e;
    font-family: 'Exo 2', sans-serif !important;
}

/* --- 1. Общий фон: чистый, мягкий, современный --- */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    background-image: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
    background-attachment: fixed;
    color: #1a1d24;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Редактор --- */

body#tinymce {
    padding: 20px;
}

/* --- Шапка сайта --- */

.tm-navbar.uk-navbar {
    position: sticky;
    top: 0;
    z-index: 99;
}

.tm-navbar {
    background: none;
}

li a i {
    margin-right: 10px;
}

.uk-navbar-nav.uk-hidden-small {
    display: table;
    width: 100%;
}

.tm-navbar.uk-navbar {
    border-radius: 14px;
}

/* Меню: тёплый коричневый с лёгким градиентом */

.uk-navbar-nav > li {
    float: none;
    position: relative;
    display: table-cell;
    text-align: center;
    background: linear-gradient(180deg, #8a5a2b 0%, #7a4a20 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    transition: background .25s ease;
}

.uk-navbar-nav > li:nth-child(1) {
    border-radius: 14px 0 0 14px !important;
}

.uk-navbar-nav > li:nth-last-child(1) {
    border-radius: 0 14px 14px 0 !important;
    border-right: none;
}

.uk-navbar-nav > li.uk-active > a {
    background-color: transparent;
    color: #fff;
}

.uk-navbar-nav > li.uk-active {
    background: linear-gradient(180deg, #6a3a18 0%, #5a2d10 100%);
}

.uk-navbar-nav:hover > li.uk-active {
    background: linear-gradient(180deg, #8a5a2b 0%, #7a4a20 100%);
}

.uk-navbar-nav > li > a {
    color: rgba(255,255,255,.95);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .01em;
    transition: color .2s ease;
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li.uk-open > a {
    background-color: transparent;
    color: #fff;
    outline: none;
}

.uk-navbar-nav > li:hover,
.uk-navbar-nav > li:focus,
.uk-navbar-nav > li.uk-open {
    background: linear-gradient(180deg, #6a3a18 0%, #5a2d10 100%) !important;
}

/* Выпадающее меню: мягкое, с современной тенью */

.uk-dropdown {
    width: calc(100% + 2px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaecef;
    box-shadow: 0 10px 30px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
    top: 56px !important;
    padding: 8px 12px;
}

.uk-nav-navbar > li > a {
    color: #3a3d44;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all .2s ease;
}

.uk-nav-navbar .uk-nav-header {
    color: #8a5a2b;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    padding: 8px 12px 4px;
}

.uk-nav-navbar > li > a:hover,
.uk-nav-navbar > li > a:focus {
    background: #f3f5f8;
    color: #8a5a2b;
    outline: none;
    border-radius: 8px;
}

.uk-nav-navbar > li + li {
    border-top: 1px solid #f3f5f8;
}

.uk-nav-navbar > li.uk-active {
    background: #e8f5f4;
    border-radius: 8px;
}

.uk-nav-navbar > li.uk-active > a {
    color: #0e8a86;
}

.uk-nav-navbar > li:nth-child(1) {
    border-radius: 8px;
}

.uk-nav-navbar > li:nth-last-child(1) {
    border-radius: 8px;
}

.uk-dropdown-navbar ul li a {
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 12px;
}

.uk-nav-sub > li > a {
    font-size: 14px;
    color: #6a6d74;
    padding-left: 24px;
}


/* --- Боковое меню --- */

.uk-panel-box-primary {
    background: #fff;
    color: #1a1d24;
    border: 1px solid #eaecef;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.uk-panel-title {
    color: #8a5a2b !important;
    border-bottom: 2px solid #e8e4dd;
    padding-bottom: 14px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.uk-nav-side > li > a {
    color: #3a3d44;
    line-height: 1.5;
    font-size: 15px;
    border-radius: 8px;
    transition: all .2s ease;
}

.uk-nav > li > a {
    padding: 6px 14px;
}

.uk-nav-side > li > a:hover {
    background: #f3f5f8;
    color: #8a5a2b;
}

.uk-nav-side > li.uk-active > a {
    background: #e8f5f4;
    color: #0e8a86;
    font-weight: 500;
}


/* --- Футер --- */

.tm-footer {
    background: linear-gradient(180deg, #8a5a2b 0%, #7a4a20 100%);
    border-radius: 14px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(122,74,32,.15);
}

.tm-footer > .uk-panel {
    color: rgba(255,255,255,.9);
}

.tm-footer a {
    color: rgba(255,255,255,.85);
    transition: color .2s ease;
}

.tm-footer a:hover {
    color: #fff;
}


/* --- Логотип --- */

.logo_table {
    display: table;
    font-family: 'Inter', sans-serif;
}

.logo_cell {
    display: table-cell;
    vertical-align: middle;
}

.logo_cell img {
    height: 80px;
    margin-right: 20px;
    border-radius: 10px;
}

.tm-logo {
    text-decoration: none !important;
}

.logo_cell p {
    text-align: left;
    font-size: 28px;
    line-height: 32px;
    color: #8a5a2b;
    margin: 0;
    font-weight: 700;
    letter-spacing: -.01em;
}

.logo_cell p span {
    color: #0e8a86;
}


/* --- Контакты в шапке --- */

.tm-headerbar .uk-panel {
    max-width: none;
}

.kontakty {
    display: inline-block;
    float: right;
    text-align: right;
}

.kontakty a {
    display: block;
    text-decoration: none;
    color: #3a3d44;
    font-size: 15px;
    transition: color .2s ease;
}

.kontakty a:hover {
    color: #8a5a2b;
}

.kontakty a img {
    height: 18px;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.kontakty a i {
    margin-right: 10px;
}

.kontakty a + a {
    margin-top: 6px;
}

a.vg {
    color: #e85a3c;
    font-weight: 500;
    text-shadow: none;
    transition: color .2s ease;
}

a.vg:hover {
    color: #0e8a86;
}


/* --- Адаптируем шапку --- */

@media (max-width: 970px) {
    .logo_cell p {
        font-size: 24px;
    }
}

@media (max-width: 880px) {
    .kontakty a {
        font-size: 14px;
    }
    .logo_cell p {
        font-size: 22px;
    }
}


/* --- Шапка на мобильной версии --- */

@media (max-width: 767px) {
    .tm-navbar.uk-navbar {
        background: #fff;
        color: #1a1d24;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 12px rgba(0,0,0,.08);
    }
    .tm-navbar.uk-navbar {
        border-radius: 0;
    }
}

.tm-logo-small {
    letter-spacing: 0;
    display: inline-block;
}

.uk-navbar-center {
    max-width: 90%;
}

.tm-logo-small p {
    display: inline-block;
    margin: 0;
}

.tm-logo-small a {
    display: inline-block;
    text-decoration: none;
    color: #0e8a86;
    position: relative;
    top: 2px;
}


/* --- Модальное окно --- */

.uk-modal-dialog {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.modal_title {
    font-size: 22px;
    color: #8a5a2b;
    font-weight: 600;
}

.uk-modal-header {
    border-bottom: 1px solid #eaecef;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.uk-modal-footer {
    margin-top: 16px;
    border-top: 1px solid #eaecef;
    padding-top: 20px;
}

.uk-modal-footer button.uk-width-1-1 + button.uk-width-1-1 {
    margin-top: 16px;
}

.uk-button {
    border-radius: 10px;
    line-height: 1.5;
    padding: 10px 18px;
    background: linear-gradient(180deg, #8a5a2b 0%, #7a4a20 100%);
    color: #fff;
    font-weight: 500;
    border: none;
    transition: all .25s ease;
}

.uk-button:hover {
    background: linear-gradient(180deg, #7a4a20 0%, #6a3a18 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122,74,32,.25);
}

.uk-button:active, .uk-button:focus {
    background: #6a3a18;
    color: #fff;
    transform: translateY(0);
}

.uk-button-primary {
    background: linear-gradient(180deg, #14b8af 0%, #0e8a86 100%);
    color: #fff;
}

.uk-button-primary:hover {
    background: linear-gradient(180deg, #0e8a86 0%, #0a6e6b 100%);
}

.viber {
    background: #7a509c;
}

.whatsapp {
    background: #00c867;
}


/* --- Шрифты --- */

* + p, * + ul, * + ol, * + dl, * + blockquote, * + pre, * + address, * + fieldset, * + figure {
    margin-top: 12px;
}

p, ul, ol, dl, blockquote, pre, address, fieldset, figure {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

h1, .uk-h1 {
    font-size: 32px;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1d24;
    letter-spacing: -.02em;
}

h2, .uk-h2 {
    font-size: 26px;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1a1d24;
}

h3, .uk-h3 {
    font-size: 22px;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

h4, .uk-h4 {
    font-size: 18px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

h5, .uk-h5 {
    font-size: 16px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

h6, .uk-h6 {
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}


/* --- Выбор города --- */

.oblasti, .goroda {
    display: block;
    border-radius: 10px;
    padding: 8px 16px;
    color: #fff;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 15px;
    transition: all .25s ease;
}

.oblasti {
    background: linear-gradient(180deg, #8a5a2b 0%, #7a4a20 100%);
}

.goroda {
    background: linear-gradient(180deg, #14b8af 0%, #0e8a86 100%);
}

.oblasti + .oblasti, .goroda + .goroda {
    margin-top: 8px;
}

.oblasti:hover {
    background: linear-gradient(180deg, #7a4a20 0%, #6a3a18 100%);
    color: #fff;
    transform: translateX(2px);
}

.goroda:hover {
    background: linear-gradient(180deg, #0e8a86 0%, #0a6e6b 100%);
    color: #fff;
    transform: translateX(2px);
}


/* --- Контакты в разделе контакты --- */

.kontakt {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -10px;
}

.kontakt a {
    flex-grow: 1;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 17px;
    text-align: left;
    margin: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: all .25s ease;
}

.kontakt a:hover {
    background: #fff;
    border-color: #8a5a2b;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

@media (max-width: 370px) {
    .kontakt a {
        font-size: 14px;
    }
}

.kontakt a i[class="uk-icon-hand-o-up"] {
    transform: rotate(-24deg);
    float: right;
    margin-left: 15px;
    margin-top: 5px;
    color: #8a5a2b;
}


/* --- Города доставки --- */

div.gdost {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -4px -4px -4px;
}

a.gdost {
    flex-grow: 0;
    background: #f7f8fa;
    border: 1px solid #eaecef;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
    margin: 4px;
    color: #3a3d44;
    transition: all .2s ease;
}

a.gdost:hover, a.gdost:focus, a.gdost:active {
    background: #e8f5f4;
    border-color: #0e8a86;
    color: #0e8a86;
}


/* --- Форма обратной связи --- */

.obrs, .obrsv {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: -8px;
}

.obrs > *, .obrsv > * {
    flex-grow: 1;
    border-radius: 10px !important;
    padding: 10px 16px;
    font-size: 16px;
    margin: 8px;
    line-height: 1.5;
    border: 1px solid #e0e3e8;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.obrs > input, .obrsv > input {
    height: auto;
    padding: 12px 16px;
    margin: 8px;
    background: #fff !important;
}

.obrs > input:focus, .obrsv > input:focus {
    border-color: #0e8a86;
    box-shadow: 0 0 0 3px rgba(14,138,134,.12);
    outline: none;
}

.obrs > textarea, .obrsv > textarea {
    width: 100%;
    resize: none;
    height: 130px;
    background: #fff;
}

.obrs > textarea:focus, .obrsv > textarea:focus {
    border-color: #0e8a86;
    box-shadow: 0 0 0 3px rgba(14,138,134,.12);
    outline: none;
}

.obrs > button, .obrsv > button {
    width: 100%;
    border: none;
}

#resul, #resul2 {
    border-radius: 10px;
    line-height: 1.5;
    padding: 12px 18px;
    background: linear-gradient(180deg, #14b8af 0%, #0e8a86 100%);
    color: #fff;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

#resul:empty, #resul2:empty {
    display: none;
}

.spoiler {
    display: none;
}

button.fos i {
    margin-right: 10px;
}

button.fos {
    position: fixed;
    right: -103px;
    top: 50%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    width: 250px;
    transform: rotate(-90deg);
    border-radius: 10px 10px 0 0;
    text-align: center;
    z-index: 99;
    letter-spacing: .03em;
    transition: all .25s ease;
}

@media (max-width: 768px) {
    button.fos {
        right: -73px;
        padding: 6px;
        box-sizing: border-box;
        display: block;
        font-size: 14px;
        height: auto;
        min-height: auto;
        width: 170px;
    }
}


/* --- Widgetkit --- */

ul.uk-slideshow li > * {
    border-radius: 14px;
}

figure img, figure {
    border-radius: 10px;
}

figure {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    overflow: hidden;
}

p img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s ease, transform .3s ease;
}

p img:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    transform: scale(1.01);
}

p img + img {
    margin-top: 16px;
}


/* --- Картинки флексом --- */

p.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -12px 16px -12px;
}

p.flex > img {
    flex-grow: 1;
    cursor: pointer;
    border-radius: 12px;
    margin: 12px;
    max-height: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: box-shadow .3s ease, transform .3s ease;
}

p.flex > img:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    transform: translateY(-2px);
}


/* --- Страница городов (современная, чистая) --- */

.goroda-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    font-family: 'Inter', Arial, sans-serif;
    color: #1a1d24;
    line-height: 1.6;
}

.goroda-page h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.intro {
    margin: 0 0 20px;
    color: #5a5d64;
    font-size: 16px;
}

.goroda-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.letter-btn {
    border: 1px solid #eaecef;
    background: #fff;
    color: #3a3d44;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    transition: all .2s ease;
}

.letter-btn:hover {
    background: #f7f8fa;
    border-color: #d0d4da;
}

.letter-btn[aria-pressed="true"] {
    border-color: #0e8a86;
    background: rgba(14,138,134,.08);
    color: #0e8a86;
    font-weight: 600;
}

.goroda-results {
    border: 1px solid #eaecef;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    min-height: 120px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.results-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1d24;
}

.goroda-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.goroda-grid a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #eaecef;
    background: #fff;
    color: #0e8a86;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    transition: all .2s ease;
}

.goroda-grid a:hover {
    text-decoration: none;
    background: #e8f5f4;
    border-color: #0e8a86;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14,138,134,.15);
}

.hint {
    color: #6a6d74;
    line-height: 1.7;
    font-size: 15px;
}

@media (max-width: 560px) {
    .goroda-page {
        padding: 16px 14px 32px;
    }
    .goroda-page h1 {
        font-size: 24px;
    }
    .letter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Главный контейнер: резиновый, с ограничением по ширине, но не жёстким */
.contacts-section {
  max-width: 720px;       /* на ПК — не слишком широкий */
  width: 96%;              /* на телефоне — почти во всю ширину */
  margin: 0 auto;          /* центрирование */
  padding: 24px;           /* внутренние отступы, чтобы не прилипало к краям */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  box-sizing: border-box;  /* padding не ломает ширину */
}

/* Заголовок: крупный, но не огромный */
.contacts-section h1 {
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 20px 0;
  color: #2c3e50;
}

/* Блок преимуществ: на ПК в ряд, на телефоне в колонку */
.region-service p {
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #444;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.benefits li {
  background: #f8f9fa;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
}

/* Подзаголовок контактов */
.contact-options h2 {
  text-align: center;
  font-size: 18px;
  margin: 30px 0 15px 0;
  color: #333;
}

/* Общий стиль для элементов связи */
.contact-item {
  margin-bottom: 16px;
  text-align: center;
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

/* Кнопка WhatsApp — зелёная, удобная для пальца */
.contact-item a[href^="https://wa.me"] {
  display: inline-block;
  background-color: #25D366;
  color: white !important;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 240px;      /* чтобы на мобильном была достаточно широкой */
  text-align: center;    /* текст по центру кнопки */
}

.contact-item a[href^="https://wa.me"]:hover {
  background-color: #128C7E;
  transform: translateY(-1px);
}

/* Кнопка почты — синяя, чуть спокойнее */
.contact-item a[href^="mailto:"] {
  display: inline-block;
  background-color: #3B82F6;
  color: white !important;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 240px;
  text-align: center;
}

.contact-item a[href^="mailto:"]:hover {
  background-color: #2563EB;
  transform: translateY(-1px);
}

/* Информация о доставке — нейтральная полоса сверху */
.delivery-info {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed #ccc;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* АДАПТИВНОСТЬ: для телефонов и узких экранов */
@media (max-width: 520px) {
  .contacts-section {
    width: 100%;
    padding: 16px;
    border: none;         /* на мобильном можно убрать рамку для простоты */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .contacts-section h1 {
    font-size: 20px;
  }

  .benefits {
    flex-direction: column;
    align-items: stretch; /* пункты на всю ширину */
  }

  .benefits li {
    text-align: center;
  }

  .contact-item a[href^="https://wa.me"],
  .contact-item a[href^="mailto:"] {
    width: 100%;          /* кнопки на всю ширину, чтобы легко нажимать пальцем */
    min-width: auto;
    box-sizing: border-box;
  }
}