/*
 * MyGazeta responsive layer, v3.
 * The original desktop layout (1130px and wider) stays untouched: apart from
 * hiding the menu button and keyboard access to the dropdown, every rule
 * lives inside a max-width media query.
 */
#mobileMenuToggle { display: none; }
/* Keyboard users can open the desktop dropdown too (no visual change on hover). */
ul#navcatlist li:focus-within ul { left: auto; }

/* ---------- Narrow desktop and large tablet ---------- */
@media (max-width: 1129px) {
  *, *::before, *::after { box-sizing: border-box; }
  body { min-width: 0; }
  #wrapper { width: 100%; max-width: 1130px; padding: 5px 24px 24px; }
  #header { display: flex; align-items: center; justify-content: space-between; height: auto; min-height: 100px; }
  #sitename, #sitename_bak, #ad728x90h, #ad468x60 { float: none; }
  #ad728x90h { max-width: calc(100% - 260px); }
  #featuredPost, #otherFeaturedPosts { width: calc(50% - 5px); }
  #featuredPost { margin-right: 10px; }
  #featuredWrapper img, #gallery img, #entry img, #archiveEntries img,
  #photoNewsBlock img, #photoReceptsBlock img, #subNews img,
  #subNewsN img, #singleContent img, #singlePostSidebarRight img {
    max-width: 100%; height: auto;
  }
  .wp-caption, .wp-caption img, iframe, video, embed, object { max-width: 100%; }
  #gallery { width: 100%; }
  #gallery ul { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x proximity; }
  #gallery ul li { float: none; flex: 0 0 126px; scroll-snap-align: start; }
  #subNews, #subNewsN { width: 68%; }
  #mainPageSidebar { width: 30%; }
  #singleContent { width: 82%; }
  #singlePostSidebarRight { width: 16%; }
  #entry, #archiveEntries { width: calc(100% - 290px); }
  #singlePostSidebarLeft { width: 270px !important; }
  #entry .related-post, #pNewsRelated { max-width: 100%; }
  #photoNewsBlock .photoNewsBlock1,
  #photoNewsBlock .photoNewsBlock3,
  #photoNewsBlock .photoNewsBlock5 { width: 25%; }
  #photoNewsBlock .photoNewsBlock2,
  #photoNewsBlock .photoNewsBlock4 { width: 10%; }
  #photoNewsBlock .photoNewsBlock-text { width: 100%; }
  .YandexDirect728x90, #ad728 { max-width: 100%; }
}

