/* =========================================================
   RESPONSIVE GLOBAL
   Se încarcă după global.css și CSS-ul specific paginii.
   ========================================================= */

/* =========================================================
   LAPTOPURI ȘI ECRANE MEDII
   ========================================================= */

@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - 64px), var(--container));
  }

  .site-nav {
    gap: 20px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-wa {
    padding-inline: 17px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    gap: 42px;
  }

  .hero-title {
    font-size: clamp(58px, 7vw, 88px);
  }

  .hero-text {
    font-size: 20px;
  }

  .services-grid {
    gap: 20px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 44px;
  }

  .af-footer-inner {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .af-footer-top {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   TABLETE ȘI MENIUL MOBIL
   ========================================================= */

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .page-section {
    padding: 96px 0;
  }

  .header-inner {
    min-height: 82px;
  }

  .brand {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 250;
    width: min(86vw, 390px);
    height: 100dvh;
    padding: 118px 30px 42px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    overflow-y: auto;
    background:
      radial-gradient(circle at top right, rgba(192, 131, 41, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(10, 13, 20, 0.99), rgba(13, 18, 29, 0.99));
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.36);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.34s ease,
      visibility 0.34s ease;
  }

  .site-nav.active,
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 17px;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 138px 0 90px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    max-width: 800px;
    font-size: clamp(60px, 10vw, 90px);
  }

  .hero-text {
    max-width: 720px;
  }

  .hero-form-wrap {
    justify-content: center;
  }

  .hero-form {
    max-width: 720px;
    transform: none;
  }

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

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-content {
    max-width: 760px;
  }

  .about-image-wrap {
    max-width: 720px;
  }

  .pricing-unified {
    padding: 44px 34px;
  }

  .testimonial-card {
    width: 340px;
    flex-basis: 340px;
  }

  .af-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 48px;
  }

  .af-footer-brand {
    max-width: 480px;
  }

  .af-footer-top {
    grid-column: auto;
  }

  .legal-page {
    padding-top: 132px;
  }

  .error-page {
    padding-top: 122px;
  }
}

