/* iPad / tablet layout: portrait and landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { width: 92%; }

  .site-header { height: 64px; position: sticky; top: 0; }
  .nav-wrap { gap: 14px; }
  .brand { min-width: 165px; font-size: 15px; }
  .brand b { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; }

  .menu-toggle { display: block; margin-left: auto; order: 3; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: auto;
    padding: 15px 4%;
    background: #fff;
    box-shadow: 0 12px 22px rgba(8, 56, 38, .14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { height: 39px; font-size: 13px; }
  .main-nav a.active::after,
  .main-nav a:hover::after { left: 0; right: auto; width: 35px; }
  .header-action { margin-left: auto; }
  .header-action small { display: none; }
  .header-action .btn { padding: 10px 14px; font-size: 11px; }

  .hero { height: 500px; }
  .hero-content { width: 92%; }
  .hero h1 { margin-left: 3%; font-size: 27px; }
  .hero-buttons { margin-left: 3%; }
  .hero-video { object-position: center center; }

  .design-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "trust farm"
      "top top"
      "featured featured"
      "core showcase"
      "right right";
  }
  .trust-panel, .farm-panel { min-height: 125px; }
  .trust-panel { padding: 12px 18px; gap: 12px; }
  .farm-panel { padding: 15px 20px; }
  .top-services { padding: 22px 4%; }
  .top-services .mini-services div { height: 112px; }
  .featured-aside { padding: 22px 4%; }
  .featured-aside .product-row article { min-height: 135px; }
  .featured-aside .product { height: 72px; }
  .core-panel, .center-showcase { padding: 22px 4%; }
  .core-panel .service-grid { grid-template-columns: repeat(2, 1fr); }
  .core-panel .service-grid article { height: 92px; }
  .center-showcase .product-row { grid-template-columns: repeat(2, 1fr); }
  .center-showcase .product-row article { min-height: 130px; }
  .right-bottom .process { height: auto; padding: 25px 5%; }
  .right-bottom .legal { height: auto; min-height: 145px; padding: 22px 5%; }
  .right-bottom .steps div { font-size: 9px; }
  .right-bottom .steps span { width: 32px; height: 32px; }
}

@media (min-width: 769px) and (max-width: 850px) {
  .header-action { display: none; }
  .hero { height: 460px; }
  .design-board {
    display: flex;
    flex-direction: column;
  }
  .trust-panel { justify-content: center; }
  .farm-panel { min-height: 140px; }
  .featured-aside { order: 3; }
  .core-panel { order: 4; }
  .center-showcase { order: 5; }
  .right-bottom { order: 6; }
  .core-panel .service-grid { grid-template-columns: repeat(3, 1fr); }
  .center-showcase .product-row { grid-template-columns: repeat(4, 1fr); }
}
