/*
Theme Name: anyNet Blog
Theme URI: https://anynet.ir
Author: anyNet
Author URI: https://anynet.ir
Description: قالب اختصاصی مجله و بلاگ anyNet؛ هماهنگ با طراحی، رنگ‌بندی و چیدمان سایت anynet.ir. هدر و فوتر کاملاً قابل شخصی‌سازی از بخش سفارشی‌سازی وردپرس هستند.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anynet-blog
Tags: blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-colors
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/IRANSansFaNum.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansLatin";
  src: url("assets/fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */
:root {
  --an-accent: #0099d6;
  --an-accent-2: #35c4d4;
  --an-accent-dark: #0077a8;
  --an-accent-soft: #e8f7fd;
  --an-purple: #ebd2ff;
  --an-purple-soft: #f7f0ff;
  --an-bg: #f7f7f7;
  --an-surface: #ffffff;
  --an-heading: #222222;
  --an-text: #444444;
  --an-muted: #8b8b8b;
  --an-border: #e9e9e9;
  --an-dark: #222222;
  --an-dark-2: #323232;
  --an-footer-text: #aaaaaa;
  --an-radius: 12px;
  --an-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --an-shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.12);
  --an-container: 1580px;
  --an-gutter: 15px;
  --an-font: "IRANSans", "IRANSansLatin", Tahoma, Arial, sans-serif;
  --an-transition: 0.22s ease;
}

/* ==========================================================================
   3. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--an-bg);
  color: var(--an-text);
  font-family: var(--an-font);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--an-accent);
  text-decoration: none;
  transition: color var(--an-transition), background-color var(--an-transition), border-color var(--an-transition), opacity var(--an-transition);
}

a:hover,
a:focus {
  color: var(--an-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7em;
  color: var(--an-heading);
  font-weight: 700;
  line-height: 1.55;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-inline-start: 1.6em;
}

figure {
  margin: 0 0 1.4em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
}

th,
td {
  padding: 9px 12px;
  border: 1px solid var(--an-border);
  text-align: start;
}

th {
  background: #fafafa;
  color: var(--an-heading);
  font-weight: 700;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--an-border);
  margin: 2em 0;
}

:focus-visible {
  outline: 2px solid var(--an-accent);
  outline-offset: 2px;
}

/* Accessibility helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
  clip: auto !important;
  clip-path: none;
  color: var(--an-accent);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  inset-inline-start: 16px;
  inset-block-start: 16px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  width: auto;
  z-index: 100000;
}

.skip-link:focus {
  position: fixed !important;
}

/* Container — same width as anynet.ir */
.an-container {
  width: 100%;
  max-width: var(--an-container);
  margin-inline: auto;
  padding-inline: var(--an-gutter);
}

.an-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.an-ltr {
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.an-btn,
.an-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--an-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color var(--an-transition), color var(--an-transition), border-color var(--an-transition), transform var(--an-transition);
}

