/**
 * Responsive
 *
 * @author Lex Lexter <hi@leximo.cz>
 * @version 1.0.0
 * @website https://leximo.cz/
 */

@media only screen and (max-width: 1550px) {

  .site-bar {
    width: 100%;
    left: 0;
    top: 0;
    margin: 0;
    padding-left: 42px;
    padding-right: 42px;
    border-radius: 0;
  }

}

@media only screen and (max-width: 1400px) {

  .site-promo__head {
    padding: 46px 76px;
  }
  .site-promo__content__inset {
    padding: 24px 76px 64px 76px;
  }
  .site-promo__excerpt {
    font-size: 36px;
  }

  .site-doctor__content {
    padding: 94px 106px 84px 106px;
  }

}

@media only screen and (max-width: 1300px) {

  .item-dir__inset {
    padding: 34px;
  }
  .item-dir .link {
    margin-top: 16px;
  }
  .item-dir__icon {
    margin-bottom: 24px;
  }

  .head-section__inset {
    padding: 36px 64px;
  }
  .head-section__excerpt {
    margin: 14px 0 0 30%;
  }
  .head-section__head {
    width: 28%;
  }
  .head-section__foot {
    padding-left: 64px;
    padding-right: 64px;
  }

  .--layout-dir .site-section {
    margin-top: 64px;
  }
  .site-section .head-section {
    margin-bottom: 64px;
  }

  .site-bar__doctor {
    display: none;
  }

  .site-doctor__content {
    padding: 64px 72px 42px 72px;
  }

  .site-promo__doctor {
    display: none;
  }

  .site-foot {
    background: transparent;
    padding: 0 16px;
    text-align: center;
  }
  .site-foot__text {
    display: inline-block;
  }

}

@media only screen and (max-width: 1100px) {

  body, .grid__col {
    font-size: 17px;
  }

  h1, 
  h2, 
  h3, 
  h4, 
  h5, 
  h6 {
    margin: 32px 0 16px 0;
  }
  h1, .--like-h1 {
    line-height: 1.2;
    font-size: 34px;
  }
  h2, .--like-h2 {
    line-height: 1.25;
    font-size: 30px;
  }
  h3, .--like-h3 {
    line-height: 1.3;
    font-size: 26px;
  }
  h4, .--like-h4 {
    line-height: 1.35;
    font-size: 22px;
  }
  h5, .--like-h5 {
    line-height: 1.4;
    font-size: 18px;
  }
  h6, .--like-h6 {
    line-height: 1.45;
    font-size: 14px;
  }

  p, address {
    margin-bottom: 24px;
    line-height: 1.7;
    letter-spacing: -0.025em;
  }

  .link + .link {
    margin-left: 20px;
  }

  .definition {
    margin: 28px 0;
  }
  .definition + .definition {
    margin-top: -22px;
  }

  .head-section__head {
    width: auto;
    float: none;
  }
  .head-section__excerpt {
    margin-left: 0;
  }

  .head-section__inset {
    padding: 28px 42px;
  }
  .head-section__excerpt {
    margin-top: 6px;
  }
  .head-section__excerpt br {
    display: none;
  }
  .head-section__foot {
    padding-left: 42px;
    padding-right: 42px;
  }
  .head-section__foot__icon {
    margin-right: 24px;
  }

  .--layout-dir .site-section {
    margin-top: 42px;
  }
  .site-section .head-section {
    margin-bottom: 42px;
  }

  .site-promo__head {
    padding: 32px 42px;
  }
  .site-promo__content__inset {
    padding: 0 42px 32px 42px;
  }
  .site-promo__excerpt {
    margin-top: 16px;
    line-height: 1.35;
    font-size: 30px;
  }

  .site-doctor__content {
    padding: 64px 72px 42px 72px;
  }
  .site-doctor__format {
    margin-top: 16px;
  }
  .site-doctor__format p {
    margin-bottom: 12px;
  }

}

