/* ============================
   UiPath LP - Stylesheet
   ============================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Wix Madefor Display', sans-serif;
  color: #182126;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.text-yellow { color: #FFFF53; }
.text-orange { color: #FA4616; }
.text-large  { font-size: 1.28em; font-weight: 800; }
.br-sp       { display: none; }
.br-pc       { display: inline; }

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.section__inner--narrow {
  max-width: 1200px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: 32px;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
  line-height: 1.4;
}
.btn:hover { opacity: 0.85; transform: translateY(-2px); }

.btn--orange { background: #FA4616; color: #fff; }
.btn--dark   { background: #293940; color: #fff; }
.btn--teal   { background: #0BA2B3; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.62); }
.btn--sm     { height: 50px; min-width: 180px; font-size: 15px; }
.btn--full   { width: 100%; max-width: 320px; }
.btn--outline-white {
  outline: 3px solid #fff;
  outline-offset: -3px;
  width: 250px;
  height: 60px;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 70px 10px 44px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  gap: 10px;
  height: 92px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo img {
  width: 170px;
  height: 65px;
  object-fit: contain;
}

.header__logo-sub {
  font-size: 15px;
  color: #000;
}

.header__nav {
  flex: 1;
  text-align: right;
}

.header__nav-list {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.header__nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
}

.header__nav-link.is-bold {
  font-weight: 700;
}

.header__cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.header__nav-cta {
  display: none;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.header__hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #293940;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- KV (Hero) ---------- */
.kv {
  background: linear-gradient(0deg, #22282E, #22282E);
}

.kv__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  background: #22282E;
}

.kv__content {
  flex: 1 1 0;
  min-width: 320px;
  padding: 50px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, #22282E 0%, rgba(34,40,46,.85) 25%, rgba(34,40,46,.78) 50%, rgba(34,40,46,.78) 100%),
              url('../images/kv-office-team.jpg') center center/cover no-repeat;
  min-height: 612px;
}

.kv__text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 10px;
}

.kv__heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.17;
}

.kv__sub-heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.17;
}

.kv__badges {
  max-width: 700px;
  width: 100%;
  padding: 0 10px;
}

.kv__badges-lead {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.kv__badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 5px 10px;
}

.kv__badge {
  width: 300px;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #293940;
  outline: 3px solid #EDFAFF;
  outline-offset: -3px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

/* KV Form */
.kv__form-wrap {
  flex: 0 0 350px;
  max-width: 350px;
  min-width: 320px;
  padding: 15px;
  background: rgba(38,37,37,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kv__form-label {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0,0,0,1);
}

.kv__form-box {
  width: 100%;
  padding: 23px 10px;
  background: linear-gradient(0deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), #CCF2FF;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kv__form-title {
  color: #1E6482;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.kv__form-subtitle {
  color: #1E6482;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Achievements ---------- */
.achievements {
  padding: 30px 10px 69px;
  text-align: center;
}

.achievements__heading {
  font-size: 36px;
  font-weight: 700;
  color: #182126;
  line-height: 1.3;
  padding: 23px 0 9px;
}

.achievements__sub {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #182126;
  margin-top: 46px;
  margin-bottom: 20px;
}

.achievements__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0;
}

.achievements__icon-item {
  flex: 1 1 0;
  min-width: 100px;
  max-width: 160px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.achievements__icon {
  font-size: 72px;
  color: #15839A;
  background: none;
}

.achievements__icon-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.achievements__icon-label {
  font-size: 16px;
  color: #182126;
}

/* ---------- Problem ---------- */
.problem {
  padding: 46px 10px 22px;
  background: #22282E;
}

.problem__heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 34px;
}

.problem__content {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.problem__image {
  width: 416px;
  max-width: 100%;
}

.problem__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.problem__text {
  flex: 1 1 320px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.problem__text p + p {
  margin-top: 1em;
}

/* ---------- Solution ---------- */
.solution {
  position: relative;
}

.solution__bg {
  background: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.74)),
              url('../images/bg-light-line.jpeg') center/cover no-repeat;
  padding-bottom: 112px;
}

.solution__wave {
  display: block;
  width: 100%;
  height: 78px;
}

.solution__heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  padding-top: 88px;
  line-height: 1.3;
}

.solution__heading .text-large {
  font-size: 40px;
}

.solution__text {
  text-align: center;
  color: #fff;
  padding-top: 47px;
}

.solution__text .solution__lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1em;
}

