/* ===== Vars ===== */
:root {
  --bg: #0a0a0a;
  --text: #f3f4f6;
  --muted: #d1d5db;
  --glass: rgba(0, 0, 0, 0.35);
  --btn-bg: rgba(229, 231, 235, 0.7);
  --btn-text: #111827;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family:
    Garet,
    Roboto Mono,
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding-top: 30px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 92px;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero {
    background-image: image-set(
      url("../assets/video/main_hero-poster.jpg") type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.lead {
  font-size: clamp(18px, 2.4vw, 30px);
  color: var(--text);
  margin: 0 0 60px;
  font-weight: 400;
  font-family: Garet;
  letter-spacing: -0.05em;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-family:
    Open Sauce,
    Garet;
}

.btn-pill {
  border-radius: 9999px;
}

/* Line-break fix */
.hero-title {
  font-size: clamp(24px, 4.2vw, 64px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  font-weight: 400;
  font-family: Roboto Mono;
}

.hero-title .hline {
  display: block;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(20px, 7vw, 56px);
  }
}

/* ===== Counter ===== */
.impact {
  background: #eee;
  color: #111;
  padding: 82px 0;
}

.impact__number {
  text-align: center;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  display: flex;
  justify-content: center;
  font-variant-numeric: tabular-nums lining-nums;
}

.impact__number.is-slots {
  display: flex;
  justify-content: center;
}

.impact__sub {
  text-align: center;
  margin-top: 50px;
  font-size: clamp(18px, 2vw, 30px);
  font-family: Roboto Mono;
}

.impact__muted {
  text-align: center;
  color: #111;
  margin-top: -15px;
  font-size: clamp(14px, 2vw, 18px);
  font-family: Roboto Mono;
}

.impact__disclaimer {
  text-align: center;
  color: #000;
  margin-top: 40px;
  font-size: clamp(8px, 2vw, 12px);
  font-weight: bold;
}

/* ===== Slot machine (animation) ===== */
.impact__reel {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  min-width: 1ch;
  vertical-align: bottom;
}

.impact__symbol {
  margin: 0;
}

.impact__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
  transform: translateY(0);
}

.impact__digit {
  display: block;
  height: 1em;
  line-height: 1;
}

.impact__symbol {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .impact__track {
    transition: none !important;
  }
}

/* ===== Ethical section ===== */
.ethical {
  background: #fff;
  color: #111;
  padding: 110px 0 0;
}

.ethical__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ethical__art img {
  display: block;
  width: 100%;
  height: auto;
}

.ethical__title {
  font-size: clamp(20px, 4vw, 34px);
  line-height: 1.1;
  margin: 0 0 36px;
  font-weight: 400;
  letter-spacing: -0.05em;
  font-family: Roboto Mono;
}

.ethical__text {
  color: #222;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.05em;
}

.ethical__btn {
  margin: 50px 0 0;
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-family:
    Open Sauce,
    Garet;
}

@media (max-width: 900px) {
  .ethical {
    padding: 48px 0;
  }

  .ethical__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ethical__art {
    order: -1;
  }
}

/* ===== 4-tiles ===== */
.tiles {
  background: #fff;
  color: #111;
  padding: 80px 0 20px;
}

.tiles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  aspect-ratio: 12 / 12;
  margin: 0;
}

.tile--dark {
  background: #0f0f0f;
  color: #fff;
  border-color: #1f1f1f;
}

.tile--light {
  background: #fff;
  color: #111;
}

.tile--image {
  padding: 0;
}

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

.tile__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  justify-content: center;
  flex: 1;
}

.tile__content .btn {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  margin-top: 50px;
  text-transform: uppercase;
}

.tile__title {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1;
  margin: 0;
  font-weight: 100;
  font-family: Roboto Mono;
}

.tile__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  font-weight: bold;
  font-weight: 100;
}

.tile--dark .tile__text {
  color: #fff;
}

.btn--light {
  background: #fff;
  color: #111;
}

.btn--dark {
  background: #111;
  color: #fff;
}

/* RWD */
@media (max-width: 900px) {
  .tiles__grid {
    grid-template-columns: 1fr;
  }

  .tile {
    aspect-ratio: 16 / 10;
  }
}

/* ===== Business core ===== */
.core {
  position: relative;
  color: #fff;
  padding: clamp(60px, 12vh, 140px) 0 72px;
}

.core__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/business_core.png") center/cover no-repeat;
  z-index: -2;
}

.core__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: -1;
}

.core__title {
  text-align: center;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(40px, 12vh, 100px);
}

.core__panel {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 0;
  padding: 22px 18px;
}

.core__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.core__item {
  position: relative;
  text-align: center;
  padding: 10px 8px;
}

.core__item + .core__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.core__icon img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 10px auto 10px;
}

