:root {
  --bg: #f5fbff;
  --bg-soft: #edf8ff;
  --white: #ffffff;
  --text: #17334a;
  --muted: #64839d;
  --line: #d9eaf5;
  --primary: #77c9f2;
  --primary-strong: #4db8eb;
  --primary-dark: #249dd6;
  --secondary: #e8f6ff;
  --success: #1da96b;
  --danger: #d94f4f;
  --shadow: 0 20px 60px rgba(68, 131, 174, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(119, 201, 242, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(77, 184, 235, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfeff 0%, #f5fbff 100%);
}

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

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(251, 254, 255, 0.9);
  border-bottom: 1px solid rgba(217, 234, 245, 0.95);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dff4ff, #99dcf8);
  box-shadow: 0 10px 24px rgba(88, 167, 209, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

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

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(77, 184, 235, 0.22);
}

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

.btn-full {
  width: 100%;
}

.hero {
  padding: 44px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.quote-card,
.service-card,
.about-copy,
.testimonial-card,
.contact-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 40px;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e9f7ff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero-text {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

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

.hero-point {
  background: rgba(232, 246, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.hero-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.hero-point span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  height: 100%;
}

.hero-media-side {
  height: 100%;
}

.hero-image-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  min-height: 420px;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.04)),
    #dff4ff;
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

.quote-card {
  border-radius: var(--radius-xl);
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.quote-head {
  margin-bottom: 10px;
}

.quote-head h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.quote-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.field label {
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #caddeb;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-size: 0.94rem;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(77, 184, 235, 0.14);
}

.triple-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.triple-select input,
.triple-select select {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #caddeb;
  background: #fff;
  font-size: 0.9rem;
  width: 100%;
}

.choice-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: auto;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcff;
  cursor: pointer;
  transition: var(--transition);
}

.choice-option:hover {
  border-color: var(--primary-dark);
  background: #eef8ff;
}

.choice-option input[type="radio"] {
  accent-color: var(--primary-dark);
  margin: 0;
  width: 13px;
  height: 13px;
}

.choice-option span {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
}

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

.check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcff;
  cursor: pointer;
  transition: var(--transition);
}

.check-option:hover {
  border-color: var(--primary-dark);
  background: #eef8ff;
}

.check-option input[type="checkbox"] {
  accent-color: var(--primary-dark);
  margin: 0;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.check-option span {
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.15;
  color: var(--text);
}

.form-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.form-success,
.form-error {
  display: none;
  margin: 10px 2px 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.form-success {
  color: var(--success);
}

.form-error {
  color: var(--danger);
}

.section {
  padding: 34px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e6f7ff;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-card h3,
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.service-card p,
.contact-card p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 10px;
}

.carousel-item img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  min-height: 420px;
}

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

.about-copy {
  border-radius: 26px;
  padding: 32px;
}

.about-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f2fbff;
  border: 1px solid var(--line);
}

.about-point strong {
  display: block;
  margin-bottom: 4px;
}

.about-point span {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: repeat(2, 250px);
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.gallery-item-large {
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.testimonial-card,
.contact-card {
  border-radius: 22px;
  padding: 24px;
}

.testimonial-card .stars {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.testimonial-card strong {
  display: block;
  margin-top: 16px;
}

.footer {
  padding: 28px 0 48px;
}

.footer-inner {
  background: linear-gradient(135deg, #dff4ff, #9eddf8);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner strong {
  display: block;
  margin-bottom: 4px;
}

.footer-inner span {
  color: #34556e;
}

@media (max-width: 1180px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 240px);
  }

  .gallery-item-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 920px) {

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

  .hero-copy h1 {
    max-width: none;
  }

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

  .hero-side,
  .hero-media-side,
  .quote-card,
  .quote-form,
  .hero-image-card {
    height: auto;
  }

  .about-image,
  .about-image img,
  .hero-image-card {
    min-height: 300px;
  }

  .hero-image-card img {
    min-height: 300px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
  }

  .nav-cta {
    width: 100%;
  }

  .form-grid,
  .services-grid,
  .testimonials-grid,
  .contact-grid,
  .gallery-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: repeat(5, 220px);
  }

  .hero-copy,
  .quote-card,
  .service-card,
  .about-copy,
  .testimonial-card,
  .contact-card,
  .footer-inner {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 28px 22px;
  }
}

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

  .topbar-inner {
    min-height: 72px;
  }

  .brand-copy span {
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 28px;
  }

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

  .btn,
  .btn-full {
    width: 100%;
  }

  .quote-card {
    padding: 16px;
  }

  .quote-form {
    padding: 16px;
  }

  .field input,
  .field select,
  .field textarea,
  .choice-option,
  .check-option {
    min-height: 48px;
  }

  .section {
    padding: 28px 0;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}

@media (max-width: 820px) {
  .triple-select {
    grid-template-columns: 1fr;
  }
}