.solution__text p {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}

.solution__text p + p {
  margin-top: 1em;
}

/* ---------- Changes (3 cards) ---------- */
.changes {
  padding: 71px 10px 0;
  background: #171F25;
}

.changes__heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 37px;
}

.changes__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.changes__card {
  flex: 1 1 0;
  max-width: 350px;
  min-width: 300px;
  min-height: 460px;
  padding: 5px 10px 77px;
  background: #293940;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.changes__card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  background: #157E93;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.changes__card-header .material-symbols-outlined {
  font-size: 40px;
}

.changes__card-title {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.changes__card-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- Wave Transitions ---------- */
.wave-transition {
  line-height: 0;
}

.wave-transition svg {
  display: block;
  width: 100%;
  height: 78px;
}

.wave-transition--dark-to-light {
  background: #F5F5F5;
}

/* ---------- Features ---------- */
.features {
  padding: 46px 10px;
  background: #F5F5F5;
}

.features__heading {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 30px;
}

.features__lead {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 35px;
}

.features__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 53px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.features__card {
  width: 450px;
  min-height: 400px;
  padding: 60px 20px 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.features__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.features__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.features__card-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.features__card-icon-row .material-symbols-outlined {
  font-size: 36px;
  color: #fff;
}

.features__card-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.features__card-label {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.features__card-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 10px;
}

.features__card-desc {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  padding: 10px 15px;
}

.features__card-name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  align-self: flex-end;
  padding: 6px 16px;
  background: #E8461C;
  border-radius: 2px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* PC Info Box */
.pc-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 46px auto 0;
  padding: 46px 50px 61px;
  background: #157E93;
  border-radius: 40px;
}

.pc-info__left {
  flex: 0 0 52%;
  padding: 10px;
}

.pc-info__title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.pc-info__right {
  flex: 1 1 300px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pc-info__block h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.pc-info__block p {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- Case Study ---------- */
.case-study {
  padding: 46px 10px 100px;
}

.case-study .section__inner {
  max-width: 1080px;
}

.case-study__heading {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.case-study__sub-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 29px;
}

.case-study__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.case-study__box {
  flex: 1 1 320px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__box--gray { background: #F5F5F5; }

.case-study__box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
}

.case-study__tag {
  display: inline-block;
  padding: 10px;
  background: #1E6482;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.case-study__box-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  padding: 12px;
}

.case-study__box-body {
  padding: 10px 25px;
}

.case-study__box-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.case-study__box-body p + p {
  margin-top: 1em;
}

.case-study__box-body strong {
  font-size: 16px;
  font-weight: 700;
}

.case-study__list {
  list-style: disc;
  padding-left: 1.4em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.case-study__list li + li {
  margin-top: 0.8em;
}

/* Result */
.case-study__result {
  background: #CCF2FF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study__result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
}

.case-study__result-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.case-study__result-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 25px;
}

.case-study__result-text {
  flex: 1 1 300px;
  padding: 10px;
}

.case-study__result-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.case-study__result-text p + p {
  margin-top: 1em;
}

.case-study__result-text strong {
  font-size: 16px;
  font-weight: 700;
}

.case-study__result-image {
  flex: 1 1 300px;
  max-width: 450px;
}

.case-study__result-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- No IT ---------- */
.no-it {
  padding: 55px 10px 10px;
}

.no-it__box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 50px;
  background: #157E93;
  border-radius: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.no-it__left {
  flex: 0 0 52%;
  padding: 10px;
}

.no-it__title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.no-it__right {
  flex: 1 1 300px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.no-it__qa h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.no-it__qa p {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 30px 10px;
  background: #171F25;
}

.pricing__heading {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 30px;
}

.pricing__text {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 10px;
}

.pricing .cta-row {
  padding: 30px 10px 20px;
}

/* ---------- Partner ---------- */
.partner {
  padding: 46px 10px;
}

.partner__heading-top {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 50px;
}

.partner__heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 27px;
}

.partner__intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px;
  border: 2px solid #FA4616;
  border-radius: 28px;
  text-align: center;
}

.partner__intro-text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
}

.partner__strengths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.partner__strength-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.partner__strength-header .material-symbols-outlined {
  font-size: 34px;
  color: #0BA2B3;
}

.partner__strength-header span:last-child {
  font-size: 20px;
  font-weight: 600;
  color: #0BA2B3;
}

.partner__strength p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.partner__badge {
  margin-top: 28px;
  margin-bottom: 10px;
}

.partner__badge img {
  max-width: 380px;
  margin: 0 auto;
}

.partner__sub-text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  padding: 50px 10px 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Partner Services */
.partner__services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 12px;
  margin-left: -80px;
  margin-right: -80px;
}

.partner__service-card {
  background: #CCF2FF;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  border-radius: 0;
  overflow: hidden;
}

.partner__service-header {
  padding: 18px 14px;
  background: #0BA2B3;
}

.partner__service-header h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
}

