:root {
  --blue-900: #07346f;
  --blue-700: #0b63ce;
  --blue-500: #1e8bff;
  --blue-100: #e8f3ff;
  --cyan: #65d7ff;
  --text: #102033;
  --muted: #66758a;
  --line: #d9e7f7;
  --white: #ffffff;
  --bg: #f6fbff;
  --shadow: 0 18px 50px rgba(7, 52, 111, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

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

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 231, 247, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan));
  box-shadow: 0 12px 28px rgba(11, 99, 206, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue-900);
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--blue-900);
  font-weight: 700;
}

.nav-links a:not(.btn):hover {
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--blue-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary,
.btn-small {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 14px 28px rgba(11, 99, 206, 0.25);
}

.btn-secondary {
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
}

.btn-map {
  width: 100%;
  color: var(--blue-900);
  background: var(--blue-100);
}

.btn-book {
  width: 100%;
  margin-top: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 14px 28px rgba(11, 99, 206, 0.25);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
  background:
    radial-gradient(circle at 82% 12%, rgba(101, 215, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.hero::before {
  position: absolute;
  inset: 70px auto auto -120px;
  width: 360px;
  height: 360px;
  content: "";
  border-radius: 999px;
  background: rgba(30, 139, 255, 0.08);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  color: var(--blue-900);
  font-size: 1.25rem;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 640px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--blue-900);
  font-weight: 700;
}

.hero-points li::before {
  position: absolute;
  left: 0;
  color: var(--blue-500);
  content: "✓";
}

.hero-card,
.text-panel,
.service-card,
.before-after-card,
.contact-form,
.contact-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.rating {
  padding: 24px;
  color: var(--white);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.rating strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.quick-info {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.quick-info p,
.contact-cards p {
  margin: 0;
}

.quick-info span,
.contact-cards span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-info a,
.contact-cards a {
  color: var(--blue-700);
  font-weight: 900;
}

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

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p,
.text-panel p,
.service-header p,
.before-after-card p {
  color: var(--muted);
}

.trust-section {
  padding-top: 44px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--blue-700);
  font-size: 2.2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.text-panel {
  padding: 34px;
}

.services-section {
  background: linear-gradient(180deg, #ffffff 0%, #ecf7ff 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.service-header p {
  margin-bottom: 0;
}

.price-list,
.price-table p {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.price-list strong,
.price-table strong {
  color: var(--blue-700);
  text-align: right;
  white-space: nowrap;
}

.text-cta {
  margin-top: auto;
  color: var(--blue-700);
  font-weight: 900;
}

.text-cta::after {
  content: " →";
}

.workshop-services {
  padding: 30px;
  margin-top: 28px;
  color: var(--white);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.workshop-services h3 {
  color: var(--white);
}

.workshop-services ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workshop-services li {
  position: relative;
  padding-left: 20px;
}

.workshop-services li::before {
  position: absolute;
  left: 0;
  color: var(--cyan);
  content: "•";
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.before-after-card {
  overflow: hidden;
}

.before-after-card h3,
.before-after-card p {
  padding-inline: 24px;
}

.realization-photo {
  display: block;
  width: 100%;
  height: 220px;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.contact-section {
  background: var(--white);
}

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

.contact-cards {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.contact-cards article,
.contact-form {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 139, 255, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.map-wrap {
  margin-top: 36px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 64px 0 96px;
  color: var(--white);
  background: var(--blue-900);
}

.footer-inner {
  display: grid;
  gap: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.85fr;
  gap: 36px 28px;
  align-items: start;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-col p {
  margin: 0 0 14px;
}

.footer-col a {
  font-weight: 800;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}

.footer-brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-hours,
.footer-nav {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-hours strong {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  padding-top: 112px;
  text-align: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(101, 215, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.not-found-inner {
  max-width: 720px;
}

.not-found-code {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.not-found h1 {
  margin: 0 0 16px;
  color: var(--blue-900);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.not-found .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.mobile-call {
  display: none;
}

/* Reviews Portals */
.reviews-portals-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(7, 52, 111, 0.16);
}

.portal-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.portal-logo svg {
  height: 100%;
  max-width: 100%;
}

.portal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.portal-btn {
  width: 100%;
  text-align: center;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-900);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portal-btn:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  border-color: transparent;
}


/* Articles Section & Cards */
.articles-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

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

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(7, 52, 111, 0.16);
}

.article-card > a {
  display: block;
  overflow: hidden;
}

.article-photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-photo {
  transform: scale(1.05);
}

.article-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-grow: 1;
}

.article-body h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.article-body h3 a {
  color: var(--blue-900);
  transition: color 0.2s ease;
}

.article-body h3 a:hover {
  color: var(--blue-700);
}

.article-date {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Article Subpages Layout */
.article-page {
  padding: 60px 0 88px;
  background: var(--white);
}

.article-container {
  max-width: 820px;
}

.article-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue-700);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-header h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.article-featured-image {
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.article-content {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content p.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue-900);
}

.article-content h2 {
  margin: 40px 0 20px;
  color: var(--blue-900);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.article-content ul, 
.article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content li strong {
  color: var(--blue-900);
}

.info-box {
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.info-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.article-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.article-table th, 
.article-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-table th {
  color: var(--white);
  background: var(--blue-900);
  font-weight: 700;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table tr:nth-child(even) {
  background: var(--bg);
}

.cta-box {
  padding: 36px;
  margin-top: 48px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-100), rgba(232, 243, 255, 0.4));
  border: 1px solid var(--line);
}

.cta-box h3 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-size: 1.5rem;
}

.cta-box p {
  margin-bottom: 24px;
  color: var(--muted);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.more-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.more-info-box p {
  margin-bottom: 20px;
  color: var(--muted);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid var(--line);
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-more:hover {
  transform: translateY(-2px);
  background: var(--white);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

@media (max-width: 640px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .stats-grid,
  .before-after-grid,
  .portals-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 78px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-grid,
  .before-after-grid,
  .portals-grid,
  .articles-grid,
  .workshop-services ul {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .text-panel,
  .service-card,
  .contact-form {
    padding: 22px;
  }

  .price-list,
  .price-table p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .price-list strong,
  .price-table strong {
    text-align: left;
    white-space: normal;
  }

  .map-wrap iframe {
    min-height: 320px;
  }

  .mobile-call {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 30;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    box-shadow: 0 16px 34px rgba(11, 99, 206, 0.36);
  }
}
