html {
    scroll-behavior: smooth;
  }

  #request {
    scroll-margin-top: 24px;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background: #ececec;
    font-family: Arial, sans-serif;
    color: #1f1f1f;
  }

  .browser {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cfcfcf;
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.08);
  }

  /* NAVBAR */
  .navbar {
    height: 74px;
    border-bottom: 2px solid #b7c1cb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    background: #fff;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .logo-image {
    height: 44px;
    width: auto;
  }

  .logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #222;
  }

  .menu {
    display: flex;
    gap: 42px;
    list-style: none;
  }

  .menu a {
    text-decoration: none;
    color: #222222;
    font-size: 18px;
    transition: 0.3s;
  }

  .menu a:hover {
    color: #264c7c;
  }

  .law-text {
    flex: 1;
    text-align: center;
    padding: 0 35px;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #4b5d73;
    font-weight: 500;
  }

  /* HEADER PHONE */
  .header-phone,
  .header-phone:link,
  .header-phone:visited,
  .header-phone:hover,
  .header-phone:active {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #2f4d82 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: 0.3s;
  }

  .header-phone:hover {
    color: #1f3963 !important;
  }

  @media(max-width: 1200px) {
    .header-phone {
      order: 2;
    }
  }

  @media(max-width: 768px) {
    .header-phone {
      order: initial;
      font-size: 17px;
    }
  }

  /* MAIN */
  .main {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    min-height: 700px;
  }

  /* LEFT */
  .sidebar-left {
    border-right: 1px solid #d8d8d8;
    padding: 24px;
    background: #fafafa;
  }

  .block-title {
    background: #e9ecef;
    padding: 14px 18px;
    font-size: 18px;
    border-radius: 4px;
    margin-bottom: 28px;
    color: #444;
    text-align: center;
  }

  .services {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .services li {
    display: flex;
    gap: 14px;
    font-size: 17px;
    line-height: 1.45;
    color: #222;
    cursor: pointer;
    transition: color 0.3s;
  }

  .services li:hover {
    color: #264c7c;
  }

  .services a,
  .services a:link,
  .services a:visited,
  .services a:hover,
  .services a:active {
    color: #222222 !important;
    text-decoration: none !important;
  }

  .services a:hover {
    color: #264c7c !important;
  }

  .services li a.service-link,
  .services li a.service-link:link,
  .services li a.service-link:visited,
  .services li a.service-link:hover,
  .services li a.service-link:active {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none !important;
  }

  /* Icon styling */
  .icon {
    color: #29486f;
    font-size: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .icon-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
  }

  /* CENTER */
  .center {
    padding: 22px;
    background: #fff;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 220px 220px;
    gap: 15px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    padding: 15px;
    background: #fff;
  }

  .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .gallery .full-width {
    grid-column: span 2;
  }

  .hero-left {
    position: relative;
  }

  .hero-banner {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #2f4d82;
    color: #fff;
    padding: 16px 26px;
    font-size: 20px;
    letter-spacing: 1px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
  }

  /* RIGHT */
  .sidebar-right {
    border-left: 1px solid #d8d8d8;
    padding: 24px;
    background: #fafafa;
  }

  .company {
    margin-top: 24px;
  }

  .company h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
  }

  .company p {
    color: #3c5578;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 34px;
    font-size: 16px;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    color: #222;
    margin-bottom: 36px;
  }

  .btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 28px;
    background: #2f4d82;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
  }

  .request-scroll-btn,
  .request-scroll-btn:link,
  .request-scroll-btn:visited,
  .request-scroll-btn:hover,
  .request-scroll-btn:active {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
  }

  .btn:hover {
    background: #1f3963;
  }

  /* LIGHTBOX */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .lightbox.active {
    display: flex;
    opacity: 1;
  }

  .lightbox__image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
  }

  @keyframes zoomIn {
    from {
      transform: scale(.9);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 1000;
  }

  .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10000;
  }

  .lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .lightbox__nav.prev {
    left: 30px;
  }

  .lightbox__nav.next {
    right: 3px;
  }

  /* SERVICES BLOCK INSIDE MAIN FRAME */
  .services-inside {
    padding: 56px 40px 60px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
  }

  .services-wrapper {
    max-width: 980px;
    margin: 0 auto;
  }

  .services-title {
    text-align: center;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
  }

  .services-subtitle {
    text-align: center;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #555;
    max-width: 720px;
    margin: 0 auto 62px;
  }

  .services-grid-inside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px 64px;
  }

  .service-card-inside {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: flex-start;
  }

  .service-card-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
  }

  .service-card-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
  }

  .service-card-text h3 {
    font-family: TildaSans, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.28;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
  }

  .service-card-text p {
    font-family: TildaSans, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #555;
    margin: 0;
  }

  /* ABOUT BLOCK INSIDE MAIN FRAME */
  .about-inside {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
  }

  .about-box {
    border: none;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    background: #fff;
  }

  .about-photo img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .about-text h2 {
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 34px;
    color: #111;
    text-transform: uppercase;
  }

  .about-text p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 24px;
    color: #111;
  }

  .about-text ul {
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.55;
  }

  .about-text li {
    margin-bottom: 8px;
  }

  /* Tilda style conflict protection */
  .browser .navbar .menu a,
  .browser .navbar .menu a:link,
  .browser .navbar .menu a:visited,
  .browser .navbar .menu a:hover,
  .browser .navbar .menu a:active {
    color: #222222 !important;
    text-decoration: none !important;
  }

  .browser .navbar .menu a:hover {
    color: #264c7c !important;
  }

  .request-inside {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
  }

  .request-frame {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 34px 22px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  @media(max-width: 768px) {
    .request-frame {
      padding: 28px 18px 34px;
    }
  }

  /* FOOTER */
  .footer {
    height: 56px;
    border-top: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 14px;
    color: #444;
    background: #fff;
  }

  /* RESPONSIVE */
  @media(max-width: 1200px) {
    .browser {
      width: 95%;
    }

    .services-inside {
      padding: 46px 24px 50px;
    }

    .services-grid-inside {
      grid-template-columns: 1fr;
      gap: 34px;
    }

    .services-title {
      font-size: 34px;
    }

    .services-subtitle {
      font-size: 16px;
      margin-bottom: 42px;
    }

    .service-card-inside {
      grid-template-columns: 52px 1fr;
      gap: 16px;
    }

    .service-card-icon,
    .service-card-icon img {
      width: 52px;
      height: 52px;
    }

    .service-card-text h3 {
      font-size: 20px;
    }

    .service-card-text p {
      font-size: 15px;
    }

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

    .sidebar-left {
      border-right: none;
      border-bottom: 1px solid #ddd;
    }

    .sidebar-right {
      border-left: none;
      border-top: 1px solid #ddd;
    }

    .gallery {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      padding: 15px;
    }

    .gallery .full-width {
      grid-column: span 1;
    }

    .gallery img {
      height: 320px;
    }

    .hero-banner {
      font-size: 16px;
      padding: 12px 18px;
    }

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

    .about-photo img {
      height: 320px;
    }

    .about-text h2 {
      font-size: 20px;
      margin-bottom: 22px;
    }

    .about-text p,
    .about-text ul {
      font-size: 17px;
    }
  }

  @media(max-width: 768px) {
    .navbar {
      flex-direction: column;
      height: auto;
      gap: 20px;
      padding: 20px;
    }

    .menu {
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .services li {
      font-size: 15px;
    }

    .company h1 {
      font-size: 24px;
    }

    .btn {
      font-size: 18px;
    }

    .lightbox__close {
      top: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      font-size: 24px;
    }

    .lightbox__nav {
      width: 50px;
      height: 5px;
      font-size: 20px;
    }

    .lightbox__nav.prev {
      left: 20px;
    }

    .lightbox__nav.next {
      right: 20px;
    }
  }

  @media(max-width: 480px) {

    .services-inside {
      padding: 38px 18px 42px;
    }

    .services-title {
      font-size: 30px;
    }

    .services-subtitle {
      font-size: 15px;
    }

    .service-card-inside {
      grid-template-columns: 46px 1fr;
    }

    .service-card-icon,
    .service-card-icon img {
      width: 46px;
      height: 46px;
    }

    .service-card-text h3 {
      font-size: 18px;
    }

    .service-card-text p {
      font-size: 14px;
    }

    .gallery img {
      height: 240px;
    }

    .lightbox__close {
      top: 15px;
      right: 15px;
      width: 40px;
      height: 40px;
      font-size: 20px;
    }

    .lightbox__nav {
      width: 45px;
      height: 45px;
      font-size: 18px;
    }

    .lightbox__nav.prev {
      left: 15px;
    }

    .lightbox__nav.next {
      right: 15px;
    }
  }

  /* INDUSTRIES BLOCK BEFORE REQUEST FORM */
  .industries-inside {
    padding: 56px 40px 58px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
  }

  .industries-wrapper {
    max-width: 980px;
    margin: 0 auto;
  }

  .industries-title {
    margin: 0 0 24px;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 36px;
    line-height: 1.22;
    font-weight: 700;
    color: #111;
    text-align: center;
  }

  .industries-lead {
    max-width: 860px;
    margin: 0 auto 34px;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 400;
    color: #222;
    text-align: center;
  }

  .industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
    margin: 0 auto 30px;
  }

  .industry-item {
    min-height: 74px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    background: #fbfcfd;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.45;
    font-weight: 500;
    color: #222;
  }

  .industry-item::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: #2f4d82;
    box-shadow: 0 0 0 6px rgba(47, 77, 130, 0.08);
  }

  .industries-final {
    margin: 0;
    padding: 22px 24px;
    border-left: 4px solid #2f4d82;
    background: #f6f8fb;
    font-family: TildaSans, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
    color: #071b3a;
    text-align: center;
  }

  @media(max-width: 1200px) {
    .industries-inside {
      padding: 46px 24px 50px;
    }

    .industries-title {
      font-size: 32px;
    }

    .industries-lead {
      font-size: 17px;
    }
  }

  @media(max-width: 768px) {
    .industries-inside {
      padding: 38px 20px 42px;
    }

    .industries-title {
      font-size: 27px;
      margin-bottom: 18px;
    }

    .industries-lead {
      font-size: 16px;
      text-align: left;
      margin-bottom: 26px;
    }

    .industries-grid {
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 24px;
    }

    .industry-item {
      min-height: 0;
      padding: 16px 18px;
      font-size: 15.5px;
    }

    .industries-final {
      padding: 18px 20px;
      font-size: 17px;
      text-align: left;
    }
  }