.partner__service-header p {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.partner__service-image {
  line-height: 0;
}

.partner__service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner__service-body {
  padding: 18px 16px;
}

.partner__service-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.partner__closing {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  padding: 60px 10px 10px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 46px 10px;
  background: #CCF2FF;
}

.faq__heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: #182126;
  margin-bottom: 26px;
}

.faq__list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 40px;
}

.faq__item {
  background: #fff;
}

.faq__item:first-child {
  border-radius: 20px 20px 0 0;
  padding-top: 20px;
}

.faq__item:last-child {
  border-radius: 0 0 20px 20px;
  padding-bottom: 20px;
}

.faq__question-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #000;
  padding: 28px 32px 3px;
}

.faq__answer-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #182126;
  padding: 0 32px 28px;
}

.faq__a-mark {
  color: #CE340B;
  font-size: 20px;
  font-weight: 500;
  margin-right: 4px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 46px 10px;
  background: #E3EEF9;
  text-align: center;
}

.contact .section__inner {
  max-width: 980px;
  background: #fff;
  padding: 40px 40px;
  border-radius: 16px;
}

.contact__heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 50px 10px 30px;
  background: #00306d;
}

.footer__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

.footer__nav-list a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer__nav-list a:hover {
  opacity: 0.7;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  text-align: center;
}

/* ---------- BowNow Form Area ---------- */
.bownow-form-area {
  width: 100%;
}

.bownow-form-area--kv {
  min-height: 420px;
  position: relative;
}

.bownow-form-area--kv::before {
  content: '読み込み中...';
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: #1E6482;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.bownow-form-area--kv:has(> :not(script)) {
  min-height: auto;
}

.bownow-form-area--kv:has(> :not(script))::before {
  display: none;
}

/* Hide fallback forms when BowNow loads */
.bownow-form-area:not(:empty) ~ .kv-form-fallback,
.bownow-form-area:not(:empty) ~ .contact-form-fallback {
  display: none;
}

/* BowNow injected form overrides */
.bownow-form-area iframe,
.bownow-form-area form {
  width: 100% !important;
  max-width: 100% !important;
}

.bownow-form-area input[type="text"],
.bownow-form-area input[type="email"],
.bownow-form-area input[type="tel"],
.bownow-form-area select,
.bownow-form-area textarea {
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

.bownow-form-area--kv input[type="text"],
.bownow-form-area--kv input[type="email"] {
  height: 38px !important;
  background: #fff !important;
}

.bownow-form-area--kv label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #000 !important;
}

.bownow-form-area--kv input[type="submit"],
.bownow-form-area--kv button[type="submit"] {
  width: 100% !important;
  padding: 12px !important;
  background: #0BA2B3 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-shadow: 0 0 4px rgba(0,0,0,.62) !important;
}

