:root {
  --blue: #0c7fcf;
  --blue-dark: #09619f;
  --blue-soft: #ddf0fd;
  --text: #555;
  --muted: #7d7d7d;
  --line: #e9e9e9;
  --max: 1170px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", "Arial Hebrew", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  direction: rtl;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

h1, h2, h3, h4, h5 {
  font-family: "Open Sans", "Arial Hebrew", Arial, sans-serif;
  color: var(--blue);
  line-height: 1.35;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.logo img {
  display: block;
  height: 72px;
  width: auto;
}

/* Nav */
.nav-wrap {
  background: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 40;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 14px 10px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.nav > li:hover > a,
.nav > li.active > a {
  color: var(--blue);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-top: 2px solid var(--blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 50;
}

.nav > li:hover > .dropdown,
.nav > li:focus-within > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #eee;
}

.dropdown li:first-child a {
  border-top: none;
}

.dropdown a:hover {
  color: var(--blue);
  background: #f7fbfe;
}

.menu-toggle {
  display: none;
  border: 1px solid #ccc;
  background: #333;
  color: #fff;
  width: 42px;
  height: 38px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* Slider */
.slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 2s ease;
}

.slide.is-active .slide-bg {
  transform: scale(1.08);
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 80px;
  color: #fff;
}

.slide-content h2,
.slide-content h3,
.slide-content p {
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.slide-content h2 {
  font-size: 42px;
  font-weight: 400;
}

.slide-content h3 {
  font-size: 48px;
  font-weight: 800;
}

.slide-content p {
  font-size: 22px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 80px;
  background: #fff;
  color: #555;
  border: 0;
  font-size: 48px;
  line-height: 80px;
  cursor: pointer;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-btn:hover {
  background: var(--blue);
  color: #fff;
}

/* Expert */
.expert {
  padding: 50px 0 30px;
  text-align: center;
}

.expert img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
}

.expert h2 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--muted);
}

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

.expert .phone {
  font-size: 22px;
  color: #222;
  font-weight: 700;
}

.clients {
  padding: 10px 0 40px;
  text-align: center;
}

.clients h2 {
  font-size: 36px;
  color: #3366ff;
  margin: 0 0 16px;
}

.clients img {
  width: 100%;
  max-width: 1100px;
  background: #000;
}

/* Blue band */
.band {
  background: var(--blue) url("../images/main-top-bg.png") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.band h2 {
  color: #fff;
  font-size: 36px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.band p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

/* Page body */
.page-body {
  padding: 36px 0 70px;
}

.page-title {
  margin: 0 0 24px;
  font-size: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article {
  color: #333;
}

.article h1,
.article h2,
.article h3,
.article h4 {
  color: var(--blue);
}

.article p {
  margin: 0 0 14px;
}

.article table {
  width: 100%;
  max-width: 780px;
  border-collapse: collapse;
  background: #e6e8f5;
  margin: 0 auto 24px;
}

.article table td,
.article table th {
  border: 2px solid #0c53ed;
  padding: 10px 12px;
  vertical-align: top;
  text-align: right;
}

.article iframe {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.article img {
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
}

.callout {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: #f7f5f5;
  border: 1px solid #ddd;
  padding: 16px 20px;
  margin-top: 20px;
  align-items: center;
}

.callout strong.hl {
  background: #ffcc00;
  padding: 2px 8px;
}

.callout .name {
  background: #ff9900;
  padding: 2px 8px;
}

.profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #e9e9f2;
  border: 1px solid #151b4d;
  max-width: 480px;
  padding: 16px;
  margin: 0 0 24px auto;
}

.profile-card img {
  width: 116px;
  height: 158px;
  object-fit: cover;
}

/* Contact */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: #f4f8fc;
  border: 1px solid #d7e8f6;
  padding: 24px;
  border-radius: 6px;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card a.big {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: #222;
  background: #ffcc00;
  padding: 6px 14px;
  margin: 8px 0 16px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  border: 1px solid var(--blue);
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn-outline {
  background: #fff;
  color: var(--blue) !important;
}

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

.form-grid label,
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-grid input,
.form-row textarea,
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
}

.form-row {
  margin-top: 14px;
}

.form-row textarea {
  min-height: 160px;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-success {
  display: none;
  background: #e8f7ee;
  border: 1px solid #8ed1a8;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.form-success.show,
.form-error.show {
  display: block;
}

.form-error {
  display: none;
  background: #fdeaea;
  border: 1px solid #e7a0a0;
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 60;
  }

  .nav-wrap {
    min-height: 62px;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 50px 0 16px;
  }

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

  .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    padding-right: 12px;
  }

  .slider {
    height: 380px;
  }

  .slide-content {
    padding: 20px 64px;
  }

  .slide-content h2 { font-size: 26px; }
  .slide-content h3 { font-size: 30px; }
  .slide-content p { font-size: 16px; }

  .band {
    padding: 46px 16px;
  }

  .band h2 { font-size: 26px; }
  .band p { padding: 0; }

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

@media (max-width: 560px) {
  .logo img { height: 56px; }
  .slider { height: 280px; }
  .slider-btn { width: 40px; height: 56px; font-size: 32px; line-height: 56px; }
  .clients h2 { font-size: 24px; }
  .profile-card { flex-direction: column; }
}
