:root {
  color-scheme: light;
  --font-text: 'Inter', Arial, sans-serif;
  --font-title: 'Lora', Georgia, serif;
  --color-text: #243026;
  --color-muted: #5f6b62;
  --color-green: #7bc043;
  --color-dark: #1f2a21;
  --color-light: #eef7ea;
  --color-border: #dde6da;
  --color-page: #ffffff;
  --color-panel: #eef1e7;
  --color-panel-strong: #eef1e7;
  --color-heading: #1f2a21;
  --color-accent: var(--color-green);
  --color-accent-dark: #6ca82f;
  --color-inverse: #f4f7f2;
  --color-inverse-muted: #d7ded4;
  --font-body: var(--font-text);
  --font-display: var(--font-title);
  --content-width: 1360px;
  --container-width: var(--content-width);
  --page-gutter: clamp(22px, 4vw, 54px);
  --section-space: clamp(82px, 9vw, 120px);
  --header-height: 110px;
  --header-anchor-offset: 110px;
  --brand-name-line-height: 1;
  --brand-name-offset-y: 0px;
  --shadow-soft: 0 24px 60px rgba(31, 42, 33, 0.1);
  --shadow-card: 0 18px 48px rgba(31, 42, 33, 0.08);
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.72;
}

a,
.editor-styles-wrapper a {
  color: inherit;
}

p,
.editor-styles-wrapper p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--color-muted);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.7;
}

strong {
  color: inherit;
}

h1,
h2,
h3,
.wp-block-heading,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper .wp-block-heading {
  color: var(--color-dark);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.08;
}

h1,
h2,
h3,
.wp-block-heading {
  letter-spacing: -0.02em;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper .wp-block-heading {
  letter-spacing: 0;
}

h2,
.wp-block-heading,
.editor-styles-wrapper h2,
.editor-styles-wrapper .wp-block-heading:not(.hero-title) {
  margin: 0 0 26px;
  font-size: clamp(2.65rem, 5.5vw, 4.5rem);
}

.site-section,
.editor-styles-wrapper .site-section {
  margin: 0;
  padding: var(--section-space) var(--page-gutter);
}

.site-section > *,
.editor-styles-wrapper .site-section > .wp-block-group__inner-container,
.editor-styles-wrapper .site-section > .wp-block-group,
.editor-styles-wrapper .site-section > .wp-block-columns,
.editor-styles-wrapper .site-section > .wp-block-cover__inner-container,
.editor-styles-wrapper .site-section > .wp-block-media-text__content {
  width: min(var(--content-width), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section--hero,
.editor-styles-wrapper .section--hero {
  padding-top: clamp(66px, 5.3vw, 82px);
  padding-bottom: clamp(74px, 8vw, 106px);
  background: var(--color-page);
}

.hero-grid > .wp-block-group__inner-container,
.editor-styles-wrapper .hero-grid > .wp-block-group__inner-container,
.editor-styles-wrapper .hero-grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 5.1fr) minmax(520px, 6.9fr);
  align-items: center;
  gap: clamp(54px, 7vw, 98px);
}

.hero-grid > .wp-block-group__inner-container > *,
.editor-styles-wrapper .hero-grid > .wp-block-group__inner-container > *,
.editor-styles-wrapper .hero-grid > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.hero-content,
.hero-content > .wp-block-group__inner-container,
.editor-styles-wrapper .hero-content {
  width: auto;
}

.hero-kicker {
  display: none;
}

.hero-title,
.editor-styles-wrapper .hero-title {
  max-width: 640px;
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 4.15vw, 4.2rem);
  font-weight: 700;
  line-height: 1.22;
}

.hero-title::after,
.section--services h2::after,
.editor-styles-wrapper .hero-title::after,
.editor-styles-wrapper .section--services h2::after {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 28px;
  background: var(--color-accent);
  content: "";
}

.hero-copy,
.hero-content p:not(.hero-kicker):not(.hero-title),
.editor-styles-wrapper .hero-copy,
.editor-styles-wrapper .hero-content p:not(.hero-kicker):not(.hero-title) {
  max-width: 560px;
  color: var(--color-text);
}

.hero-copy,
.editor-styles-wrapper .hero-copy {
  margin-top: 34px;
  font-size: 1rem;
}

.hero-actions,
.editor-styles-wrapper .hero-actions {
  margin-top: 34px;
}

.hero-media,
.editor-styles-wrapper .hero-media {
  width: 100%;
  margin: 0;
}

