:root {
  --bg: #f6f8ff;
  --bg-2: #eef3ff;
  --bg-3: #fff9f1;

  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.82);

  --border: rgba(120, 144, 220, 0.18);
  --border-strong: rgba(120, 144, 220, 0.28);

  --text: #1e2a44;
  --text-strong: #12203b;
  --muted: #5f6f92;
  --muted-2: #7e8cad;

  --primary: #6d8cff;
  --primary-2: #8aa3ff;
  --primary-soft: #dfe7ff;

  --accent-warm: #ffd7a8;
  --accent-warm-2: #fff1df;
  --success: #59c99f;

  --shadow: 0 20px 60px rgba(74, 93, 150, 0.14);
  --shadow-soft: 0 10px 30px rgba(74, 93, 150, 0.08);

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 100% 80% at 15% 10%, rgba(255, 220, 176, 0.38), transparent 48%),
    radial-gradient(ellipse 85% 65% at 88% 15%, rgba(174, 202, 255, 0.3), transparent 48%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8ff 50%, #fffaf4 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

/* ----- Skip link (accessibility) ----- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 14px 24px;
  background: var(--text-strong);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* Sections: scroll margin so anchor links aren't hidden under sticky header */
section[id] {
  scroll-margin-top: 100px;
}

.container,
.site-header,
.site-footer,
main {
  position: relative;
  z-index: 2;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.neuron-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  contain: layout style paint;
}

.bg-grid,
.bg-noise,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  contain: layout style paint;
}

.bg-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(125, 148, 220, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 148, 220, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, black 0%, rgba(0,0,0,0.4) 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, black 0%, rgba(0,0,0,0.4) 55%, transparent 78%);
}

.bg-noise {
  z-index: 0;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99, 117, 188, 0.12) 0.7px, transparent 0.7px),
    radial-gradient(circle at 80% 60%, rgba(99, 117, 188, 0.1) 0.7px, transparent 0.7px);
  background-size: 26px 26px, 32px 32px;
}

.bg-glow {
  z-index: 0;
  filter: blur(40px);
}

.glow-1 {
  background: radial-gradient(circle at 18% 12%, rgba(255, 214, 164, 0.34), transparent 30%);
}

.glow-2 {
  background: radial-gradient(circle at 82% 18%, rgba(158, 187, 255, 0.3), transparent 28%);
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120, 144, 220, 0.12);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(165deg, rgba(158, 182, 255, 0.32), rgba(255, 228, 196, 0.28));
  border: 1.5px solid rgba(120, 144, 220, 0.35);
  box-shadow:
    0 2px 8px rgba(109, 140, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--primary);
}

.brand-mark-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-mark-int {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  fill: currentColor;
  letter-spacing: -0.04em;
}

.brand-text {
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 10px;
}
.nav-link:hover {
  color: var(--text-strong);
}
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  color: var(--text-strong);
}
.nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.desktop-nav .nav-cta {
  margin-left: 4px;
}
.nav-cta:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 4px;
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border-strong);
}
.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  padding: 20px 20px 24px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(120, 144, 220, 0.12);
  box-shadow: 0 10px 40px rgba(74, 93, 150, 0.08);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(120, 144, 220, 0.1);
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 10px;
  margin-bottom: 2px;
}
.mobile-nav-link:hover {
  color: var(--text-strong);
}
.mobile-nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  color: var(--text-strong);
}
.mobile-nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav-cta {
  display: flex;
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}
.mobile-nav-cta:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 4px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.6;
}

.hero {
  padding: 64px 0 56px;
}

.hero-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  color: #556891;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  position: relative;
  overflow: visible;
}

/* Composited pulse ring (transform + opacity only) instead of box-shadow */
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 2px solid rgba(89, 201, 159, 0.42);
  transform: scale(0.25);
  opacity: 1;
  animation: pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.25);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 12ch;
  color: var(--text-strong);
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.hero-trust-item,
.feature-card,
.price-card,
.benefit-box,
.approach-panel,
.about-compact-inner,
.contact-callout,
.contact-form-wrap,
.timeline-item,
.hero-profile,
.math-card {
  min-width: 0;
}

.hero-trust-item {
  padding: 22px;
  border-radius: 20px;
}

.hero-trust-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.hero-trust-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-trust-signal {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 52ch;
}

.hero-profile {
  padding: 24px;
  border-radius: 28px;
  max-width: 340px;
  margin-left: auto;
}