.law-text {
    font-size: 14px;
    font-family: var(--t-headline-font);
}

img {
    width: min-content;
    height: auto;
}

  /* HEADER ONE-LINE ALIGNMENT */
  .browser .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    min-height: 74px !important;
    height: auto !important;
  }

  .browser .logo,
  .browser .law-text,
  .browser .header-phone,
  .browser .menu {
    order: initial !important;
    align-self: center !important;
  }

  .browser .logo {
    flex: 0 0 auto !important;
  }

  .browser .law-text {
    flex: 1 1 auto !important;
    flex-basis: auto !important;
    min-width: 230px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .browser .header-phone,
  .browser .header-phone:link,
  .browser .header-phone:visited,
  .browser .header-phone:hover,
  .browser .header-phone:active {
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: TildaSans, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #2f4d82 !important;
    text-decoration: none !important;
  }

  .browser .header-phone:hover {
    color: #1f3963 !important;
  }

  .browser .menu {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    margin: 0 !important;
  }

  .browser .menu li {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .browser .menu li:first-child:has(a[href="#"]) {
    display: none !important;
  }

  @media(max-width: 1200px) {
    .browser .navbar {
      flex-wrap: nowrap !important;
      gap: 18px !important;
    }

    .browser .law-text {
      order: initial !important;
      flex-basis: auto !important;
      min-width: 210px !important;
      padding: 0 6px !important;
      font-size: 13px !important;
    }

    .browser .header-phone {
      order: initial !important;
      font-size: 15px !important;
    }

    .browser .menu {
      gap: 18px !important;
    }

    .browser .menu a,
    .browser .menu a:link,
    .browser .menu a:visited,
    .browser .menu a:hover,
    .browser .menu a:active {
      font-size: 15px !important;
    }
  }

  @media(max-width: 900px) {
    .browser .navbar {
      overflow-x: auto !important;
      justify-content: flex-start !important;
      gap: 16px !important;
      padding-left: 18px !important;
      padding-right: 18px !important;
    }

    .browser .law-text {
      min-width: 210px !important;
    }

    .browser .menu {
      gap: 16px !important;
    }
  }

  @media(max-width: 768px) {
    .browser .navbar {
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 14px !important;
    }

    .browser .menu {
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
    }

    .browser .law-text {
      order: initial !important;
      font-size: 13px !important;
    }

    .browser .header-phone {
      order: initial !important;
      font-size: 15px !important;
    }
  }

  /* Align the dot and the text horizontally inside each industry card */
  .industry-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    min-height: 102px !important;
    padding: 22px 28px !important;
    text-align: left !important;
  }

  .industry-item::before {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    margin-top: 0 !important;
    border-radius: 50% !important;
    background: #2f4d82 !important;
    box-shadow: 0 0 0 6px rgba(47, 77, 130, 0.08) !important;
    align-self: center !important;
    flex: 0 0 12px !important;
  }

  @media(max-width: 768px) {
    .industry-item {
      min-height: 0 !important;
      padding: 18px 20px !important;
      gap: 16px !important;
      align-items: center !important;
      text-align: left !important;
    }

    .industry-item::before {
      width: 10px !important;
      height: 10px !important;
      min-width: 10px !important;
      flex-basis: 10px !important;
    }
  }