.hero-media img,
.editor-styles-wrapper .hero-media img {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 42%;
}

.hero-media img {
  height: clamp(560px, 50.2vw, 772px);
  box-shadow: none;
}

.section--profile,
.editor-styles-wrapper .section--profile {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(139, 195, 74, 0.13), transparent 30%),
    linear-gradient(120deg, #19251d 0%, var(--color-dark) 58%, #152019 100%);
  color: var(--color-inverse);
}

.section--profile {
  border-bottom: 2px solid var(--color-page);
}

.profile-section {
  background: var(--color-dark);
}

.section--profile > .wp-block-group__inner-container,
.editor-styles-wrapper .section--profile > .wp-block-group__inner-container,
.editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(46px, 7vw, 96px);
}

.section--profile > .wp-block-group__inner-container > *,
.editor-styles-wrapper .section--profile > .wp-block-group__inner-container > *,
.editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block {
  width: auto;
  margin-right: 0;
  margin-left: 0;
  max-width: none;
}

.section--profile > .wp-block-group__inner-container > :not(.profile-media),
.editor-styles-wrapper .section--profile > .wp-block-group__inner-container > :not(.profile-media),
.editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not(:has(.profile-media)) {
  grid-column: 2;
}

.editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not(:has(.profile-media)) {
  max-width: 760px;
}

.section--profile h2,
.profile-section h2,
.editor-styles-wrapper .section--profile h2 {
  color: var(--color-inverse);
}

.section--profile p,
.profile-section p,
.editor-styles-wrapper .section--profile p {
  max-width: 620px;
  color: var(--color-inverse-muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.profile-media,
.editor-styles-wrapper .profile-media {
  grid-column: 1;
  grid-row: 1 / span 20;
  margin: 0;
}

.profile-media {
  width: 100%;
  height: clamp(430px, 48vw, 560px);
}

.editor-styles-wrapper .profile-media {
  width: min(500px, 100%);
}

.editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:has(.profile-media) {
  grid-column: 1;
  grid-row: 1 / span 20;
}

.profile-media img,
.editor-styles-wrapper .profile-media img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  object-position: center;
}

.profile-media img {
  height: 100%;
}

.editor-styles-wrapper .profile-media img {
  height: auto;
  aspect-ratio: 1.18;
}

.section--profile .wp-block-buttons {
  margin-top: 30px;
}

.section--services,
.editor-styles-wrapper .section--services {
  background: var(--color-page);
}

.section--services > .wp-block-group__inner-container > p,
.editor-styles-wrapper .section--services > .wp-block-group__inner-container > p,
.editor-styles-wrapper .section--services > p,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-paragraph,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/paragraph"] {
  max-width: 650px;
  margin-bottom: 36px;
}

.section--services > .wp-block-group__inner-container > p:last-of-type,
.editor-styles-wrapper .section--services > .wp-block-group__inner-container > p:last-of-type,
.editor-styles-wrapper .section--services > p:last-of-type,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-paragraph:last-of-type,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/paragraph"]:last-of-type {
  position: relative;
  max-width: 100%;
  margin-top: 34px;
  margin-bottom: 0;
  border: 1px solid rgba(221, 230, 218, 0.7);
  border-radius: 22px;
  background: linear-gradient(115deg, #f1f3ec 0%, #f3f3ec 100%);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}

.section--services > .wp-block-group__inner-container > p:last-of-type {
  --provider-logo-left: clamp(22px, 3.4vw, 34px);
  --provider-logo-size: 68px;
  --provider-logo-gap: 26px;

  padding:
    clamp(28px, 4vw, 36px)
    clamp(28px, 4vw, 40px)
    clamp(28px, 4vw, 36px)
    calc(var(--provider-logo-left) + var(--provider-logo-size) + var(--provider-logo-gap));
}

.editor-styles-wrapper .section--services > .wp-block-group__inner-container > p:last-of-type,
.editor-styles-wrapper .section--services > p:last-of-type,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-paragraph:last-of-type,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/paragraph"]:last-of-type {
  padding: clamp(28px, 4vw, 36px) clamp(28px, 4vw, 40px);
}

.section--services > .wp-block-group__inner-container > p:last-of-type::before,
.section--services > .wp-block-group__inner-container > p:last-of-type::after {
  position: absolute;
  content: "";
}

.section--services > .wp-block-group__inner-container > p:last-of-type::before {
  top: 50%;
  left: var(--provider-logo-left);
  width: var(--provider-logo-size);
  height: var(--provider-logo-size);
  border: 1px solid rgba(221, 230, 218, 0.75);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 42, 33, 0.08);
  transform: translateY(-50%);
}

