/* norfin-rain.shop — estilos globales */
:root {
  --navy-900: #0f2740;
  --navy-800: #173a5e;
  --navy-700: #1f4b78;
  --navy-100: #e7eef6;
  --gold-500: #e8a93a;
  --gold-400: #f2bf5e;
  --gold-100: #fdf3e0;
  --green-600: #1a9b6c;
  --green-100: #e3f6ee;

  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1b2a3a;
  --color-text-muted: #5b6b7d;
  --color-border: #e3e9f0;
  --color-link: var(--navy-700);
  --color-link-hover: var(--green-600);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 64, 0.06);
  --shadow: 0 8px 24px rgba(15, 39, 64, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 39, 64, 0.16);
  --max-width: 1160px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo:hover {
  color: var(--navy-800);
}

.nav-main {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-main a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-800);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.nav-main a:hover {
  background: var(--navy-100);
  color: var(--navy-900);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 16px rgba(232, 169, 58, 0.35);
}

.btn-gold:hover {
  background: var(--gold-400);
  color: var(--navy-900);
}

.btn-primary {
  background: var(--navy-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn-block {
  width: 100%;
}

/* ——— Hero (home) ——— */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 39, 64, 0.95) 0%, rgba(15, 39, 64, 0.82) 45%, rgba(15, 39, 64, 0.35) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232, 169, 58, 0.18);
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-points li::before {
  content: "✓";
  color: var(--gold-400);
  font-weight: 800;
  margin-right: 0.4rem;
}

/* ——— Calculator ——— */
.calc {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.calc h2 {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.calc-field {
  margin-bottom: 1.35rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.calc-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.calc-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--gold-500) 0%,
    var(--gold-500) var(--fill, 50%),
    var(--navy-100) var(--fill, 50%),
    var(--navy-100) 100%
  );
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy-800);
  box-shadow: var(--shadow);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy-800);
  box-shadow: var(--shadow);
}

.calc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--navy-100);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.calc-summary strong {
  display: block;
  font-size: 1rem;
  color: var(--navy-900);
}

.calc-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: 0.9rem;
}

/* ——— Sections (home) ——— */
.site-main {
  flex: 1;
  width: 100%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  color: var(--color-text-muted);
  max-width: 36rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--navy-800);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

/* ——— Company grid ——— */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.company-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d3dde8;
}

.company-card.is-featured {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 1px var(--gold-400), var(--shadow-sm);
}

.card-tag {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  border: 1px solid var(--gold-400);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-100);
  color: #8a5a0c;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.company-logo {
  height: 84px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.company-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.company-card h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
}

.company-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.6;
}

.card-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.card-links .btn {
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.card-links .btn-gold {
  grid-column: 1 / -1;
}

/* ——— Promo band (home) ——— */
.promo {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
  padding: 0 1.25rem;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.promo-text {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.promo-text h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.promo-text p {
  color: rgba(255, 255, 255, 0.82);
}

.promo-text ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.promo-text li::before {
  content: "✓";
  color: var(--gold-400);
  font-weight: 800;
  margin-right: 0.5rem;
}

/* ——— Article pages ——— */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.article-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.article-body h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--navy-900);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--navy-800);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--navy-700);
  margin: 1.4rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0.5rem 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.article-body li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.article-body .intro {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.article-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  min-width: 200px;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.article-photo {
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-100);
}

.article-photo img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 60% 35%;
}

.article-photo figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.7rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.ctx-link {
  font-weight: 700;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.cta-box p {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.cta-box small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.sibling-nav {
  margin-top: 2.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--gold-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold-500);
}

.sibling-nav p {
  margin: 0;
}

.sibling-nav a {
  font-weight: 700;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.75rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.site-footer a {
  color: var(--gold-400);
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  font-size: 0.85rem;
  max-width: 32rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.footer-legal {
  max-width: var(--max-width);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 3rem;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(15, 39, 64, 0.88) 0%, rgba(15, 39, 64, 0.96) 100%);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .promo-inner {
    grid-template-columns: 1fr;
  }

  .promo-inner img {
    min-height: 200px;
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 36px;
  }

  .nav-main a {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  .calc {
    padding: 1.35rem;
  }

  .article-body {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius);
  }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .promo-text {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
