.aliexpress-button {
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #f44336;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}


/* TOPFOTOGRAF_HIDE_FOOTER_DUPLICATE_MENU */
.site-footer-container>.footer-navigation{display:none!important}

.aliexpress-button:hover {
  background-color: #d32f2f;
}








.camera-specs {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
    padding: 20px;
    gap: 20px;
}

.specs-column {
    flex: 1 1 30%; /* Три столбца по 30% ширины каждый на больших экранах */
    box-sizing: border-box;
    max-width: 30%;
}

/* Медиа-запрос для изменения количества столбцов на меньших экранах */
@media (max-width: 768px) { /* Примерное значение для планшетов и смартфонов */
    .specs-column {
        flex: 1 1 48%; /* Два столбца по 48% ширины на планшетах и смартфонах */
        max-width: 48%;
    }
}

.specs-title {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    border-left: 4px solid #007bff;
    margin-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-table th, .specs-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.specs-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
}

.specs-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.specs-table tr:hover td {
    background-color: #f1f1f1;
}

.specs-table td:first-child {
    width: 40%;
    font-weight: bold;
    color: #555;
}

.specs-table td:last-child {
    width: 60%;
}

/* TOPFOTOGRAF_DOWNLOAD_BLOCK_START */
/* TopFotograf program download block. Keep this stylesheet site-wide, not in post HTML. */
.tf-download{--tf-accent:#e64f3d;--tf-accent-dark:#c63c2d;--tf-accent-soft:#fff3f0;--tf-accent-line:#f4b6ad;--tf-ink:#202329;--tf-muted:#6d727c;--tf-border:#e4e6ea;--tf-surface:#fff;--tf-surface-soft:#f7f7f8;--tf-secondary:#353a43;--tf-secondary-hover:#242830;--tf-success:#278b55;--tf-success-soft:#eaf7ef;--tf-danger:#c14b3e;--tf-danger-soft:#fff0ee;width:100%;max-width:940px;margin:42px auto;color:var(--tf-ink);font-family:inherit;line-height:1.5}
.tf-download,.tf-download *{box-sizing:border-box}
.tf-download__heading{position:relative;margin:0 0 14px;padding:0 0 0 20px;color:var(--tf-ink);font-size:clamp(28px,4vw,42px);font-weight:800;line-height:1.15;letter-spacing:-.025em}
.tf-download__heading:before{content:"";position:absolute;top:.12em;bottom:.12em;left:0;width:6px;border-radius:999px;background:var(--tf-accent)}
.tf-download__intro{max-width:780px;margin:0 0 24px;color:var(--tf-muted);font-size:18px}
.tf-download__intro strong{color:var(--tf-ink);font-weight:750}
.tf-download__panel{position:relative;overflow:hidden;border:1px solid var(--tf-border);border-radius:24px;background:var(--tf-surface);box-shadow:0 18px 46px rgba(32,35,41,.09)}
.tf-download__panel:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--tf-accent) 0 58%,#d8dbe0 58% 100%)}
.tf-download--single .tf-download__panel:before{background:var(--tf-accent)}
.tf-download__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:stretch}
.tf-download--single .tf-download__grid{grid-template-columns:1fr}
.tf-download__card{position:relative;display:flex;min-width:0;flex-direction:column;padding:34px}
.tf-download__card--recommended{isolation:isolate;padding-top:40px;background:radial-gradient(circle at 0 0,rgba(230,79,61,.13),transparent 39%),linear-gradient(145deg,#fff 0%,#fff9f7 100%)}
.tf-download__card--recommended:after{content:"";position:absolute;z-index:-1;right:-85px;bottom:-115px;width:260px;height:260px;border:42px solid rgba(230,79,61,.055);border-radius:50%}
.tf-download__card--original{border-left:1px solid var(--tf-border);background:var(--tf-surface-soft)}
.tf-download__eyebrow{display:flex;min-height:32px;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.tf-download__badge{display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:7px 12px;border:1px solid var(--tf-accent-line);border-radius:999px;background:var(--tf-accent-soft);color:var(--tf-accent-dark);font-size:13px;font-weight:800;line-height:1;letter-spacing:.045em;text-transform:uppercase}
.tf-download__badge svg{width:15px;height:15px;flex:0 0 auto}
.tf-download__label{color:#858a93;font-size:13px;font-weight:750;letter-spacing:.045em;text-transform:uppercase}
.tf-download__product-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:8px}
.tf-download__product{min-width:0}.tf-download__name{margin:0;overflow-wrap:anywhere;color:var(--tf-ink);font-size:clamp(27px,4vw,38px);font-weight:850;line-height:1.08;letter-spacing:-.025em}
.tf-download__card--recommended .tf-download__name{color:var(--tf-accent-dark)}
.tf-download__subtitle{margin:9px 0 0;color:var(--tf-muted);font-size:16px}
.tf-download__score{display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:2px;min-width:74px;padding:9px 12px;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(32,35,41,.07)}
.tf-download__score-label{color:var(--tf-muted);font-size:11px;font-weight:700;line-height:1;text-transform:uppercase}
.tf-download__score-value{color:var(--tf-ink);font-size:23px;font-weight:850;line-height:1}.tf-download__card--recommended .tf-download__score-value{color:var(--tf-accent-dark)}
.tf-download__divider{width:100%;height:1px;margin:22px 0;border:0;background:var(--tf-border)}
.tf-download__features{display:grid;gap:13px;margin:0 0 26px;padding:0;list-style:none}
.tf-download__feature{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:11px;min-width:0;color:#343840;font-size:16px;line-height:1.35}
.tf-download__feature-icon{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%}.tf-download__feature-icon svg{width:15px;height:15px}
.tf-download__feature-icon--plus{background:var(--tf-success-soft);color:var(--tf-success)}.tf-download__feature-icon--minus{background:var(--tf-danger-soft);color:var(--tf-danger)}
.tf-download__action{margin-top:auto}.tf-download__button{display:inline-flex;width:100%;min-height:58px;align-items:center;justify-content:center;gap:10px;padding:14px 20px;border:0;border-radius:14px;text-align:center;text-decoration:none!important;font-size:17px;font-weight:800;line-height:1.2;transition:transform 160ms ease,box-shadow 160ms ease,background-color 160ms ease}
.tf-download__button svg{width:20px;height:20px;flex:0 0 auto}.tf-download__button--primary{background:var(--tf-accent);color:#fff!important;box-shadow:0 12px 24px rgba(198,60,45,.24)}
.tf-download__button--primary:hover{background:var(--tf-accent-dark);box-shadow:0 15px 28px rgba(198,60,45,.3);transform:translateY(-2px)}
.tf-download__button--secondary{background:var(--tf-secondary);color:#fff!important;box-shadow:0 10px 20px rgba(32,35,41,.15)}.tf-download__button--secondary:hover{background:var(--tf-secondary-hover);transform:translateY(-2px)}
.tf-download__button:focus-visible{outline:3px solid rgba(230,79,61,.32);outline-offset:3px}.tf-download__button-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:11px 0 0;color:var(--tf-muted);text-align:center;font-size:13px}.tf-download__button-note svg{width:14px;height:14px;flex:0 0 auto}
.tf-download__reason{display:grid;grid-template-columns:44px minmax(0,1fr);gap:15px;align-items:start;margin-top:18px;padding:18px 20px;border:1px solid #eee1dd;border-radius:16px;background:#fffaf8}
.tf-download__reason-icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:14px;background:var(--tf-accent-soft);color:var(--tf-accent-dark)}.tf-download__reason-icon svg{width:23px;height:23px}
.tf-download__reason-title{margin:0 0 3px;color:var(--tf-ink);font-size:15px;font-weight:800}.tf-download__reason-text{margin:0;color:var(--tf-muted);font-size:14px}
@media(max-width:760px){.tf-download{margin:32px auto}.tf-download__heading{padding-left:16px}.tf-download__heading:before{width:5px}.tf-download__intro{font-size:16px}.tf-download__panel{border-radius:19px}.tf-download__panel:before{background:var(--tf-accent)}.tf-download__grid{grid-template-columns:1fr}.tf-download__card{padding:28px 22px}.tf-download__card--recommended{padding-top:32px}.tf-download__card--original{border-top:1px solid var(--tf-border);border-left:0}.tf-download__name{font-size:30px}}
@media(max-width:430px){.tf-download__product-row{display:block}.tf-download__score{width:fit-content;align-items:flex-start;margin-top:14px}.tf-download__eyebrow{align-items:flex-start;flex-direction:column}.tf-download__button{font-size:16px}}
@media(prefers-reduced-motion:reduce){.tf-download__button{transition:none}.tf-download__button:hover{transform:none}}
/* TOPFOTOGRAF_DOWNLOAD_BLOCK_END */

/* TOPFOTOGRAF_SOFTWARE_FIXES_START */
/* Icons are CSS-generated because WordPress strips inline SVG from post HTML. */
.tf-download__badge:before{content:"★";font-size:14px;line-height:1}
.tf-download__feature-icon:before{display:block;font-size:17px;font-weight:900;line-height:1}
.tf-download__feature-icon--plus:before{content:"✓"}
.tf-download__feature-icon--minus:before{content:"−"}
.tf-download__button--primary:before,.tf-download__button--secondary:before{content:""!important;position:absolute;top:50%;left:24px;display:block;width:14px;height:16px;background:currentColor;clip-path:polygon(38% 0,62% 0,62% 55%,100% 55%,50% 100%,0 55%,38% 55%);transform:translateY(-50%);font-size:0!important}
.tf-download__reason-icon:before{content:"💡";font-size:22px;line-height:1}
.tf-expert-question{width:100%;max-width:940px;margin:18px auto 42px}
.tf-expert-question>.expert-review{margin:0}

/* Software reviews do not use camera-rating widgets or automatic insertions. */
.article-post.category-programmy-dlya-raboty-s-foto .tf-download>#js-subscription-wrapper,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .tf-download>#js-subscription-wrapper,
.article-post.category-programmy-dlya-raboty-s-foto .tf-download>.table-of-contents,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .tf-download>.table-of-contents,
.article-post.category-programmy-dlya-raboty-s-foto .b-r--after_p_1,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .b-r--after_p_1,
.article-post.category-programmy-dlya-raboty-s-foto .cfi-block,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .cfi-block,
.article-post.category-programmy-dlya-raboty-s-foto .related-models-info,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .related-models-info,
.article-post.category-programmy-dlya-raboty-s-foto .model-tags-block,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .model-tags-block,
.article-post.category-programmy-dlya-raboty-s-foto .msm-wrap,
.article-post.category-programmy-dlya-raboty-s-video-i-audio .msm-wrap{display:none!important}
/* TOPFOTOGRAF_SOFTWARE_FIXES_END */
/* TOPFOTOGRAF_PHOTOMASTER_COMPACT_LAYOUT_START */
.tf-download__button--primary:before,.tf-download__button--secondary:before{content:""!important;position:absolute;top:50%;left:24px;display:block;width:14px;height:16px;background:currentColor;clip-path:polygon(38% 0,62% 0,62% 55%,100% 55%,50% 100%,0 55%,38% 55%);transform:translateY(-50%);font-size:0!important}
.tf-download__button-text{display:block;line-height:1!important;transform:translateY(-1px)}
.tf-download__platforms{display:flex;align-items:stretch;gap:8px}
.tf-download__platform{display:inline-flex;min-height:54px;align-items:center;justify-content:center;padding:9px 13px;border:1px solid var(--tf-border);border-radius:15px;background:#fff;color:var(--tf-ink);font-size:13px;font-weight:750;line-height:1}
.tf-download-layout{width:100%;margin:14px 0 34px}
.tf-download-layout>.tf-download{margin:0}
@media(min-width:1100px){
.tf-download__heading:has(+.tf-download-layout){white-space:nowrap;font-size:clamp(28px,3.2vw,40px)}
.tf-download__heading+.tf-download-layout{display:grid;grid-template-columns:minmax(0,470px) minmax(0,1fr);align-items:stretch;gap:32px}
.tf-download-layout .tf-download--single{display:flex;width:100%;max-width:none;margin:0}
.tf-download--single .tf-download__panel{border-radius:20px}
.tf-download-layout .tf-download--single .tf-download__panel{width:100%;height:100%}
.tf-download--single .tf-download__card{padding:27px 25px}
.tf-download--single .tf-download__card--recommended{padding-top:31px}
.tf-download--single .tf-download__product-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"product product" "score platforms";align-items:stretch;column-gap:10px}
.tf-download--single .tf-download__product{grid-area:product}
.tf-download--single .tf-download__name{font-size:31px}
.tf-download--single .tf-download__score{grid-area:score;align-items:flex-start;margin-top:15px}
.tf-download--single .tf-download__platforms{grid-area:platforms;margin-top:15px}
.tf-download--single .tf-download__button{position:relative;min-height:54px;padding:12px 48px;font-size:16px;line-height:1!important;text-align:center}
.tf-download-layout>.tf-expert-question{display:flex;width:auto;max-width:none;margin:0;overflow:hidden}
.tf-download-layout>.tf-expert-question>.expert-review{width:100%;height:100%;padding:0 20px;box-sizing:border-box}
.tf-download-layout>.tf-expert-question .expert-review-expert{padding:22px 30px}
.tf-download-layout>.tf-expert-question .expert-review-expert-bio{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-areas:"avatar body" "avatar button"!important;align-items:start!important;column-gap:24px!important}
.tf-download-layout>.tf-expert-question .expert-review-expert-bio__avatar{grid-area:avatar}
.tf-download-layout>.tf-expert-question .expert-review-expert-bio__body{grid-area:body;min-width:0}
.tf-download-layout>.tf-expert-question .expert-review-expert-bio__button{grid-area:button;justify-self:start;margin-top:18px}
}
/* TOPFOTOGRAF_PHOTOMASTER_COMPACT_LAYOUT_END */


/* TopFotograf program cards: match the article width and keep both cards readable. */
.tf-download:not(.tf-download--single){max-width:100%}
.tf-download:not(.tf-download--single) .tf-download__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tf-download:not(.tf-download--single) .tf-download__panel:before{background:linear-gradient(90deg,var(--tf-accent) 0 50%,#d8dbe0 50% 100%)}
.tf-download:not(.tf-download--single) .tf-download__name{font-size:clamp(27px,2.7vw,34px)}
.tf-expert-question{max-width:100%}
@media(max-width:900px){
 .tf-download:not(.tf-download--single) .tf-download__grid{grid-template-columns:1fr}
 .tf-download:not(.tf-download--single) .tf-download__panel:before{background:var(--tf-accent)}
 .tf-download:not(.tf-download--single) .tf-download__card--original{border-top:1px solid var(--tf-border);border-left:0}
}
.tf-download__button-note:before,.tf-download__button-note:after{content:none!important;display:none!important}

/* TOPFOTOGRAF_HEADER_REDESIGN_V1_START */
/* Compact editorial header. Keeps the existing GIF logo, menu markup and category icons. */
:root {
  --tf-head-ink: #11131a;
  --tf-head-muted: #73798a;
  --tf-head-line: #e9ebf2;
  --tf-head-soft: #f6f7fb;
  --tf-head-accent: #5b55f7;
  --tf-head-accent-soft: #eeedff;
  --tf-head-shadow: 0 18px 50px rgba(24, 27, 45, 0.08);
}

.site-header,
.main-navigation,
.mobile-menu-placeholder {
  box-sizing: border-box;
  font-family: Montserrat, Arial, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 690;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(233, 235, 242, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(24, 27, 45, 0.035);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.admin-bar .site-header {
  position: relative;
  top: auto;
}

.site-header-inner.fixed {
  display: flex;
  width: 100%;
  max-width: 1380px;
  min-height: 76px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-branding {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 0;
  text-align: left;
}

.site-logotype {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin: 0;
  border: 1px solid var(--tf-head-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 32, 48, 0.09), inset 0 0 0 5px #fafaff;
  isolation: isolate;
  overflow: hidden;
}

.site-logotype::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--tf-head-accent);
  box-shadow: 0 5px 14px rgba(91, 85, 247, 0.32);
}

.site-logotype img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: 108px;
  max-height: none;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.site-branding__body {
  min-width: 0;
  flex: 0 1 auto;
}

.site-title {
  margin: 0;
  color: var(--tf-head-ink);
  font-size: clamp(24px, 2.25vw, 32px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin: 7px 0 0;
  color: var(--tf-head-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-menu {
  display: block;
  min-width: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.top-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.top-menu ul li {
  padding: 0;
}

.top-menu ul li > a,
.top-menu ul li > span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 12px;
  color: #353845;
  opacity: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.top-menu ul li > a:hover,
.top-menu ul li > span:hover {
  color: var(--tf-head-accent);
  background: var(--tf-head-accent-soft);
  transform: translateY(-1px);
}

.top-menu > ul > li > a::before,
.top-menu > ul > li > span::before {
  display: none;
}

.top-menu img {
  width: 17px;
  height: 17px;
  margin: 0;
  object-fit: contain;
  opacity: 0.72;
}

.header-search {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.search-icon {
  position: relative;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tf-head-line);
  border-radius: 15px;
  background: var(--tf-head-soft);
  color: var(--tf-head-ink);
  font-size: 0;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-icon:hover {
  border-color: #d8d5ff;
  background: var(--tf-head-accent-soft);
  color: var(--tf-head-accent);
  box-shadow: 0 8px 18px rgba(91, 85, 247, 0.12);
  transform: translateY(-1px);
}

.search-icon.close::before {
  content: "×";
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}

.search-icon.close::after {
  display: none;
}

.site-header + .main-navigation {
  margin-top: 0;
}

.main-navigation {
  z-index: 610;
  margin: 0;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--tf-head-line);
  background: #fff;
}

.main-navigation-inner.full {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

#site-navigation #header_menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 7px;
  border: 1px solid #edeef4;
  border-radius: 22px;
  background: var(--tf-head-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#site-navigation #header_menu > li {
  min-width: 0;
}

#site-navigation #header_menu > li > a,
#site-navigation #header_menu > li > span {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #272a34;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.015em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#site-navigation #header_menu > li > a::before,
#site-navigation #header_menu > li > span::before {
  display: none;
}

#site-navigation #header_menu > li > a img,
#site-navigation #header_menu > li > span img {
  order: -1;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin: 0;
  object-fit: contain;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease;
}

#site-navigation #header_menu > li:hover > a,
#site-navigation #header_menu > li:hover > span,
#site-navigation #header_menu > li.current-menu-item > a,
#site-navigation #header_menu > li.current-menu-ancestor > a,
#site-navigation #header_menu > li.current-post-ancestor > a {
  border-color: #dedcff;
  background: #fff;
  color: var(--tf-head-accent);
  box-shadow: 0 10px 24px rgba(31, 34, 54, 0.09);
  transform: translateY(-2px);
}

#site-navigation #header_menu > li:hover > a img,
#site-navigation #header_menu > li:hover > span img,
#site-navigation #header_menu > li.current-menu-item > a img,
#site-navigation #header_menu > li.current-menu-ancestor > a img,
#site-navigation #header_menu > li.current-post-ancestor > a img {
  filter: drop-shadow(0 5px 7px rgba(91, 85, 247, 0.18));
  transform: scale(1.08) rotate(-2deg);
}

#site-navigation #header_menu > li.menu-item-has-children > a::after,
#site-navigation #header_menu > li.menu-item-has-children > span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.55;
  flex: 0 0 6px;
  transform: rotate(45deg) translateY(-2px);
}

#site-navigation #header_menu > li > .sub-menu {
  top: calc(100% + 9px);
  left: 0;
  min-width: 270px;
  max-height: min(64vh, 600px);
  margin: 0;
  padding: 9px;
  overflow-y: auto;
  border: 1px solid var(--tf-head-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--tf-head-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#site-navigation #header_menu > li.menu-item-cols-2 > .sub-menu {
  width: min(560px, 74vw);
  min-width: 520px;
  padding: 11px;
  column-gap: 5px;
}

#site-navigation #header_menu > li:nth-last-child(-n + 3) > .sub-menu {
  right: 0;
  left: auto;
}

#site-navigation #header_menu .sub-menu li > a,
#site-navigation #header_menu .sub-menu li > span {
  padding: 11px 13px;
  border-radius: 11px;
  color: #343743;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

#site-navigation #header_menu .sub-menu li > a:hover,
#site-navigation #header_menu .sub-menu li > span:hover {
  background: var(--tf-head-accent-soft);
  color: var(--tf-head-accent);
}

#site-navigation #header_menu .sub-menu li > a::before,
#site-navigation #header_menu .sub-menu li > span::before {
  border-radius: inherit;
  background: transparent;
}

.humburger {
  box-sizing: border-box;
}

@media (min-width: 1300px) {
  #site-navigation #header_menu {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  #site-navigation #header_menu > li > a,
  #site-navigation #header_menu > li > span {
    position: relative;
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 7px 15px;
    text-align: center;
  }

  #site-navigation #header_menu > li > a img,
  #site-navigation #header_menu > li > span img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  #site-navigation #header_menu > li.menu-item-has-children > a::after,
  #site-navigation #header_menu > li.menu-item-has-children > span::after {
    position: absolute;
    right: 50%;
    bottom: 8px;
    margin: 0 -3px 0 0;
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  .site-header-inner.fixed {
    gap: 15px;
  }

  .site-logotype {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 19px;
  }

  .site-logotype img {
    height: 94px;
  }

  .site-title {
    font-size: 24px;
  }

  .site-description {
    display: none;
  }

  .top-menu ul li:first-child {
    display: none;
  }

  .top-menu ul li > a,
  .top-menu ul li > span {
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 991px) {
  .site-header {
    min-height: 76px;
    padding: 8px 0;
  }

  .admin-bar .site-header {
    position: relative;
    top: auto;
  }

  .site-header-inner.fixed {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0 66px;
  }

  .site-branding {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    justify-content: center;
    gap: 10px;
  }

  .site-logotype {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(30, 32, 48, 0.08), inset 0 0 0 4px #fafaff;
  }


  .site-logotype img {
    height: 80px;
  }

  .site-logotype::after {
    right: -3px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    border-width: 3px;
  }

  .site-title {
    font-size: clamp(17px, 5.6vw, 22px);
    letter-spacing: -0.04em;
  }

  .site-description {
    margin-top: 4px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .top-menu {
    display: none;
  }

  .humburger,
  .header-search {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin: 0;
    transform: translateY(-50%);
  }

  .humburger {
    left: 12px;
    z-index: 710;
    border: 1px solid var(--tf-head-line);
    border-radius: 15px;
    background: var(--tf-head-soft);
  }

  .humburger::before {
    inset: 0;
  }

  .humburger span {
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 999px;
    background: var(--tf-head-ink);
  }

  .humburger span:first-child {
    top: 14px;
  }

  .humburger span:nth-child(2) {
    top: 21px;
    margin-top: 0;
  }

  .humburger span:last-child {
    top: 28px;
    bottom: auto;
  }

  .humburger.open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .humburger.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-search {
    right: 12px;
  }

  .search-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .search-icon::after {
    left: 26px;
    top: 27px;
  }

  #site-navigation {
    display: none;
  }

  .mobile-menu-placeholder.open {
    margin-top: 0;
  }

  .mobile-menu-placeholder.open #site-navigation-mobile {
    position: fixed;
    z-index: 650;
    inset: 0;
    display: block !important;
    height: auto;
    margin: 0;
    padding: 92px 10px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    background:
      radial-gradient(circle at 8% 4%, rgba(91, 85, 247, 0.1), transparent 26%),
      linear-gradient(180deg, #f8f9fd 0%, #f4f5f9 100%);
  }

  .admin-bar .mobile-menu-placeholder.open #site-navigation-mobile {
    top: 32px;
  }

  .mobile-menu-placeholder .main-navigation-inner.full {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 4px;
  }

  .mobile-menu-placeholder #header_menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-placeholder #header_menu > li {
    min-width: 0;
    padding: 0;
    border: 1px solid var(--tf-head-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 20px rgba(27, 30, 46, 0.05);
  }

  .mobile-menu-placeholder #header_menu > li.only-hamburger {
    min-height: 48px;
    border-radius: 14px;
    box-shadow: none;
  }

  .mobile-menu-placeholder #header_menu > li.only-hamburger:nth-child(4) {
    margin-bottom: 10px;
  }

  .mobile-menu-placeholder #header_menu > li > a,
  .mobile-menu-placeholder #header_menu > li > span {
    position: relative;
    display: flex;
    min-height: 98px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 48px 13px 13px;
    border-radius: inherit;
    color: #292c37;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
  }

  .mobile-menu-placeholder #header_menu > li > a::before,
  .mobile-menu-placeholder #header_menu > li > span::before {
    display: none;
  }

  .mobile-menu-placeholder #header_menu > li.only-hamburger > a,
  .mobile-menu-placeholder #header_menu > li.only-hamburger > span {
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 11px;
  }

  .mobile-menu-placeholder #header_menu > li > a img,
  .mobile-menu-placeholder #header_menu > li > span img {
    order: -1;
    display: block;
    width: 34px;
    height: 34px;
    margin: 0;
    object-fit: contain;
  }

  .mobile-menu-placeholder #header_menu > li.only-hamburger img {
    width: 18px;
    height: 18px;
  }

  .mobile-menu-placeholder #header_menu > li.menu-item-has-children::before {
    top: 9px;
    right: 9px;
    width: 36px;
    height: 36px;
    border: 1px solid #ebeaf9;
    border-radius: 12px;
    background: var(--tf-head-accent-soft);
  }

  .mobile-menu-placeholder #header_menu > li.menu-item-has-children::after {
    top: 18px;
    right: 9px;
    width: 36px;
    color: var(--tf-head-accent);
    font-size: 17px;
  }

  .mobile-menu-placeholder #header_menu > li.menu-item-has-children.open {
    grid-column: 1 / -1;
    border-color: #dcdaff;
  }

  .mobile-menu-placeholder #header_menu > li > .sub-menu {
    margin: 0;
    padding: 0 8px 8px;
    border-radius: 0 0 16px 16px;
    background: transparent;
  }

  .mobile-menu-placeholder #header_menu > li > .sub-menu > li {
    border-top: 1px solid #eff0f5;
  }

  .mobile-menu-placeholder #header_menu > li > .sub-menu a,
  .mobile-menu-placeholder #header_menu > li > .sub-menu span {
    padding: 11px 8px;
    color: #555a69;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  .mobile-menu-placeholder + .site-content,
  .card-slider-container + .site-content {
    margin-top: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    position: relative;
    top: auto;
  }

  .admin-bar .mobile-menu-placeholder.open #site-navigation-mobile {
    top: 46px;
  }
}