@media only screen and (max-width: 950px) {

  h1, .--like-h1 {
    line-height: 1.25;
    font-size: 30px;
  }
  h2, .--like-h2 {
    line-height: 1.3;
    font-size: 26px;
  }
  h3, .--like-h3 {
    line-height: 1.35;
    font-size: 22px;
  }
  h4, .--like-h4 {
    line-height: 1.4;
    font-size: 18px;
  }
  h5, .--like-h5 {
    line-height: 1.45;
    font-size: 14px;
  }
  h6, .--like-h6 {
    line-height: 1.5;
    font-size: 10px;
  }

  .backlink {
    padding: 20px 24px 20px 76px;
  }
  .backlink .icon {
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 24px 0 0 24px;
  }
  .backlink b {
    font-size: 24px;
  }

  .item-dir__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }

  .list--contain-boxes .list__item.--col-4 {
    width: 50%;
  }

  .head-section {
    border-radius: 0;
  }
  .head-section__inset {
    padding: 24px;
  }
  .head-section__foot {
    padding: 16px 24px;
  }
  .head-section__foot__icon {
    display: none;
  }
  .head-section__foot__nav .link {
    display: block;
    margin: 0 0 4px 0;
  }
  .head-section__foot__nav .link:last-child {
    margin-bottom: 0;
  }

  .site-section {
    margin-left: -24px;
    margin-right: -24px;
  }
  .site-section__content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-section__content .backlink {
    margin-top: 32px;
  }

  .site-bar {
    overflow-y: hidden;
    overflow-x: auto;
    padding: 20px 24px 20px 24px;
  }
  .site-bar__logo {
    display: none;
  }
  .site-bar__nav {
    margin: 0;
    white-space: nowrap;
  }
  .site-bar__back {
    margin-top: 0;
  }

  .site-doctor {
    overflow: hidden;
    margin-top: 42px;
    padding: 32px;
    background-color: var(--color);
    border-radius: 32px;
  }
  .site-doctor__image {
    width: 200px;
    height: 200px;
    position: static;
    float: left;
    display: block;
    margin: 0 32px 26px 0;
    border-radius: 24px;
  }
  .site-doctor__image:before {
    display: none;
  }
  .site-doctor__content {
    margin: 0;
    padding: 0;
    background-color: transparent;
  }

}

@media only screen and (max-width: 750px) {

  .site-promo__content {
    width: auto;
  }
  .site-promo__excerpt {
    margin-top: 12px;
    font-size: 24px;
  }
  .site-promo__image {
    display: none;
  }

}

@media only screen and (max-width: 700px) {

  body, .grid__col {
    font-size: 16px;
  }

  h1, 
  h2, 
  h3, 
  h4, 
  h5, 
  h6 {
    margin-bottom: 10px;
  }

  p, address {
    margin-bottom: 16px;
  }

  img.--align-left {
    float: left;
    margin: 4px 24px 24px 0;
  }
  img.--align-right {
    float: right;
    margin: 4px 0 24px 24px;
  }
  img.--align-none, 
  img.--align-center {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .definition {
    padding: 16px 20px 0 20px;
  }
  .definition__title {
    width: auto;
    float: none;
  }
  .definition--numeric .definition__title {
    font-weight: 600;
    color: #28272A;
  }
  .definition__content {
    margin: 2px 0 0 0;
  }

}

@media only screen and (max-width: 550px) {

  body {
    padding: 16px;
  }

  .backlink b {
    display: none;
  }

  .item-dir__icon {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    border-radius: 0 22px 0 16px;
  }
  .item-dir__inset {
    padding: 25px;
  }

  .list--contain-boxes .list__item.--col-4 {
    width: 100%;
  }

  .site-section {
    margin-left: -16px;
    margin-right: -16px;
  }
  .site-section .head-section {
    margin-bottom: 26px;
  }

  .site-promo__head {
    padding: 24px 32px;
  }
  .site-promo__content__inset {
    padding: 0 32px 24px 32px;
  }
  .site-promo__logo {
    padding: 4px 0 4px 24px;
    line-height: 1.25;
    font-size: 22px;
  }
  .site-promo__excerpt {
    margin-top: 10px;
    line-height: 1.5;
    font-size: 20px;
  }

  .site-doctor {
    padding: 26px;
    border-radius: 32px;
  }
  .site-doctor__image {
    width: 160px;
    height: 160px;
    float: none;
    margin-right: 0;
  }

  .site-foot {
    margin-top: 24px;
  }

}