/*      
	Theme Name: Help Hospital
	Author: the Existek team
	Author URI: https://existek.com/
	Version: 1.0
*/

/*! NORMALIZE.CSS v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

 /*------------------END OF NORMALIZE.CSS---------------*/
 
  /*-------------------------FONTS ----------------------------*/
 @font-face { 
	font-family: SourceSansPro-Regular;
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/SourceSansPro-Regular.woff2") format("woff2"), 
		url("./fonts/SourceSansPro-Regular.woff") format("woff")
}

@font-face { 
	font-family: SourceSansPro-Semibold;
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/SourceSansPro-Semibold.woff2") format("woff2"), 
		url("./fonts/SourceSansPro-Semibold.woff") format("woff")
}
 
@font-face { 
	font-family: SourceSansPro-Bold;
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/SourceSansPro-Bold.woff2") format("woff2"), 
		url("./fonts/SourceSansPro-Bold.woff") format("woff")
}

@font-face {     
	font-family: Inter-Light;    
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/Inter-Light.woff2") format("woff2"), 
		url("./fonts/Inter-Light.woff") format("woff")
} 

@font-face {       
	font-family: Inter-Regular;    
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/Inter-Regular.woff2") format("woff2"), 
		url("./fonts/Inter-Regular.woff") format("woff")
} 

@font-face {       
	font-family: Inter-Medium;    
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/Inter-Medium.woff2") format("woff2"), 
		url("./fonts/Inter-Medium.woff") format("woff")
} 

@font-face {       
	font-family: Inter-Bold;    
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/Inter-Bold.woff2") format("woff2"), 
		url("./fonts/Inter-Bold.woff") format("woff")
}
      
 
/*------------------VARIABLES---------------*/
 :root {
    --main-bg-color: #FFFFFF;
    --main-text-color: #363636;
    --main-block-background: #FAFAFA;
    --title-color: #063AA1;
    --main-button-color: #1C63ED;
    --form-button-color: #FF7205;
    --main-font-size: 16px;
    --main-line-height: 1.5;
    --title-font-size: 62px;
    --section-title-font-size: 40px;
    --subtitle-font-size: 24px;
    --main-padding-bottom: 96px;
    --block-mb: 48px;
 }
  
 @media (max-width: 980px) {
	:root {
	    --main-padding-bottom: 72px;
    }
}
 
 @media (max-width: 640px) {
	:root {
	    --main-padding-bottom: 48px;
    	--block-mb: 24px;
        --element-mb: 12px;
    }
}
 
 /* -----------GENERAL STYLES------------------*/

html {
    box-sizing: border-box;
    height: 100%;
    scroll-behavior: smooth;
} 
*,
*::before,
*::after {
    box-sizing: inherit;
}
* {
    margin: 0;
    padding: 0;
}
a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    color: var(--main-button-color);
    transition: all .4s;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}
ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
ol li {
    list-style: inherit;
}
body {
    font-family: Inter-Light;
    font-weight: 300;
    font-size: var(--main-font-size);
    line-height: var(--main-line-height);
    color: var(--main-text-color);
    background-color: var(--main-bg-color);  
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
body.lock,
body.popup-lock {
    overflow: hidden;
}
.container {
    max-width: 1230px;
    padding: 0 15px;
    margin: 0 auto;
}
main {
	flex: 1 1 0;
}

:lang(fr) strong,
:lang(es) strong,
:lang(pt) strong,
:lang(fr) a,
:lang(es) a,
:lang(pt) a {
   margin-left: 0.15em;
   margin-right: 0.15em;
}


/*---------------MAIN-CLASSES--------------*/

.top-title,
.section-title {
	color: var(--main-text-color);
    font-size: var(--title-font-size);
    line-height: 1.25;
    font-family: SourceSansPro-Bold;
    font-weight: 700;
}

@media (max-width: 640px) {
	.top-title {
		font-size: 40px;
    }
}

.block-subtitle {
    font-size:  24px;
    line-height: 1.25;
    font-family: SourceSansPro-Bold;
    font-weight: 700;
    color: var(--main-text-color);
}
.common-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 131px;
    background-color: var(--main-button-color);
    border: 2px solid var(--main-button-color);
    padding: 12px 24px;
    border-radius: 24px;
    color: var(--main-bg-color);  
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
    font-family: SourceSansPro-Bold; 
    font-weight: 700;
    transition: all .4s;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 8px 0 rgba(28, 99, 237, 0.12);
}
.common-btn:hover,
.common-btn:focus {
    color: var(--main-button-color);
    background-color: var(--main-bg-color);
}
.page-bottom-padding { 
    padding-bottom: var(--main-padding-bottom);
}
.block-margin {
    margin-bottom: var(--block-mb);
}
.element-margin {
    margin-bottom: var(--element-mb);
}
.flex {
    display: flex;
}
.main-block {
    padding: 24px;
    border-radius: 16px;
    background-color: var(--main-bg-color);
    box-shadow: 0px 4px 12px 0px rgba(6, 58, 161, 0.08), 0px 8px 24px 0px rgba(6, 58, 161, 0.04);
}