.core__label {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(26px, 1.8vw, 34px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.core__cta {
  display: block;
  width: max-content;
  margin: 28px auto 0;
  background: #000;
  color: #fff;
  box-shadow: none;
}

/* RWD */
@media (max-width: 900px) {
  .core__items {
    grid-template-columns: 1fr;
  }

  .core__item + .core__item::before {
    display: none;
  }

  .core__item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .core__panel {
    padding: 16px;
  }
}

/* CORE – anim */
.core__panel,
.core__item,
.core__cta {
  opacity: 0;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.core.core--in .core__panel {
  animation: coreSlideIn 600ms ease-out forwards;
}

.core.core--in .core__item {
  animation: coreSlideIn 600ms ease-out forwards;
}

.core.core--in .core__item:nth-child(1) {
  animation-delay: 120ms;
}

.core.core--in .core__item:nth-child(2) {
  animation-delay: 220ms;
}

.core.core--in .core__item:nth-child(3) {
  animation-delay: 320ms;
}

.core.core--in .core__cta {
  animation: coreSlideIn 600ms ease-out 420ms forwards;
}

@keyframes coreSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .core__panel,
  .core__item,
  .core__cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== Contact / Why us ===== */
.why {
  background: #fff;
  color: #111;
  padding: 86px 0 100px;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left */
.why__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.why__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.why__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.why__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-align: center;
  font-family: Telegraf, Garet;
}

/* Right */
.why__content {
  border-radius: 4px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
  height: 100%;
  min-height: 0;
}

.why__content h3 {
  font-family: Roboto Mono;
}

.why__block {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  margin-bottom: 18px;
}

.why__block h3 {
  margin: 0px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.why__block p {
  color: #111;
  overflow: auto;
  font-size: clamp(10px, 2.2vw, 14px);
}

.why__rule {
  height: 1px;
  background: #2b2b2b;
  opacity: 0.5;
  margin-top: 18px;
  align-self: end;
}

.why__cta {
  justify-self: center;
  align-self: end;
  background: #111;
  color: #fff;
  border-radius: 9999px;
  margin-top: -80px;
}

@media (prefers-reduced-motion: reduce) {
  .why__video {
    display: none;
  }

  .why__media {
    background-image: image-set(
      url("../assets/video/dlaczego-my-1-poster.png") type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
  }
}

/* RWD */
@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr;
  }

  .why__label {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .why__content {
    padding: 20px 18px;
  }
}

/* WHY US? – anim */
.why__label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #fff;
  width: 0;
  opacity: 0;
}

.why__label.why--typing {
  opacity: 1;
  animation:
    typing 1.5s steps(12, end) forwards,
    blink 0.8s step-end 1.5s 2,
    hideCaret 0s linear 3.1s forwards;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 12ch;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #fff;
  }
}

@keyframes hideCaret {
  to {
    border-right: none;
  }
}

.why__label.why--done {
  border-right: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .why__label {
    opacity: 1;
    width: auto !important;
    border-right: none !important;
    animation: none !important;
  }
}

/* ===== Services ===== */
.services-pro {
  position: relative;
  color: #fff;
  padding: clamp(56px, 10vh, 84px) 0;
  overflow: hidden;
}

.services-pro__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/services-1.png") center / cover no-repeat;
  z-index: -2;
}

.services-pro__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
  z-index: -1;
}

.services-pro__title {
  text-align: center;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(28px, 5vw, 40px);
}

.services-pro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 28px);
}

.services-pro__col {
  display: grid;
  grid-template-rows: auto repeat(3, 1fr);
  gap: clamp(12px, 2vw, 18px);
}

.services-pro__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 0 8px;
  min-height: calc(1.2em * 3);
}

.services-pro__card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;

  min-height: 110px;
  padding: 16px 18px;

  background: rgba(255, 255, 255, 0.1);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  will-change: transform;

  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
}

.services-pro__card:hover,
.services-pro__card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 10px 22px rgba(0, 0, 0, 0.35);
}

.services-pro__card:active {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .services-pro__card {
    transition:
      background 0.18s ease,
      box-shadow 0.18s ease;
  }

  .services-pro__card:hover,
  .services-pro__card:focus-visible,
  .services-pro__card:active {
    transform: none;
  }
}

.services-pro__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.services-pro__cardTitle {
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* RWD */
@media (max-width: 900px) {
  .services-pro__grid {
    grid-template-columns: 1fr;
  }

  .services-pro__col {
    grid-template-rows: auto repeat(3, auto);
  }
}

/* SERVICES – anim*/
#services-pro .services-pro__title,
#services-pro .services-pro__col {
  opacity: 0;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

#services-pro.services-pro--in .services-pro__title {
  animation: spSlideIn 600ms ease-out forwards;
}

