/* Rakevet — shared design system */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #3b5bdb;
  --accent-hover: #2f4ac4;
  --accent-soft: #eef2ff;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled,
body.page-feedback .site-header {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 91, 219, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: #cbd5e1;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(59, 91, 219, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 4.5rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt .section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.service-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.service-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— Contact —— */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.contact-card > div > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  margin-bottom: 0.65rem;
  font-size: 0.975rem;
}

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-legal {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-legal strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* —— Feedback (minimal, iOS-friendly) —— */
body.page-feedback {
  background: var(--bg);
}

.feedback-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.feedback-wrap h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feedback-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.flash-success,
.flash-info {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.field-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.field-errors {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--error-text);
  font-size: 0.8125rem;
}

.feedback-links {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.feedback-links a {
  color: var(--muted);
}

.feedback-links a:hover {
  color: var(--accent);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1rem;
  }

  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.85rem 1rem;
  }

  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