.an-btn:hover,
.an-btn:focus {
  background: var(--an-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.an-btn--ghost,
.an-btn--ghost:visited {
  background: #fff;
  border-color: #dedede;
  color: #333;
}

.an-btn--ghost:hover,
.an-btn--ghost:focus {
  background: #fff;
  border-color: var(--an-accent);
  color: var(--an-accent);
}

.an-btn--light,
.an-btn--light:visited {
  background: #fff;
  color: var(--an-accent-dark);
}

.an-btn--light:hover,
.an-btn--light:focus {
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-btn--outline-light,
.an-btn--outline-light:visited {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.an-btn--outline-light:hover,
.an-btn--outline-light:focus {
  background: #fff;
  color: var(--an-dark);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.an-header {
  position: relative;
  z-index: 100;
  background: #fff;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.07);
}

.an-header__row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 20px;
  min-height: 81px;
  padding-block: 15px;
}

.an-logo {
  justify-self: start;
  min-width: 0;
  line-height: 0;
}

.an-logo a {
  display: inline-block;
}

.an-logo img,
.an-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 46px;
}

.an-logo__text {
  display: inline-block;
  color: var(--an-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.an-logo__desc {
  display: block;
  color: var(--an-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

/* Search */
.an-search {
  width: 100%;
}

.an-search__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
}

.an-search__input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  padding-inline-end: 50px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 13px;
  line-height: 40px;
  transition: border-color var(--an-transition), box-shadow var(--an-transition);
  appearance: none;
}

.an-search__input::placeholder {
  color: #a5a5a5;
  opacity: 1;
}

.an-search__input:focus {
  border-color: var(--an-accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 214, 0.1);
  outline: none;
}

.an-search__submit {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #eeeeee;
  border-radius: 8px 0 0 8px;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
  background: transparent;
  color: #8c8c8c;
  transition: color var(--an-transition), background-color var(--an-transition);
}

.an-search__submit:hover,
.an-search__submit:focus {
  color: var(--an-accent);
  background: #f7fcff;
}

.an-search__submit svg {
  width: 19px;
  height: 19px;
}

/* Header actions */
.an-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.an-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f6f6f6;
  color: #6a6a6a;
  line-height: 1;
  transition: background-color var(--an-transition), color var(--an-transition), box-shadow var(--an-transition);
}

.an-icon-btn:hover,
.an-icon-btn:focus {
  background: var(--an-accent-soft);
  color: var(--an-accent);
  box-shadow: 0 0 0 1px rgba(0, 153, 214, 0.12);
}

.an-icon-btn svg {
  width: 20px;
  height: 20px;
}

.an-header__actions .an-icon-btn {
  flex: 0 0 auto;
}

/* Language dropdown */
.an-lang {
  position: relative;
  flex: 0 0 auto;
}

.an-lang__btn {
  gap: 3px;
  width: auto;
  min-width: 44px;
  padding-inline: 9px;
  border-radius: 20px;
}

.an-lang__btn svg {
  width: 18px;
  height: 18px;
}

.an-lang__badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
}

.an-lang__menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 120;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--an-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--an-shadow-lg);
}

.an-lang__menu[hidden] {
  display: none;
}

.an-lang__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #555;
  font-size: 13px;
}

.an-lang__menu a:hover,
.an-lang__menu a:focus {
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-lang__menu a.is-active {
  color: var(--an-accent);
  font-weight: 700;
}

/* Phone */
.an-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1;
  direction: ltr;
  white-space: nowrap;
  transition: border-color var(--an-transition), color var(--an-transition), background-color var(--an-transition);
}

.an-phone:hover,
.an-phone:focus {
  border-color: var(--an-accent);
  background: #fbfeff;
  color: var(--an-accent-dark);
}

.an-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--an-accent);
}

.an-phone__icon svg {
  width: 18px;
  height: 18px;
}

.an-phone__num {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Hamburger */
.an-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f6f6f6;
  color: #444;
}

.an-menu-toggle:hover,
.an-menu-toggle:focus {
  background: var(--an-accent-soft);
  color: var(--an-accent);
}

.an-burger {
  position: relative;
  display: block;
  width: 19px;
  height: 13px;
}

.an-burger span {
  position: absolute;
  inset-inline-start: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--an-transition), opacity var(--an-transition), top var(--an-transition);
}

.an-burger span:nth-child(1) {
  top: 0;
}

.an-burger span:nth-child(2) {
  top: 5.5px;
}

.an-burger span:nth-child(3) {
  top: 11px;
}

/* Navigation */
.an-navbar {
  border-top: 1px solid #efefef;
}

.an-navbar__inner {
  display: flex;
  align-items: center;
  min-height: 41px;
}

.an-menu,
.an-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.an-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.an-menu > li {
  position: relative;
}

.an-menu > li > a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.an-menu > li > a:hover,
.an-menu > li > a:focus,
.an-menu > li.current-menu-item > a,
.an-menu > li.current-menu-ancestor > a,
.an-menu > li.current_page_item > a,
.an-menu > li.current_page_ancestor > a {
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-menu .sub-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 130;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--an-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--an-transition), transform var(--an-transition), visibility var(--an-transition);
}

.an-menu .sub-menu .sub-menu {
  inset-block-start: -8px;
  inset-inline-start: 100%;
}

.an-menu li:hover > .sub-menu,
.an-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.an-menu .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
  white-space: normal;
}

.an-menu .sub-menu a:hover,
.an-menu .sub-menu a:focus {
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-start: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
}

.an-menu__placeholder a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px dashed #cfcfcf;
  border-radius: 6px;
  color: var(--an-muted);
  font-size: 12px;
}

