:root {
  --bg: #f7f3ec;
  --bg-soft: #fbf8f2;
  --ink: #18211d;
  --muted: #65706a;
  --line: rgba(24, 33, 29, 0.12);
  --card: #fffdf8;
  --dark: #16201c;
  --dark-2: #22312b;
  --accent: #9b6a3b;
  --accent-2: #c7a16d;
  --cream: #fff6e6;
  --success: #2d6b50;
  --danger: #9c3f32;
  --shadow: 0 24px 70px rgba(34, 31, 25, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 180px;
  height: 44px;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(155, 106, 59, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.header-phone svg,
.contact-info svg,
.social-links svg,
.back-to-top svg,
.trust-item svg,
.benefit-card svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn {
  min-height: 50px;
  min-width: 120px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

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

.btn-primary {
  background: var(--dark);
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(22, 32, 28, 0.22);
}

.btn-primary:hover {
  background: #0d1512;
}

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

.btn-secondary:hover {
  border-color: rgba(155, 106, 59, 0.45);
  background: rgba(255, 253, 248, 0.7);
}

.btn-light {
  background: var(--cream);
  color: var(--dark);
}

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10001;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.mobile-nav-link,
.mobile-phone {
  width: 100%;
  min-height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 0;
}

.hero {
  padding-top: 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(199, 161, 109, 0.18), transparent 34%),
    radial-gradient(circle at 90% 35%, rgba(34, 49, 43, 0.08), transparent 32%);
}

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

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2rem, 10vw, 5.45rem);
  max-width: 860px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.65rem, 6vw, 3.35rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 700;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-image-main {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-image-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-image-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(24, 33, 29, 0.16);
  border-radius: 22px;
  padding: 12px;
}

.hero-image-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  flex: 0 0 auto;
}

.hero-image-card strong,
.hero-image-card span {
  display: block;
}

.hero-image-card span {
  color: var(--muted);
  font-size: 14px;
}

.partner-strip {
  margin-top: 60px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner-title {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.partner-logo {
  width: 130px;
  height: 54px;
  color: var(--dark);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p,
.about-copy p,
.benefit-card p,
.course-card p,
.process-card p,
.review-card p,
.contact-copy p,
.final-cta p,
.cta-banner p {
  color: var(--muted);
}

.about {
  background: var(--bg-soft);
}

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

.about-copy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(24, 33, 29, 0.06);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.about-stats div {
  padding: 18px;
  border-radius: 18px;
  background: #f6efe4;
}

.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.about-stats span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-images img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 22px;
}

.about-images img:nth-child(1),
.about-images img:nth-child(4) {
  transform: translateY(18px);
}

.benefits-grid,
.services-grid,
.process-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.benefits-grid {
  margin-top: 42px;
}

.benefit-card,
.course-card,
.process-card,
.review-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(24, 33, 29, 0.06);
}

.benefit-card {
  padding: 24px;
}

.benefit-card svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 18px;
}

.cert-row {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--dark);
}