/* =========================================================
   TABLETE MICI ȘI TELEFOANE MARI
   ========================================================= */

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .page-section {
    padding: 82px 0;
  }

  .section-box h2 {
    font-size: clamp(34px, 8vw, 50px);
  }

  .section-box p {
    font-size: 17px;
  }

  .header-wa {
    display: none;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-layout {
    padding-top: 124px;
  }

  .hero-title {
    font-size: clamp(52px, 12vw, 76px);
  }

  .hero-text {
    font-size: 18px;
    line-height: 1.7;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points span {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .hero-form {
    padding: 30px;
  }

  .services-heading,
  .testimonials-heading {
    margin-bottom: 36px;
  }

  .service-card {
    padding: 26px;
  }

  .pricing-unified-grid {
    grid-template-columns: 1fr;
  }

  .pricing-unified-steps {
    grid-template-columns: 1fr;
  }

  .pricing-unified-lead,
  .pricing-unified-text {
    text-align: left;
    text-align-last: auto;
  }

  .testimonials-marquee {
    margin-inline: -18px;
    padding-inline: 18px;
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }

  .testimonials-track {
    --testimonial-half-gap: 9px;
    gap: 18px;
    animation-duration: 38s;
  }

  .testimonial-card {
    width: min(78vw, 330px);
    flex-basis: min(78vw, 330px);
    padding: 24px;
  }

  .page-section-cta-final {
    min-height: 500px;
  }

  .cta-final-content {
    padding: 72px 0;
  }

  .cta-final-content h2 {
    font-size: clamp(40px, 10vw, 60px);
  }

  .legal-container {
    padding: 34px 28px;
  }

  .error-shell {
    padding: 48px 32px;
  }
}

/* =========================================================
   TELEFOANE
   ========================================================= */

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .page-section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    padding: 4px;
  }

  .brand-logo {
    width: 51px;
    height: 51px;
  }

  .header-actions {
    gap: 9px;
  }

  .lang-switch {
    gap: 6px;
    padding: 9px 11px;
  }

  .lang-link {
    font-size: 11px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .site-nav {
    width: min(90vw, 360px);
    padding: 102px 22px 32px;
  }

  .hero-layout {
    gap: 38px;
    padding: 110px 0 72px;
  }

  .hero-eyebrow {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.20em;
  }

  .hero-eyebrow::before {
    width: 30px;
  }

  .hero-title {
    margin-bottom: 24px;
    font-size: clamp(44px, 14vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .hero-text {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.68;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-points span {
    width: fit-content;
  }

  .hero-note,
  .live-visitors {
    font-size: 13px;
  }

  .hero-form {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .form-topline {
    left: 20px;
    right: 20px;
  }

  .form-heading h2 {
    font-size: 28px;
  }

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

  .field-full {
    grid-column: auto;
  }

  .field input,
  .field select {
    min-height: 52px;
  }

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

  .service-card {
    padding: 24px;
    border-radius: 22px;
  }

  .about-content h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .about-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .about-image {
    border-radius: 22px;
  }

  .pricing-unified {
    padding: 38px 20px;
    border-radius: 24px;
  }

  .pricing-unified::before {
    left: 20px;
    right: 20px;
  }

  .pricing-unified-title {
    font-size: clamp(35px, 10vw, 48px);
  }

  .pricing-unified-lead,
  .pricing-unified-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .pricing-unified-item {
    padding: 20px;
  }

  .pricing-unified-cta {
    width: 100%;
    padding-inline: 20px;
    text-align: center;
  }

  .testimonials-marquee {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .testimonial-card {
    width: min(84vw, 310px);
    flex-basis: min(84vw, 310px);
    padding: 22px;
    border-radius: 22px;
  }

  .testimonial-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .page-section-cta-final {
    min-height: 470px;
  }

  .cta-final-bg {
    background-position: 60% center;
  }

  .cta-final-content {
    padding: 64px 0;
  }

  .cta-final-content h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .cta-final-content p {
    font-size: 16px;
    line-height: 1.75;
  }

  .cta-final-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-whatsapp,
  .cta-form {
    width: 100%;
    padding-inline: 20px;
  }

  .lawyer-verify-btn {
    width: 100%;
    padding: 15px 17px;
  }

  .af-footer {
    padding-top: 64px;
  }

  .af-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .af-footer-brand {
    max-width: none;
  }

  .af-footer-bottom {
    margin-top: 38px;
  }

  .legal-page {
    padding: 108px 14px 56px;
  }

  .legal-container {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .legal-container h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .legal-container > p {
    font-size: 16px;
    line-height: 1.75;
  }

  .legal-section {
    margin-top: 24px;
  }

  .legal-section h2 {
    font-size: 23px;
  }

  .legal-section h3 {
    font-size: 18px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.78;
  }

  .error-page {
    padding: 102px 14px 48px;
  }

  .error-shell {
    padding: 40px 20px;
    border-radius: 22px;
  }

  .error-code {
    font-size: clamp(96px, 34vw, 150px);
  }

  .error-kicker {
    margin-top: 28px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .error-kicker::before,
  .error-kicker::after {
    width: 22px;
  }

  .error-title {
    font-size: clamp(31px, 10vw, 42px);
  }

  .error-text {
    font-size: 16px;
    line-height: 1.72;
  }

  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .error-home-button,
  .error-back-button {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   TELEFOANE FOARTE MICI
   ========================================================= */

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .lang-switch {
    padding-inline: 9px;
  }

  .hero-title {
    font-size: clamp(40px, 14vw, 56px);
  }

  .hero-form {
    padding-inline: 17px;
  }

  .section-box h2 {
    font-size: 34px;
  }

  .pricing-unified {
    padding-inline: 17px;
  }

  .testimonial-card {
    width: 86vw;
    flex-basis: 86vw;
  }

  .lawyer-verify-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .legal-container {
    padding-inline: 17px;
  }

  .error-shell {
    padding-inline: 17px;
  }
}

/* =========================================================
   DISPOZITIVE CU TOUCH
   ========================================================= */

@media (hover: none) {
  .service-card:hover,
  .about-image:hover img,
  .pricing-unified-item:hover,
  .pricing-unified-step:hover,
  .testimonial-card:hover,
  .header-wa:hover,
  .cta-whatsapp:hover,
  .cta-form:hover,
  .lawyer-verify-btn:hover {
    transform: none;
  }
}

/* =========================================================
   ACCESIBILITATE: MIȘCARE REDUSĂ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

  .testimonials-track {
    animation: none;
  }

  .testimonials-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: thin;
  }
}

/* hCaptcha pe telefoane foarte înguste */
@media (max-width: 390px) {
  .captcha-wrap{
    height: 64px;
    min-height: 64px;
  }

  .captcha-wrap .h-captcha{
    width: 122%;
    min-height: 78px;
    transform: scale(0.82);
    transform-origin: left top;
  }
}