/*----------------------------------------SEARCH FORM-------------------------*/
#search-form {
    display: flex;    
    align-items: center;   
    gap: 12px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 8px 12px 0px rgba(6, 58, 161, 0.08), 0px 32px 64px 0px rgba(6, 58, 161, 0.08);
    overflow: hidden;
    padding-right: 32px;
}
#search-input {
    background: #fff;
    background-image: none !important;
    color: var(--main-text-color);
    margin: 0;
    outline: 0 !important;
    font-size: 18px !important;
    line-height: var(--main-line-height);
    min-height: 0;
    border-radius: 16px;
    border: none !important;
    font-family: inherit;
    width: 100%;
    padding: 0 32px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}
#search-button {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding-right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
#search-button:disabled {
	cursor: auto;
}
.search-results__info {
	font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
    font-family: Inter-Regular;
    color: #989898;
}
.search-results__link,
.search-results__info span {
	color: var(--main-text-color);
}
.search-results__link {
    width: 100%;
	transition: all 0.5s;
}    
.search-results__link:hover,
.search-results__link:focus {
	background-color: #EEF3FE;
    transition: all 0.5s;
}
.search-results__title {
    margin-bottom: 16px;
}
.search-results__title .highlight {
	font-size: 24px;
    line-height: 1.25;
}
.search-results__text {
	font-family: SourceSansPro-Regular;
	font-weight: 400;
}
.highlight {
    background-color: transparent !important;
    color: var(--main-button-color);
    font-family: SourceSansPro-Bold; 
    font-weight: 700;
    font-size: 16px;
}
.searching-message {
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.spinner {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #1C63ED; 
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    text-align: center;
    margin-top: 30px;
}
.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    color: var(--main-text-color);
    text-decoration: none;
    font-size: 18px;
    font-family: 'SourceSansPro-Bold';
    padding: 6px 16px;
    border-radius: 16px;
    background-color: var(--main-bg-color);
    box-shadow: 0px 4px 12px 0px rgba(6, 58, 161, 0.08), 0px 8px 24px 0px rgba(6, 58, 161, 0.04);
}
.pagination .page-numbers.current {
    background-color: #063AA1;
    color: var(--main-bg-color);
}
.pagination .page-numbers:not(.page-numbers.current):hover {
    background-color: #EEF3FE;
}
.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/*----------------------------------------BREADCRUMBS-------------------------*/
.info__breadcrumbs {
	margin-bottom: var(--block-mb);
}
.info__breadcrumbs .home,
.info__breadcrumbs .category,
.info__breadcrumbs .current-item {
	font-size: 12px;
    line-height: 15px;
    font-family: Inter-Regular;
    font-weight: 400;
    color: var(--main-text-color);
}
.info__breadcrumbs .current-item {
	color: #989898;
}
.info__breadcrumbs .breadcrumbs span:not(:last-child)::after {
     content: url('images/breadcrumbs-arrow.svg');
     margin-left: 12px;
     margin-right: 12px;
}
.info__breadcrumbs .breadcrumbs span.current-item::after {
	content: '';
}

/*----------------------------------------HEADER-------------------------*/
.header {
	position: sticky;
    top: 0;
    z-index: 20;
	padding: 32px 0;
    background-color: var(--main-bg-color);
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12);
}
.header__nav-logo,
.header__nav-logo img {
	width: 269px;
    height: 36px;
}
.header__nav {
	justify-content: space-between;
    align-items: center;
}
.header-lang.weglot-wrapper {
    margin-left: 36px;
}

/*----------------------------------------FOOTER-------------------------*/
.footer {
	background: #010D24;
    color: var(--main-bg-color);
    padding: 36px 0;
}
.footer-info {
	font-family: SourceSansPro-Regular; 
    font-weight: 400;
    font-size: 18px;
    text-align: center;
}

