/*
Theme Name: AI Theme
Theme URI: https://example.com/ai-theme
Author: MidiaSim
Author URI: https://example.com
Description: Tema clássico WordPress baseado no layout Figma da Karla Ferreira Advocacia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.2
Text Domain: ai-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

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

:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #2d2d2d;
  --color-muted: #4a5565;
  --color-accent: #c5a059;
  --color-border: #f3f4f6;
  --color-header-border: #e5e7eb;
  --color-footer-border: #1e2939;
  --color-footer-muted: #99a1af;
  --header-height: 81px;
  --shadow-sm: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 10px -6px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

/* ===== BASE ===== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 80px;
  width: 100%;
}

.home-main {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* ===== UTILITARIOS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  line-height: 24px;
  min-height: 56px;
  padding: 16px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.btn-primary img {
  height: 18px;
  width: 18px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

.btn-dark {
  background: var(--color-text);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading-center {
  align-items: center;
  text-align: center;
}

.section-kicker {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 20px;
  text-transform: uppercase;
}

.section-title {
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
}

.section-title-large {
  font-size: 30px;
  line-height: 36px;
}

.section-title-light {
  color: #fff;
}

.section-description {
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  max-width: 672px;
}

.section-description-light {
  color: #d1d5db;
  max-width: 736px;
}

.section-description-left {
  max-width: none;
  text-align: left;
}

/* ===== HEADER ===== */
.site-header {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-header-border);
  left: 0;
  position: fixed;
  top: 0;
  transition: box-shadow 0.2s ease;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
}

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

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  height: var(--header-height);
  justify-content: space-between;
}

.site-logo {
  align-items: baseline;
  display: inline-flex;
  gap: 6px;
}

