@import url("https://fonts.cdnfonts.com/css/evogria");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap");

:root {
  --default: #2e3958;
  --violet: #3f0693;
  --green: #7ce1d3;
  --light: #f1f6f3;
  --buffer: 80px;
  --transition: 0.5s;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Serif", serif;
  color: var(--default);
  font-size: 17px;
  line-height: 160%;
  font-style: normal;
  background-color: var(--light);
  overflow-x: hidden;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}

section {
  padding: var(--buffer) 0;
  position: relative;
}

.wrap {
  width: 100%;
  padding: 0 30px;
  max-width: 1440px;
  margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Evogria", sans-serif;
  font-weight: 400;
  line-height: 110%;
  margin-bottom: 0.5em;
  margin-top: 1em;
  color: var(--violet);
  text-wrap: balance;
}

h1 {
  font-size: 5rem;
  font-weight: 200;
  color: var(--default);
  text-transform: uppercase;
}

h2 {
  font-size: 2.6rem;
  line-height: 130%;
  margin-top: 0;
}
h3 {
  font-size: 1.5rem;
  margin: 1em 0;
}
h4 {
  font-size: 1.2rem;
}

a {
  color: var(--violet);
  transition: all var(--transition);
  &:hover {
    text-decoration: none;
  }
}

.bigger {
  font-size: 1.5rem;
}

.alert {
  background-color: var(--violet);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--green);
  margin-bottom: 1rem;
  border-radius: 100px;
  font-weight: 500;
}

.container_hero {
  h1 {
    margin-bottom: 1rem;
    margin-top: 0.5em;
    line-height: 115%;
    color: var(--green);
    font-size: 7rem;
    span {
      color: var(--violet);
      font-size: 50%;
      line-height: 110%;
      margin: 0;
      display: block;
    }
  }
  ul {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0 0;
    li {
      padding-left: 1.6rem;
      position: relative;
      &:before {
        content: "";
        position: absolute;
        top: 7px;
        left: 0;
        width: 0.8rem;
        height: 1rem;
        background: url(../images/li.svg) no-repeat center center / contain;
      }
    }
  }
}

.switcher_wrap {
  text-align: center;
  margin-top: -110px;
  margin-bottom: 60px;
  .switcher {
    background-color: #fff;
    border-radius: 100px;
    display: inline-block;
    overflow: hidden;
    a {
      padding: 1rem 2rem;
      text-decoration: none;
      font-family: "Evogria", sans-serif;
      display: inline-block;

      &.active {
        background-color: var(--default);
        color: var(--light);
      }
    }
  }
}

.martin {
  position: relative;
  background: url(../images/martin.webp) no-repeat center center/contain;
  a {
    position: absolute;
    bottom: 10%;
    right: 10%;
  }
}

#cta {
  background: var(--green);
  color: #fff;
}

.copy {
  padding: 2rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(229, 244, 248, 0.15);
  display: flex;
  justify-content: space-between;
}

.container_cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  .btn {
    margin: 0 1rem 0 0;
    padding: 1rem 2rem;
    border: 2px solid var(--violet);
    display: inline-block;
    text-decoration: none;
    border-radius: 100px;
    background-color: var(--violet);
    color: var(--green);
    font-family: "Evogria", sans-serif;
    &:after {
      display: none;
    }
    &.light {
      background-color: transparent;
      color: var(--violet);
    }
    &:hover {
      background-color: var(--default);
      color: var(--green);
      border-color: var(--default);
    }
  }
}
.opening {
  p {
    display: flex;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
    margin-right: 3rem;
    border-bottom: 1px solid var(--green);
    strong {
      width: 50%;
    }
  }
}

.btn_group {
  margin-top: 1.5rem;
  display: block;
  .btn {
    margin-right: 1rem;
  }
  .btn:last-child {
    margin-right: 0;
  }
}

#cta {
  padding: calc(var(--buffer) / 2) 0;
  color: var(--default);
  .stack {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }
  .icon {
    margin-right: 2rem;
  }
}

strong {
  font-weight: 600;
}

#doctors {
  padding: 0 5%;
}

.big_headline {
  font-size: 2rem;
  color: var(--default);
  text-decoration: none;
  font-family: "Evogria", sans-serif;
  padding-bottom: 1em;
  margin: 0;
}

.green {
  color: var(--green);
}

footer {
  background: var(--violet);
  color: #fff;
  padding: var(--buffer) 0;
  position: relative;
  a,
  h3 {
    color: var(--green);
  }
  h3 {
    margin-top: 0;
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      margin-bottom: 0.5em;
      a {
        text-decoration: none;
        color: var(--light);
        transition: all var(--transition);
        &:hover {
          color: var(--green);
        }
      }
    }
  }
  img {
    margin-bottom: 1.5rem;
  }
  .container_footer {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 1rem;
    div  {
      width: 25%;
    }
  }
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  z-index: 100;
  margin-bottom: -7rem;
  padding: 1rem 0;

  background: rgba(229, 244, 248, 0.35); /* poloprůhledné pozadí */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);

  .container_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

nav ul {
  list-style-type: none;
  li {
    display: inline-block;
    a {
      font-family: "Evogria", sans-serif;
      text-decoration: none;
      text-transform: uppercase;
      color: var(--default);
      padding: 0 0.75rem;
      &:hover,
      &.active {
        color: var(--violet);
      }
    }
  }
}

.nav_trigger {
  display: none;
}

.container_contact {
  display: flex;
  div.column {
    flex: 1;
    width: calc(100% / 3);
  }
  h3 {
    margin-bottom: 0.5rem;
    color: var(--default);
  }
}

