/* K3 Craft shared components and home sections */

body {
  background: var(--k3-bg);
  color: var(--k3-text);
  font-family: 'Didact Gothic', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.k3-page {
  --k3-section-gap: 80px;
}

.site-content,
.inside-article {
  padding: 0 !important;
}

.k3-page a {
  color: inherit;
}

.k3-page img {
  display: block;
  height: auto;
  max-width: 100%;
}

.k3-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px;
}

.k3-section {
  padding: var(--k3-section-gap) 0;
}

.k3-eyebrow {
  color: #9b4f2a;
  font-family: 'Play', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.k3-breadcrumbs {
  align-items: center;
  color: rgba(38, 38, 38, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-family: 'Play', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.k3-breadcrumbs a {
  color: var(--k3-blue);
  text-decoration: none;
}

.k3-breadcrumbs a:hover,
.k3-breadcrumbs a:focus {
  color: #26425d;
  text-decoration: underline;
}

.k3-breadcrumbs__separator {
  color: #e28f63;
}

.k3-inner-hero__breadcrumbs .k3-breadcrumbs {
  margin-bottom: 14px;
}

.k3-title {
  color: #262626;
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 24px;
}

.k3-section-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 32px;
  text-align: center;
}

.k3-button,
.k3-btn,
.k3-gallery-more {
  align-items: center;
  background: var(--k3-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(55, 92, 127, 0.26);
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.05em;
  line-height: 1.1;
  min-height: 56px;
  padding: 16px 34px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.k3-button:hover,
.k3-button:focus,
.k3-btn:hover,
.k3-btn:focus,
.k3-gallery-more:hover,
.k3-gallery-more:focus {
  background: #26425d;
  box-shadow: 0 18px 38px rgba(38, 66, 93, 0.32);
  transform: translateY(-2px);
}

.k3-cta .k3-button,
.k3-gallery-cta .k3-button {
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16), 0 16px 34px rgba(0, 0, 0, 0.18);
  color: var(--k3-blue) !important;
}

.k3-cta .k3-button:hover,
.k3-cta .k3-button:focus,
.k3-gallery-cta .k3-button:hover,
.k3-gallery-cta .k3-button:focus {
  background: rgba(255, 255, 255, 0.9);
  color: #26425d !important;
}

.k3-form-section .k3-eyebrow {
  color: #fff;
}

.k3-form-section .k3-button {
  background: var(--k3-blue);
  border: 0;
  box-shadow: 0 14px 30px rgba(55, 92, 127, 0.26);
  color: #fff !important;
}

.k3-form-section .k3-button:hover,
.k3-form-section .k3-button:focus {
  background: #26425d;
  color: #fff !important;
}

.k3-form-trap {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.k3-header-spacer {
  height: 0;
}

.k3-hero {
  background: var(--k3-bg);
  min-height: 760px;
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}

.k3-hero::before {
  background: linear-gradient(90deg, rgba(238, 238, 238, 0.98) 0%, rgba(238, 238, 238, 0.88) 38%, rgba(238, 238, 238, 0.12) 72%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}

.k3-hero__media {
  inset: 0;
  position: absolute;
}

.k3-hero__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.k3-hero .k3-container {
  position: relative;
  z-index: 2;
}

.k3-hero__content {
  max-width: 560px;
}

.k3-hero__lead {
  color: #353535;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  margin: 0 0 30px;
}

.k3-hero__note {
  color: var(--k3-muted);
  margin: 18px 0 0;
  max-width: 320px;
}

.k3-inner-hero {
  background-color: #e8e8e8;
  min-height: 170px;
  overflow: hidden;
  padding: 38px 0 34px;
  position: relative;
}

.k3-inner-hero::before {
  background: linear-gradient(90deg, rgba(238, 238, 238, 0.96), rgba(238, 238, 238, 0.76), rgba(238, 238, 238, 0.18));
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}

.k3-inner-hero__media {
  inset: 0;
  position: absolute;
}

.k3-inner-hero__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.k3-inner-hero__content {
  position: relative;
  z-index: 2;
}

.k3-hero__cta-wrap {
  display: inline-flex;
  margin-top: 20px;
  position: relative;
}

.k3-benefits {
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.k3-benefit-grid,
.k3-card-grid,
.k3-steps,
.k3-reasons {
  display: grid;
  gap: 24px;
}

.k3-benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.k3-benefit,
.k3-type-card,
.k3-step,
.k3-reason,
.k3-form-card {
  background: var(--k3-white);
  border-radius: var(--k3-radius);
  box-shadow: var(--k3-shadow);
}

.k3-benefit {
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.k3-benefit h2,
.k3-benefit h3,
.k3-type-card h3,
.k3-step h3,
.k3-reason h3 {
  font-family: 'Play', Arial, sans-serif;
  margin: 0 0 12px;
}

.k3-card-heading,
.k3-benefit h2,
.k3-reason h3,
.k3-about-article h2:first-child,
.k3-policy-card h2,
.k3-individual-materials .k3-article h3:first-child {
  background: rgba(55, 92, 127, 0.08);
  color: var(--k3-blue);
  display: block;
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  padding: 18px 22px;
  text-transform: uppercase;
}

.k3-benefit h2 {
  margin: 0;
  border-radius: var(--k3-radius) var(--k3-radius) 0 0;
  text-align: center;
  width: 100%;
}

.k3-benefit p {
  margin: 0;
  padding: 24px 28px 30px;
}

.k3-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.k3-type-card {
  background: #fff;
  border-radius: var(--k3-image-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.k3-type-card img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  box-shadow: none;
  display: block;
  object-fit: cover;
  width: 100%;
}

.k3-type-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.k3-type-card__button {
  margin-top: 8px;
  width: 100%;
}

.k3-type-card__body h3 {
  line-height: 1.12;
}

.k3-type-card__price {
  color: var(--k3-brown);
  font-family: 'Play', Arial, sans-serif;
  font-weight: 700;
  margin-top: auto;
  text-transform: uppercase;
}

.k3-split {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.k3-split img {
  border-radius: var(--k3-image-radius);
  box-shadow: var(--k3-shadow);
  display: block;
  width: 100%;
}

.k3-text h2 {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 22px;
}

.k3-text p {
  margin: 0 0 16px;
}

.k3-page :where(.k3-text, .k3-article, .k3-policy-content) :where(ul, ol) > li::marker {
  color: #e28f63;
}

.k3-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.k3-step {
  padding: 24px 18px;
  text-align: center;
}

.k3-step img {
  margin: 0 auto 16px;
  max-width: 94px;
}

.k3-home-how__grid {
  align-items: stretch;
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.k3-home-how__media img {
  border-radius: var(--k3-image-radius);
  box-shadow: var(--k3-shadow);
  display: block;
  height: 100%;
  min-height: min(620px, 62vw);
  object-fit: cover;
  width: 100%;
}

.k3-home-how__content {
  display: grid;
  gap: 18px;
}

.k3-home-how__content h2 {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.k3-home-how__step {
  align-items: flex-start;
  display: grid;
  gap: 20px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.k3-home-how__step img {
  width: 70px;
}

.k3-home-how__step h3 {
  color: var(--k3-text);
  font-family: 'Play', Arial, sans-serif;
  font-size: 29px;
  line-height: 1.12;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.k3-home-how__step p {
  margin: 0;
}

.k3-home-about__stats {
  margin-top: 28px;
}

.k3-home-about__grid {
  align-items: stretch;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.k3-home-about__grid > img {
  border-radius: var(--k3-image-radius);
  box-shadow: var(--k3-shadow);
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.k3-home-about h2 {
  text-align: center;
}

.k3-home-about .k3-about-stats {
  max-width: none;
}

.k3-home-about__signature {
  text-align: right;
}

.k3-home-about .k3-about-stat {
  padding: 24px 20px;
}

.k3-home-about .k3-about-stat strong {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.k3-home-about .k3-about-stat span {
  line-height: 1.14;
}

.k3-cta {
  background: var(--k3-blue);
  color: #fff;
  margin: 30px 0;
  padding: 58px 0;
}

.k3-cta__inner {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto;
}

.k3-cta h2 {
  color: #fff;
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  margin: 0 0 10px;
}

.k3-contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.k3-contact-icons a {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  min-height: 42px;
  padding: 8px 16px;
  text-decoration: none;
}

.k3-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.k3-gallery a {
  background: #ddd;
  border-radius: var(--k3-image-radius);
  overflow: hidden;
}

.k3-gallery img {
  aspect-ratio: 5 / 6;
  border-radius: inherit;
  display: block;
  object-fit: cover;
  transition: transform 200ms ease;
  width: 100%;
}

.k3-gallery a:hover img {
  transform: scale(1.04);
}

.k3-home-gallery .k3-gallery {
  display: grid;
  grid-auto-columns: clamp(180px, 22vw, 280px);
  grid-auto-flow: column;
  grid-auto-rows: clamp(170px, 18vw, 260px);
  grid-template-columns: none;
  grid-template-rows: repeat(2, clamp(170px, 18vw, 260px));
  max-height: calc((clamp(170px, 18vw, 260px) * 2) + 32px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.k3-home-gallery .k3-gallery a {
  cursor: zoom-in;
  flex: none;
  scroll-snap-align: start;
}

.k3-home-gallery .k3-gallery img {
  height: 100%;
}

.k3-reasons {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.k3-reasons-section {
  background-color: #e8e8e8;
  background-image: linear-gradient(90deg, rgba(232, 232, 232, 0.88) 0%, rgba(232, 232, 232, 0.62) 42%, rgba(232, 232, 232, 0.06) 100%), url('https://k3craft.com.ua/wp-content/uploads/2025/11/5-2-scaled.jpg');
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.k3-reasons-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: minmax(250px, 293px) minmax(425px, 1.25fr) minmax(220px, 1fr);
  min-height: 780px;
  position: relative;
  z-index: 1;
}

.k3-reasons-list {
  display: grid;
  gap: 20px;
}

.k3-reason {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--k3-radius);
  box-shadow: var(--k3-shadow);
  overflow: hidden;
  padding: 26px 20px;
}

.k3-reason h3 {
  font-size: 19px;
  margin: -26px -20px 18px;
}

.k3-reason p {
  margin: 0;
}

.k3-reasons-title {
  align-self: start;
  color: var(--k3-text);
  display: grid;
  justify-items: start;
  padding-top: clamp(24px, 7vw, 86px);
  text-shadow: 0 16px 40px rgba(255, 255, 255, 0.65);
}

.k3-reasons-title span {
  color: var(--k3-brown);
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(150px, 24vw, 310px);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.74;
}

.k3-reasons-title strong {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02;
  margin-left: 0.08em;
  text-transform: lowercase;
}

.k3-reasons-visual-spacer {
  min-height: 1px;
}

.k3-form-section {
  background-image: linear-gradient(90deg, rgba(55, 92, 127, 0.92), rgba(55, 92, 127, 0.54)), url('../img/form-bg.webp');
  background-position: center;
  background-size: cover;
  color: #fff;
}

.k3-form-phone-note {
  margin-top: 22px;
}

.k3-form-phone-note a {
  color: #fff;
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  text-decoration: none;
}

.k3-page > .k3-cta:last-child,
.k3-page > .k3-section:last-child {
  margin-bottom: 0;
}

.k3-page > .k3-cta:last-child {
  margin-bottom: 0;
}

.k3-form-layout {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
}

.k3-form-card {
  padding: 30px;
}

.k3-form-card label {
  color: var(--k3-text);
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.k3-form-card input,
.k3-form-card textarea {
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  box-sizing: border-box;
  font: inherit;
  margin-bottom: 14px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.k3-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.k3-form-card .k3-button {
  cursor: pointer;
  width: 100%;
}

.k3-form-message {
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.k3-form-message--success {
  background: #e9f8ef;
  color: #176033;
}

.k3-form-message--error {
  background: #fdecec;
  color: #8a1d1d;
}

.k3-mobile-sticky-cta {
  display: none;
}

.k3-section-scrubber {
  display: none;
}

.k3-footer-note {
  margin-top: 32px;
  text-align: center;
}

.k3-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #f8f3ea;
  background: rgba(23, 21, 18, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.k3-consent[hidden] {
  display: none;
}

.k3-consent__body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.k3-consent__body p {
  margin: 0;
  color: rgba(248, 243, 234, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.k3-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.k3-consent__button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d39b5f;
  border-radius: 999px;
  color: #171512;
  background: #d39b5f;
  font-weight: 700;
  cursor: pointer;
}

.k3-consent__button--secondary {
  color: #f8f3ea;
  background: transparent;
}

@media (max-width: 720px) {
  .k3-consent {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
  }

  .k3-consent__actions {
    justify-content: stretch;
  }

  .k3-consent__button {
    flex: 1;
  }
}
