/* Classic layout (SSR-like) */

:root {
  --theme-primary: #3880ff;
  --theme-primary-rgb: 56, 128, 255;
  --theme-primary-alpha-10: rgba(var(--theme-primary-rgb), 0.1);
  --theme-primary-alpha-20: rgba(var(--theme-primary-rgb), 0.2);
  --theme-primary-alpha-30: rgba(var(--theme-primary-rgb), 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: rgba(15, 23, 42, 0.9);
  font-family: var(--text-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.public-header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.public-header .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.public-header .title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.public-header .buttons-end,
.public-header .desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.public-header .login-btn {
  color: var(--theme-primary);
  background: var(--theme-primary-alpha-10);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.public-header .login-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--theme-primary-alpha-30);
}

@media (max-width: 768px) {
  .public-header .desktop-only-flex {
    display: none !important;
  }
  .public-header .toolbar {
    padding: 0.25rem 0.5rem;
    min-height: 48px;
  }
  .public-header .login-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    background: transparent;
  }
  .public-header .login-btn span {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  text-decoration: none;
  gap: 0.5rem;
}

.btn.btn-primary {
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--theme-primary-alpha-30);
}

.btn.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section .section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section .section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 1rem 0;
}

.section .section-header p {
  font-size: 1.1rem;
  color: rgba(71, 85, 105, 0.9);
  margin: 0;
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .hero-logo {
  max-width: 180px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero .hero-title {
  font-size: var(--title-size, clamp(3rem, 7vw, 5rem));
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.5rem 0;
  font-family: var(--title-font-family, var(--text-font-family, inherit));
  color: var(--title-color, rgba(15, 23, 42, 0.92));
}

.hero .hero-description {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.6;
  color: rgba(71, 85, 105, 0.95);
  max-width: 700px;
  margin: 0 auto;
}

/* Services */
.services-section {
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card with top image: image spans full width left-to-right, takes 3/5 of card height */
.service-card--with-image {
  display: grid;
  grid-template-rows: 3fr 2fr;
  overflow: hidden;
  min-height: 320px;
}

.service-card--with-image .service-card-image {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.service-card--with-image .service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card--with-image .card-content {
  padding: 1.5rem 2rem 2rem;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.18);
}

.service-card .card-content {
  padding: 3rem 2.25rem;
  text-align: center;
}

.service-card--with-image .card-content {
  text-align: center;
}

.service-card .service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.service-card .service-name {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.service-card p {
  margin: 0;
  color: rgba(71, 85, 105, 0.9);
  line-height: 1.6;
}

/* Price list */
.price-list-section {
  background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.price-groups-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-width: 320px;
  max-width: 420px;
  flex: 0 0 auto;
}

.price-card .card-header {
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.price-card .group-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.price-card .group-description {
  margin: 0;
  color: rgba(71, 85, 105, 0.9);
}

.price-card .card-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-item .item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-item .item-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(0, 0, 0, 0.15);
  opacity: 0.6;
}

.price-item .item-price {
  font-weight: 900;
  color: var(--theme-primary);
  white-space: nowrap;
}

.price-item .item-description {
  margin: 0.35rem 0 0 0;
  font-style: italic;
  color: rgba(71, 85, 105, 0.9);
}

.price-list-footer {
  margin-top: 4rem;
  text-align: center;
  font-style: italic;
  color: rgba(71, 85, 105, 0.9);
}

/* Map */
.map-section {
  padding: 0;
  max-width: 100%;
}

.map-section .map-card {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.map-section .map-container {
  padding: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* Contact */
.contact-section {
  background: #111;
  color: #fff;
  max-width: 100%;
}

.contact-section .section-header h2 {
  color: #fff;
}
.contact-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.contact-info a:hover {
  opacity: 1;
  text-decoration: underline;
}

.working-hours {
  width: 100%;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer */
.public-footer {
  background: #1f2640;
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.public-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.public-footer .social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.public-footer .social-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.public-footer .copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}