/* ---------- Tablets and phones: one column, newspaper sections ---------- */
@media (max-width: 900px) {
  body { background: #fff; padding-bottom: 0; }
  #wrapper { padding: 0 20px 0; box-shadow: none; }

  /* Top bar: subscription, date, search */
  #topBar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 14px; margin: 0 -20px 4px; padding: 6px 20px 8px;
  }
  #subscribe, #date, #search, #twitter { float: none; width: auto; margin: 0; }
  #subscribe { font-size: 13px; line-height: 20px; }
  #subscribe a { display: inline-block; padding: 6px 2px; }
  #date { font-size: 13px; line-height: 20px; padding: 0; }
  #twitter { display: none; }
  #search { flex: 1 1 100%; min-width: 0; }
  #searchform { display: flex; width: 100%; }
  #s {
    flex: 1 1 auto; float: none; width: 1px !important; height: 40px !important; min-width: 0;
    padding: 0 10px; border: 1px solid #cfcfcf; border-right: 0; border-radius: 0;
    background: #fff; color: #555; font: 16px 'Ubuntu', sans-serif;
  }
  #s:focus { outline: 2px solid #cd1713; outline-offset: -2px; color: #222; }
  #searchSubmit {
    flex: 0 0 76px; float: none; height: 40px; margin: 0; border: 1px solid #cfcfcf; border-radius: 0;
    background: #f3f3f3 url(images/searchGoRus.gif) no-repeat center;
  }

  /* Masthead */
  #header { min-height: 92px; justify-content: center; }
  #ad728x90h, #ad468x60 { display: none; }
  #sitename, #sitename_bak { width: auto; padding-top: 4px; text-align: center; }

  /* Sections menu */
  #categories { background: #f3f3f3; margin-bottom: 18px; }
  #mobileMenuToggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; min-height: 48px; padding: 8px 14px;
    border: 0; border-bottom: 3px solid #dcddde; background: #f3f3f3;
    color: #111; font: 21px/1 'Ubuntu Condensed', sans-serif; text-transform: uppercase;
    text-align: left; cursor: pointer;
  }
  #mobileMenuToggle:focus-visible { outline: 3px solid #cd1713; outline-offset: -3px; }
  #mobileMenuToggle span { color: #cd1713; font-size: 26px; line-height: 1; }
  #mobileMenuToggle[aria-expanded="true"] span { font-size: 0; }
  #mobileMenuToggle[aria-expanded="true"] span::before { content: "\2715"; font-size: 22px; }
  #categories.menu-ready:not(.menu-open) #navcatlist { display: none; }
  #categories.menu-open #navcatlist { display: block; }
  #navcatlist { padding: 0 0 10px; }
  ul#navcatlist > li { float: none; width: 100%; border-bottom: 1px solid #dedede; }
  ul#navcatlist > li > a {
    display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
    font-size: 21px; line-height: 1.1;
  }
  ul#navcatlist li:focus-within > a, ul#navcatlist li a:focus-visible { color: #cd1713; }
  ul#navcatlist li a:focus-visible { outline: 2px solid #cd1713; outline-offset: -2px; }
  /* Sub-sections as a row of chips under their parent */
  ul#navcatlist li ul, ul#navcatlist li:hover ul, ul#navcatlist li ul:hover, ul#navcatlist li:focus-within ul {
    position: static; display: flex; flex-wrap: wrap; gap: 6px; width: auto;
    padding: 0 14px 12px; border: 0;
  }
  ul#navcatlist li li { float: none; width: auto; }
  ul#navcatlist li li a {
    display: flex; align-items: center; width: auto !important; min-height: 36px; padding: 6px 12px;
    border: 1px solid #d5d5d5; background: #fff;
    font: 15px/1.2 'Ubuntu', sans-serif; letter-spacing: 0; text-transform: none;
  }

  /* Headlines and teasers: left aligned, no justified gaps */
  #featuredWrapper, #subNews, #subNewsN { font-size: 16px; line-height: 1.45; }
  #featuredWrapper, #subNews, #subNewsN, #mainPageSidebar,
  #singleContent, #singlePostSidebarRight { width: 100%; float: none; }
  #featuredPost, #otherFeaturedPosts { width: 100%; float: none; margin-right: 0; text-align: left; }
  #featuredPost { margin-bottom: 18px; }
  h2#featuredTitle { font-size: 40px; line-height: 1.08; letter-spacing: -1px; margin-bottom: 12px; }
  #featuredPost > img {
    display: block; width: 100%; height: auto; aspect-ratio: 490 / 246; object-fit: cover; margin-bottom: 12px;
  }
  #featuredPost > p { font-size: 16px; line-height: 1.5; text-align: left; }
  #featuredPost hr { margin: 18px 0; border: 0; border-top: 3px double #222; height: 0; }
  #featuredWrapper .featuredDetails { display: block; margin-top: 6px; line-height: 1.4; text-align: left; }
  .featuredDetails a { display: inline-block; padding: 5px 0; }

  #featuredWrapper .innerPost {
    display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 14px; align-items: start;
    padding: 0 0 16px; margin: 0 0 16px; border: 0; border-bottom: 1px solid #e3e3e3; text-align: left;
  }
  #featuredWrapper .innerPost h2.innerPostTitle {
    grid-column: 1 / -1; margin: 0 0 10px; text-align: left; font-size: 25px; line-height: 1.15; letter-spacing: 0;
  }
  #featuredWrapper .innerPost > a { grid-column: 1; display: block; }
  #featuredWrapper .innerPost > a img {
    display: block; float: none; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
    margin: 0; padding: 0;
  }
  #featuredWrapper .innerPost > p { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.45; text-align: left; }
  #featuredWrapper .innerPost .featuredDetails { grid-column: 1 / -1; }
  #all_news { padding: 0 0 8px; text-align: right; }
  #all_news a { display: inline-block; padding: 10px 0; }
  #ad728 { overflow: hidden; }

  /* Section headings: red bar + condensed title, as on the desktop */
  #photoNewsBlock h3, #photoReceptsBlock h3 {
    margin: 0 0 14px; padding: 0 0 0 12px; border-left: 6px solid #cd1713;
    background: none; font-size: 24px; line-height: 1.15;
  }
  #photoNewsBlock h3 a, #photoReceptsBlock h3 a { padding: 0; background: none; }
  #photoNewsBlock, #photoReceptsBlock, #slidingBar, #horoGPanel, #subNews, #subNewsN { margin-top: 26px; }

  /* Photo reviews: one lead story, the rest as thumbnail rows */
  #photoNewsBlock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  #photoNewsBlock > h3 { grid-column: 1 / -1; }
  #photoNewsBlock > .clear { display: none; }
  #photoNewsBlock > [class^="photoNewsBlock"] {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 12px; align-items: start;
    float: none; width: auto; height: auto; margin: 0 0 14px; padding: 0 0 14px;
    border: 0; border-bottom: 1px solid #e3e3e3; text-align: left;
  }
  #photoNewsBlock > [class^="photoNewsBlock"] > a { grid-column: 1; grid-row: 1; display: block; }
  #photoNewsBlock > [class^="photoNewsBlock"] img {
    display: block; width: 100%; max-height: none; height: auto; aspect-ratio: 1; object-fit: cover;
  }
  #photoNewsBlock .photoNewsBlock-text { grid-column: 2; grid-row: 1; width: auto; height: auto; padding: 0; text-align: left; }
  #photoNewsBlock h5 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; text-align: left; }
  #photoNewsBlock p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    font-size: 14px; line-height: 1.45; text-align: left; color: #444;
  }
  #photoNewsBlock .photoNewsBlock2 > a, #photoNewsBlock .photoNewsBlock4 > a {
    grid-column: 1 / -1; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center;
  }
  #photoNewsBlock .photoNewsBlock2 > a::after, #photoNewsBlock .photoNewsBlock4 > a::after {
    content: attr(title); font-size: 18px; line-height: 1.2; font-weight: bold;
  }
  #photoNewsBlock .photoNewsBlock1 { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  #photoNewsBlock .photoNewsBlock1 img { aspect-ratio: 3 / 2; }
  #photoNewsBlock .photoNewsBlock1 h5 { font-size: 22px; }
  #photoNewsBlock .photoNewsBlock1 p { -webkit-line-clamp: 6; font-size: 15px; }

  /* Photo recipes: tidy grid with captions */
  #photoReceptsBlock .tj_container, #photoReceptsBlock .tj_wrapper,
  #photoReceptsBlock .tj_gallery { width: 100% !important; height: auto !important; }
  #photoReceptsBlock .tj_wrapper { overflow: visible; }
  #photoReceptsBlock .tj_gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  #photoReceptsBlock .tj_gallery li {
    position: static !important; float: none !important; width: auto !important; height: auto !important;
    display: block !important; opacity: 1 !important;
  }
  #photoReceptsBlock .tj_nav { display: none; }
  #photoReceptsBlock .tj_gallery .desc { display: none !important; }
  #photoReceptsBlock .tj_gallery img { display: block; width: 100%; height: auto; aspect-ratio: 245 / 210; object-fit: cover; }
  #photoReceptsBlock .tj_wrapper ul li a::after {
    content: attr(title); display: block; padding: 7px 0 0;
    color: #222; font-size: 15px; line-height: 1.3;
  }

  /* Photo gallery strip */
  #slidingBar { height: auto; background: none; border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; }
  #gallery ul { padding: 12px 0; gap: 12px; scroll-padding-left: 0; }
  #gallery ul li { flex: 0 0 150px; margin: 0; text-align: left; font: bold 14px/1.3 'Ubuntu', sans-serif; }
  #gallery ul li a { display: block; padding-bottom: 4px; }
  #gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; padding: 0; border: 0; margin-bottom: 6px; }

  /* Horoscope */
  #horoGPanel, #horoRPanel {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
    height: auto; padding: 0; margin-bottom: 18px; font-size: 13px;
  }
  #horoGPanel a.ico_goro, #horoRPanel a.ico_goro {
    float: none; width: auto !important; min-height: 76px; padding: 56px 0 6px;
    background-position: 50% 6px; border: 1px solid #ececec; color: #222; text-align: center;
  }

  /* Rubric teasers under the photo blocks (home and category) */
  #subNews, #subNewsN { background: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; text-align: left; }
  #subNews > .clear, #subNewsN > .clear { display: none; }
  #subNews > [class$="Container"], #subNewsN > [class$="Container"] {
    float: none; width: 100%; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid #e3e3e3;
  }
  #subNews [class^="subNewsPost"], #subNewsN [class^="subNewsPost"] {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "img cat" "img title" "text text";
    column-gap: 12px; align-content: start; height: auto; padding: 0;
  }
  #subNews [class^="subNewsPost"] > a, #subNewsN [class^="subNewsPost"] > a { grid-area: img; display: block; margin-bottom: 10px; }
  #subNews [class^="subNewsPost"] img, #subNewsN [class^="subNewsPost"] img {
    position: static; display: block; width: 100%; height: auto; max-width: none; margin: 0;
    aspect-ratio: 23 / 15; object-fit: cover;
  }
  #subNewsN [class^="subNewsPost"] img { aspect-ratio: 155 / 200; }
  #subNews h2.titleSubNews, #subNewsN h2.titleSubNews { grid-area: cat; margin: 0 0 4px; text-align: left; }
  #subNews h2.subnewsEntryTitle, #subNewsN h2.subnewsEntryTitle {
    grid-area: title; margin: 0 0 10px; font-size: 21px; line-height: 1.2; text-align: left;
  }
  .entrySubNews { grid-area: text; width: 100%; font-size: 15px; line-height: 1.5; text-align: left; }
  .subNewsContainerMeta { display: block; margin-top: 6px; }
  .subNewsContainerMeta a { display: inline-block; padding: 4px 0; }
  .date-gr { float: none; display: inline-block; width: auto; margin: 0 0 6px; padding: 3px 6px; font-size: 12px; }

  /* Sidebar under the home page */
  #mainPageSidebar { margin-top: 10px; }
  ul#sidebarTabs { display: flex; height: auto; margin-top: 12px; border-bottom: 2px solid #222; }
  ul#sidebarTabs li { float: none; flex: 1 1 0; height: auto; line-height: 1.2; }
  ul#sidebarTabs li a, ul#sidebarTabs li a.selected {
    float: none; display: flex; align-items: center; justify-content: center; height: auto; min-height: 44px;
    padding: 6px 8px; font-size: 15px; border: 0; background: #f3f3f3;
  }
  ul#sidebarTabs li a.selected { background: #222; color: #fff; }
  .sidebartabs { padding: 12px; font-size: 15px; }
  .sidebartabs > span { display: block; margin: 4px 0 6px; font-weight: bold; }
  .sidebartabs ul li { padding: 8px 0; line-height: 1.4; list-style: none; }
  .sidebartabs a { display: block; }
  #searchCat select, #archiveform select, #cat, #googlequery {
    width: 100%; height: 44px; margin: 0 0 12px; padding: 0 8px; font-size: 16px;
  }
  #tagcloud { line-height: 1.25; }
  #tagcloud a { display: inline-block; padding: 5px 4px; }

  /* Article */
  #entry, #archiveEntries, #singlePostSidebarLeft { width: 100% !important; float: none; }
  #entryMeta { padding: 0 0 14px 16px; margin-bottom: 18px; background: none; border-left: 5px solid #cd1713; }
  #singleContent h2.singlePageTitle { font-size: 34px; line-height: 1.12; color: #111; text-shadow: none; }
  #entryMeta p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #666; }
  #entryMeta a { display: inline-block; padding: 3px 0; color: #555; }
  #entryMeta .breadcrumb { display: block; margin-top: 4px; }
  #entry { padding-top: 0; text-align: left; overflow-wrap: break-word; }
  #entry p, #archiveEntries p { font-size: 17px; line-height: 1.6; text-align: left; }
  #entry .alignleft, #entry .alignright { float: none; display: block; margin: 12px auto; }
  #entry img, #entry figure, #entry .wp-caption { max-width: 100% !important; height: auto !important; }
  #entry .related-post {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start;
    width: 100%; height: auto; min-height: 0; padding: 14px 0; overflow: visible;
  }
  #entry .related-post > a { display: block; }
  #entry .related-post img { display: block; width: 100%; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; padding: 0; float: none; }
  #entry .related-post-text { float: none; width: auto; height: auto; padding: 0; overflow: visible; }
  #entry .related-post-text h5 { font-size: 17px; line-height: 1.25; }
  #singleContent #entry .related-post-text p { font-size: 14px; line-height: 1.45; }
  #pNewsRelated, #pNewsSidebarLeft, #pNewsSidebarRight { float: none; width: 100%; padding: 18px 0 0; }
  #pNewsSidebarRight li { padding: 0; line-height: 1.35; }
  #pNewsSidebarRight li a { display: block; padding: 7px 0; font-size: 15px; }
  .PhotoNews #entry .illustration { margin: 0 0 22px; }
  .PhotoNews #entry .illustration img { display: block; width: 100%; }
  .PhotoNews #entry .illustration div.caption { padding-top: 8px; font-size: 16px; line-height: 1.5; }
  #singleContent.photoRecept .ingredients {
    float: none; width: 100%; margin: 12px 0 18px; padding: 14px 16px; background: #faf7f2; border-left: 5px solid #cd1713;
  }
  #singleContent #entry .ingredients li { font-size: 16px; line-height: 1.45; padding-top: 3px; padding-bottom: 3px; }
  #singleContent #entry .instruction, #singleContent #entry .instructions { font-size: 17px; line-height: 1.6; }
  #singleContent #entry h3 { color: #333; font-size: 21px; line-height: 1.2; }
  .PhotoNews #entry .illustration div.caption a { display: inline-block; min-width: 28px; padding: 4px 0; text-align: center; }
  #print { white-space: normal; text-align: left; margin: 10px 0; }
  #print a { display: inline-block; padding: 8px 0; }

  /* Comments */
  #writeComment { padding: 14px; }
  #writeComment p { display: flex; flex-direction: column-reverse; gap: 4px; }
  #writeComment label { padding: 0; font-size: 15px; }
  #writeComment textarea, #author, #email, #url, .PhotoNews #entry #writeComment textarea {
    width: 100%; max-width: 100%; font-size: 16px;
  }
  #author, #email, #url { height: 44px; padding: 0 10px; }
  #writeComment textarea { padding: 8px 10px; }
  #submit, #submit:hover { height: 44px; background-position-y: center; }

  /* Article sidebars move under the text */
  #singlePostSidebarLeft { margin-top: 26px; }
  #singlePostSidebarRight { margin-top: 22px; padding: 14px; background: #f4f4f4; }
  #innerSidebarRight { width: 100%; }
  #recentComments li { display: flex; gap: 10px; align-items: flex-start; }
  #recentComments a { display: block; padding: 2px 0; }
  ul#singpPhotoGalleryList {
    display: flex; gap: 12px; overflow-x: auto; margin: 0 0 18px; padding: 0 0 8px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  ul#singpPhotoGalleryList li {
    float: none; flex: 0 0 150px; width: auto; margin: 0; padding: 0; scroll-snap-align: start;
    text-align: left; font-size: 14px; line-height: 1.3;
  }
  ul#singpPhotoGalleryList li a { display: block; padding-bottom: 4px; }
  #singlePostSidebarRight h3.photoGallery { margin: 0 0 12px; padding: 9px 10px; font-size: 16px; }
  ul#singpPhotoGalleryList img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 6px; padding: 0; }

  /* Archive pages */
  .archivePost { margin-bottom: 22px; }
  #singleContent #archiveEntries h2.archiveTitles, #singleContent #archiveEntries h2.archiveTitles a { font-size: 21px; line-height: 1.2; }
  h2.archiveTitles { padding: 8px 10px; text-align: left; }
  #singleContent #archiveEntries h2.pageTitle { font-size: 28px; line-height: 1.2; padding: 6px 12px; }
  #singleContent #archiveEntries .postinfo { font-size: 13px; }
  .postinfo a { display: inline-block; padding: 5px 0; }
  /* Archive calendar: year on the left, months in a grid (the ":" text node sinks into a zero-height row) */
  #smart-archives-block li {
    display: grid; grid-template-columns: 60px repeat(12, minmax(0, 1fr)); grid-template-rows: 40px; grid-auto-rows: 0;
    align-items: center; margin: 0; padding: 4px 0 4px 26px; border-bottom: 1px solid #eee;
    font-size: 0;
  }
  #singleContent #entry #smart-archives-block li { background-position: 0 50%; }
  #smart-archives-block li > strong { grid-column: 1; grid-row: 1 / -1; align-self: stretch; display: flex; align-items: center; font-size: 17px; }
  #smart-archives-block li > :not(strong) { grid-row: 1; }
  #smart-archives-block li strong a { display: flex; align-items: center; height: 100%; }
  #smart-archives-block li > a, #smart-archives-block li > span {
    display: flex; align-items: center; justify-content: center; height: 40px; font-size: 15px;
  }
  .archivePost img { float: left; max-width: 40%; height: auto; margin: 4px 12px 6px 0; }
  .postinfo { clear: both; padding-top: 6px; text-align: left; line-height: 1.6; }
  .archive-data .big-data { margin-top: 14px; padding: 10px 0 4px; font-size: 20px; }
  #singleContent #entry .archive-data p {
    display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline;
    margin: 0; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; line-height: 1.35;
  }
  .archive-data p span { float: none; font-size: 13px; }
  .archive-data p a { margin: 0; }
  #smart-archives-menu li { line-height: 1.35; margin-bottom: 10px; }
  #smart-archives-menu li a { display: inline-block; min-height: 34px; padding: 5px 4px; }
  #nPager .wp-pagenavi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  #nPager .wp-pagenavi a, #nPager .wp-pagenavi span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: 0;
  }

  /* Contact page */
  #singleContactPage { font-size: 16px; line-height: 1.5; }
  #singleContactPage input[type="text"], #singleContactPage input[type="email"],
  #singleContactPage input[type="tel"], #singleContactPage textarea,
  #contactbody, .contactform input, .contactform textarea {
    width: 100%; max-width: 100%; margin-left: 0; padding: 8px 10px;
    border: 1px solid #bbb; font: 16px 'Ubuntu', sans-serif;
  }
  #singleContactPage input[type="text"], #singleContactPage input[type="email"], #singleContactPage input[type="tel"] { height: 44px; }
  #singleContactPage input[type="submit"], .contactform .button {
    width: auto; min-height: 44px; padding: 0 24px; border: 0; background: #cd1713; color: #fff;
    font: bold 16px 'Ubuntu', sans-serif; cursor: pointer;
  }
  .contactform label { float: none; width: auto; text-align: left; }

  /* Footer */
  #socialBookmark { display: none; }
  #footerPages {
    clear: both; margin: 30px -20px 0; padding: 18px 20px 24px;
    border-top: 3px solid #222; background: #f8f6f6;
    font-size: 14px; line-height: 1.45; text-align: left;
  }
  #footerPageInner { padding: 0; }
  #footerPageInner ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
  #footerPageInner li { display: block; margin: 0; font-size: 0; text-transform: none; }
  #footerPageInner li a {
    display: flex; align-items: center; min-height: 44px; padding: 7px 0;
    border-bottom: 1px solid #ddd; font-size: 15px; line-height: 1.3;
  }
  #footerPageInner li:last-child { grid-column: 1 / -1; }
  #themeInfo {
    display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid #ddd;
    color: #555; font-size: 13px; line-height: 1.55; text-align: left;
  }
  #themeInfo a { display: inline-block; padding: 3px 0; }
  #counters { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.5; }
  #wrapper { padding: 0 15px; }
  #topBar { margin: 0 -15px 4px; padding: 4px 15px 8px; }
  #footerPages { margin: 30px -15px 0; padding: 18px 15px 24px; }
  #header { min-height: 86px; }
  #name1stRow { font-size: 26px; line-height: 1; }
  #name2ndRow { font-size: 46px; line-height: 1; padding-top: 6px; padding-bottom: 8px; }

  h2#featuredTitle { font-size: clamp(27px, 8.4vw, 36px); line-height: 1.1; letter-spacing: -0.5px; }
  #singleContent h2.singlePageTitle { font-size: clamp(26px, 7.6vw, 32px); }
  #singleContent #archiveEntries h2.pageTitle { font-size: 26px; }
  h3.cat-title, h3.cat-title a { font-size: 22px !important; line-height: 1.2; }

  #featuredWrapper .innerPost { grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; }
  #featuredWrapper .innerPost h2.innerPostTitle { font-size: 23px; line-height: 1.15; }
  #featuredWrapper .innerPost > p { font-size: 15px; line-height: 1.42; }

  #photoNewsBlock { grid-template-columns: minmax(0, 1fr); }
  #photoNewsBlock > [class^="photoNewsBlock"],
  #photoNewsBlock .photoNewsBlock2 > a, #photoNewsBlock .photoNewsBlock4 > a { grid-template-columns: 96px minmax(0, 1fr); }
  #photoNewsBlock h5, #photoNewsBlock .photoNewsBlock2 > a::after, #photoNewsBlock .photoNewsBlock4 > a::after { font-size: 17px; }
  #photoNewsBlock .photoNewsBlock1 { grid-template-columns: minmax(0, 1fr); }
  #photoNewsBlock .photoNewsBlock1 > a { margin-bottom: 10px; }
  #photoNewsBlock .photoNewsBlock1 .photoNewsBlock-text { grid-column: 1; grid-row: 2; }
  #photoNewsBlock .photoNewsBlock1 h5 { font-size: 22px; }
  #photoNewsBlock .photoNewsBlock1 p { -webkit-line-clamp: 4; }

  #photoReceptsBlock .tj_gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  #smart-archives-block li { grid-template-columns: 52px repeat(6, minmax(0, 1fr)); grid-template-rows: 40px 40px; padding-left: 22px; }
  #smart-archives-block li > strong { grid-row: 1 / 3; }
  #smart-archives-block li > :nth-child(n+8) { grid-row: 2; }
  #smart-archives-block li > a, #smart-archives-block li > span { font-size: 14px; }
  #photoReceptsBlock .tj_wrapper ul li a::after { font-size: 14px; }

  #horoGPanel, #horoRPanel { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  #subNews, #subNewsN { grid-template-columns: minmax(0, 1fr); }
  #subNews [class^="subNewsPost"], #subNewsN [class^="subNewsPost"] { grid-template-columns: 104px minmax(0, 1fr); }
  #subNews h2.subnewsEntryTitle, #subNewsN h2.subnewsEntryTitle { font-size: 20px; }

  #entry p, #archiveEntries p { font-size: 17px; }
  #entry .related-post { grid-template-columns: 104px minmax(0, 1fr); }

  #footerPageInner ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
  #wrapper { padding: 0 12px; }
  #topBar { margin: 0 -12px 4px; padding: 4px 12px 8px; }
  #footerPages { margin: 30px -12px 0; padding: 18px 12px 24px; }
  #name2ndRow { font-size: 42px; }
  #featuredWrapper .innerPost { grid-template-columns: 96px minmax(0, 1fr); }
  #featuredWrapper .innerPost h2.innerPostTitle { font-size: 22px; }
  #horoGPanel, #horoRPanel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #subNews [class^="subNewsPost"], #subNewsN [class^="subNewsPost"] { grid-template-columns: 92px minmax(0, 1fr); }
}