.container_patients,
.container_hero {
  display: flex;
  gap: 4rem;
  div {
    flex: 1;
    width: calc(100% / 2);
  }
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  border: 3px solid var(--green);
  border-radius: var(--radius);
}

details {
  margin: 0.5em 0;
  background: #fff;
  padding: 1.5rem 2rem 1.5rem 2rem;
  border-radius: var(--radius);
  p {
    width: 90%;
  }
  summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    font-family: "Evogria", sans-serif;
    font-size: 1.3rem;
    color: var(--violet);
    transition: all var(--transition);
    position: relative;
    width: 100%;
    padding-right: 13%;
    &:after {
      content: "";
      position: absolute;
      right: 0;
      top: 0.8rem;
      width: 3rem;
      height: 3rem;
      display: block;
      background: url("../images/plus.svg") no-repeat center center;
      transition: all var(--transition);
      transform: translateY(-50%);
    }

    &::-webkit-details-marker {
      display: none;
    }
    &:hover {
      color: var(--default);
    }
  }

  p {
    margin-top: 1.5em;
    font-size: 1rem;
    line-height: 150%;
  }
}
details[open] summary:after {
  transform: translateY(-50%) rotate(45deg);
}

#intro {
  padding-top: 8rem;
  background: #f1f6f3;
  background: linear-gradient(
    45deg,
    rgba(229, 244, 248, 1) 0%,
    rgba(241, 246, 243, 1) 100%
  );
}

.btn {
  display: inline-block;
  padding: 1rem 5rem 1rem 2rem;
  background-color: var(--violet);
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  font-family: "Evogria", sans-serif;
  transition: all var(--transition);
  position: relative;
  &:after {
    content: "";
    aspect-ratio: 1 / 1;
    border-radius: 100px;
    width: 3.7rem;
    height: 3.7rem;
    background: var(--green) url("../images/ico_phone.svg") no-repeat center
      center;
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }
  &:hover {
    background-color: var(--default);
    color: var(--green);
  }
  &.ico_arrow:after {
    background: var(--green) url("../images/arrow-right.svg") no-repeat center
      center;
  }
  &.ico_chat:after {
    background: var(--green) url("../images/ico_chat.svg") no-repeat center
      center;
  }
  &.ico_download:after {
    background: var(--green) url("../images/ico_download.svg") no-repeat center
      center;
  }
}

.wpcf7-submit {
  padding: 1rem 2rem 1rem 2rem;
  background-color: var(--violet);
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  font-family: "Evogria", sans-serif;
  transition: all var(--transition);
  position: relative;
  &:hover {
    background-color: var(--default);
    color: var(--green);
  }
}

#services {
  background-color: var(--green);
  h3 {
    color: var(--light);
  }
  h2 {
    text-align: center;
  }
}

#services .btn:after {
  background-color: var(--light);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}
.modal.open {
  display: flex;
}
.modal_content {
  background: #fff;
  padding: 1.5rem 2rem 0;
  border-radius: 12px;
  border: 1px solid rgba(63, 6, 147, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  min-width: 600px;
  position: relative;
  box-shadow: 0 0 64px rgba(63, 6, 147, 0.8);
  overflow-y: auto;
}
.modal_close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

form {
  p {
    margin: 0;
  }
  label {
    display: block;
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: 0.75rem;
    cursor: pointer;
  }
  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid var(--green);
    color: var(--default);
    border-radius: var(--radius);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition);
    margin-bottom: 0.5rem;
    &:focus {
      border-color: var(--violet);
    }
  }
  input[type="checkbox"] {
    float: left;
    margin-right: 1rem;
    width: auto;
    position: relative;
    top: 6px;
  }
  br {
    display: none;
  }
}
@media (max-width: 480px) {
  #doctors {
    padding: 0;
  }
  h2 {
    font-size: 2rem;
  }
  .wrap {
    padding: 0 1rem;
  }
  .container_hero,
  .container_contact,
  .container_cta,
  .container_footer,
  .container_patients,
  .copy {
    flex-wrap: wrap;
    div,
    div.column {
      width: 100%;
      flex: auto;
    }
  }

  .container_cta {
    text-align: center;
    .btn_group {
      text-align: center;
    }
  }

  .container_hero {
    gap: 0;
    h1 {
      font-size: 4rem;
    }
    .bigger {
      font-size: 1.2rem;
    }
    div:first-child {
      order: 2;
    }
    .martin {
      height: 360px;
      order: 1;
    }
  }

  .btn_group {
    .btn {
      margin: 1rem 0 0 0;
    }
  }

  #cta .stack {
    flex-wrap: wrap;
    h2 {
      font-size: 1.8rem;
    }
    .icon {
      margin: 0;
    }
  }
  .right {
    text-align: center;
  }
  .big_headline {
    font-size: 1.3rem;
    padding-bottom: 0;
  }
  .modal_content {
    min-width: auto;
  }
  header .btn {
    display: none;
  }
  header {
    position: relative;
    nav {
      display: none;
    }
    .container_header {
      justify-content: center;
    }
  }
  #intro {
    padding-top: 7rem;
  }

  .alert {
    border-radius: var(--radius);
    font-size: 0.75rem;
    border: 2px solid var(--violet);
    background: var(--light);
    color: var(--violet);
    line-height: 1.5;
  }

  .column {
    margin: 0 0 2rem;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .copy p {
    width: 100%;
    text-align: center;
  }
  details {
    padding: 1rem;
    summary {
      font-size: 1rem;
      line-height: 1.2;
      &:after {
        width: 1rem;
        height: 1rem;
      }
    }
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .container_footer div {
    width: calc(50% - 2rem);
  }
  header a.btn.ico_chat.open_form {
    font-size: 0;
    padding-right: 2rem;
  }
}
