:root {
  --white: #ffffff;
  --ink: #141414;
  --grey: #6b6b6b;
  --line: #ececec;
  --tint: #fafafa;
  --red: #c40021;
  --red-dark: #9e001b;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--tint); }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--ink);
  text-decoration: none;
}

.logo__img {
  height: 30px;
  width: auto;
  display: block;
}

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

.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s;
}

.nav a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.nav a:not(.nav__cta):hover { color: var(--red); }
.nav a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 10px 22px;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav__cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 130px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(196, 0, 33, 0.05), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.hero__label,
.section__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}

.hero__label::before,
.section__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 14px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: italic;
  color: var(--red);
}

.hero__line {
  width: 64px;
  height: 2px;
  background: var(--red);
  margin: 44px 0;
}

.hero__line--center { margin: 36px auto; }

.hero__text {
  max-width: 460px;
  font-size: 17px;
  color: var(--grey);
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.link-more {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s;
}

.link-more__arrow {
  color: var(--red);
  transition: transform 0.3s var(--ease);
}

.link-more:hover { color: var(--red); }
.link-more:hover .link-more__arrow { transform: translateX(6px); }

/* ---------- Hero calculator mockup ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero__visual-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(196, 0, 33, 0.12), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

.calc {
  position: relative;
  z-index: 1;
  width: 300px;
  padding: 26px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(20, 20, 20, 0.04),
    0 24px 60px -12px rgba(20, 20, 20, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.calc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calc__brand {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--grey);
}

.calc__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.calc__display {
  text-align: right;
  padding: 18px 16px;
  margin-bottom: 18px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.calc__expr {
  display: block;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 4px;
}

.calc__result {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.calc__keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc__keys span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: default;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.calc__keys span:hover {
  background: var(--tint);
  transform: scale(1.05);
}

.calc__keys .op {
  color: var(--red);
  font-weight: 500;
}

.calc__keys .eq {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 500;
}

.calc__keys .eq:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--white);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 12px;
}

.marquee__track i {
  font-style: normal;
  color: var(--red);
  margin: 0 20px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 17px 52px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.2s var(--ease), box-shadow 0.3s;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(196, 0, 33, 0.45);
}

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

.btn--wide { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }

.section--tint {
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(196, 0, 33, 0.04), transparent 70%),
    var(--tint);
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 72px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  position: relative;
  background: var(--white);
  padding: 52px 44px;
  transition: background 0.35s;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.feature:hover { background: var(--tint); }
.feature:hover::before { transform: scaleX(1); }

.feature__num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--red);
  margin-bottom: 22px;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
}

.feature p { font-size: 15px; color: var(--grey); }

/* ---------- Price ---------- */
.price { text-align: center; max-width: 640px; }

.price .section__label::before { display: none; }

.price__value {
  font-family: var(--serif);
  font-size: clamp(84px, 13vw, 140px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.price__value::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 6px;
  width: 80%;
  height: 10px;
  background: rgba(196, 0, 33, 0.14);
  z-index: -1;
}

.price__note {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.price__desc {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--grey);
}

/* ---------- Order ---------- */
.order {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.order .section__title { margin-bottom: 24px; }

.order__text { color: var(--grey); max-width: 340px; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 48px 44px;
  box-shadow: 0 24px 60px -30px rgba(20, 20, 20, 0.12);
}

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

.form__field { margin-bottom: 26px; }

.form__field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
}

.form__field input {
  width: 100%;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  transition: border-color 0.25s;
}

.form__field input:focus { border-bottom-color: var(--red); }

.form__field input.invalid { border-bottom-color: var(--red); background: rgba(196, 0, 33, 0.03); }

.form .btn { margin-top: 12px; }

.form__status {
  margin-top: 20px;
  font-size: 15px;
  min-height: 24px;
}

.form__status.ok { color: #0a7d3b; }
.form__status.err { color: var(--red); }

.form__legal {
  margin-top: 20px;
  font-size: 13px;
  color: var(--grey);
}

.form__legal a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 0, 33, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  padding: 64px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logo--footer { color: var(--white); font-size: 16px; }

.logo--footer .logo__img { height: 24px; }

.footer__links { display: flex; gap: 28px; }

.footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s;
}

.footer__links a:hover { color: var(--white); }

.footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 80px; }
  .hero__visual { order: -1; }
  .order { grid-template-columns: 1fr; gap: 48px; }
  .order__text { max-width: none; }
}

@media (max-width: 720px) {
  .nav { gap: 20px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 70px 0 90px; }
  .section { padding: 80px 0; }
  .features { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 36px 28px; }
  .calc { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Privacy page ---------- */
.legal { max-width: 720px; padding: 90px 0; }

.legal h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 12px;
}

.legal p { color: var(--grey); font-size: 15px; margin-bottom: 12px; }

.legal a { color: var(--red); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq__item {
  background: var(--white);
  padding: 40px 44px;
  transition: background 0.3s;
}

.faq__item:hover { background: var(--tint); }

.faq__item h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.faq__item p { font-size: 15px; color: var(--grey); }

.faq__item a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 0, 33, 0.3);
}

@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; }
  .faq__item { padding: 32px 28px; }
}