.bownow-form-area--contact input[type="submit"],
.bownow-form-area--contact button[type="submit"] {
  width: 100% !important;
  max-width: 400px !important;
  padding: 14px 24px !important;
  background: #FA4616 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* ---------- KV Fallback Form ---------- */
.kv-form-fallback {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-form-fallback__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kv-form-fallback__label {
  width: 84px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.kv-form-fallback__input {
  flex: 1;
  height: 38px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
}

.kv-form-fallback__checkbox {
  width: 39px;
  height: 38px;
  accent-color: #0BA2B3;
}

.kv-form-fallback__agree {
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

/* ---------- Contact Fallback Form ---------- */
.contact-form-fallback {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-top: 1px solid #c8d8e8;
}

.contact-form-fallback__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c8d8e8;
  background: #eaf2fb;
}

.contact-form-fallback__row:nth-child(even) {
  background: #e0ecf7;
}

.contact-form-fallback__row label {
  width: 220px;
  flex-shrink: 0;
  padding: 16px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #182126;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form-fallback__row .required {
  display: inline-block;
  background: #2563EB;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
}

.contact-form-fallback__row .optional {
  display: inline-block;
  background: #888;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
}

.contact-form-fallback__input-area {
  flex: 1;
  padding: 10px 16px 10px 0;
}

.contact-form-fallback__row input,
.contact-form-fallback__row select,
.contact-form-fallback__row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b0c4de;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.contact-form-fallback__row select {
  appearance: auto;
}

.contact-form-fallback__row textarea {
  resize: vertical;
}

.contact-form-fallback .btn {
  margin: 24px auto 0;
  max-width: 400px;
}

/* ========================================
   Responsive
   ======================================== */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
  /* Header: switch to hamburger at 1024px */
  .header__inner { height: auto; padding: 10px; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__hamburger {
    display: flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
  }

  .header__nav.is-open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.97);
    z-index: 105;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
  }

  .header__nav.is-open .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .header__nav.is-open .header__nav-link { font-size: 20px; }

  .header__nav.is-open .header__nav-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
    align-items: center;
  }
  .header__nav-cta .btn { color: #fff; }

  .kv__heading,
  .kv__sub-heading { font-size: 28px; }

  .achievements__heading,
  .problem__heading,
  .solution__heading,
  .changes__heading,
  .features__heading,
  .case-study__heading,
  .faq__heading,
  .contact__heading,
  .partner__heading-top,
  .partner__heading,
  .pricing__heading { font-size: 28px; }

  .solution__lead { font-size: 22px; }
  .solution__text p { font-size: 18px; }
  .solution__heading { padding-top: 60px; }

  .features__card {
    width: 340px;
    height: auto;
    min-height: 360px;
  }

  .features__cards { gap: 30px; }

  .partner__intro-text,
  .partner__sub-text,
  .partner__closing,
  .pricing__text { font-size: 20px; }

  .pc-info__title { font-size: 24px; }
  .no-it__title { font-size: 28px; }

  .partner__services {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    margin-left: 0;
    margin-right: 0;
    row-gap: 16px;
  }

  .partner__service-card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }

  .partner__service-image img {
    height: auto;
  }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
  /* Utility: hide <br> on mobile */
  .kv__heading br,
  .problem__heading br,
  .problem__text br,
  .solution__text br,
  .changes__heading br,
  .features__card-label br,
  .features__card-title br,
  .features__card-desc br,
  .pc-info__title br,
  .pc-info__block p br,
  .case-study__sub-heading br,
  .case-study__box-title br,
  .no-it__title br,
  .no-it__qa p br,
  .pricing__text br,
  .partner__intro-text br,
  .partner__sub-text br,
  .partner__closing br { display: none; }
  .br-sp { display: inline; }
  .br-pc { display: none; }

  /* Section padding */
  .section__inner { padding: 0 16px; }
  .achievements { padding: 30px 16px 40px; }
  .problem { padding: 36px 16px 22px; }
  .solution__bg { padding-bottom: 60px; }
  .solution__heading { padding-top: 50px; }
  .changes { padding: 40px 16px 0; }
  .features { padding: 36px 16px; }
  .case-study { padding: 36px 16px; }
  .no-it { padding: 36px 16px 20px; }
  .pricing { padding: 36px 16px; }
  .partner { padding: 36px 16px; }
  .faq { padding: 36px 16px; }
  .contact { padding: 36px 16px; }
  .contact .section__inner { padding: 40px 16px; }

  /* Wave SVG */
  .solution__wave,
  .wave-transition svg { height: 40px; }

  /* KV */
  .kv__inner {
    flex-direction: column;
    background-size: cover;
    background-position: center center;
  }
  .kv__content {
    min-width: 0;
    min-height: auto;
    padding: 30px 16px 20px;
    background: linear-gradient(180deg, rgba(34,40,46,.9) 0%, rgba(34,40,46,.8) 50%, rgba(34,40,46,.9) 100%),
                url('../images/kv-office-team.jpg') center 30%/cover no-repeat;
  }

  .kv__heading,
  .kv__sub-heading { font-size: 22px; }

  .kv__form-wrap {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    padding: 15px 16px;
  }

  .kv__badge {
    width: 100%;
    max-width: 300px;
  }

  .kv__badges-lead { font-size: 15px; }

  /* General headings */
  .achievements__heading,
  .problem__heading,
  .solution__heading,
  .changes__heading,
  .features__heading,
  .case-study__heading,
  .faq__heading,
  .contact__heading,
  .partner__heading-top,
  .partner__heading,
  .pricing__heading { font-size: 22px; }

  .achievements__sub,
  .case-study__sub-heading { font-size: 18px; }

  /* Achievements icons */
  .achievements__icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Problem */
  .problem__content { flex-direction: column; }
  .problem__image { width: 100%; }
  .problem__text { font-size: 16px; }

  /* Solution */
  .solution__lead { font-size: 20px; }
  .solution__text p { font-size: 16px; }
  .features__lead { font-size: 16px; }

  /* Changes */
  .changes__cards { gap: 16px; flex-direction: column; }
  .changes__card {
    min-width: 0;
    max-width: 100%;
    min-height: auto;
    padding: 5px 16px 30px;
  }

  /* Features */
  .features__cards { gap: 24px; flex-direction: column; }
  .features__card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    background-size: cover;
    background-position: center center;
  }

  .features__card-label { font-size: 18px; }
  .features__card-title { font-size: 16px; }

  /* PC Info & No-IT boxes */
  .pc-info {
    border-radius: 20px;
    padding: 30px 20px;
    flex-direction: column;
    max-width: 100%;
  }

  .pc-info__left {
    flex: 1 1 auto;
    padding: 10px 0;
  }

  .pc-info__right {
    flex: 1 1 auto;
    padding: 10px 0;
    gap: 24px;
  }

  .no-it__box {
    border-radius: 20px;
    padding: 30px 20px;
    flex-direction: column;
    max-width: 100%;
  }

  .no-it__left {
    flex: 1 1 auto;
    padding: 10px 0;
  }

  .no-it__right {
    flex: 1 1 auto;
    padding: 10px 0;
    gap: 24px;
  }

  .pc-info__title { font-size: 22px; }
  .no-it__title { font-size: 24px; }

  .pc-info__block h4 { font-size: 18px; }
  .no-it__qa h4 { font-size: 20px; }
  .no-it__qa p { font-size: 16px; }

  /* Case Study */
  .case-study__grid { flex-direction: column; }
  .case-study__box { flex: 1 1 auto; min-height: auto; }
  .case-study__result-body { flex-direction: column; }
  .case-study__list { font-size: 15px; }

  /* Partner */
  .partner__intro {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .partner__services {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    margin-left: 0;
    margin-right: 0;
    row-gap: 16px;
  }

  .partner__service-card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }

  .partner__service-image img {
    height: auto;
  }

  .pricing__text,
  .partner__intro-text,
  .partner__sub-text,
  .partner__closing { font-size: 18px; }

  .partner__service-header h4 { font-size: 16px; }
  .partner__service-header p { font-size: 14px; }
  .partner__service-body p { font-size: 14px; }

  .partner__strength-header span:last-child { font-size: 18px; }
  .partner__strength p { font-size: 14px; }
  .partner__badge img { max-width: 280px; }

  /* FAQ */
  .faq__question-text { font-size: 18px; padding: 20px 20px 3px; }
  .faq__answer-text { font-size: 16px; padding: 0 20px 20px; }
  .faq__list { padding: 0 8px; }

  /* CTA */
  .cta-row {
    gap: 16px;
    padding: 20px 10px 30px;
    flex-direction: column;
    align-items: center;
  }

  .btn--outline-white {
    width: 100%;
    max-width: 280px;
    height: 54px;
    font-size: 14px;
  }

  .btn--sm {
    min-width: 140px;
    font-size: 14px;
    height: 44px;
  }

  /* Footer */
  .footer { padding: 36px 16px 24px; }
  .footer__inner { gap: 16px; }
  .footer__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .footer__nav-list a {
    display: block;
    padding: 10px 16px;
  }
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .footer__links a {
    display: block;
    padding: 8px 16px;
  }

  /* Contact Form Fallback */
  .contact-form-fallback__row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-fallback__row label {
    width: 100%;
    padding: 10px 12px 4px;
  }

  .contact-form-fallback__input-area {
    padding: 4px 12px 10px;
  }
}

