/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #E8612D;
  --color-primary-dark: #C44D1E;
  --color-primary-light: #f0845a;
  --color-secondary: #2B4C7E;
  --color-secondary-light: #3E6FA0;
  --color-text: #1A1A2E;
  --color-text-light: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F4F6;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-whatsapp: #25D366;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --header-height: 70px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 64px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ===== UTILITIES ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.accent {
  color: var(--color-primary);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 12px;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header {
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn--outline:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 17px;
}

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

.btn__loader {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== INPUTS ===== */
.input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}

.input:focus {
  border-color: var(--color-primary);
}

.input.error {
  border-color: var(--color-error);
}

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

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.label--optional {
  font-weight: 400;
  color: var(--color-text-light);
}

.form-group {
  margin-bottom: 16px;
}

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-message--success {
  background: #ECFDF5;
  color: #065F46;
}

.form-message--error {
  background: #FEF2F2;
  color: #991B1B;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 14px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.radio input {
  display: none;
}

.radio:has(input:checked) {
  border-color: var(--color-primary);
  background: #FEF3EE;
  color: var(--color-primary-dark);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #fff;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.header__link:hover::after,
.header__link.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-secondary);
}

.header__phone:hover {
  color: var(--color-primary);
}

.header__whatsapp {
  display: flex;
  align-items: center;
  color: var(--color-whatsapp);
}

.header__whatsapp:hover {
  opacity: 0.8;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fb 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #FEF3EE;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(232, 97, 45, 0.2);
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-placeholder,
.features__image-placeholder,
.advantages__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 14px;
  border: 2px dashed #D1D5DB;
}

/* ===== SERVICES ===== */
.services {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

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

.service-card__image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.service-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.service-card:hover .service-card__placeholder {
  transform: scale(1.05);
}

.service-card__body {
  padding: 20px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.service-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
  background: #fff;
}

.features__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features__image {
  display: flex;
}

.features__desc {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.features__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.features__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #FEF3EE;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.features__item-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== ADVANTAGES ===== */
.advantages {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.advantages__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.advantages__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.advantages__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.advantages__check {
  flex-shrink: 0;
  margin-top: 2px;
}

.advantages__item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.advantages__item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.advantages__image {
  display: flex;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}

.cta-section__inner {
  text-align: center;
}

.cta-section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-section__subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section__form {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section__fields {
  display: flex;
  gap: 12px;
}

.cta-section__fields .input {
  flex: 1;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.cta-section__fields .input::placeholder {
  color: rgba(255,255,255,0.7);
}

.cta-section__fields .input:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.25);
}

.cta-section__fields .input.error {
  border-color: #FCA5A5;
}

.cta-section__fields .btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.cta-section__fields .btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.cta-section .form-message--success {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.cta-section .form-message--error {
  background: rgba(255,255,255,0.2);
  color: #FCA5A5;
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 80px 0;
  background: #fff;
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.contacts__detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contacts__detail svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contacts__detail strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contacts__detail a {
  color: var(--color-primary);
  font-weight: 500;
}

.contacts__detail a:hover {
  text-decoration: underline;
}

.contacts__detail p {
  color: var(--color-text-light);
  font-size: 15px;
}

.contacts__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 48px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer__heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color var(--transition);
}

a.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal[hidden] {
  display: none;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal.open .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.modal__close:hover {
  background: #E5E7EB;
  color: var(--color-text);
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* ===== FLOATING BAR ===== */
.floating-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.floating-bar[hidden] {
  display: none;
}

.floating-bar.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-bar__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.floating-bar__btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.floating-bar__btn--whatsapp {
  background: var(--color-whatsapp);
}

.floating-bar__btn--phone {
  background: var(--color-primary);
}

@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ===== RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav .header__link {
    font-size: 20px;
  }

  .header__burger {
    display: flex;
  }

  .header__phone-text {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

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

  .features__image {
    order: -1;
  }

  .features__content .section-title {
    text-align: center;
  }

  .features__desc {
    text-align: center;
  }

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

  .advantages__content .section-title {
    text-align: center;
  }

  .advantages__image {
    order: -1;
  }

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

  .contacts__info .section-title {
    text-align: center;
  }

  .cta-section__fields {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

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

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .services,
  .features,
  .advantages,
  .contacts {
    padding: 60px 0;
  }

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

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__buttons .btn {
    text-align: center;
  }

  .modal__content {
    padding: 28px 20px;
  }

  .radio-group {
    flex-direction: column;
  }

  .floating-bar {
    bottom: 16px;
    right: 16px;
  }

  .floating-bar__btn {
    width: 48px;
    height: 48px;
  }

  .floating-bar__btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Prevent body scroll when modal/menu is open */
body.no-scroll {
  overflow: hidden;
}