/* Calculator Only — site styles (Lato, purple palette) */

:root {
  --color-text: rgb(21, 12, 63);
  --color-text-muted: rgb(51, 29, 154);
  --color-hover: rgb(28, 16, 87);
  --color-bg: #fff;
  --site-width: 980px;
  --content-narrow: 780px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.site-wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding-top: 30px;
  padding-bottom: 30px;
}

.header-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
}

.header-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.header-rule {
  border: 0;
  border-top: 1px solid rgba(21, 12, 63, 0.85);
  margin: 0 0 7px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 10px;
  min-height: 30px;
  font-size: 14px;
  line-height: 1.79;
}

.site-nav a {
  padding: 0 10px;
  transition: color 0.4s ease;
}

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

.site-nav .is-current {
  cursor: default;
}

.site-nav .is-current:hover {
  color: var(--color-text);
}

.site-nav .nav-more {
  padding: 0 10px;
  cursor: default;
  user-select: none;
}

/* Hero */
.hero {
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1,
  .hero-text p {
    text-align: center;
  }

  .hero-phone {
    justify-self: center;
    max-width: 280px;
  }
}

.hero-text h1 {
  margin: 109px 0 29px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text p {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.67;
}

.hero-phone {
  width: 100%;
  max-width: 460px;
  margin-top: 0;
}

.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Contact */
.contact {
  padding: 63px 0 67px;
  background: var(--color-bg);
}

.contact h2 {
  margin: 0 0 23px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-form-wrap {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.form-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 4px;
}

.form-alert--success {
  color: rgb(12, 74, 42);
  background: rgba(46, 160, 100, 0.12);
  border: 1px solid rgba(46, 160, 100, 0.35);
}

.form-alert--error {
  color: rgb(90, 18, 18);
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.35);
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  margin-bottom: 2px;
  padding-left: 5px;
  font-size: 15px;
  line-height: 1.875;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 5px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.875;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-text);
  border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-muted);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit {
  display: block;
  width: 100%;
  margin: 17px 0 13px;
  padding: 12px 24px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: #fff;
  background: var(--color-text);
  border: none;
  cursor: pointer;
  transition: opacity 0.4s ease, background 0.4s ease;
}

.btn-submit:hover {
  opacity: 0.85;
}

.form-thanks {
  display: none;
  margin-top: 10px;
  text-align: center;
  font-size: 18px;
  line-height: 1.75;
}

.form-thanks.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  padding: 48px 20px 42px;
  border-top: 1px solid rgba(21, 12, 63, 0.15);
}

.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.79;
}

/* Privacy page */
.page-privacy .privacy-hero {
  padding: 60px 0 40px;
}

.page-privacy .privacy-hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.privacy-body {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding-bottom: 80px;
}

.privacy-body p {
  margin: 0 0 1.25em;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.875;
}

.privacy-body a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-body a:hover {
  color: var(--color-hover);
}