#services-pro.services-pro--in .services-pro__col {
  animation: spSlideIn 600ms ease-out forwards;
}

#services-pro.services-pro--in .services-pro__col:nth-child(1) {
  animation-delay: 280ms;
}

#services-pro.services-pro--in .services-pro__col:nth-child(2) {
  animation-delay: 420ms;
}

#services-pro.services-pro--in .services-pro__col:nth-child(3) {
  animation-delay: 560ms;
}

@keyframes spSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #services-pro .services-pro__title,
  #services-pro .services-pro__col {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== Consultation ===== */
.consult {
  position: relative;
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  background: #fff;
}

.consult::before {
  content: "";
  display: block;
  height: 80px;
  background: #fff;
  margin-bottom: 20px;
}

.consult .container {
  background: #000;
}

.consult__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.consult__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.consult__content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(6px, 1vw, 12px);
}

.consult__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.consult__title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: Roboto Mono;
}

.consult__text {
  margin: 20px 0;
  color: rgb(255, 255, 255);
  font-size: clamp(12px, 1.6vw, 14px);
  max-width: 520px;
}

.consult__cta {
  background: #fff;
  color: #111;
  font-weight: 800;
  padding: 10px 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  margin-top: 20px;
}

.consult__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.consult__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* RWD */
@media (max-width: 900px) {
  .consult__grid {
    grid-template-columns: 1fr;
  }

  .consult__content {
    order: 1;
  }

  .consult__media {
    order: 2;
  }
}

/* Consult: anim */
.consult__icon {
  opacity: 0;
  transform: translateY(50%);
  will-change: transform, opacity;
}

.consult__icon.consult--in {
  animation: consultSlideUp 600ms ease-out forwards;
}

@keyframes consultSlideUp {
  from {
    opacity: 0;
    transform: translateY(50%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult__icon {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== Experience ===== */
.xp {
  background: #fff;
  color: #111;
  padding: 56px 0 50px;
}

.xp__head {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 100px;
}

.xp__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.xp__lead {
  margin: 0 auto 28px;
  max-width: 780px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: #111;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* black band */
.xp__band {
  background: #0a0a0a;
  color: #fff;
  padding: 100px 0;
  margin: 32px 0;
}

.xp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  text-align: center;
}

.xp__metric {
  display: grid;
  gap: 6px;
}

.xp__num {
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.xp__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.95;
}

.xp__ctaWrap {
  display: grid;
  justify-items: center;
  margin-top: 150px;
  margin-bottom: 100px;
}

.xp__cta {
  background: #111;
  color: #fff;
  font-weight: 800;
}

/* RWD */
@media (max-width: 900px) {
  .xp {
    padding: 44px 0 28px;
  }

  .xp__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }
}

/* ===== Workflow ===== */
.workflow__section {
  background: #0a0a0a;
  color: #fff;
  padding: clamp(56px, 10vh, 84px) 0;
  text-align: center;
}

.workflow__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 48px;
}

.workflow__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.workflow__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.workflow__row.left {
  margin-left: 80px;
}

.workflow__row.right {
  margin-right: 80px;
}

.workflow__card {
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  border-color: rgb(255, 255, 255);
  padding: 18px 16px;
  font-family: Montserrat, Garet;
}

.workflow__card h3 {
  font-size: 18px;
  font-weight: bolder;
  margin: 0 0 8px;
}

.workflow__card p {
  font-size: 14px;
  margin: 0;
  color: rgb(255, 255, 255);
  line-height: 1.1;
}

.workflow__line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 150px;
}

.workflow__line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.workflow__dot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: Montserrat, Garet;
}

.workflow__dot.big {
  width: 46px;
  height: 46px;
}

.workflow__dot.filled {
  background: #fff;
  color: #111;
}

