/* =========================================================
   areainfo.ru — mobil versiya + keng kompyuter versiyasi
   ========================================================= */

.menu-toggle {display:none;}
.menutop a.current {background:#e1e9c1; border-radius:14px;}

/* =========================================================
   KOMPYUTER: keng ekranlarda sayt kengroq (940 -> 1180px)
   ========================================================= */
@media (min-width: 1240px) {
  body {font-size:14px; line-height:21px;}
  .wrapper {width:1180px;}

  .header {height:100px;}
  .logo {top:12px;}
  .head {left:270px; width:440px; font-size:15px;}
  .menutop {left:255px; width:760px; top:54px;}
  .menutop a {font-size:18px; padding:7px 16px;}
  .head1 {width:170px;}

  .b1, .b2, .b3 {width:290px;}
  .b4 {width:295px;}
  .box h3 {font-size:15px;}
  .box li {font-size:14px; line-height:22px;}

  .sl {width:260px;}
  .gallery li {width:260px; text-align:center;}
  .gallery span {left:20px;}
  .content {width:880px; font-size:15px; line-height:23px;}
  .content h2 {font-size:24px;}

  .lastnews, .lastothers {width:550px;}
  .block ul {font-size:13px; line-height:18px;}

  .foot1 {width:500px;}
  .foot2 {width:330px;}
  .foot3 {width:330px;}
  .soc {left:360px;}
}

/* =========================================================
   TELEFON VA PLANSHET
   ========================================================= */
@media (max-width: 979px) {

  html {-webkit-text-size-adjust:100%; text-size-adjust:100%;}
  body {font-size:15px; line-height:1.6; overflow-x:hidden;}
  img {max-width:100%; height:auto;}

  .wrapper {
    width:auto; padding:0;
    display:flex; flex-direction:column;
  }
  .wrapper > .clr {display:none;}
  .header  {order:1;}
  .content {order:2;}
  #box     {order:3;}
  .sl      {order:4;}
  .block   {order:5;}
  .footer  {order:6;}
  .likes   {order:7;}

  /* ---------- Shapka ---------- */
  .header {
    height:auto; padding:0; overflow:visible;
    display:flex; flex-wrap:wrap; align-items:center;
    background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.1);
  }
  .logo {
    position:static; order:1;
    width:170px; padding:0; height:54px; margin:8px 12px;
    background-size:contain; background-position:left center;
    font-size:0; color:transparent;
  }
  .menu-toggle {
    order:2; margin:0 12px 0 auto;
    display:inline-grid; grid-template-columns:22px auto;
    grid-template-rows:3px 3px 3px; row-gap:4px; column-gap:10px;
    align-content:center; align-items:center;
    height:44px; padding:0 16px; box-sizing:border-box;
    border:0; cursor:pointer; border-radius:8px;
    background:#3d9108; color:#fff;
    box-shadow:0 2px 0 #2f7006;
    font:bold 15px/1 Arial, sans-serif; text-transform:uppercase; letter-spacing:.5px;
    -webkit-tap-highlight-color:transparent;
  }
  .menu-toggle:active {background:#2f7006;}
  .menu-toggle i {
    grid-column:1; display:block; width:22px; height:3px;
    background:#fff; border-radius:2px;
    transition:transform .25s, opacity .25s;
  }
  .menu-toggle i:nth-child(1) {grid-row:1;}
  .menu-toggle i:nth-child(2) {grid-row:2;}
  .menu-toggle i:nth-child(3) {grid-row:3;}
  .menu-toggle b {grid-column:2; grid-row:1 / 4; align-self:center;}
  .header.open .menu-toggle i:nth-child(1) {transform:translateY(7px) rotate(45deg);}
  .header.open .menu-toggle i:nth-child(2) {opacity:0;}
  .header.open .menu-toggle i:nth-child(3) {transform:translateY(-7px) rotate(-45deg);}

  .menutop {
    position:static; order:3; width:100%;
    display:none; background:#f6f8ee; border-top:1px solid #e1e9c1;
  }
  .header.open .menutop {display:block;}
  .menutop li {float:none; padding:0; border-bottom:1px solid #e1e9c1;}
  .menutop a {padding:12px 18px; font-size:16px; border-radius:0 !important;}
  .menutop a:hover, .menutop a.current {background:#e1e9c1;}

  /* "Заказать сайт" va "Контакты" tugmalari */
  .head {
    position:static; order:4; width:100%;
    display:flex; gap:8px; padding:0 12px 10px; box-sizing:border-box;
  }
  .head a {
    float:none !important; flex:1; text-align:center;
    padding:10px 6px; border-radius:8px; font-size:14px;
    border:1px solid #e3d6d6; background:#fff8f8;
  }
  .head a:first-child {background:#b50000; color:#fff; border-color:#b50000;}
  .header.open .head {padding-top:10px;}
  .head img {display:none;}
  .ico, .head1 {display:none;}

  /* ---------- Kontent ---------- */
  .content {
    float:none; width:auto;
    margin:12px 10px; padding:16px 16px 6px;
    background:#fff; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.08);
    overflow-wrap:break-word; word-wrap:break-word;
  }
  .content h2 {font-size:22px; line-height:1.3; padding-bottom:6px;}
  .content h3 {font-size:18px; line-height:1.35;}
  .content img {height:auto !important;}
  .content img.imgl, .content img.imgr, .content img[align] {float:none !important; display:block; margin:10px auto;}
  .content div[style*="width"] {float:none !important; width:auto !important;}
  .content iframe, .content video, .content embed, .content object {max-width:100%;}
  .content table {display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;}
  #itsthetable {overflow-x:auto;}
  #itsthetable table {display:table; width:100% !important;}
  #itsthetable tbody tr td, #itsthetable thead th {padding:6px 8px;}
  .content form table, .content table.form {display:table; width:100% !important;}
  .content form td {display:block; width:auto !important; padding:4px 0;}
  .content form input[type=text], .content form input[type=edit], .content form input.text,
  .content form input.input, .content form textarea, .content form select {
    width:100% !important; max-width:100%; box-sizing:border-box;
    font-size:16px; padding:10px; border-radius:6px;
  }
  .content form input[type=submit] {
    width:100%; padding:13px; font-size:17px; font-weight:bold; border-radius:8px;
    background:#b0ca83; color:#fff; border:0; -webkit-appearance:none; appearance:none;
  }

  /* Tariflar */
  .tarif li {float:none; width:auto; padding:8px 0;}
  .tarif div {width:auto;}

  /* Sharhlar */
  .otziv {margin:12px 0;}

  /* ---------- Xizmatlar (4 blok) ---------- */
  #box {padding:0; margin:0 10px 12px; display:grid; grid-template-columns:1fr; gap:10px;}
  #box > .clr {display:none;}
  .box, .b1, .b2, .b3, .b4 {
    float:none; width:auto; height:auto; margin:0;
    background:#ecf3cf; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.08);
    padding:0 14px 12px;
  }
  .box:hover {background-position:0 0;}
  .box h3 {padding:18px 0 8px 60px; background-position:0 0;}
  .box ul {margin:0;}
  .box li {padding:6px 0 6px 14px; background-position:0 13px; border-bottom:1px solid #f0f0f0;}
  .box li {border-bottom-color:#dbe6b4;}
  .box li:last-child {border-bottom:0;}
  .box li a {display:block;}

  /* ---------- Chap ustun ---------- */
  .sl {float:none; width:auto; margin:0 10px 12px; text-align:center;}
  .sl h2 {text-align:left;}
  .gallery {display:flex; flex-wrap:wrap; justify-content:center; gap:4px 10px;}
  .gallery li {width:231px; float:none;}
  .sl br {display:none;}
  .order {margin:14px 0;}

  /* ---------- Yangiliklar ---------- */
  .block {
    margin:0 10px 12px; padding:14px;
    background:#fff; border:0; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.08);
  }
  .lastnews, .lastothers {float:none; width:auto; padding-bottom:12px;}
  .lastnews {border-bottom:1px solid #eee; margin-bottom:12px;}
  .block ul {font-size:14px; line-height:1.45;}

  /* ---------- Footer ---------- */
  .footer {background:#2f3328; color:#ccc; padding:16px 14px 6px; font-size:13px; line-height:1.6;}
  .footer a {color:#c9df9c;}
  .foot1, .foot2, .foot3 {
    float:none; width:auto; height:auto; background:none;
    padding:10px 0 !important; text-align:left;
    border-top:1px solid rgba(255,255,255,.1);
  }
  .foot3 {text-align:center;}
  .soc {position:static; margin:8px 0;}

  .likes {width:auto !important; padding:10px; overflow:hidden;}
  .likes table, .likes tbody, .likes tr {display:flex; flex-wrap:wrap; justify-content:center; gap:8px;}
  .likes td {display:block;}

  #fancybox-wrap {max-width:96vw;}
}

/* ---------- Planshet ---------- */
@media (min-width: 640px) and (max-width: 979px) {
  #box {grid-template-columns:1fr 1fr;}
  .content {padding:22px 24px 10px;}
}

/* ---------- Kichik telefonlar ---------- */
@media (max-width: 420px) {
  .logo {width:140px; height:46px;}
  .content {padding:14px 12px 4px; margin:10px 8px;}
  #box, .sl, .block {margin-left:8px; margin-right:8px;}
}