.cert-badge {
  width: 110px;
  height: 110px;
  opacity: 0.68;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.course-card {
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.course-card.hidden {
  display: none;
}

.course-card:hover {
  transform: translateY(-6px);
}

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

.card-body {
  padding: 22px;
}

.card-body span {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quick-view-btn {
  min-height: 48px;
  min-width: 120px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  margin-top: 8px;
}

.quick-view-btn:hover {
  background: rgba(155, 106, 59, 0.12);
}

.gallery-section {
  padding-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(24, 33, 29, 0.08);
}

.process {
  background: linear-gradient(180deg, var(--bg), #efe7db);
}

.process-card {
  padding: 14px;
}

.process-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.process-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 14px;
}

.process-card h3,
.process-card p {
  padding-left: 8px;
  padding-right: 8px;
}

.cta-banner {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--dark);
  color: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.cta-banner div {
  padding: 28px;
}

.cta-banner .eyebrow,
.final-cta .eyebrow {
  color: var(--accent-2);
}

.cta-banner p {
  color: rgba(255, 246, 230, 0.76);
}

.reviews {
  background: var(--bg-soft);
}

.review-card {
  padding: 24px;
}

.review-card img {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 16px;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.stars svg {
  width: 17px;
  height: 17px;
}

.review-card h3 {
  margin-bottom: 0;
}

.review-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 800;
}

.faq-question span {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
  margin-left: 18px;
}

.faq-question span::before,
.faq-question span::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.faq-question span::before {
  width: 18px;
  height: 2px;
  top: 8px;
  left: 0;
}

.faq-question span::after {
  width: 2px;
  height: 18px;
  top: 0;
  left: 8px;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question span::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.contact {
  background: var(--bg-soft);
}

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

.contact-image {
  margin: 24px 0;
}

.contact-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info a,
.contact-info span {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  color: var(--dark);
  font-weight: 700;
}

.contact-form {
  padding: 24px;
}

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

.form-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(155, 106, 59, 0.55);
  box-shadow: 0 0 0 4px rgba(155, 106, 59, 0.12);
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  margin: 8px 0 14px;
}

.checkbox-field input {
  width: 20px;
  min-height: auto;
  height: 20px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.error-message {
  display: block;
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  margin-top: 5px;
}

.form-status {
  margin: 16px 0 0;
  color: var(--success);
  font-weight: 800;
}

.final-cta {
  background: var(--dark);
  color: var(--cream);
  padding: 72px 0;
  text-align: center;
}

.final-cta .container {
  max-width: 760px;
}

.final-cta p {
  color: rgba(255, 246, 230, 0.76);
}

.site-footer {
  background: #101713;
  color: rgba(255, 246, 230, 0.82);
  padding: 56px 0 24px;
}

.site-footer .brand {
  color: var(--cream);
}

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

.footer-grid h3 {
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid button,
.footer-grid p {
  color: rgba(255, 246, 230, 0.72);
}

.footer-grid a,
.footer-grid button {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 600;
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--cream);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 44px;
  height: 44px;
  justify-content: center;
  border: 1px solid rgba(255, 246, 230, 0.16);
  border-radius: 999px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 246, 230, 0.12);
  margin-top: 34px;
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 246, 230, 0.62);
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 8000;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--dark);
  color: var(--cream);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  display: flex;
}

.legal-overlay,
.quick-modal-overlay,
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
}

.legal-modal,
.quick-modal,
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100000;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.cookie-modal {
  max-width: 500px;
  padding: 24px;
  border-radius: 12px;
}

.modal-close,
.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.legal-modal h2,
.quick-modal h2,
.cookie-modal h2 {
  padding-right: 42px;
}

.quick-modal span {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.quick-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.quick-meta div {
  background: #f6efe4;
  border-radius: 16px;
  padding: 14px;
}

.quick-meta strong,
.quick-meta span {
  display: block;
}

.quick-meta span {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  margin: 4px 0 0;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 20px;
  background: #101713;
  color: var(--cream);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.22);
  display: none;
}

.cookie-banner-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 246, 230, 0.82);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-actions button,
.cookie-save {
  cursor: pointer;
  min-height: 48px;
  min-width: 100px;
  font-size: 16px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid rgba(255, 246, 230, 0.26);
}

.cookie-actions button:first-child,
.cookie-save {
  background: var(--cream);
  color: var(--dark);
}

.cookie-actions button:nth-child(2),
.cookie-actions button:nth-child(3) {
  background: transparent;
  color: var(--cream);
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cookie-options label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.cookie-options input {
  width: 20px;
  height: 20px;
  min-height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .hero-actions,
  .cookie-actions {
    flex-direction: row;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-stats,
  .quick-meta {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .btn {
    width: auto;
  }
}

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

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

  .hero-grid {
    gap: 54px;
  }

  .hero-copy {
    padding-top: 20px;
  }

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

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

  .cta-banner {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .cta-banner img {
    height: 100%;
    min-height: 360px;
  }

  .cta-banner div {
    padding: 48px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.1fr 0.8fr;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-actions {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.82fr);
  }

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

  .benefits-grid,
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(7) {
    grid-row: span 2;
    height: 514px;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0 10px;
  }

  .header-phone span {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  .brand-logo {
    width: 156px;
  }

  .header-phone {
    min-width: 44px;
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-image-main img {
    height: 390px;
  }

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

  .filter-btn {
    flex: 1 1 calc(50% - 10px);
  }

  .legal-modal,
  .quick-modal,
  .cookie-modal {
    width: calc(100vw - 32px);
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 16px;
    border-radius: 12px;
    padding: 24px;
  }

  .cookie-banner {
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-grid a,
  .footer-grid button {
    width: 100%;
  }
}

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

  .hero-image-card {
    left: 10px;
    right: 10px;
  }

  .hero-image-card img {
    width: 64px;
    height: 64px;
  }

  .filter-btn {
    flex: 1 1 100%;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-images img:nth-child(1),
  .about-images img:nth-child(4) {
    transform: none;
  }
}