:root {
  --kd-orange: #f58220;
  --kd-orange-dark: #d9660a;
  --kd-dark: #4b4a4c;
  --kd-text: #69676a;
  --kd-light: #f4f4f4;
  --kd-border: #d7d5d6;
  --kd-white: #fff;
  --kd-shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.kd-theme {
  margin: 0;
  color: var(--kd-text);
  background: var(--kd-white);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.kd-menu-open {
  overflow: hidden;
}

.kd-theme img {
  display: block;
  max-width: 100%;
  height: auto;
}

.kd-theme a {
  color: inherit;
  text-decoration: none;
}

.kd-theme h1,
.kd-theme h2,
.kd-theme h3,
.kd-theme h4 {
  margin: 0 0 0.55em;
  color: var(--kd-dark);
  font-weight: 700;
  line-height: 1.18;
}

.kd-theme h1 {
  font-size: clamp(2.25rem, 4.2vw, 3rem);
}

.kd-theme h2 {
  font-size: clamp(1.95rem, 3.2vw, 2.4rem);
}

.kd-theme h3 {
  font-size: 1.3rem;
}

.kd-theme p {
  margin: 0 0 1.25em;
}

.kd-shell {
  width: min(calc(100% - 40px), var(--kd-shell));
  margin-right: auto;
  margin-left: auto;
}

.kd-site-content {
  min-height: 50vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  color: var(--kd-dark);
  background: var(--kd-white);
}

.kd-header {
  position: relative;
  z-index: 100;
  background: var(--kd-white);
  border-bottom: 1px solid rgba(75, 74, 76, 0.06);
}

.kd-header__inner {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.kd-brand {
  flex: 0 0 165px;
}

.kd-brand img,
.kd-brand .custom-logo {
  width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.kd-header__right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.kd-header__phones {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  color: #8b888b;
  font-size: 0.75rem;
}

.kd-header__phones a {
  font-weight: 700;
}

.kd-nav,
.kd-menu {
  width: auto;
}

.kd-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.kd-search-link {
  color: var(--kd-orange) !important;
  font-size: 1.45rem;
  line-height: 1;
}

.kd-menu,
.kd-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kd-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.kd-menu > li {
  position: relative;
}

.kd-menu > li > a {
  display: block;
  padding: 10px 10px;
  color: #69676a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.kd-menu a:hover,
.kd-menu a:focus,
.kd-menu .current-menu-item > a {
  color: var(--kd-orange);
}

.kd-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 220px;
  padding: 10px 0;
  background: var(--kd-white);
  box-shadow: var(--kd-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.kd-menu .sub-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.kd-menu li:hover > .sub-menu,
.kd-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kd-menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--kd-border);
  border-radius: 3px;
  background: var(--kd-white);
  cursor: pointer;
}

.kd-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--kd-dark);
}

.kd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 24px;
  border: 1px solid var(--kd-orange);
  border-radius: 3px;
  color: var(--kd-white) !important;
  background: var(--kd-orange);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.kd-button:hover,
.kd-button:focus {
  color: var(--kd-white) !important;
  background: var(--kd-orange-dark);
  transform: translateY(-1px);
}

.kd-button--outline {
  min-height: 40px;
  padding: 9px 16px;
  color: var(--kd-orange) !important;
  background: transparent;
  font-size: 0.78rem;
}

.kd-button--outline:hover,
.kd-button--outline:focus {
  color: var(--kd-white) !important;
  background: var(--kd-orange);
}

.kd-eyebrow {
  margin-bottom: 14px !important;
  color: var(--kd-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kd-lead {
  font-size: 1.12rem;
}

.kd-hero {
  background: var(--kd-white);
}

.kd-hero__grid {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 455px;
}

.kd-hero__photo {
  min-height: 455px;
  background-image: url("https://kryspin-dent.pl/wp-content/uploads/2025/05/wizyta.jpg");
  background-position: center;
  background-size: cover;
}

.kd-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 46px;
  background: #fbfafa;
}

.kd-hero__copy h1 {
  margin-bottom: 18px;
}

.kd-hero__copy .kd-lead {
  margin-bottom: 28px;
}

.kd-section {
  padding: 76px 0;
  scroll-margin-top: 90px;
}

.kd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 64px;
}

.kd-split--middle {
  align-items: center;
}

.kd-split--wide-media {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
}

.kd-split__copy > :last-child {
  margin-bottom: 0;
}

.kd-split__media img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.kd-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
  margin-top: 28px;
}

.kd-values > div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--kd-dark);
  font-size: 0.92rem;
}

.kd-values span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--kd-orange);
}

.kd-first-visit,
.kd-contact {
  background: var(--kd-light);
}

.kd-video-card {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  border: 1px solid #c9c7c8;
  background: var(--kd-white);
  overflow: hidden;
}

.kd-first-visit .kd-split__copy p {
  margin-bottom: 26px;
}

.kd-services > .kd-shell > p {
  max-width: 660px;
}

.kd-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.kd-service-card {
  padding: 0;
  background: var(--kd-white);
  text-align: center;
}

.kd-service-card__media {
  width: 100%;
  height: 190px;
  margin-bottom: 18px;
  border: 1px solid #c9c7c8;
  background: var(--kd-white);
}

.kd-service-card h3 {
  margin-bottom: 14px;
}

.kd-locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
  margin-top: 28px;
  margin-bottom: 60px;
}

.kd-locations p {
  margin-bottom: 0.8em;
}

