:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;

  --text: #1a1d23;
  --text-soft: #6b7280;
  --text-muted: #9aa3ad;
  --heading: #1d3763;

  --primary: #2f6fed;
  --primary-dark: #2159c7;

  --border: #d3dbe6;
  --border-soft: #d7dee8;
  --line: #dbe4f0;
  --line-strong: #cfd9e6;

  --hover: #edf2f7;
  --hover-2: #f0f4f8;

  --shadow-soft: 0 10px 30px rgba(26, 29, 35, 0.04);
  --shadow-card: 0 14px 40px rgba(26, 29, 35, 0.06);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --container: 1180px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-soft);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.main-nav a:hover {
  background: var(--hover-2);
  border-color: var(--border-soft);
  color: var(--text);
}

.main-nav a.active {
  background: var(--hover);
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding: 56px 0 34px;
  background:
    radial-gradient(circle at top right, rgba(47, 111, 237, 0.08), transparent 30%),
    linear-gradient(to bottom, #ffffff, #fbfcff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #eef4ff;
  border: 1px solid #d8e5ff;
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  color: var(--heading);
  line-height: 1.15;
}

.hero-text {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(47, 111, 237, 0.18);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--hover-2);
  border-color: var(--border-soft);
}

.hero-support {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-support > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.hero-support ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-support li {
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.hero-card,
.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-card {
  padding: 12px;
}

.hero-image,
.image-card img {
  width: 100%;
  border-radius: 12px;
}

.section {
  padding: 80px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--heading);
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.cards-3,
.cards-2,
.steps {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.info-card h2,
.info-card h3,
.step-card h3,
.form-card h2,
.sample-copy h2 {
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--heading);
}

.info-card h2,
.form-card h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.info-card h3,
.step-card h3 {
  font-size: 1.1rem;
}

.info-card p,
.step-card p,
.form-card p {
  margin: 0;
  color: var(--text-soft);
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step-number {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
}

.feature-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.feature-copy p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.feature-list {
  padding-left: 20px;
  margin: 0;
}

.feature-list li {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-list.compact {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list.compact li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.feature-list.compact li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a8fd9;
  font-weight: 800;
}

.cta-section {
  padding-top: 60px;
  padding-bottom: 90px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.cta-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--heading);
}

.cta-copy p {
  margin: 0;
  color: var(--text-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #fcfdff;
}

.footer-inner {
  padding: 26px 0 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
}

/* Contact page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at left top, rgba(47, 111, 237, 0.10), transparent 34%),
    radial-gradient(circle at right center, rgba(47, 111, 237, 0.08), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #f4f7fb 100%);
  text-align: center;
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.05);
  pointer-events: none;
}

.contact-hero::before {
  width: 900px;
  height: 220px;
  left: -240px;
  bottom: -100px;
  transform: rotate(10deg);
}

.contact-hero::after {
  width: 760px;
  height: 200px;
  right: -160px;
  bottom: -60px;
  transform: rotate(-8deg);
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 24px;
}

.form-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(28, 52, 84, 0.08);
  padding: 34px 28px;
}

.card-intro {
  color: var(--text-soft);
  font-size: 1.04rem;
  margin: 0;
}

.contact-items {
  margin-top: 24px;
  padding: 6px 0 0;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 6px;
  border-top: 1px solid var(--line);
}

.contact-item:first-child {
  border-top: none;
  padding-top: 8px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #dcebff 0%, #c8defd 100%);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  stroke: currentColor;
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item a,
.contact-item span:not(.contact-label) {
  color: var(--heading);
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  margin-top: 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.contact-form input {
  min-height: 54px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8a97ab;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.10);
  background: #fff;
}

.form-actions {
  margin-top: 8px;
}

/* Samples page */
.sample-list {
  display: grid;
  gap: 30px;
}

.sample-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.sample-card.reverse .sample-copy {
  order: 2;
}

.sample-card.reverse .sample-visual {
  order: 1;
}

.sample-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.sample-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.sample-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #eef4ff;
  border: 1px solid #d8e5ff;
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sample-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-image-card {
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.sample-image-card img {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sample-card,
  .sample-card.reverse {
    grid-template-columns: 1fr;
  }

  .sample-card.reverse .sample-copy,
  .sample-card.reverse .sample-visual {
    order: initial;
  }

  .page-hero {
    padding: 80px 0 72px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero-grid,
  .feature-grid,
  .cards-3,
  .cards-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .section {
    padding: 58px 0;
  }

  .brand-logo {
    height: 40px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .header-inner {
    min-height: 74px;
  }

  .main-nav {
    gap: 10px;
  }

  .info-card,
  .form-card {
    padding: 24px 20px;
  }

  .contact-item {
    gap: 12px;
    align-items: flex-start;
  }

  .contact-item a,
  .contact-item span:not(.contact-label) {
    font-size: 1.02rem;
  }

  .sample-card {
    padding: 22px 18px;
    gap: 22px;
  }

  .sample-copy h2 {
    font-size: 1.45rem;
  }
}

.form-alert {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
}

.form-alert-success {
  background: #ecfdf3;
  border: 1px solid #b7ebc9;
  color: #17603a;
}

.form-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}