/* ==== CSS RESET & NORMALIZE ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {  margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;  box-sizing: border-box;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {  display: block;}
body {  line-height: 1;}
ol, ul {  list-style: none;}
blockquote, q {  quotes: none;}
blockquote:before, blockquote:after,
q:before, q:after {  content: '';  content: none;}
table {  border-collapse: collapse;  border-spacing: 0;}
input, button, textarea, select {  font-family: inherit;  font-size: inherit;  outline: none;}
a {  color: inherit;  text-decoration: none;  background: none;}
img {  border: 0;  max-width: 100%;  height: auto;  display: block;}

/* ==== ROOT VARIABLES AND FONTS ==== */
:root {
  --primary: #21282E;
  --secondary: #E7302A;
  --accent: #F7F7F7;
  --gray-100: #F4F6F8;
  --gray-200: #E0E3E6;
  --gray-300: #C2C9CE;
  --gray-400: #919BA4;
  --gray-600: #4B535A;
  --blue-100: #E8EEF6;
  --blue-300: #99B7D6;
  --blue-700: #274264;
  --shadow: 0 2px 8px rgba(33,40,46,0.07), 0 1.5px 5px rgba(39,66,100,0.07);
  --radius: 10px;
}

@font-face {
  font-family: 'Oswald';
  src: local('Oswald'), url('https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
  font-display: swap;
}

body {
  background: var(--accent);
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header img {
  height: 46px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.main-nav a {
  color: var(--primary);
  padding: 8px 0px;
  border-bottom: 2px solid transparent;
  transition: color .22s, border-bottom-color .22s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.main-nav .cta-btn,
.cta-btn {
  background: var(--secondary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  margin-left: 10px;
  cursor: pointer;
  transition: background .22s, box-shadow .22s, transform .18s;
  display: inline-block;
}
.main-nav .cta-btn:hover,
.cta-btn:hover,
.cta-btn:focus {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(39,66,100,0.13);
}

/* ==== MOBILE NAV ==== */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 32px;
  cursor: pointer;
  display: none;
  transition: color .18s;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 120;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--secondary);
  background: var(--gray-100);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  background: #fff;
  box-shadow: -2px 0 22px 0 rgba(33,40,46,0.10);
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.7,0,.2,1);
  display: flex;
  flex-direction: column;
  z-index: 200;
  padding-top: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary);
  align-self: flex-end;
  margin: 0 14px 16px 0;
  cursor: pointer;
  transition: color .18s;
  padding: 6px 12px;
  border-radius: 8px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  background: var(--gray-100);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 6px;
  transition: color .18s, background .13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--gray-100);
  color: var(--secondary);
}

@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container { flex-wrap: wrap; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}