/* Mobile drawer */
.an-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(15, 23, 30, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.an-drawer {
  position: fixed;
  inset-block: 0;
  right: 0;
  left: auto;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: min(340px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[dir="rtl"] .an-drawer {
  transform: translateX(105%);
}

html[dir="ltr"] .an-drawer {
  right: auto;
  left: 0;
  transform: translateX(-105%);
}

.an-drawer.is-open {
  transform: translateX(0);
}

.an-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.an-drawer-open {
  overflow: hidden;
}

.an-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--an-border);
}

.an-drawer__head img {
  max-height: 38px;
  width: auto;
}

.an-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #555;
}

.an-drawer__close:hover,
.an-drawer__close:focus {
  background: #ffeceb;
  color: #d33;
}

.an-drawer__body {
  flex: 1;
  padding: 12px 10px 24px;
}

.an-mobile-menu,
.an-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.an-mobile-menu li {
  position: relative;
}

.an-mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}

.an-mobile-menu a:hover,
.an-mobile-menu a:focus,
.an-mobile-menu .current-menu-item > a {
  background: var(--an-accent-soft);
  color: var(--an-accent-dark);
}

.an-mobile-menu .sub-menu {
  display: none;
  margin: 0 10px 6px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid #eaeaea;
}

.an-mobile-menu li.is-open > .sub-menu {
  display: block;
}

.an-mobile-menu .sub-menu a {
  padding-block: 8px;
  font-size: 13px;
  color: #666;
}

.an-submenu-toggle {
  position: absolute;
  inset-block-start: 5px;
  inset-inline-end: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777;
}

.an-submenu-toggle:hover,
.an-submenu-toggle:focus {
  background: #f2f2f2;
  color: var(--an-accent);
}

.an-submenu-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--an-transition);
}

.an-mobile-menu li.is-open > .an-submenu-toggle svg {
  transform: rotate(180deg);
}

.an-drawer__foot {
  padding: 18px;
  border-top: 1px solid var(--an-border);
  background: #fbfbfb;
  color: #666;
  font-size: 12.5px;
}

.an-drawer__foot a {
  color: #555;
}

.an-drawer__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--an-heading) !important;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
  justify-content: flex-end;
}

.an-drawer__phone svg {
  width: 17px;
  height: 17px;
  color: var(--an-accent);
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.an-footer {
  margin-top: 54px;
  background: var(--an-dark);
  color: var(--an-footer-text);
  font-size: 13px;
}

.an-footer a {
  color: var(--an-footer-text);
}

.an-footer a:hover,
.an-footer a:focus {
  color: #fff;
}

.an-footer__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.an-footer__top-row {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  align-items: center;
  gap: 30px;
  padding-block: 27px 30px;
}

.an-footer__logo {
  line-height: 0;
}

.an-footer__logo a {
  display: inline-block;
}

.an-footer__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 40px;
}

.an-newsletter {
  text-align: center;
}

.an-newsletter__title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.an-newsletter__text {
  margin: 0 0 12px;
  color: var(--an-footer-text);
  font-size: 13px;
  line-height: 1.8;
}

.an-newsletter__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 430px;
  margin-inline: auto;
}

.an-newsletter__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 13px;
}

.an-newsletter__input::placeholder {
  color: #a0a0a0;
}

.an-newsletter__input:focus {
  border-color: var(--an-accent-2);
  box-shadow: 0 0 0 3px rgba(53, 196, 212, 0.18);
  outline: none;
}

.an-newsletter__btn {
  flex: 0 0 auto;
  min-width: 84px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--an-transition), color var(--an-transition);
}

.an-newsletter__btn:hover,
.an-newsletter__btn:focus {
  background: #fff;
  color: var(--an-dark);
}

.an-newsletter__hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.an-newsletter__msg {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.8;
}

.an-newsletter__msg.is-success {
  color: #7ee2b8;
}

.an-newsletter__msg.is-error {
  color: #ff9d9d;
}

.an-footer__main {
  background: var(--an-dark-2);
  padding-block: 46px 32px;
}

.an-footer__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px;
}

.an-footer__col--contact {
  grid-column: span 3;
}

.an-footer__col--info {
  grid-column: span 2;
}

.an-footer__col--help {
  grid-column: span 2;
}

.an-footer__badges {
  grid-column: span 5;
}

.an-footer__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.an-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-footer__list li {
  margin-bottom: 7px;
  line-height: 1.9;
}