.hero-photo-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(120, 144, 220, 0.12);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-profile-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
}

.hero-profile-role {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
}

.hero-profile-points {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.hero-profile-points li + li {
  margin-top: 8px;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f6ef7, #6d8cff);
  color: #fff;
  border-color: rgba(79, 110, 247, 0.4);
  box-shadow: 0 4px 14px rgba(79, 110, 247, 0.35), 0 16px 40px rgba(79, 110, 247, 0.25);
  font-weight: 800;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #435ee8, #5c7cf6);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.4), 0 20px 48px rgba(79, 110, 247, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-strong);
  border-color: rgba(120, 144, 220, 0.18);
}

.btn-full {
  width: 100%;
}

.section-head {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.cards-3,
.math-grid,
.pricing-grid,
.benefits-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

/* Pojedynczy panel „Moje podejście do nauczania” */
.container-full {
  max-width: 100%;
  width: min(calc(100% - 40px), var(--container));
}

.approach-panel {
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.approach-panel-full {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.approach-panel h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.approach-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.approach-panel p + p {
  margin-top: 16px;
}

.approach-panel p strong {
  color: var(--text-strong);
  font-weight: 700;
}

.approach-panel-full p {
  max-width: 72ch;
}

.approach-panel-full p + p {
  margin-top: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 40px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(120, 144, 220, 0.1);
  background: var(--bg-2);
  transform: rotate(2deg);
}

.about-photo-wrap:hover {
  transform: rotate(1deg) scale(1.02);
  box-shadow: var(--shadow), 0 0 0 1px rgba(120, 144, 220, 0.12);
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.feature-card,
.math-card,
.price-card,
.benefit-box {
  padding: 28px;
  border-radius: 28px;
}

.feature-card h3,
.math-card h3,
.price-card h3,
.benefit-box h3,
.timeline-item h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.feature-card p,
.math-card p,
.price-card p,
.benefit-box p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-card ul,
.math-card ul,
.price-card ul,
.benefit-box ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.feature-card li,
.math-card li,
.price-card li,
.benefit-box li {
  line-height: 1.65;
}

.feature-card li + li,
.math-card li + li,
.price-card li + li,
.benefit-box li + li {
  margin-top: 8px;
}

.math-card p + p {
  margin-top: 14px;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #8ba5ff, #ffcfa1);
  box-shadow: 0 10px 26px rgba(130, 155, 255, 0.2);
}

/* Sekcje bez własnego tła — tło tylko na body, płynne na całej stronie */
.accent-section {
  background: transparent;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 28px;
}

.timeline-step {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(136, 162, 255, 0.2), rgba(255, 214, 164, 0.28));
  border: 1px solid rgba(120, 144, 220, 0.18);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.timeline-step::before {
  content: attr(data-step);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card ul {
  margin-bottom: 24px;
}

.price-card .btn-full {
  margin-top: auto;
}

.price-card-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.82));
  border: 1px solid rgba(120, 144, 220, 0.22);
  transform: translateY(-6px);
}

.price-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 144, 220, 0.14);
  color: var(--primary);
  margin-bottom: 18px;
}

.price-badge-featured {
  background: rgba(138, 163, 255, 0.12);
  border-color: rgba(120, 144, 220, 0.22);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.price-value {
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.price-per,
.price-sub {
  color: var(--muted);
}

.price-sub {
  margin-bottom: 18px;
}

.about-compact-inner {
  padding: 34px;
  border-radius: 28px;
}

.about-one-line {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 70ch;
}

/* ----- Opinions / Student collage & testimonials ----- */
.opinions-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: stretch;
}

.opinions-collage {
  position: relative;
  min-height: 380px;
  height: 100%;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-photo {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(120, 144, 220, 0.1);
  background: var(--bg-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collage-photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow), 0 0 0 1px rgba(120, 144, 220, 0.12);
}

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

/* Collage layout: larger so it fills the height of the opinions column */
.collage-photo-1 {
  width: 195px;
  height: 195px;
  left: 0;
  top: 28px;
  z-index: 2;
  transform: rotate(-6deg);
}

.collage-photo-1:hover {
  transform: rotate(-4deg) scale(1.02);
}

.collage-photo-2 {
  width: 252px;
  height: 252px;
  left: 125px;
  top: 112px;
  z-index: 3;
  transform: rotate(2deg);
}

.collage-photo-2:hover {
  transform: rotate(2deg) scale(1.02);
}

.collage-photo-3 {
  width: 182px;
  height: 182px;
  left: 252px;
  top: 0;
  z-index: 1;
  transform: rotate(5deg);
}

.collage-photo-3:hover {
  transform: rotate(6deg) scale(1.02);
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card {
  margin: 0;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.testimonial-text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

.contact-section {
  padding-bottom: 104px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.contact-callout {
  margin-top: 24px;
  padding: 26px;
  border-radius: 28px;
}

.contact-callout-lead {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.contact-callout-links {
  display: grid;
  gap: 12px;
}

.contact-callout-btn {
  min-height: 50px;
  border-radius: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(120, 144, 220, 0.16);
  color: var(--text-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact-callout-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(120, 144, 220, 0.24);
}
.contact-callout-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.contact-callout-icon {
  flex-shrink: 0;
}
.contact-callout-icon-phone {
  color: #22c55e;
}
.contact-callout-phone:hover .contact-callout-icon-phone {
  color: #16a34a;
}

.contact-callout-meta {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 14px;
}

/* ----- Contact form card: native form, no third-party branding ----- */
.contact-form-wrap {
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.contact-form-header {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.contact-form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.contact-form-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form-status--sending {
  color: var(--muted);
}
.contact-form-status--success {
  color: #16a34a;
}
.contact-form-status--error {
  color: #dc2626;
}

.contact-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 144, 220, 0.18);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.contact-input::placeholder {
  color: var(--muted-2);
}

.contact-input:hover {
  border-color: rgba(120, 144, 220, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.15);
}

.contact-textarea {
  min-height: 120px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.55;
}

.btn-submit {
  margin-top: 8px;
  min-height: 54px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.btn-submit:hover {
  box-shadow: 0 20px 48px rgba(109, 140, 255, 0.32);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 4px;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ----- Footer: single line, copyright + privacy ----- */
.site-footer {
  border-top: 1px solid rgba(120, 144, 220, 0.14);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
}

.footer-inner {
  padding: 20px 0;
}

.footer-copy {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.footer-sep {
  margin: 0 0.35em;
  color: rgba(120, 144, 220, 0.5);
}

.footer-copy .footer-link {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-copy .footer-link:hover {
  color: var(--primary);
}
.footer-copy .footer-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.privacy-main {
  padding: 48px 0 88px;
}

.privacy-content {
  max-width: 900px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 34px;
}

.privacy-content h1,
.privacy-content h2 {
  color: var(--text-strong);
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  line-height: 1.78;
}

.privacy-updated {
  color: var(--muted-2);
}

.privacy-back a {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1120px) {
  .hero-grid-main,
  .contact-grid,
  .pricing-grid,
  .cards-3,
  .math-grid,
  .benefits-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .opinions-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .opinions-collage {
    min-height: 300px;
    max-width: 360px;
  }

  .collage-photo-1 {
    width: 155px;
    height: 155px;
    left: 0;
    top: 22px;
  }

  .collage-photo-2 {
    width: 200px;
    height: 200px;
    left: 100px;
    top: 88px;
  }

  .collage-photo-3 {
    width: 145px;
    height: 145px;
    left: 200px;
    top: 0;
  }

  .hero-profile {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .timeline-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 20px;
  }

  .timeline-step {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 18px;
  }

  .feature-card,
  .math-card,
  .price-card,
  .benefit-box,
  .approach-panel,
  .about-compact-inner,
  .contact-callout,
  .contact-form-wrap,
  .hero-profile {
    padding: 22px;
  }

  .approach-panel {
    padding: 26px 22px;
  }

  .approach-panel h3 {
    font-size: 22px;
  }

  .approach-panel p {
    font-size: 16px;
  }

  .contact-form-wrap {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero h1 {
    font-size: 38px;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: 30px;
  }

  .hero-lead,
  .section-head p,
  .contact-copy p,
  .about-one-line {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-callout-links {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 20px;
  }

  .contact-form-header {
    margin-bottom: 16px;
  }

  .contact-form-title {
    font-size: 18px;
  }

  .contact-form-desc {
    font-size: 13px;
  }

  .contact-input {
    min-height: 48px;
    font-size: 16px;
  }

  .btn-submit {
    min-height: 52px;
  }
}