/*
  style2.css
  Clean responsive CSS for pages generated with Artisteer classes.
  Replaces: style.css + style.responsive.css for layout/design.
  For responsive layout this file does not need jquery.js, script.js, script.responsive.js.
*/

:root {
  --page-bg: #f3f7fb;
  --sheet-bg: #ffffff;
  --text: #24323d;
  --muted: #64748b;
  --link: #0b73c8;
  --link-hover: #075a9d;
  --brand: #0b73c8;
  --brand-dark: #075a9d;
  --brand-soft: #e8f3ff;
  --border: #d9e3ec;
  --border-soft: #edf2f7;
  --card-bg: #ffffff;
  --shadow: 0 14px 35px rgba(31, 51, 73, 0.10);
  --radius: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 115, 200, 0.13), transparent 32rem),
    linear-gradient(180deg, #eaf4ff 0, var(--page-bg) 260px, #ffffff 100%);
  font: 16px/1.55 Arial, "Arial Unicode MS", Helvetica, sans-serif;
}

#art-main {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Top menu */
.art-nav {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 16px auto 0;
  padding: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 28px rgba(11, 115, 200, 0.20);
}

ul.art-hmenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.art-hmenu li {
  margin: 0;
  padding: 0;
}

ul.art-hmenu a,
ul.art-hmenu a:link,
ul.art-hmenu a:visited {
  display: block;
  padding: 13px 22px;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius);
}