.site-logo-main,
.site-logo-accent {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.site-logo-accent {
  color: var(--color-accent);
}

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

.main-nav .menu-item {
  list-style: none;
}

.main-nav .menu-item a {
  color: var(--color-text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: color 0.2s ease;
}

.main-nav .menu-item a:hover,
.main-nav .menu-item.current-menu-item a {
  color: var(--color-accent);
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.menu-toggle-line {
  background: var(--color-text);
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 20px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero-section {
  background: var(--color-bg);
  padding: 0 0 60px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 584px;
}

.hero-title {
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 20px;
  line-height: 28px;
}

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

.hero-media {
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: 100%;
  overflow: hidden;
}

.hero-media img {
  max-height: 550px;
  object-fit: cover;
  width: 100%;
}

/* ===== SOBRE ===== */
.about-section {
  background: var(--color-bg);
  padding: 60px 0;
}

.about-grid {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-image-wrap {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  height: 560px;
  overflow: hidden;
}

.about-image-wrap img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

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

.about-text p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
}

.about-quote {
  border: 0;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 28px;
  padding-top: 16px;
}

/* ===== AREAS DE ATUACAO ===== */
.services-section {
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
  padding: 60px 0;
}

.services-section .section-heading {
  margin-bottom: 64px;
}

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

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 1px solid #ecdfca;
  border-radius: 10px;
  box-shadow: 0 10px 20px -18px rgba(45, 45, 45, 0.55), 0 10px 22px -22px rgba(197, 160, 89, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 252px;
  padding: 20px 33px;
}

.service-icon {
  align-items: center;
  background: #f9fafb;
  border: 1px solid rgba(249, 250, 251, 0.7);
  border-radius: 999px;
  color: #c5a059;
  display: flex;
  flex-shrink: 0;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.service-icon i {
  color: inherit;
  font-size: 30px;
  line-height: 1;
}

.service-card h3 {
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 22.75px;
}

/* ===== CALCULADORA ===== */
.calculator-section {
  background: var(--color-surface);
  padding: 60px 0;
}

.calculator-card {
  background: var(--color-text);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 35px;
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

.calculator-glow {
  background: rgba(197, 160, 89, 0.1);
  border-radius: 999px;
  filter: blur(128px);
  height: 256px;
  position: absolute;
  right: -128px;
  top: -128px;
  width: 256px;
}

.calculator-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.calculator-form {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-content .wpcf7 {
  width: 100%;
}

.calculator-content .wpcf7 form {
  width: 100%;
}

.calculator-content .wpcf7 form > p {
  margin: 0;
}

.calculator-content .wpcf7 form br {
  display: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-fieldset {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
}

.form-field label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}

.form-fieldset legend {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  min-height: 50px;
  padding: 12px 16px;
}

.form-field .wpcf7-form-control-wrap {
  display: block;
}

.form-field .wpcf7-form-control {
  width: 100%;
}

.form-field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-field-options .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form-control.wpcf7-radio {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
}

.form-field-options .wpcf7-list-item input,
.form-field-choice input {
  accent-color: var(--color-accent);
  height: 18px;
  min-height: auto;
  padding: 0;
  width: 18px;
}

.form-field-options .wpcf7-list-item .wpcf7-list-item-label,
.form-field-choice .wpcf7-list-item-label {
  color: inherit;
  line-height: 20px;
}

.wpcf7-list-item label {
  display: inline-flex;
  gap: 10px;
}

.form-field .wpcf7-not-valid {
  border-color: rgba(248, 113, 113, 0.85);
}

.form-field .wpcf7-not-valid-tip {
  color: #f7c7c8;
  font-size: 12px;
  line-height: 16px;
  margin-top: 6px;
}

.form-field select {
  appearance: none;
  background-color: #3c3c3c;
}

.form-field input::placeholder {
  color: #d1d5db;
}

.form-field-full {
  grid-column: 1 / -1;
}

.calculator-content .wpcf7 .form-field .wpcf7-submit {
  appearance: none;
  background: var(--color-accent);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  min-height: 56px;
  padding: 16px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.calculator-content .wpcf7 .form-field .wpcf7-submit:hover {
  transform: translateY(-1px);
}

.calculator-content .wpcf7 .wpcf7-spinner {
  margin: 12px auto 0;
}

.calculator-content .wpcf7 form .wpcf7-response-output {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  padding: 12px 16px;
}

.calculator-content .wpcf7 form.invalid .wpcf7-response-output,
.calculator-content .wpcf7 form.unaccepted .wpcf7-response-output,
.calculator-content .wpcf7 form.failed .wpcf7-response-output,
.calculator-content .wpcf7 form.aborted .wpcf7-response-output,
.calculator-content .wpcf7 form.spam .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.55);
}

.calculator-content .wpcf7 form.sent .wpcf7-response-output {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.55);
}

.form-note {
  color: var(--color-footer-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.wpcf7-spinner {
  display: none;
}

/* ===== MIDIA ===== */
.media-section {
  background: var(--color-bg);
  padding: 60px 0;
}

.media-layout {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.media-block .section-heading,
.testimonials-block .section-heading,
.instagram-block .section-heading {
  margin-bottom: 30px;
}

.media-block iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 978px;
  width: 100%;
}

.video-card {
  background: var(--color-header-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  max-width: 896px;
  overflow: hidden;
  position: relative;
}

.video-card img {
  height: 504px;
  object-fit: cover;
  width: 100%;
}

.video-overlay {
  background: rgba(0, 0, 0, 0.3);
  inset: 0;
  position: absolute;
}

.video-play {
  align-items: center;
  background: var(--color-accent);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  height: 80px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
}

.video-play img {
  height: 32px;
  width: 32px;
}

/* ===== DEPOIMENTOS ===== */
.carousel {
  --slides-to-show: 3;
  --carousel-gap: 32px;
  overflow: hidden;
  padding: 0 56px 56px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--slides-to-show) - 1))) / var(--slides-to-show));
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 268px;
  padding: 33px;
}

.testimonial-rating img {
  height: 18px;
  width: auto;
}

.testimonial-text {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
  min-height: 96px;
}

.testimonial-author {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.carousel-prev,
.carousel-next {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
}

.carousel-prev {
  left: 4px;
}

.carousel-next {
  right: 4px;
}

.carousel-dots {
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.carousel-dots button {
  background: #d1d5db;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  transition: all 0.2s ease;
  width: 10px;
}

.carousel-dots button.active {
  background: var(--color-accent);
  width: 24px;
}

.carousel.is-static .carousel-prev,
.carousel.is-static .carousel-next,
.carousel.is-static .carousel-dots {
  display: none;
}

/* ===== INSTAGRAM ===== */
.instagram-icon-wrap {
  margin-bottom: 16px;
}

.instagram-icon-wrap img {
  height: 32px;
  width: 32px;
}

.instagram-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instagram-card {
  border-radius: 8px;
  overflow: hidden;
}

.instagram-card img {
  height: 320px;
  object-fit: cover;
  width: 100%;
}

/* ===== CONTATO ===== */
.contact-section {
  background: var(--color-surface);
  padding: 80px 0;
}

.contact-grid {
  align-items: stretch;
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-map-wrap {
  background: #eee;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.contact-map-wrap iframe {
  border: 0;
  height: 480px;
  width: 100%;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

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

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

.contact-icon {
  align-items: center;
  background: #f9fafb;
  border-radius: 999px;
  display: flex;
  flex-shrink: 0;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.contact-icon img {
  height: 55px;
  width: 55px;
}

.contact-item-content h3 {
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
}

.contact-item-content a:hover {
  color: var(--color-text);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-text);
  border-top: 1px solid var(--color-footer-border);
  padding: 49px 0;
}

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

.footer-branding h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 8px;
}

.footer-branding p,
.footer-meta a,
.footer-meta p {
  color: var(--color-footer-muted);
  font-size: 14px;
  line-height: 20px;
}

.footer-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-meta a:hover {
  color: #fff;
}

/* ===== ELEMENTOS FIXOS ===== */
.floating-whatsapp {
  align-items: center;
  border-radius: 999px;
  bottom: 24px;
  display: flex;
  height: 64px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: transform 0.2s ease;
  width: 64px;
  z-index: 1100;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.floating-whatsapp img {
  height: 60px;
  width: 60px;
}

/* ===== FAQ ===== */
.faq-answer[hidden] {
  display: none;
}

/* ===== FALLBACK INDEX ===== */
.default-main {
  padding: 64px 0 80px;
}

.default-content {
  display: grid;
  gap: 20px;
}

.default-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
}

.default-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 10px;
}

.default-entry {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
}

/* ===== LEGAL ===== */
.legal-page {
  background: var(--color-surface);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin: 64px auto 80px;
  max-width: 860px;
  padding: 48px;
}

.legal-page .entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 28px;
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 24px;
}

.legal-content li {
  list-style: disc;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== BREAKPOINT 1200 ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }

  .hero-title {
    font-size: 54px;
    line-height: 68px;
  }

  .hero-media {
    height: 680px;
  }
}

/* ===== BREAKPOINT 1024 ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero-section,
  .about-section,
  .services-section,
  .calculator-section,
  .media-section,
  .contact-section {
    padding: 72px 0;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-media {
    height: 620px;
    margin: 0 auto;
    max-width: 640px;
  }

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

  .calculator-card {
    padding: 36px;
  }

  .calculator-form {
    gap: 16px;
    grid-template-columns: 1fr;
  }

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

  .carousel {
    --carousel-gap: 20px;
    padding: 0 44px 52px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

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

  .container {
    padding: 0 20px;
  }

  .legal-page {
    margin: 32px 20px 48px;
    padding: 24px;
  }

  .header-inner {
    height: 72px;
  }

  .site-logo-main,
  .site-logo-accent {
    font-size: 20px;
    line-height: 28px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-header-border);
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    visibility: hidden;
  }

  .main-nav.active {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
  }

  .main-nav .menu-item {
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .main-nav .menu-item a {
    display: block;
    padding: 16px 20px;
  }

  .hero-section,
  .about-section,
  .services-section,
  .calculator-section,
  .media-section,
  .contact-section {
    padding: 45px 0;
  }

  .hero-title {
    font-size: 35px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    min-height: 54px;
    width: 100%;
  }

  .hero-media {
    height: 420px;
  }

  .section-title {
    font-size: 40px;
    line-height: 38px;
  }

  .section-title-large {
    font-size: 28px;
    line-height: 34px;
  }

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


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

  .service-card,
  .testimonial-card {
    padding: 24px;
    align-items: center;
    text-align: center;
  }

  .calculator-card {
    padding: 24px;
  }

  .calculator-content {
    gap: 28px;
  }

  .video-card img {
    height: 360px;
  }

  .carousel {
    --carousel-gap: 16px;
    padding: 0 34px 46px;
  }

  .carousel-prev,
  .carousel-next {
    height: 34px;
    width: 34px;
  }

  .contact-map-wrap iframe {
    height: 380px;
  }

  .contact-content {
    order: 1;
  }

  .contact-map-wrap {
    order: 2;
  }

  .floating-whatsapp {
    bottom: 18px;
    height: 56px;
    right: 18px;
    width: 56px;
  }

  .floating-whatsapp img {
    height: 50px;
    width: 50px;
  }
}