/* --- Small Mobile (480px) --- */
@media (max-width: 480px) {
  .kv__heading,
  .kv__sub-heading { font-size: 18px; }

  .kv__badges-lead { font-size: 14px; }
  .kv__badge { font-size: 14px; width: 100%; }

  .kv__text { gap: 16px; }

  .achievements__heading,
  .problem__heading,
  .solution__heading,
  .changes__heading,
  .features__heading,
  .case-study__heading,
  .faq__heading,
  .contact__heading,
  .partner__heading-top,
  .partner__heading,
  .pricing__heading { font-size: 18px; }

  .achievements__sub,
  .case-study__sub-heading { font-size: 16px; }

  .achievements__icon-img { width: 44px; height: 44px; }
  .achievements__icon-item { min-width: 80px; max-width: 120px; }

  .solution__lead { font-size: 16px; }

  .changes__card-title { min-height: auto; }

  .features__card { min-height: 260px; padding: 40px 16px 20px; }
  .features__card-label { font-size: 16px; }
  .features__card-title { font-size: 15px; }
  .features__card-desc { font-size: 14px; padding: 8px 10px; }

  .pc-info__title { font-size: 20px; }
  .no-it__title { font-size: 20px; }

  .pc-info__block h4 { font-size: 16px; }
  .no-it__qa h4 { font-size: 18px; }
  .no-it__qa p { font-size: 15px; }

  .case-study__box-header { flex-direction: column; align-items: flex-start; }
  .case-study__result-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case-study__list { font-size: 14px; }

  .partner__services { grid-template-columns: 1fr; row-gap: 16px; }
  .partner__service-header h4 { font-size: 17px; }
  .partner__closing { font-size: 16px; }
  .partner__sub-text { font-size: 16px; }
  .partner__intro-text { font-size: 16px; }

  .faq__question-text { font-size: 16px; padding: 16px 16px 3px; }
  .faq__answer-text { font-size: 15px; padding: 0 16px 16px; }
  .faq__list { padding: 0; }

  .btn--outline-white { max-width: 100%; }
  .btn--full { max-width: 100%; }

  /* Header */
  .header__logo img { width: 130px; height: auto; }
  .header__logo-sub { font-size: 12px; }

  /* Footer */
  .footer__logo img { height: 32px; }
  .footer__nav-list a { font-size: 13px; }
  .footer__links a { font-size: 12px; }
  .footer__copy { font-size: 11px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .header__hamburger span { transition: none; }
}