.section--services > .wp-block-group__inner-container > p:last-of-type::after {
  top: 50%;
  left: var(--provider-logo-left);
  width: var(--provider-logo-size);
  height: var(--provider-logo-size);
  background: url("iesus-logo.svg") no-repeat center / 48px 50px;
  transform: translateY(-50%);
}

.section--services > .wp-block-group__inner-container > .wp-block-buttons,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-buttons,
.editor-styles-wrapper .section--services > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/buttons"] {
  margin-top: 34px;
}

.wp-block-table,
.editor-styles-wrapper .wp-block-table {
  margin-top: 34px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-family: var(--font-text);
}

table {
  font-family: var(--font-text);
}

.wp-block-table th,
.wp-block-table td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.wp-block-table th:first-child,
.wp-block-table td:first-child,
.editor-styles-wrapper .wp-block-table th:first-child,
.editor-styles-wrapper .wp-block-table td:first-child {
  width: 68%;
}

.wp-block-table th:nth-child(2),
.wp-block-table td:nth-child(2),
.wp-block-table th:nth-child(3),
.wp-block-table td:nth-child(3),
.editor-styles-wrapper .wp-block-table th:nth-child(2),
.editor-styles-wrapper .wp-block-table td:nth-child(2),
.editor-styles-wrapper .wp-block-table th:nth-child(3),
.editor-styles-wrapper .wp-block-table td:nth-child(3) {
  width: 16%;
  white-space: nowrap;
}

.wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
  background: var(--color-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wp-block-table td,
.editor-styles-wrapper .wp-block-table td {
  color: var(--color-text);
  font-size: 16px;
}

th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-size: 16px;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.section--contacts,
.editor-styles-wrapper .section--contacts {
  position: relative;
  overflow: hidden;
  background: var(--color-panel-strong);
}

.section--contacts::before,
.editor-styles-wrapper .section--contacts::before {
  position: absolute;
  inset: 0;
  background: url("kontakty_bg.png") left center / min(42vw, 520px) auto no-repeat;
  opacity: 0.30;
  pointer-events: none;
  content: "";
}

.section--contacts > .wp-block-group__inner-container,
.editor-styles-wrapper .section--contacts > * {
  position: relative;
  z-index: 1;
}

.section--contacts .wp-block-columns,
.editor-styles-wrapper .section--contacts .wp-block-columns {
  align-items: flex-start;
  gap: clamp(46px, 8vw, 100px);
}

.section--contacts h2 {
  color: var(--color-heading);
}

.contact-list,
.editor-styles-wrapper .contact-list {
  display: grid;
  max-width: 520px;
  margin: 38px 0;
  padding: 0;
  list-style: none;
}

.editor-styles-wrapper .contact-list {
  justify-items: start;
  text-align: left;
}

.contact-list li,
.editor-styles-wrapper .contact-list li {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(95, 107, 98, 0.22);
}

.editor-styles-wrapper .contact-list li {
  grid-template-columns: 1fr;
  width: 100%;
  justify-items: start;
  text-align: left;
}

.contact-list strong,
.editor-styles-wrapper .contact-list strong {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.editor-styles-wrapper .contact-list strong {
  display: block;
}

.contact-list a,
.contact-list span,
.editor-styles-wrapper .contact-list a,
.editor-styles-wrapper .contact-list span {
  color: var(--color-heading);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.editor-styles-wrapper .contact-list a,
.editor-styles-wrapper .contact-list span {
  display: block;
  text-align: left;
}

.site-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 650px;
  margin: 0;
  padding: clamp(30px, 4.5vw, 44px);
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-contact-form__field {
  display: grid;
  gap: 9px;
}

.site-contact-form__field--full,
.site-contact-form__notice {
  grid-column: 1 / -1;
}

.site-contact-form label {
  color: var(--color-heading);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-contact-form input,
.site-contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid #dce5d8;
  border-radius: 11px;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.45;
}

input,
textarea {
  font-family: var(--font-text);
  font-size: 15px;
}

.site-contact-form input::placeholder,
.site-contact-form textarea::placeholder {
  color: #8b958c;
}

.site-contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.site-contact-form input:focus,
.site-contact-form textarea:focus {
  border-color: var(--color-accent-dark);
  outline: 3px solid rgba(139, 195, 74, 0.22);
}

.site-contact-form__notice {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--color-accent);
  border-radius: 10px;
  background: var(--color-panel);
  color: var(--color-text);
}

.site-contact-form__notice p {
  margin: 0;
  color: inherit;
}

.site-contact-form__notice--error {
  border-left-color: #b3261e;
  background: #fff2ef;
}

.site-contact-form__website {
  position: absolute;
  left: -9999px;
}

.site-contact-form .button {
  grid-column: 1 / -1;
  justify-self: start;
  cursor: pointer;
}

.wp-block-button__link,
.button,
.btn,
button,
input[type="submit"],
.editor-styles-wrapper .wp-block-button__link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.wp-block-button__link,
.button,
.btn,
button,
input[type="submit"] {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid rgba(31, 42, 33, 0.25);
  background: transparent;
  color: var(--color-heading);
}

.section--profile .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .section--profile .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(244, 247, 242, 0.35);
  color: var(--color-inverse);
}

@media (max-width: 900px) {
  body,
  .editor-styles-wrapper {
    font-size: 16px;
  }

  .hero-grid > .wp-block-group__inner-container,
  .section--profile > .wp-block-group__inner-container,
  .editor-styles-wrapper .hero-grid > .wp-block-group__inner-container,
  .editor-styles-wrapper .hero-grid > .block-editor-inner-blocks > .block-editor-block-list__layout,
  .editor-styles-wrapper .section--profile > .wp-block-group__inner-container,
  .editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout {
    grid-template-columns: 1fr;
  }

  .section--profile > .wp-block-group__inner-container > :not(.profile-media),
  .editor-styles-wrapper .section--profile > .wp-block-group__inner-container > :not(.profile-media),
  .editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:not(:has(.profile-media)) {
    grid-column: auto;
    max-width: none;
  }

  .profile-media,
  .editor-styles-wrapper .profile-media,
  .editor-styles-wrapper .section--profile > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block:has(.profile-media) {
    grid-column: auto;
    grid-row: auto;
    margin: 0 0 34px;
  }

  .profile-media {
    height: auto;
  }

  .profile-media img,
  .editor-styles-wrapper .profile-media img {
    aspect-ratio: 1.32;
  }

  .section--contacts .wp-block-columns,
  .editor-styles-wrapper .section--contacts .wp-block-columns {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: clamp(20px, 6vw, 24px);
  }

  h2,
  .wp-block-heading,
  .editor-styles-wrapper h2,
  .editor-styles-wrapper .wp-block-heading:not(.hero-title) {
    font-size: clamp(2.55rem, 11vw, 3rem);
  }

  .hero-title,
  .editor-styles-wrapper .hero-title {
    font-size: clamp(3.05rem, 15vw, 4.05rem);
    line-height: 1.12;
  }

  .wp-block-table,
  .editor-styles-wrapper .wp-block-table {
    border-radius: 14px;
    overflow: visible;
  }

  .wp-block-table table,
  .wp-block-table thead,
  .wp-block-table tbody,
  .wp-block-table tr,
  .wp-block-table th,
  .wp-block-table td,
  .editor-styles-wrapper .wp-block-table table,
  .editor-styles-wrapper .wp-block-table thead,
  .editor-styles-wrapper .wp-block-table tbody,
  .editor-styles-wrapper .wp-block-table tr,
  .editor-styles-wrapper .wp-block-table th,
  .editor-styles-wrapper .wp-block-table td {
    display: block;
    width: 100%;
  }

  .wp-block-table table {
    border-collapse: separate;
    table-layout: auto;
  }

  .wp-block-table thead,
  .editor-styles-wrapper .wp-block-table thead {
    display: none;
  }

  .wp-block-table tbody {
    display: grid;
    gap: 0;
  }

  .wp-block-table tr,
  .editor-styles-wrapper .wp-block-table tr {
    padding: 18px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
  }

  .wp-block-table tr:last-child {
    border-bottom: 0;
  }

  .wp-block-table td,
  .editor-styles-wrapper .wp-block-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .wp-block-table td:first-child,
  .editor-styles-wrapper .wp-block-table td:first-child {
    width: 100%;
    margin-bottom: 14px;
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.45;
  }

  .wp-block-table td:nth-child(2),
  .wp-block-table td:nth-child(3),
  .editor-styles-wrapper .wp-block-table td:nth-child(2),
  .editor-styles-wrapper .wp-block-table td:nth-child(3) {
    display: inline-flex;
    width: auto;
    margin-right: 18px;
    color: var(--color-muted);
    font-size: 0.95rem;
  }
}
