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

:root {
  --bg: #F9FAFB;
  --bg-alt: #F3F4F6;
  --text: #1F2937;
  --text-light: #6B7280;
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-light: #D1FAE5;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(16, 185, 129, .3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, .35);
}

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

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

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

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


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

.header__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link--active {
  color: var(--primary);
}

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

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

/* Header contacts */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__contact {
  font-size: 1.25rem;
  text-decoration: none;
  opacity: .7;
  transition: opacity var(--transition), transform var(--transition);
}

.header__contact:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

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

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

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

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

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

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero__dot {
  color: var(--primary);
  margin: 0 4px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary-light);
  color: #065F46;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 100px;
}

.badge strong {
  margin-left: 2px;
}

.hero__desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}

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

.hero__image-placeholder {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.about__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about__card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.about__card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about__card p {
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 1.5;
}

.about__cat {
  text-align: center;
}

.about__cat-photo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__cat-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.about__cat-caption {
  font-size: .9375rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing__card--accent {
  border: 2px solid var(--primary);
}

.pricing__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pricing__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing__location {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pricing__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing__per {
  font-size: .8125rem;
  color: var(--text-light);
}

.pricing__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.pricing__extra {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 100px;
  font-size: .9375rem;
  box-shadow: var(--shadow);
}

.pricing__extra-icon {
  font-size: 1.1rem;
}

.pricing__cta {
  text-align: center;
}

/* ===== REVIEWS ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 769px) {
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  /* Last row: 1 card centered */
  .reviews__grid .reviews__card:last-child:nth-child(3n + 1) {
    grid-column: 2 / 3;
  }
}

.reviews__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.reviews__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reviews__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviews__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #065F46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.reviews__avatar--blue {
  background: #60A5FA;
  color: var(--white);
}

.reviews__avatar--photo {
  background: #9CA3AF;
  color: var(--white);
}

.reviews__name {
  font-weight: 600;
  font-size: .9375rem;
}

.reviews__role {
  font-size: .8125rem;
  color: var(--text-light);
}

.reviews__stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.reviews__text {
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 1.65;
}

.reviews__note {
  text-align: center;
  font-size: .875rem;
  color: var(--text-light);
  font-style: italic;
}

.reviews__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.reviews__photo img {
  width: 100%;
  height: auto;
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact__heading {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact__desc {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.contact__link:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: var(--primary);
}

.contact__link-icon {
  font-size: 1.25rem;
}

/* ===== FORM ===== */
.contact__form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 18px;
}

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

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

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: .9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.form__input::placeholder {
  color: #9CA3AF;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__input--error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.form__note {
  font-size: .75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.form__note a {
  color: var(--text-light);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--text-light);
}

.footer__link {
  color: var(--text-light);
}

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

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

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.modal__content h2 {
  margin-bottom: 16px;
}

.modal__content p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.65;
}

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

.modal__close:hover {
  background: var(--border);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 300;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
}

.toast__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== ELEMENTS RAIN ===== */
.elements-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Lift all content above canvas */
.header { z-index: 100; }
.hero,
.section,
.footer,
.toast,
.modal { position: relative; z-index: 1; }

/* ===== HEADER FLASK ===== */
.header__flask {
  width: 36px;
  height: 48px;
  flex-shrink: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    max-width: 100%;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__image-placeholder {
    width: 420px;
    height: 420px;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.625rem;
    margin-bottom: 32px;
  }

  /* Header mobile */
  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .header__nav--open {
    max-height: 300px;
    padding: 16px 0;
  }

  .header__nav--open .header__link {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .header__burger {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding: 100px 0 56px;
    min-height: auto;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__br {
    display: none;
  }

  .hero__image-placeholder {
    width: 340px;
    height: 340px;
  }

  /* Pricing mobile */
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Reviews mobile */
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  /* Form mobile */
  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 24px;
  }

  /* Footer mobile */
  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: .9375rem;
  }

  .pricing__extras {
    flex-direction: column;
    align-items: center;
  }

  .toast__inner {
    white-space: normal;
    font-size: .875rem;
    padding: 14px 20px;
  }
}