.kd-phone {
  color: var(--kd-dark) !important;
  font-weight: 700;
}

.kd-text-link {
  text-decoration: underline !important;
}

.kd-text-link--orange {
  color: var(--kd-orange) !important;
  font-weight: 700;
}

.kd-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.kd-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kd-form label {
  display: block;
}

.kd-form input[type="text"],
.kd-form input[type="email"],
.kd-form input[type="tel"],
.kd-form select,
.kd-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--kd-orange);
  border-radius: 22px;
  outline: none;
  color: var(--kd-dark);
  background: var(--kd-white);
  font: inherit;
  font-size: 0.88rem;
  transition: box-shadow 0.2s ease;
}

.kd-form textarea {
  min-height: 148px;
  border-radius: 6px;
  resize: vertical;
}

.kd-form input:focus,
.kd-form select:focus,
.kd-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
}

.kd-form__message,
.kd-form__consent,
.kd-form__submit,
.kd-form-notice {
  grid-column: 1 / -1;
}

.kd-form__consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.72rem;
  line-height: 1.45;
}

.kd-form__consent input {
  margin-top: 3px;
  accent-color: var(--kd-orange);
}

.kd-form__submit {
  display: flex;
  justify-content: flex-end;
}

.kd-form__submit button {
  cursor: pointer;
}

.kd-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.kd-form-notice {
  margin-bottom: 16px;
  padding: 12px 15px;
  border-left: 4px solid;
  background: var(--kd-white);
  font-size: 0.9rem;
}

.kd-form-notice--success {
  border-color: #2e8b57;
}

.kd-form-notice--error {
  border-color: #b42318;
}

.kd-footer {
  position: relative;
  padding: 46px 0 22px;
  color: #e8e6e7;
  background: #484648;
  font-size: 0.78rem;
  line-height: 1.5;
}

.kd-back-to-top {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--kd-white) !important;
  background: var(--kd-orange);
  font-size: 1rem;
  transform: translateX(-50%);
}

.kd-footer h3 {
  margin-bottom: 12px;
  color: var(--kd-white);
  font-size: 0.88rem;
}

.kd-footer a:hover,
.kd-footer a:focus {
  color: var(--kd-orange);
  text-decoration: underline;
}

.kd-footer__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.kd-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kd-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #605e60;
  color: #c7c4c5;
  font-size: 0.68rem;
}

.kd-document {
  padding-top: 72px;
  padding-bottom: 86px;
}

.kd-built-with-elementor .kd-document,
.kd-built-with-elementor .kd-site-content {
  padding: 0;
}

.kd-posts {
  display: grid;
  gap: 26px;
}

.kd-post-card {
  padding: 26px;
  border: 1px solid var(--kd-border);
}

.kd-error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.elementor-button {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.elementor-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .kd-header__inner {
    gap: 20px;
  }

  .kd-menu > li > a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.67rem;
  }

  .kd-hero__grid {
    grid-template-columns: 1fr;
  }

  .kd-hero__photo {
    min-height: 410px;
  }

  .kd-hero__copy {
    padding: 50px;
  }

  .kd-split,
  .kd-split--wide-media {
    grid-template-columns: 1fr;
  }

  .kd-split__copy {
    max-width: 760px;
  }

  .kd-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kd-locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kd-locations > :first-child {
    grid-column: 1 / -1;
  }

  .kd-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kd-header__inner {
    min-height: 86px;
  }

  .kd-header__phones {
    padding-right: 60px;
  }

  .kd-menu-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: block;
  }

  .kd-nav {
    position: fixed;
    top: 86px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px 20px;
    background: var(--kd-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .kd-search-link {
    display: block;
    margin: 18px 8px 0;
    text-align: center;
  }

  .kd-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .kd-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .kd-menu > li > a {
    padding: 12px 8px;
    border-bottom: 1px solid #eceaec;
    font-size: 0.9rem;
  }

  .kd-menu .sub-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .kd-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .kd-shell {
    width: min(calc(100% - 32px), var(--kd-shell));
  }

  .kd-header__inner {
    align-items: center;
  }

  .kd-brand {
    flex-basis: 138px;
  }

  .kd-brand img,
  .kd-brand .custom-logo {
    width: 132px;
  }

  .kd-header__right {
    align-items: flex-end;
  }

  .kd-header__phones {
    flex-direction: column;
    gap: 1px;
    padding-right: 48px;
    line-height: 1.35;
  }

  .kd-menu-toggle {
    right: 16px;
  }

  .kd-hero__grid {
    width: 100%;
  }

  .kd-hero__photo {
    min-height: 310px;
  }

  .kd-hero__copy {
    padding: 40px 24px 48px;
  }

  .kd-section {
    padding: 62px 0;
  }

  .kd-split {
    gap: 38px;
  }

  .kd-split__media img,
  .kd-video-card {
    height: 290px;
    min-height: 290px;
  }

  .kd-values,
  .kd-services__grid,
  .kd-locations,
  .kd-form,
  .kd-footer__grid {
    grid-template-columns: 1fr;
  }

  .kd-locations {
    gap: 32px;
  }

  .kd-locations > :first-child {
    grid-column: auto;
  }

  .kd-form__message,
  .kd-form__consent,
  .kd-form__submit,
  .kd-form-notice {
    grid-column: auto;
  }

  .kd-form__submit {
    justify-content: stretch;
  }

  .kd-form__submit .kd-button {
    width: 100%;
  }

  .kd-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