/* RWD */
@media (max-width: 900px) {
  .workflow__row {
    grid-template-columns: 1fr;
  }

  .workflow__row.left,
  .workflow__row.right {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .workflow__line {
    display: none;
  }
}

/* WORKFLOW – anim */
.workflow__row,
.workflow__line {
  opacity: 0;
  transform: translateX(60%);
  will-change: transform, opacity;
}

.workflow__row.workflow--in,
.workflow__line.workflow--in {
  animation: workflowSlideIn 700ms ease-out forwards;
}

@keyframes workflowSlideIn {
  from {
    opacity: 0;
    transform: translateX(60%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow__row,
  .workflow__line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== Contact Form ===== */
.formsec {
  background: #fff;
  color: #111;
  padding: 150px 0 150px;
}

.formsec__title {
  text-align: center;
  margin: 0 0 100px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.formsec__subtitle {
  display: block;
  font-weight: 400;
  color: #111;
  opacity: 0.9;
  font-size: clamp(20px, 1.8vw, 30px);
  margin-top: 6px;
}

.cform {
  max-width: 740px;
  margin: 0 auto;
}

.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
}

.cform__field {
  display: grid;
  gap: 6px;
  font-family: Roboto Mono;
}

.cform__field--full {
  grid-column: 1 / -1;
}

.cform__field label {
  font-size: 18px;
  color: #111;
}

.cform__field input {
  appearance: none;
  border: 0;
  outline: 0;
  background: #f3f4f6;
  padding: 14px 12px 12px;
  border-bottom: 2px solid #1f2937;
  border-radius: 2px;
  font-size: 15px;
}

.cform__field input:focus {
  background: #eef0f4;
  border-bottom-color: #000;
}

/* submit btn */
.cform__actions {
  display: grid;
  justify-items: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.form__status {
  margin: 0 auto;
  padding: 0 14px;
  max-width: 480px;
  max-height: 0;
  overflow: hidden;

  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-gray);

  background: #f5f6f8;
  border: 1px solid #eceef2;
  border-radius: 999px;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    max-height 0.25s ease,
    padding-top 0.25s ease,
    padding-bottom 0.25s ease,
    margin-top 0.25s ease;
}

.form__status--visible {
  opacity: 1;
  transform: none;
  max-height: 200px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top: 16px;
}

.form__status--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.form__status--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.cform__submit {
  background: #111;
  color: #fff;
  padding: 20px 100px;
  font-weight: 800;
  font-size: medium;
}

.callbox {
  max-width: 760px;
  margin: 120px auto 0;
  text-align: center;
  padding: 22px 20px;
  border: 2px solid #111;
  border-radius: 20px;
}

.callbox__text {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
}

.callbox__phone {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

/* RWD */
@media (max-width: 800px) {
  .cform__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Overflow hide */
.core,
#services-pro,
.workflow__section {
  overflow-x: hidden;
}

/* Btn */
.btn-dark {
  margin-top: 40px;
  background: #000;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  padding: 14px 40px;
  min-width: 220px;
  border-radius: 999px;
  text-align: center;
}

.btn-dark:hover {
  background: #111;
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  padding: 12px 28px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

.btn-bordered {
  border: 1px solid #111;
  color: #000;
  background-color: #fff;
}

.btn-bordered-white {
  border: 1px solid #fff;
  color: #fff;
  background-color: #000;
}

.btn-bordered-black {
  border: 1px solid #000;
  color: #000;
  background-color: #fff;
}

.btn-small {
  display: inline-block;
  width: fit-content;
  padding: 15px 15px;
}

/* ===== Rules ===== */
.rules {
  background: linear-gradient(180deg, #1a1a1a 0%, #000 90%);
  color: #111;
  padding: 200px 0 80px;
}

.rules .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px;
  background: #f6f6f6;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.rules .rules-normal {
  margin: 0 0 14px;
  line-height: 1.85;
  font-size: clamp(15px, 1.6vw, 17px);
  color: #1c1c1c;
  text-wrap: pretty;
  hyphens: auto;
}

.rules .rules-normal b {
  font-weight: 700;
  color: #1c1c1c;
}

.rules a {
  color: #6175a3;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.rules a:hover {
  color: #2c447a;
  text-decoration-color: #2c447a;
}

.rules a[href^="mailto"],
.rules a[href^="tel"] {
  font-weight: 600;
}

.rules h1,
.rules h2,
.rules h3 {
  margin: 22px 0 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #2c2c2c;
  font-family:
    "Montserrat",
    "Open Sans",
    system-ui,
    -apple-system,
    sans-serif;
}

.rules h1 {
  font-size: clamp(22px, 3.4vw, 30px);
}

.rules h2 {
  font-size: clamp(18px, 2.6vw, 24px);
}

.rules h3 {
  font-size: clamp(16px, 2.2vw, 20px);
}

.rules .container > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 28px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.rules .rules-normal + .rules-normal {
  margin-top: 6px;
}

@media print {
  .rules {
    background: #fff;
    color: #111827;
  }

  .rules .rules-normal {
    color: #111827;
  }

  .rules .container > div {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .rules a {
    color: #0645ad;
    text-decoration: underline;
  }
}

/* ===== Under Construction ===== */
.under-construction {
  background: linear-gradient(180deg, #1a1a1a 0%, #000 90%);
  padding: 200px 0 100px;
  text-align: center;
  color: #111;
}

.under-construction .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 36px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.under-construction__title {
  font-family:
    Roboto Mono,
    Garet,
    sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b0d12;
}

.under-construction__text {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  margin: 0 0 50px;
}

ul {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1cm;
  list-style-position: outside;
}

li {
  text-align: left;
  margin-bottom: 10px;
}

ol {
  text-align: left;
}