/* ==== MAIN LAYOUT ==== */
main {
  width: 100%;
  background: var(--accent);
  min-height: 70vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 850px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.13;
}
h1 { font-size: 36px; margin-bottom: 16px; }
h2 { font-size: 28px; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h4 { font-size: 18px; }

@media (min-width:380px) { h1 { font-size: 38px; } h2 { font-size: 30px; } }
@media (min-width:600px) { h1 { font-size: 48px; } h2 { font-size: 36px; } }

.hero-subheadline {
  font-size: 18px;
  color: var(--gray-400);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
}

/* ==== FEATURE GRIDS & FLEX LAYOUTS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 20px rgba(39,66,100,0.13);
  transform: translateY(-4px) scale(1.02);
}

.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

.feature-item { /* for explicit feature-item class */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*==== NEWS & ARTICLE LISTS ====*/
.news-grid, .article-list, .review-list, .model-list, .tips-list, .articles-list, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.news-card, .article-card, .review-card, .model-card, .tip-card {
  flex: 1 1 290px;
  min-width: 230px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .17s;
  position: relative;
}
.news-card:hover, .article-card:hover, .review-card:hover, .model-card:hover, .tip-card:hover {
  box-shadow:0 6px 24px rgba(33,40,46,0.12);  transform: translateY(-2px) scale(1.012);
}
.news-card h3,
.article-card h3,
.review-card h3,
.model-card h3,
.tip-card h3 {
  margin-bottom: 2px;
}
.news-card a, .article-card a, .review-card a {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 8px;
  align-self: flex-start;
  transition: color .19s;
}
.news-card a:hover, .article-card a:hover, .review-card a:hover {
  color: var(--blue-700);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 32px 20px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 620px;
  position: relative;
  flex: 1 1 260px;
}
.testimonial-card blockquote {
  font-size: 18px;
  color: var(--primary);
  margin-right: 18px;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card cite {
  color: var(--gray-400);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

/* ==== FAQ ACCORDION (readonly version) ==== */
.faq-accordion > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-accordion h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

/* ==== FILTERS BAR ==== */
.news-filters, .review-filters, .tips-filters, .model-filters, .technology-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.news-filters a,
.review-filters a,
.tips-filters a,
.model-filters a,
.technology-filters a {
  color: var(--primary);
  padding: 5px 14px;
  background: var(--gray-100);
  border-radius: 6px;
  font-weight: 500;
  transition: background .17s, color .17s;
}
.news-filters a:hover, .review-filters a:hover, .tips-filters a:hover, .model-filters a:hover, .technology-filters a:hover {
  background: var(--secondary);
  color: #fff;
}

/* ==== LISTS & PARAGRAPHS ==== */
.section ul, .section ol {
  margin-left: 20px;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--primary);
}
.section ul li, .section ol li {
  margin-bottom: 9px;
  padding-left: 4px;
  list-style-type: disc;
}
.text-section ul {
  margin-bottom: 0;
}
p {
  margin-bottom: 15px;
}

/* ==== TEXT-IMAGE SECTION (present in 'o-nas') ==== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width:768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap:20px; }
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 26px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 3px 0;
  transition: color .19s, border-bottom .15s;
  border-bottom: 1px solid transparent;
}
.footer-menu a:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
}
.footer-contact img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 34px;
  height: 34px;
  filter: grayscale(1) brightness(1.4);
  transition:filter .16s;
}
.footer-social a:hover img { filter: grayscale(0) brightness(1); }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 14px 0 rgba(33,40,46,0.11);
  padding: 24px 14px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  transition: transform .3s cubic-bezier(.7,0,.2,1), opacity .3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  border: none;
  padding: 8px 20px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s, color .13s;
  margin: 0 2px;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow);
}
.cookie-btn.accept:hover { background: var(--blue-700); }
.cookie-btn.reject {
  background: var(--gray-300);
  color: var(--primary);
}
.cookie-btn.reject:hover { background: #fff; color: var(--secondary); border: 1px solid var(--secondary); }
.cookie-btn.settings {
  background: #fff;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-300);
}
.cookie-btn.settings:hover { border-color: var(--secondary); color: var(--secondary); }

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(33,40,46,.36);
  z-index: 4000;
  display: flex;
  justify-content: center; align-items: center;
  transition: opacity .25s;
  pointer-events: all;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal__dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(33,40,46,0.15);
  padding: 36px 28px;
  width: 95%;
  max-width: 430px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal .24s cubic-bezier(.7,0,.6,1);
}
@keyframes fadeInModal { from {opacity:0; transform: scale(.96);} to {opacity:1; transform:scale(1);} }
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal__category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--secondary);
  margin-right: 7px;
}
.cookie-modal__close {
  position: absolute;
  top: 15px; right: 15px;
  background:none; border:none; font-size: 22px;
  color: var(--gray-400); cursor:pointer;
  border-radius: 50%; padding: 3px 7px;
  transition:background .13s;
}
.cookie-modal__close:hover { background: var(--gray-100); color: var(--secondary); }

/* Essential cookies always checked/disabled styling: */
.cookie-modal__category.essential input[type=checkbox] { accent-color: var(--blue-700); }
.cookie-modal__category.essential label { color: var(--gray-400); }
.cookie-modal__category.essential input[type=checkbox]:disabled { cursor: not-allowed; }

.cookie-modal__footer {
  display: flex; gap: 18px; margin-top:8px;
  align-items: center;
}


/* ==== SPACING & FLEXBOX PATTERNS (MANDATORY CLASSES) ==== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ==== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .feature-grid > div, .news-card, .model-card, .review-card, .article-card, .tip-card {
    min-width: 210px; max-width: 100%; flex: 1 1 250px;
  }
  .footer-contact { font-size: 15px; }
}
@media (max-width: 900px) {
  .footer-menu { font-size: 15px; }
  .feature-grid, .news-grid, .article-list, .review-list, .model-list, .tips-list, .articles-list {
    gap: 16px;
  }
  .content-wrapper { gap: 30px; }
}
@media (max-width: 768px) {
  .container, .content-wrapper { padding: 0 6px; }
  .feature-grid, .news-grid, .article-list, .review-list, .model-list, .tips-list, .articles-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .news-card, .model-card, .review-card, .article-card, .tip-card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card { flex-direction: column; padding: 20px 14px; gap: 10px; }
  .card-container, .content-grid { flex-direction: column; gap: 14px; }
  .footer-contact { font-size: 14px; }
  .footer-social a img { width: 28px; height: 28px; }
  .section { padding: 26px 4px; margin-bottom: 40px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
}
@media (max-width: 600px) {
  .footer-menu .footer-social, .footer-contact { font-size: 13px; }
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section { padding: 18px 0; margin-bottom: 28px; }
  h1 { font-size: 24px; }
  .footer-contact img { width: 28px; height: 28px; }
}

/* ==== MICRO-INTERACTIONS & TRANSITIONS ==== */
a, button, .cta-btn, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: color .19s, background .13s, border .13s, box-shadow .19s, transform .17s;
}

/* ==== ADDITIONAL ELEMENTS ==== */
::-webkit-scrollbar {
  width: 10px; background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300); border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-300);
}

/* ===== ACCESSIBILITY & INTERACTIVE STATES ===== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===== MISC ===== */
input[type='email'], input[type='text'], textarea { border-radius: 8px; padding: 10px 14px; border: 1.5px solid var(--gray-200); background: #fff; margin-bottom: 14px; font-family: 'Roboto', Arial, sans-serif; font-size: 15px; transition: border-color .18s; }
input[type='email']:focus, input[type='text']:focus, textarea:focus { border-color: var(--secondary); }

/* Ensure minimum 20px margin between all content cards */
.news-card, .article-card, .review-card, .model-card, .tip-card, .testimonial-card, .faq-accordion > div { margin-bottom: 20px; }

/* Prevent absolute content positioning except for decorations (already avoided) */

/* ===== END OF CSS ===== */