.an-footer__list a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.9;
}

.an-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.an-footer__contact svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: #8a8a8a;
}

.an-footer__contact span {
  min-width: 0;
}

.an-footer__contact .an-ltr {
  direction: ltr;
  unicode-bidi: plaintext;
}

.an-footer__badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.an-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 7px;
  border-radius: 6px;
  background: #fff;
  transition: transform var(--an-transition), box-shadow var(--an-transition);
}

.an-badge:hover,
.an-badge:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.an-badge img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.an-footer__social-payment {
  display: grid;
  grid-template-columns: 3fr 9fr;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.an-socials__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.an-socials__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-socials__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #c9c9c9;
  transition: background-color var(--an-transition), border-color var(--an-transition), color var(--an-transition), transform var(--an-transition);
}

.an-socials__list a:hover,
.an-socials__list a:focus {
  border-color: var(--an-accent-2);
  background: var(--an-accent);
  color: #fff;
  transform: translateY(-2px);
}

.an-socials__list svg {
  width: 16px;
  height: 16px;
}

.an-payment__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.an-payment__content {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.an-payment__content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 34px;
}

.an-footer__bottom {
  background: var(--an-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 15px;
  color: #cccccc;
  font-size: 13px;
  text-align: center;
}

.an-footer__bottom a {
  color: #e8e8e8;
}

.an-footer__bottom a:hover,
.an-footer__bottom a:focus {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   7. Responsive — header / footer
   ========================================================================== */
@media (max-width: 1399px) {
  .an-header__row {
    grid-template-columns: minmax(110px, 1fr) minmax(280px, 460px) minmax(0, 1fr);
    gap: 16px;
  }

  .an-phone {
    padding-inline: 10px;
  }
}

@media (max-width: 1199px) {
  .an-header__row {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .an-menu > li > a {
    padding-inline: 11px;
    font-size: 13px;
  }

  .an-footer__col--contact {
    grid-column: span 6;
  }

  .an-footer__col--info,
  .an-footer__col--help {
    grid-column: span 3;
  }

  .an-footer__badges {
    grid-column: span 12;
  }

  .an-socials-payment,
  .an-footer__social-payment {
    grid-template-columns: 4fr 8fr;
  }
}

@media (max-width: 991px) {
  .an-header__row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 12px;
    min-height: 0;
    padding-block: 12px;
  }

  .an-logo {
    grid-area: logo;
  }

  .an-logo img,
  .an-logo .custom-logo {
    max-height: 40px;
  }

  .an-search {
    grid-area: search;
    max-width: none;
  }

  .an-actions {
    grid-area: actions;
    justify-self: end;
    gap: 6px;
  }

  .an-navbar {
    display: none;
  }

  .an-menu-toggle {
    display: inline-flex;
  }

  .an-icon-btn {
    width: 38px;
    height: 38px;
  }

  .an-phone {
    height: 38px;
  }

  .an-header__actions .an-icon-btn {
    background: #f6f6f6;
  }

  .an-footer__top-row {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    padding-block: 24px;
  }

  .an-footer__logo {
    justify-self: center;
  }

  .an-footer__social-payment {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .an-footer__bottom {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .an-header__row {
    gap: 10px;
  }

  .an-logo img,
  .an-logo .custom-logo {
    max-height: 36px;
  }

  .an-icon-btn {
    width: 36px;
    height: 36px;
  }

  .an-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .an-phone__num {
    display: none;
  }

  .an-phone {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .an-lang__badge {
    display: none;
  }

  .an-lang__btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
  }

  .an-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .an-footer__col--contact,
  .an-footer__col--info,
  .an-footer__col--help,
  .an-footer__badges {
    grid-column: span 2;
  }

  .an-footer__badge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .an-badge {
    min-height: 58px;
    padding: 5px;
  }

  .an-badge img {
    max-height: 44px;
  }

  .an-newsletter__form {
    flex-direction: row;
  }
}

@media (max-width: 479px) {
  .an-header__row {
    padding-block: 10px 11px;
  }

  .an-actions {
    gap: 4px;
  }

  .an-icon-btn,
  .an-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .an-phone {
    width: 34px;
    height: 34px;
  }

  .an-lang__btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .an-newsletter__form {
    flex-direction: column;
  }

  .an-newsletter__btn {
    width: 100%;
  }

  .an-footer__badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