@media (max-width: 420px) {
  .site-header-inner.fixed {
    padding-right: 62px;
    padding-left: 62px;
  }

  .site-branding {
    gap: 8px;
  }

  .site-logotype {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }


  .site-logotype img {
    height: 74px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-description {
    display: none;
  }
}

@media (max-width: 350px) {
  .site-branding__body {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .main-navigation * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* TOPFOTOGRAF_HEADER_REDESIGN_V1_END */

/* TOPFOTOGRAF_SQUARE_GIF_LAYOUT_V2_START */
/* One large square GIF spans both desktop header rows; 10 categories stay in one row. */
.site-header,
.main-navigation {
  background: #fff;
}

/* The real header image fills this square; the animated source is loaded after window.load. */
.site-header .site-logotype {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  isolation: auto;
  overflow: hidden;
}

.site-header .site-logotype::after {
  content: none;
  display: none;
}

.site-header .site-logotype > a {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header .site-logotype img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.site-header .site-title > a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 992px) {
  .site-header,
  .site-header .site-header-inner.fixed {
    overflow: visible;
  }

  /* The two-band composition scrolls away as one visual unit. */
  .site-header {
    --tf-panel-reserve: 184px;
    position: relative;
    top: auto;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* The row divider begins after the GIF column and reaches the screen edge. */
  .site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: max(
      var(--tf-panel-reserve),
      calc((100% - 1380px) / 2 + var(--tf-panel-reserve))
    );
    height: 1px;
    background: var(--tf-head-line);
    pointer-events: none;
  }

  /* Reserve one shared left column for the GIF in both sibling rows. */
  .site-header .site-header-inner.fixed {
    position: relative;
    padding-left: 184px;
    background: #fff;
  }

  .site-header .site-logotype {
    position: absolute;
    z-index: 720;
    top: 22px;
    left: 24px;
    display: block;
    width: 144px;
    height: 144px;
    max-width: none;
    max-height: none;
    flex: 0 0 144px;
    margin: 0;
  }

  #site-navigation {
    padding: 10px 0 14px;
    background: #fff;
  }

  #site-navigation > .main-navigation-inner.full {
    box-sizing: border-box;
    padding-left: 184px;
  }

  .site-header .top-menu {
    font-size: 13px;
  }

  #site-navigation #header_menu {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  #site-navigation #header_menu > li {
    min-width: 0;
    height: 88px;
  }

  #site-navigation #header_menu > li > a,
  #site-navigation #header_menu > li > span {
    position: relative;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 88px;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 3px 15px;
    border-radius: 14px;
    font-size: 10.5px;
    line-height: 1.08;
    text-align: center;
  }

  #site-navigation #header_menu > li > a img,
  #site-navigation #header_menu > li > span img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  #site-navigation #header_menu > li.menu-item-has-children > a::after,
  #site-navigation #header_menu > li.menu-item-has-children > span::after {
    position: absolute;
    right: 50%;
    bottom: 7px;
    margin: 0 -3px 0 0;
  }

  #site-navigation #header_menu > li:nth-child(n + 5) > .sub-menu {
    right: 0;
    left: auto;
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  .site-header {
    --tf-panel-reserve: 156px;
  }

  .site-header .site-header-inner.fixed,
  #site-navigation > .main-navigation-inner.full {
    padding-left: 156px;
  }

  .site-header .site-logotype {
    top: 18px;
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }

  #site-navigation #header_menu > li > a,
  #site-navigation #header_menu > li > span {
    gap: 4px;
    padding-right: 1px;
    padding-left: 1px;
    font-size: 8.75px;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  #site-navigation #header_menu > li > a img,
  #site-navigation #header_menu > li > span img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media (max-width: 991px) {
  /* Mobile remains compact, using the same square copy and the same frameless white treatment. */
  .site-header .site-logotype {
    display: block;
    position: relative;
    background-color: #fff;
  }
}
/* TOPFOTOGRAF_SQUARE_GIF_LAYOUT_V2_END */