ul.art-hmenu a:hover,
ul.art-hmenu a.active,
ul.art-hmenu a.active:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* Page shell */
.art-sheet {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 18px auto 24px;
  padding: clamp(14px, 2.2vw, 30px);
  background: var(--sheet-bg);
  border: 1px solid rgba(217, 227, 236, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.art-layout-wrapper,
.art-content-layout,
.art-content-layout-row,
.art-layout-cell,
.art-content,
.art-post,
.art-article,
.art-postcontent {
  max-width: 100%;
}

.art-content-layout {
  width: 100%;
  margin: 0;
}

.art-content-layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.art-layout-cell {
  min-width: 0;
  padding: 0 12px;
}

.art-content {
  width: 100%;
  padding: 0;
}

.art-post {
  margin: 0;
}

.art-postcontent {
  color: var(--text);
  font-size: clamp(17px, 1.55vw, 20px);
  overflow-wrap: anywhere;
}

.art-postcontent p {
  margin: 10px 0;
}

.art-postcontent h1,
.art-postcontent h2,
.art-postcontent h3,
.art-postcontent h4,
.art-postcontent h5,
.art-postcontent h6 {
  margin: 0 0 14px;
  color: #1d3345;
  font-weight: 700;
  line-height: 1.2;
}

.art-postcontent h1 {
  margin-top: 14px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.art-postcontent h2 {
  margin-top: 24px;
  font-size: clamp(22px, 3vw, 32px);
}

.art-postcontent h3 {
  margin-top: 22px;
  font-size: clamp(20px, 2.4vw, 26px);
  clear: both;
}

.art-postcontent h4 {
  margin-top: 10px;
  font-size: clamp(17px, 2vw, 21px);
}

.art-postcontent a,
.art-postcontent a:link,
.art-postcontent a:visited {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

.art-postcontent a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.art-postcontent img {
  max-width: 100%;
  height: auto !important;
  border-radius: 12px;
  vertical-align: middle;
}

.art-postcontent hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Header/logo row inside content */
.art-postcontent > .art-content-layout:first-child {
  margin-bottom: 22px;
  padding: 14px;
  background: var(--brand-soft);
  border: 1px solid #cfe6fb;
  border-radius: var(--radius);
}

.art-postcontent > .art-content-layout:first-child .art-content-layout-row {
  align-items: center;
}

.art-postcontent > .art-content-layout:first-child img {
  display: block;
  width: min(130px, 100%);
  margin: 0 auto;
  border-radius: 50%;
}

/* Cards: clinic rows, clinic detail blocks, doctors blocks */
.art-postcontent > .art-content-layout:not(:first-child) {
  margin: 18px 0;
  padding: clamp(12px, 2vw, 20px);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 51, 73, 0.07);
}

.art-postcontent > .art-content-layout:not(:first-child):hover {
  border-color: #c8d8e7;
  box-shadow: 0 12px 30px rgba(31, 51, 73, 0.10);
}

.art-postcontent > .art-content-layout:not(:first-child) .art-layout-cell:first-child img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  background: #f4f7fa;
}

/* Clinic/list item titles */
.art-postcontent .art-content-layout a[href*="/clinics/"] {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

/* City list on the main page */
.art-postcontent > p > a[href*="stomatolog-v-"] {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfdff;
  font-weight: 600;
}

.art-postcontent > p > a[href*="stomatolog-v-"]:hover {
  background: var(--brand-soft);
  border-color: #cfe6fb;
  text-decoration: none;
}

/* Pagination links */
.art-postcontent h1 + p a {
  display: inline-block;
  min-width: 38px;
  margin: 0 4px 8px 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  font-weight: 700;
}

.art-postcontent h1 + p a:hover,
.art-postcontent h1 + p a:has(b) {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  text-decoration: none;
}

/* Old inline helper classes moved from page <style> blocks */
.art-content .art-postcontent-0 .layout-item-old-0 {
  margin-bottom: 5px;
}

.art-content .art-postcontent-0 .layout-item-old-1 {
  border-spacing: 10px 0;
  border-collapse: separate;
}

.art-content .art-postcontent-0 .layout-item-old-2 {
  padding-right: 10px;
  padding-left: 10px;
  border: 1px solid #bbc5c9;
}

/* Footer */
.art-footer {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
}

.art-footer-inner {
  padding: 16px clamp(14px, 2vw, 24px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.art-footer p {
  margin: 0;
}

/* Forms/search blocks, if inserted into <!-- search_1 --> */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  max-width: 100%;
  padding: 11px 13px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  outline: none;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 115, 200, 0.12);
}

button,
.art-button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.art-button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Tables/lists, for similar pages */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

ul,
ol {
  margin: 10px 0 16px 1.35em;
  padding: 0;
}

li {
  margin: 6px 0;
}

/* Narrow screens */
@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  .art-nav,
  .art-sheet,
  .art-footer {
    width: calc(100% - 16px);
  }

  .art-nav {
    margin-top: 8px;
    border-radius: 14px;
  }

  ul.art-hmenu {
    display: block;
  }

  ul.art-hmenu a,
  ul.art-hmenu a:link,
  ul.art-hmenu a:visited {
    padding: 12px 14px;
    text-align: center;
    border-radius: 14px;
  }

  .art-sheet {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .art-content-layout-row {
    display: block;
  }

  .art-layout-cell {
    width: 100% !important;
    padding: 0 !important;
  }

  .art-postcontent > .art-content-layout:first-child {
    text-align: center;
  }

  .art-postcontent > .art-content-layout:not(:first-child) {
    padding: 12px;
    border-radius: 14px;
  }

  .art-postcontent > .art-content-layout:not(:first-child) .art-layout-cell:first-child img {
    max-height: none;
    object-fit: contain;
  }

  .art-postcontent h1 {
    margin-top: 12px;
  }

  .art-postcontent p {
    margin: 9px 0;
  }
}

/* Very narrow screens */
@media (max-width: 420px) {
  .art-nav,
  .art-sheet,
  .art-footer {
    width: calc(100% - 10px);
  }

  .art-sheet {
    padding: 10px;
  }

  .art-postcontent {
    font-size: 16px;
  }

  .art-postcontent .art-content-layout a[href*="/clinics/"] {
    font-size: 19px;
  }
}

/* Print */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .art-nav,
  .art-footer {
    display: none;
  }

  .art-sheet,
  .art-postcontent > .art-content-layout:not(:first-child) {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .art-postcontent a {
    color: #000000;
    text-decoration: underline;
  }
}
/* City list on the main page */
.city-list {
  margin-top: 18px;
}

.city-list p {
  margin: 8px 0;
}

.city-list a,
.city-list a:link,
.city-list a:visited {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.city-list a:hover {
  background: var(--brand-soft);
  border-color: #cfe6fb;
  color: var(--link-hover);
  text-decoration: none;
}
/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  align-items: center;
}

.pagination a,
.pagination a:link,
.pagination a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(31, 51, 73, 0.06);
  transition: 0.2s ease;
}

.pagination a:hover {
  background: var(--brand-soft);
  border-color: #cfe6fb;
  color: var(--link-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.pagination a.is-active,
.pagination a.is-active:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(11, 115, 200, 0.22);
}