/*----------------------------------------HOME PAGE-------------------------*/
.home-search {
	padding: 66px 0px;
    background: linear-gradient(273deg, rgba(28, 99, 237, 0.00) 0.35%, #063AA1 53.56%), linear-gradient(0deg, #1C63ED 21.63%, #063AA1 100%);
    margin-bottom: 80px;
}
.home-search__title {
	font-size: 52px;
    color: var(--main-bg-color);
    text-align: center;
    margin-bottom: 32px;
}
.home-categories__link {
	display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    background-color: var(--main-bg-color);
    transition: all 0.5s;
}
.home-categories__link + .home-categories__link,
.search-results__link + .search-results__link {
	margin-top: 24px;
}
.home-categories__description {
	color: var(--main-text-color);
}
.home-categories__title {
    margin-bottom: 4px;
}
.home-categories__description {
	margin-bottom: 12px;
}
.home-categories__amount,
.category-block__amount {
	color: #989898;
    font-size: 12px;
}
.home-categories__images,
.category-block__image {
	position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.home-categories__image--hover {
	position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
}

.home-categories__link:hover,
.home-categories__link:focus {
	background: linear-gradient(0deg, #1C63ED 0%, #063AA1 100%);
	box-shadow: 0px 8px 12px 0px rgba(6, 58, 161, 0.08), 0px 16px 32px 0px rgba(6, 58, 161, 0.08);
    transition: all 0.5s;
}
.home-categories__link:hover .home-categories__title,
.home-categories__link:focus .home-categories__title,
.home-categories__link:hover .home-categories__description,
.home-categories__link:focus .home-categories__description,
.home-categories__link:hover .home-categories__amount,
.home-categories__link:focus .home-categories__amount {
	color: var(--main-bg-color);
}
.home-categories__link:hover .home-categories__image,
.home-categories__link:focus .home-categories__image {
	opacity: 0;
}
.home-categories__link:hover .home-categories__image--hover,
.home-categories__link:focus .home-categories__image--hover {
	opacity: 1;
}

/*----------------------------------------CATEGORY-------------------------*/
.category-block {
	padding-top: var(--block-mb);
}
.category-block__image { 
	position: static;
    margin-bottom: 12px;
}
.category-block__amount {
	margin-top: 12px;
}
.category-block__info {
	padding: 20px;
    box-shadow: 0px 8px 12px 0px rgba(6, 58, 161, 0.08), 0px 32px 64px 0px rgba(6, 58, 161, 0.08);
    margin-top: 24px;
}
.category-block__link {
	padding: 0 12px 16px;
    border-bottom: 1px solid #EEF3FE;
    margin-bottom: 16px;
    width: 100%;
    transition: all 0.5s;
}
.category-block__link:hover .category-block__title,
.category-block__link:focus .category-block__title {
	color: var(--title-color);
    transition: all 0.5s;
}

.category-block__info-box {
	align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 4px;
    padding: 12px 16px;
    transition: all 0.5s;
    cursor: pointer;
}
.category-block__info-title {
	color: var(--main-text-color);
    font-family: SourceSansPro-Regular;
	font-weight: 400;
    line-height: 20px;	
	font-size: 16px;
}
.category-block__info-icon {
	width: 24px;
    height: 24px;
    flex-shrink: 0;
    transform: rotate(-90deg);
}
.category-block__info-box:hover,
.category-block__info-box:focus {
	background-color: #EEF3FE;
    transition: all 0.5s;
}
.category-block__info-box:hover .category-block__info-title,
.category-block__info-box:focus .category-block__info-title {
	color: var(--main-button-color);
}

.rll-youtube-player {
    position: relative;
    padding-bottom: 42.25% !important;
    height: 0;
    margin: 24px auto !important;
    max-width: 844px !important;
    overflow: hidden;
    border-radius: 8px !important;
    background: #000;
}

.rll-youtube-player iframe,
.rll-youtube-player img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/*------------------------------MEDIA STYLES ------------------------*/
@media (max-width: 1050px) {
	.rll-youtube-player {
        padding-bottom: 56.25% !important; 
    }
}

@media (max-width: 910px) {
    div.is-ajax-search-result {
        max-width: 95% !important;
    }
}

@media (max-width: 720px) {
	#search-input {
    	padding: 0 16px;
    }
    #search-form {
    	gap: 24px;
        padding-right: 16px; 
	}
    .home-search {
        padding: 24px 0px;
        margin-bottom: 48px;
    }
    .home-search__title {
        font-size: 48px;
    }
    .home-categories__link {
    	flex-direction: column;
	    align-items: flex-start;
        gap: 12px;
   }
}

@media (max-width: 480px) {
    .pagination .page-numbers {
        margin: 0 2px;
    }
    .header__nav-logo,
	.header__nav-logo img {
		width: 210px;
    	height: 28px;
	}
	.header-lang.weglot-wrapper {
        margin-left: 18px;
    }
}